"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Документация Ozon Seller API * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](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.instanceOfV2InvoiceCreateOrUpdateV2Request = instanceOfV2InvoiceCreateOrUpdateV2Request; exports.V2InvoiceCreateOrUpdateV2RequestFromJSON = V2InvoiceCreateOrUpdateV2RequestFromJSON; exports.V2InvoiceCreateOrUpdateV2RequestFromJSONTyped = V2InvoiceCreateOrUpdateV2RequestFromJSONTyped; exports.V2InvoiceCreateOrUpdateV2RequestToJSON = V2InvoiceCreateOrUpdateV2RequestToJSON; const V2HsCode_1 = require("./V2HsCode"); /** * Check if a given object implements the V2InvoiceCreateOrUpdateV2Request interface. */ function instanceOfV2InvoiceCreateOrUpdateV2Request(value) { if (!('date' in value) || value['date'] === undefined) return false; if (!('posting_number' in value) || value['posting_number'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; } function V2InvoiceCreateOrUpdateV2RequestFromJSON(json) { return V2InvoiceCreateOrUpdateV2RequestFromJSONTyped(json, false); } function V2InvoiceCreateOrUpdateV2RequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'date': json['date'], 'hs_codes': json['hs_codes'] == null ? undefined : (json['hs_codes'].map(V2HsCode_1.V2HsCodeFromJSON)), 'number': json['number'] == null ? undefined : json['number'], 'posting_number': json['posting_number'], 'price': json['price'] == null ? undefined : json['price'], 'price_currency': json['price_currency'] == null ? undefined : json['price_currency'], 'url': json['url'], }; } function V2InvoiceCreateOrUpdateV2RequestToJSON(value) { if (value == null) { return value; } return { 'date': value['date'], 'hs_codes': value['hs_codes'] == null ? undefined : (value['hs_codes'].map(V2HsCode_1.V2HsCodeToJSON)), 'number': value['number'], 'posting_number': value['posting_number'], 'price': value['price'], 'price_currency': value['price_currency'], 'url': value['url'], }; }