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

74 lines
4.6 KiB
JavaScript
Raw 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.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'],
};
}