"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.instanceOfSupplyOrderContentUpdateValidationResponseRejectedItems = instanceOfSupplyOrderContentUpdateValidationResponseRejectedItems; exports.SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSON = SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSON; exports.SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSONTyped = SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSONTyped; exports.SupplyOrderContentUpdateValidationResponseRejectedItemsToJSON = SupplyOrderContentUpdateValidationResponseRejectedItemsToJSON; const RejectedItemsRestrictions_1 = require("./RejectedItemsRestrictions"); const RejectedItemsRejectionReasonEnum_1 = require("./RejectedItemsRejectionReasonEnum"); /** * Check if a given object implements the SupplyOrderContentUpdateValidationResponseRejectedItems interface. */ function instanceOfSupplyOrderContentUpdateValidationResponseRejectedItems(value) { return true; } function SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSON(json) { return SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSONTyped(json, false); } function SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'barcode': json['barcode'] == null ? undefined : json['barcode'], 'name': json['name'] == null ? undefined : json['name'], 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], 'origin_quantity': json['origin_quantity'] == null ? undefined : json['origin_quantity'], 'origin_total_volume_in_litres': json['origin_total_volume_in_litres'] == null ? undefined : json['origin_total_volume_in_litres'], 'quantity': json['quantity'] == null ? undefined : json['quantity'], 'rejection_reason': json['rejection_reason'] == null ? undefined : (json['rejection_reason'].map(RejectedItemsRejectionReasonEnum_1.RejectedItemsRejectionReasonEnumFromJSON)), 'restrictions': json['restrictions'] == null ? undefined : (0, RejectedItemsRestrictions_1.RejectedItemsRestrictionsFromJSON)(json['restrictions']), 'sku': json['sku'] == null ? undefined : json['sku'], 'total_volume_in_litres': json['total_volume_in_litres'] == null ? undefined : json['total_volume_in_litres'], }; } function SupplyOrderContentUpdateValidationResponseRejectedItemsToJSON(value) { if (value == null) { return value; } return { 'barcode': value['barcode'], 'name': value['name'], 'offer_id': value['offer_id'], 'origin_quantity': value['origin_quantity'], 'origin_total_volume_in_litres': value['origin_total_volume_in_litres'], 'quantity': value['quantity'], 'rejection_reason': value['rejection_reason'] == null ? undefined : (value['rejection_reason'].map(RejectedItemsRejectionReasonEnum_1.RejectedItemsRejectionReasonEnumToJSON)), 'restrictions': (0, RejectedItemsRestrictions_1.RejectedItemsRestrictionsToJSON)(value['restrictions']), 'sku': value['sku'], 'total_volume_in_litres': value['total_volume_in_litres'], }; }