177 lines
11 KiB
JavaScript
177 lines
11 KiB
JavaScript
"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.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;
|