"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.instanceOfDeliveryCheckoutResponseSplitDeliveryMethod = instanceOfDeliveryCheckoutResponseSplitDeliveryMethod; exports.DeliveryCheckoutResponseSplitDeliveryMethodFromJSON = DeliveryCheckoutResponseSplitDeliveryMethodFromJSON; exports.DeliveryCheckoutResponseSplitDeliveryMethodFromJSONTyped = DeliveryCheckoutResponseSplitDeliveryMethodFromJSONTyped; exports.DeliveryCheckoutResponseSplitDeliveryMethodToJSON = DeliveryCheckoutResponseSplitDeliveryMethodToJSON; const DeliveryMethodDeliveryTypeEnum_1 = require("./DeliveryMethodDeliveryTypeEnum"); const DeliveryCheckoutResponseUnavailableReasonEnum_1 = require("./DeliveryCheckoutResponseUnavailableReasonEnum"); const DeliveryMethodTimeslot_1 = require("./DeliveryMethodTimeslot"); /** * Check if a given object implements the DeliveryCheckoutResponseSplitDeliveryMethod interface. */ function instanceOfDeliveryCheckoutResponseSplitDeliveryMethod(value) { return true; } function DeliveryCheckoutResponseSplitDeliveryMethodFromJSON(json) { return DeliveryCheckoutResponseSplitDeliveryMethodFromJSONTyped(json, false); } function DeliveryCheckoutResponseSplitDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'delivery_time_zone_offset': json['delivery_time_zone_offset'] == null ? undefined : json['delivery_time_zone_offset'], 'delivery_type': json['delivery_type'] == null ? undefined : (0, DeliveryMethodDeliveryTypeEnum_1.DeliveryMethodDeliveryTypeEnumFromJSON)(json['delivery_type']), 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'] == null ? undefined : json['name'], 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(DeliveryMethodTimeslot_1.DeliveryMethodTimeslotFromJSON)), 'unavailable_reason': json['unavailable_reason'] == null ? undefined : (0, DeliveryCheckoutResponseUnavailableReasonEnum_1.DeliveryCheckoutResponseUnavailableReasonEnumFromJSON)(json['unavailable_reason']), 'warehouse_time_zone_offset': json['warehouse_time_zone_offset'] == null ? undefined : json['warehouse_time_zone_offset'], }; } function DeliveryCheckoutResponseSplitDeliveryMethodToJSON(value) { if (value == null) { return value; } return { 'delivery_time_zone_offset': value['delivery_time_zone_offset'], 'delivery_type': (0, DeliveryMethodDeliveryTypeEnum_1.DeliveryMethodDeliveryTypeEnumToJSON)(value['delivery_type']), 'id': value['id'], 'name': value['name'], 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(DeliveryMethodTimeslot_1.DeliveryMethodTimeslotToJSON)), 'unavailable_reason': (0, DeliveryCheckoutResponseUnavailableReasonEnum_1.DeliveryCheckoutResponseUnavailableReasonEnumToJSON)(value['unavailable_reason']), 'warehouse_time_zone_offset': value['warehouse_time_zone_offset'], }; }