"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.instanceOfV1DeliveryCheckoutRequest = instanceOfV1DeliveryCheckoutRequest; exports.V1DeliveryCheckoutRequestFromJSON = V1DeliveryCheckoutRequestFromJSON; exports.V1DeliveryCheckoutRequestFromJSONTyped = V1DeliveryCheckoutRequestFromJSONTyped; exports.V1DeliveryCheckoutRequestToJSON = V1DeliveryCheckoutRequestToJSON; const V1DeliveryCheckoutRequestItem_1 = require("./V1DeliveryCheckoutRequestItem"); const V2DeliveryCheckoutRequestV2DeliverySchemaEnum_1 = require("./V2DeliveryCheckoutRequestV2DeliverySchemaEnum"); const V1DeliveryCheckoutRequestDeliveryType_1 = require("./V1DeliveryCheckoutRequestDeliveryType"); /** * Check if a given object implements the V1DeliveryCheckoutRequest interface. */ function instanceOfV1DeliveryCheckoutRequest(value) { return true; } function V1DeliveryCheckoutRequestFromJSON(json) { return V1DeliveryCheckoutRequestFromJSONTyped(json, false); } function V1DeliveryCheckoutRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'buyer_phone': json['buyer_phone'] == null ? undefined : json['buyer_phone'], 'delivery_schema': json['delivery_schema'] == null ? undefined : (0, V2DeliveryCheckoutRequestV2DeliverySchemaEnum_1.V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSON)(json['delivery_schema']), 'delivery_type': json['delivery_type'] == null ? undefined : (0, V1DeliveryCheckoutRequestDeliveryType_1.V1DeliveryCheckoutRequestDeliveryTypeFromJSON)(json['delivery_type']), 'items': json['items'] == null ? undefined : (json['items'].map(V1DeliveryCheckoutRequestItem_1.V1DeliveryCheckoutRequestItemFromJSON)), }; } function V1DeliveryCheckoutRequestToJSON(value) { if (value == null) { return value; } return { 'buyer_phone': value['buyer_phone'], 'delivery_schema': (0, V2DeliveryCheckoutRequestV2DeliverySchemaEnum_1.V2DeliveryCheckoutRequestV2DeliverySchemaEnumToJSON)(value['delivery_schema']), 'delivery_type': (0, V1DeliveryCheckoutRequestDeliveryType_1.V1DeliveryCheckoutRequestDeliveryTypeToJSON)(value['delivery_type']), 'items': value['items'] == null ? undefined : (value['items'].map(V1DeliveryCheckoutRequestItem_1.V1DeliveryCheckoutRequestItemToJSON)), }; }