56 lines
2.9 KiB
JavaScript
56 lines
2.9 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.instanceOfInvoiceGetV2ResponseResult = instanceOfInvoiceGetV2ResponseResult;
|
||
exports.InvoiceGetV2ResponseResultFromJSON = InvoiceGetV2ResponseResultFromJSON;
|
||
exports.InvoiceGetV2ResponseResultFromJSONTyped = InvoiceGetV2ResponseResultFromJSONTyped;
|
||
exports.InvoiceGetV2ResponseResultToJSON = InvoiceGetV2ResponseResultToJSON;
|
||
const V2HsCode_1 = require("./V2HsCode");
|
||
/**
|
||
* Check if a given object implements the InvoiceGetV2ResponseResult interface.
|
||
*/
|
||
function instanceOfInvoiceGetV2ResponseResult(value) {
|
||
return true;
|
||
}
|
||
function InvoiceGetV2ResponseResultFromJSON(json) {
|
||
return InvoiceGetV2ResponseResultFromJSONTyped(json, false);
|
||
}
|
||
function InvoiceGetV2ResponseResultFromJSONTyped(json, ignoreDiscriminator) {
|
||
if (json == null) {
|
||
return json;
|
||
}
|
||
return {
|
||
'date': json['date'] == null ? undefined : json['date'],
|
||
'file_url': json['file_url'] == null ? undefined : json['file_url'],
|
||
'hs_codes': json['hs_codes'] == null ? undefined : (json['hs_codes'].map(V2HsCode_1.V2HsCodeFromJSON)),
|
||
'number': json['number'] == null ? undefined : json['number'],
|
||
'price': json['price'] == null ? undefined : json['price'],
|
||
'price_currency': json['price_currency'] == null ? undefined : json['price_currency'],
|
||
};
|
||
}
|
||
function InvoiceGetV2ResponseResultToJSON(value) {
|
||
if (value == null) {
|
||
return value;
|
||
}
|
||
return {
|
||
'date': value['date'],
|
||
'file_url': value['file_url'],
|
||
'hs_codes': value['hs_codes'] == null ? undefined : (value['hs_codes'].map(V2HsCode_1.V2HsCodeToJSON)),
|
||
'number': value['number'],
|
||
'price': value['price'],
|
||
'price_currency': value['price_currency'],
|
||
};
|
||
}
|