"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.V2DraftSupplyCreateRequestSupplyTypeEnum = void 0; exports.instanceOfV2DraftSupplyCreateRequest = instanceOfV2DraftSupplyCreateRequest; exports.V2DraftSupplyCreateRequestFromJSON = V2DraftSupplyCreateRequestFromJSON; exports.V2DraftSupplyCreateRequestFromJSONTyped = V2DraftSupplyCreateRequestFromJSONTyped; exports.V2DraftSupplyCreateRequestToJSON = V2DraftSupplyCreateRequestToJSON; const V2DraftSupplyCreateRequestTimeslot_1 = require("./V2DraftSupplyCreateRequestTimeslot"); const V2DraftSupplyCreateRequestSelectedClusterWarehouse_1 = require("./V2DraftSupplyCreateRequestSelectedClusterWarehouse"); /** * @export */ exports.V2DraftSupplyCreateRequestSupplyTypeEnum = { CROSSDOCK: 'CROSSDOCK', DIRECT: 'DIRECT', MULTI_CLUSTER: 'MULTI_CLUSTER' }; /** * Check if a given object implements the V2DraftSupplyCreateRequest interface. */ function instanceOfV2DraftSupplyCreateRequest(value) { if (!('draft_id' in value) || value['draft_id'] === undefined) return false; if (!('selected_cluster_warehouses' in value) || value['selected_cluster_warehouses'] === undefined) return false; if (!('supply_type' in value) || value['supply_type'] === undefined) return false; return true; } function V2DraftSupplyCreateRequestFromJSON(json) { return V2DraftSupplyCreateRequestFromJSONTyped(json, false); } function V2DraftSupplyCreateRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'draft_id': json['draft_id'], 'selected_cluster_warehouses': (json['selected_cluster_warehouses'].map(V2DraftSupplyCreateRequestSelectedClusterWarehouse_1.V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSON)), 'timeslot': json['timeslot'] == null ? undefined : (0, V2DraftSupplyCreateRequestTimeslot_1.V2DraftSupplyCreateRequestTimeslotFromJSON)(json['timeslot']), 'supply_type': json['supply_type'], }; } function V2DraftSupplyCreateRequestToJSON(value) { if (value == null) { return value; } return { 'draft_id': value['draft_id'], 'selected_cluster_warehouses': (value['selected_cluster_warehouses'].map(V2DraftSupplyCreateRequestSelectedClusterWarehouse_1.V2DraftSupplyCreateRequestSelectedClusterWarehouseToJSON)), 'timeslot': (0, V2DraftSupplyCreateRequestTimeslot_1.V2DraftSupplyCreateRequestTimeslotToJSON)(value['timeslot']), 'supply_type': value['supply_type'], }; }