"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.instanceOfV1FbpOrderGetResponse = instanceOfV1FbpOrderGetResponse; exports.V1FbpOrderGetResponseFromJSON = V1FbpOrderGetResponseFromJSON; exports.V1FbpOrderGetResponseFromJSONTyped = V1FbpOrderGetResponseFromJSONTyped; exports.V1FbpOrderGetResponseToJSON = V1FbpOrderGetResponseToJSON; const Fbpv1DeliveryDetails_1 = require("./Fbpv1DeliveryDetails"); const V1CancellationState_1 = require("./V1CancellationState"); const V1OrderStatusEnum_1 = require("./V1OrderStatusEnum"); const V1OrderAttentionTypeEnum_1 = require("./V1OrderAttentionTypeEnum"); /** * Check if a given object implements the V1FbpOrderGetResponse interface. */ function instanceOfV1FbpOrderGetResponse(value) { return true; } function V1FbpOrderGetResponseFromJSON(json) { return V1FbpOrderGetResponseFromJSONTyped(json, false); } function V1FbpOrderGetResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'attention_reasons': json['attention_reasons'] == null ? undefined : (json['attention_reasons'].map(V1OrderAttentionTypeEnum_1.V1OrderAttentionTypeEnumFromJSON)), 'bundle_uuid': json['bundle_uuid'] == null ? undefined : json['bundle_uuid'], 'can_be_cancelled': json['can_be_cancelled'] == null ? undefined : json['can_be_cancelled'], 'cancellation_state': json['cancellation_state'] == null ? undefined : (0, V1CancellationState_1.V1CancellationStateFromJSON)(json['cancellation_state']), 'created_date': json['created_date'] == null ? undefined : json['created_date'], 'delivery_details': json['delivery_details'] == null ? undefined : (0, Fbpv1DeliveryDetails_1.Fbpv1DeliveryDetailsFromJSON)(json['delivery_details']), 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], 'has_consignment_note': json['has_consignment_note'] == null ? undefined : json['has_consignment_note'], 'has_label': json['has_label'] == null ? undefined : json['has_label'], 'id': json['id'] == null ? undefined : json['id'], 'locked': json['locked'] == null ? undefined : json['locked'], 'order_number': json['order_number'] == null ? undefined : json['order_number'], 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], 'receive_date': json['receive_date'] == null ? undefined : json['receive_date'], 'row_version': json['row_version'] == null ? undefined : json['row_version'], 'status': json['status'] == null ? undefined : (0, V1OrderStatusEnum_1.V1OrderStatusEnumFromJSON)(json['status']), 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], }; } function V1FbpOrderGetResponseToJSON(value) { if (value == null) { return value; } return { 'attention_reasons': value['attention_reasons'] == null ? undefined : (value['attention_reasons'].map(V1OrderAttentionTypeEnum_1.V1OrderAttentionTypeEnumToJSON)), 'bundle_uuid': value['bundle_uuid'], 'can_be_cancelled': value['can_be_cancelled'], 'cancellation_state': (0, V1CancellationState_1.V1CancellationStateToJSON)(value['cancellation_state']), 'created_date': value['created_date'], 'delivery_details': (0, Fbpv1DeliveryDetails_1.Fbpv1DeliveryDetailsToJSON)(value['delivery_details']), 'draft_id': value['draft_id'], 'has_consignment_note': value['has_consignment_note'], 'has_label': value['has_label'], 'id': value['id'], 'locked': value['locked'], 'order_number': value['order_number'], 'package_units_count': value['package_units_count'], 'receive_date': value['receive_date'], 'row_version': value['row_version'], 'status': (0, V1OrderStatusEnum_1.V1OrderStatusEnumToJSON)(value['status']), 'supply_id': value['supply_id'], 'warehouse_id': value['warehouse_id'], }; }