74 lines
4.7 KiB
JavaScript
74 lines
4.7 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.instanceOfV2FboPostingV2 = instanceOfV2FboPostingV2;
|
||
exports.V2FboPostingV2FromJSON = V2FboPostingV2FromJSON;
|
||
exports.V2FboPostingV2FromJSONTyped = V2FboPostingV2FromJSONTyped;
|
||
exports.V2FboPostingV2ToJSON = V2FboPostingV2ToJSON;
|
||
const V2PostingFinancialDataFBOV2_1 = require("./V2PostingFinancialDataFBOV2");
|
||
const FboPostingFboPostingAnalyticsData_1 = require("./FboPostingFboPostingAnalyticsData");
|
||
const V2AdditionalDataItem_1 = require("./V2AdditionalDataItem");
|
||
const V2PostingProduct_1 = require("./V2PostingProduct");
|
||
const V2FboSinglePostingLegalInfo_1 = require("./V2FboSinglePostingLegalInfo");
|
||
/**
|
||
* Check if a given object implements the V2FboPostingV2 interface.
|
||
*/
|
||
function instanceOfV2FboPostingV2(value) {
|
||
return true;
|
||
}
|
||
function V2FboPostingV2FromJSON(json) {
|
||
return V2FboPostingV2FromJSONTyped(json, false);
|
||
}
|
||
function V2FboPostingV2FromJSONTyped(json, ignoreDiscriminator) {
|
||
if (json == null) {
|
||
return json;
|
||
}
|
||
return {
|
||
'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(V2AdditionalDataItem_1.V2AdditionalDataItemFromJSON)),
|
||
'analytics_data': json['analytics_data'] == null ? undefined : (0, FboPostingFboPostingAnalyticsData_1.FboPostingFboPostingAnalyticsDataFromJSON)(json['analytics_data']),
|
||
'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'],
|
||
'created_at': json['created_at'] == null ? undefined : json['created_at'],
|
||
'financial_data': json['financial_data'] == null ? undefined : (0, V2PostingFinancialDataFBOV2_1.V2PostingFinancialDataFBOV2FromJSON)(json['financial_data']),
|
||
'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'],
|
||
'legal_info': json['legal_info'] == null ? undefined : (0, V2FboSinglePostingLegalInfo_1.V2FboSinglePostingLegalInfoFromJSON)(json['legal_info']),
|
||
'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(V2PostingProduct_1.V2PostingProductFromJSON)),
|
||
'status': json['status'] == null ? undefined : json['status'],
|
||
'substatus': json['substatus'] == null ? undefined : json['substatus'],
|
||
};
|
||
}
|
||
function V2FboPostingV2ToJSON(value) {
|
||
if (value == null) {
|
||
return value;
|
||
}
|
||
return {
|
||
'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(V2AdditionalDataItem_1.V2AdditionalDataItemToJSON)),
|
||
'analytics_data': (0, FboPostingFboPostingAnalyticsData_1.FboPostingFboPostingAnalyticsDataToJSON)(value['analytics_data']),
|
||
'cancel_reason_id': value['cancel_reason_id'],
|
||
'created_at': value['created_at'],
|
||
'financial_data': (0, V2PostingFinancialDataFBOV2_1.V2PostingFinancialDataFBOV2ToJSON)(value['financial_data']),
|
||
'in_process_at': value['in_process_at'],
|
||
'legal_info': (0, V2FboSinglePostingLegalInfo_1.V2FboSinglePostingLegalInfoToJSON)(value['legal_info']),
|
||
'order_id': value['order_id'],
|
||
'order_number': value['order_number'],
|
||
'posting_number': value['posting_number'],
|
||
'products': value['products'] == null ? undefined : (value['products'].map(V2PostingProduct_1.V2PostingProductToJSON)),
|
||
'status': value['status'],
|
||
'substatus': value['substatus'],
|
||
};
|
||
}
|