58 lines
4.0 KiB
JavaScript
58 lines
4.0 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.
|
||
*/
|
||
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)),
|
||
};
|
||
}
|