"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.instanceOfOrderCreateRequestRecipient = instanceOfOrderCreateRequestRecipient; exports.OrderCreateRequestRecipientFromJSON = OrderCreateRequestRecipientFromJSON; exports.OrderCreateRequestRecipientFromJSONTyped = OrderCreateRequestRecipientFromJSONTyped; exports.OrderCreateRequestRecipientToJSON = OrderCreateRequestRecipientToJSON; /** * Check if a given object implements the OrderCreateRequestRecipient interface. */ function instanceOfOrderCreateRequestRecipient(value) { if (!('recipient_first_name' in value) || value['recipient_first_name'] === undefined) return false; if (!('recipient_last_name' in value) || value['recipient_last_name'] === undefined) return false; if (!('recipient_phone' in value) || value['recipient_phone'] === undefined) return false; return true; } function OrderCreateRequestRecipientFromJSON(json) { return OrderCreateRequestRecipientFromJSONTyped(json, false); } function OrderCreateRequestRecipientFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'recipient_first_name': json['recipient_first_name'], 'recipient_last_name': json['recipient_last_name'], 'recipient_middle_name': json['recipient_middle_name'] == null ? undefined : json['recipient_middle_name'], 'recipient_phone': json['recipient_phone'], }; } function OrderCreateRequestRecipientToJSON(value) { if (value == null) { return value; } return { 'recipient_first_name': value['recipient_first_name'], 'recipient_last_name': value['recipient_last_name'], 'recipient_middle_name': value['recipient_middle_name'], 'recipient_phone': value['recipient_phone'], }; }