"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.instanceOfSplitDeliveryMethod = instanceOfSplitDeliveryMethod; exports.SplitDeliveryMethodFromJSON = SplitDeliveryMethodFromJSON; exports.SplitDeliveryMethodFromJSONTyped = SplitDeliveryMethodFromJSONTyped; exports.SplitDeliveryMethodToJSON = SplitDeliveryMethodToJSON; const DeliveryTypeEnum_1 = require("./DeliveryTypeEnum"); const DeliveryMethodDateRange_1 = require("./DeliveryMethodDateRange"); const OrderCreateRequestDeliveryPrice_1 = require("./OrderCreateRequestDeliveryPrice"); /** * Check if a given object implements the SplitDeliveryMethod interface. */ function instanceOfSplitDeliveryMethod(value) { if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) return false; if (!('delivery_type' in value) || value['delivery_type'] === undefined) return false; if (!('logistic_date_range' in value) || value['logistic_date_range'] === undefined) return false; if (!('timeslot_id' in value) || value['timeslot_id'] === undefined) return false; return true; } function SplitDeliveryMethodFromJSON(json) { return SplitDeliveryMethodFromJSONTyped(json, false); } function SplitDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'delivery_method_id': json['delivery_method_id'], 'delivery_type': (0, DeliveryTypeEnum_1.DeliveryTypeEnumFromJSON)(json['delivery_type']), 'logistic_date_range': (0, DeliveryMethodDateRange_1.DeliveryMethodDateRangeFromJSON)(json['logistic_date_range']), 'price': json['price'] == null ? undefined : (0, OrderCreateRequestDeliveryPrice_1.OrderCreateRequestDeliveryPriceFromJSON)(json['price']), 'timeslot_id': json['timeslot_id'], }; } function SplitDeliveryMethodToJSON(value) { if (value == null) { return value; } return { 'delivery_method_id': value['delivery_method_id'], 'delivery_type': (0, DeliveryTypeEnum_1.DeliveryTypeEnumToJSON)(value['delivery_type']), 'logistic_date_range': (0, DeliveryMethodDateRange_1.DeliveryMethodDateRangeToJSON)(value['logistic_date_range']), 'price': (0, OrderCreateRequestDeliveryPrice_1.OrderCreateRequestDeliveryPriceToJSON)(value['price']), 'timeslot_id': value['timeslot_id'], }; }