release 0.1.0
This commit is contained in:
670
dist/apis/FBO.js
vendored
Normal file
670
dist/apis/FBO.js
vendored
Normal file
@@ -0,0 +1,670 @@
|
||||
"use strict";
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Документация Ozon Seller API
|
||||
* По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. <aside class=\"warning\">Обновляем корневой TLS/SSL-сертификат GlobalSign — вместо него будем использовать <a href=\"https://app.harica.gr/\">HARICA</a>.<br><a href=\"https://dev.ozon.ru/news/775-Izmeneniia-v-Ozon-API-migratsiia-kornevogo-sertifikata-UTs-Ozon/\">Подробнее о переходе на HARICA на платформе разработчиков Ozon for dev</a></aside> > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.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();
|
||||
});
|
||||
}
|
||||
/**
|
||||
* <aside class=\"warning\"> С 31 августа 2026 года метод будет отключён. Переключитесь на <a href=\"#operation/PostingFboList\">/v3/posting/fbo/list</a>. </aside> Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `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));
|
||||
});
|
||||
}
|
||||
/**
|
||||
* <aside class=\"warning\"> С 31 августа 2026 года метод будет отключён. Переключитесь на <a href=\"#operation/PostingFboList\">/v3/posting/fbo/list</a>. </aside> Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `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();
|
||||
});
|
||||
}
|
||||
/**
|
||||
* <aside class=\"warning\"> Метод устаревает и будет отключён 19 августа 2026 года. Переключитесь на <a href=\"#operation/SupplyOrderTimeslotList\">/v2/supply-order/timeslot/list</a>. </aside>
|
||||
* Интервалы поставки
|
||||
*/
|
||||
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));
|
||||
});
|
||||
}
|
||||
/**
|
||||
* <aside class=\"warning\"> Метод устаревает и будет отключён 19 августа 2026 года. Переключитесь на <a href=\"#operation/SupplyOrderTimeslotList\">/v2/supply-order/timeslot/list</a>. </aside>
|
||||
* Интервалы поставки
|
||||
*/
|
||||
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;
|
||||
Reference in New Issue
Block a user