Files
ozon-seller-typescript/dist/models/SupplyCargoInfo.js
2026-08-21 12:19:50 +00:00

59 lines
3.5 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"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.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']),
};
}