65 lines
3.5 KiB
JavaScript
65 lines
3.5 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.instanceOfV2FbsPosting = instanceOfV2FbsPosting;
|
||
exports.V2FbsPostingFromJSON = V2FbsPostingFromJSON;
|
||
exports.V2FbsPostingFromJSONTyped = V2FbsPostingFromJSONTyped;
|
||
exports.V2FbsPostingToJSON = V2FbsPostingToJSON;
|
||
const V2FbsPostingProduct_1 = require("./V2FbsPostingProduct");
|
||
const FbsPostingBarcodes_1 = require("./FbsPostingBarcodes");
|
||
/**
|
||
* Check if a given object implements the V2FbsPosting interface.
|
||
*/
|
||
function instanceOfV2FbsPosting(value) {
|
||
return true;
|
||
}
|
||
function V2FbsPostingFromJSON(json) {
|
||
return V2FbsPostingFromJSONTyped(json, false);
|
||
}
|
||
function V2FbsPostingFromJSONTyped(json, ignoreDiscriminator) {
|
||
if (json == null) {
|
||
return json;
|
||
}
|
||
return {
|
||
'barcodes': json['barcodes'] == null ? undefined : (0, FbsPostingBarcodes_1.FbsPostingBarcodesFromJSON)(json['barcodes']),
|
||
'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'],
|
||
'created_at': json['created_at'] == null ? undefined : json['created_at'],
|
||
'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'],
|
||
'order_id': json['order_id'] == null ? undefined : json['order_id'],
|
||
'order_number': json['order_number'] == null ? undefined : json['order_number'],
|
||
'posting_number': json['posting_number'] == null ? undefined : json['posting_number'],
|
||
'products': json['products'] == null ? undefined : (json['products'].map(V2FbsPostingProduct_1.V2FbsPostingProductFromJSON)),
|
||
'shipment_date': json['shipment_date'] == null ? undefined : json['shipment_date'],
|
||
'status': json['status'] == null ? undefined : json['status'],
|
||
};
|
||
}
|
||
function V2FbsPostingToJSON(value) {
|
||
if (value == null) {
|
||
return value;
|
||
}
|
||
return {
|
||
'barcodes': (0, FbsPostingBarcodes_1.FbsPostingBarcodesToJSON)(value['barcodes']),
|
||
'cancel_reason_id': value['cancel_reason_id'],
|
||
'created_at': value['created_at'],
|
||
'in_process_at': value['in_process_at'],
|
||
'order_id': value['order_id'],
|
||
'order_number': value['order_number'],
|
||
'posting_number': value['posting_number'],
|
||
'products': value['products'] == null ? undefined : (value['products'].map(V2FbsPostingProduct_1.V2FbsPostingProductToJSON)),
|
||
'shipment_date': value['shipment_date'],
|
||
'status': value['status'],
|
||
};
|
||
}
|