"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.instanceOfCargoesRulesGetResponseSupplyCheck = instanceOfCargoesRulesGetResponseSupplyCheck; exports.CargoesRulesGetResponseSupplyCheckFromJSON = CargoesRulesGetResponseSupplyCheckFromJSON; exports.CargoesRulesGetResponseSupplyCheckFromJSONTyped = CargoesRulesGetResponseSupplyCheckFromJSONTyped; exports.CargoesRulesGetResponseSupplyCheckToJSON = CargoesRulesGetResponseSupplyCheckToJSON; const SupplyCheckIsValidDistributionRule_1 = require("./SupplyCheckIsValidDistributionRule"); const SupplyCheckCargoesPresentRule_1 = require("./SupplyCheckCargoesPresentRule"); const SupplyCheckEditDeadlineExpireRule_1 = require("./SupplyCheckEditDeadlineExpireRule"); const SupplyCheckPackageUnitWithDistributionRule_1 = require("./SupplyCheckPackageUnitWithDistributionRule"); const SupplyCheckPlacementZoneRule_1 = require("./SupplyCheckPlacementZoneRule"); const SupplyCheckExpireDatePresentedRule_1 = require("./SupplyCheckExpireDatePresentedRule"); /** * Check if a given object implements the CargoesRulesGetResponseSupplyCheck interface. */ function instanceOfCargoesRulesGetResponseSupplyCheck(value) { return true; } function CargoesRulesGetResponseSupplyCheckFromJSON(json) { return CargoesRulesGetResponseSupplyCheckFromJSONTyped(json, false); } function CargoesRulesGetResponseSupplyCheckFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'cargoes_presents_rule': json['cargoes_presents_rule'] == null ? undefined : (0, SupplyCheckCargoesPresentRule_1.SupplyCheckCargoesPresentRuleFromJSON)(json['cargoes_presents_rule']), 'edit_deadline_expire_rule': json['edit_deadline_expire_rule'] == null ? undefined : (0, SupplyCheckEditDeadlineExpireRule_1.SupplyCheckEditDeadlineExpireRuleFromJSON)(json['edit_deadline_expire_rule']), 'expire_dates_presented_rule': json['expire_dates_presented_rule'] == null ? undefined : (0, SupplyCheckExpireDatePresentedRule_1.SupplyCheckExpireDatePresentedRuleFromJSON)(json['expire_dates_presented_rule']), 'is_valid_distribution_rule': json['is_valid_distribution_rule'] == null ? undefined : (0, SupplyCheckIsValidDistributionRule_1.SupplyCheckIsValidDistributionRuleFromJSON)(json['is_valid_distribution_rule']), 'package_units_with_distribution_rule': json['package_units_with_distribution_rule'] == null ? undefined : (0, SupplyCheckPackageUnitWithDistributionRule_1.SupplyCheckPackageUnitWithDistributionRuleFromJSON)(json['package_units_with_distribution_rule']), 'placement_zones_rule': json['placement_zones_rule'] == null ? undefined : (0, SupplyCheckPlacementZoneRule_1.SupplyCheckPlacementZoneRuleFromJSON)(json['placement_zones_rule']), 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], }; } function CargoesRulesGetResponseSupplyCheckToJSON(value) { if (value == null) { return value; } return { 'cargoes_presents_rule': (0, SupplyCheckCargoesPresentRule_1.SupplyCheckCargoesPresentRuleToJSON)(value['cargoes_presents_rule']), 'edit_deadline_expire_rule': (0, SupplyCheckEditDeadlineExpireRule_1.SupplyCheckEditDeadlineExpireRuleToJSON)(value['edit_deadline_expire_rule']), 'expire_dates_presented_rule': (0, SupplyCheckExpireDatePresentedRule_1.SupplyCheckExpireDatePresentedRuleToJSON)(value['expire_dates_presented_rule']), 'is_valid_distribution_rule': (0, SupplyCheckIsValidDistributionRule_1.SupplyCheckIsValidDistributionRuleToJSON)(value['is_valid_distribution_rule']), 'package_units_with_distribution_rule': (0, SupplyCheckPackageUnitWithDistributionRule_1.SupplyCheckPackageUnitWithDistributionRuleToJSON)(value['package_units_with_distribution_rule']), 'placement_zones_rule': (0, SupplyCheckPlacementZoneRule_1.SupplyCheckPlacementZoneRuleToJSON)(value['placement_zones_rule']), 'supply_id': value['supply_id'], }; }