"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.instanceOfV3FbsPostingDetail = instanceOfV3FbsPostingDetail; exports.V3FbsPostingDetailFromJSON = V3FbsPostingDetailFromJSON; exports.V3FbsPostingDetailFromJSONTyped = V3FbsPostingDetailFromJSONTyped; exports.V3FbsPostingDetailToJSON = V3FbsPostingDetailToJSON; const V3AdditionalDataItem_1 = require("./V3AdditionalDataItem"); const PostingV3FbsPostingDetailSortingCenter_1 = require("./PostingV3FbsPostingDetailSortingCenter"); const PostingV3FbsPostingDetailExternalOrder_1 = require("./PostingV3FbsPostingDetailExternalOrder"); const V3FbsPostingRequirementsV3_1 = require("./V3FbsPostingRequirementsV3"); const V2FboSinglePostingLegalInfo_1 = require("./V2FboSinglePostingLegalInfo"); const V3PostingProductDetail_1 = require("./V3PostingProductDetail"); const PostingV4PostingFbsListResponsePostingsTarifficationStep_1 = require("./PostingV4PostingFbsListResponsePostingsTarifficationStep"); const FbsPostingDetailCourier_1 = require("./FbsPostingDetailCourier"); const V3FbsPostingProductExemplarsV3_1 = require("./V3FbsPostingProductExemplarsV3"); const V3Customer_1 = require("./V3Customer"); const V3PostingFinancialData_1 = require("./V3PostingFinancialData"); const FbsPostingDetailPrrOption_1 = require("./FbsPostingDetailPrrOption"); const V3FbsTariffication_1 = require("./V3FbsTariffication"); const V3FbsPostingAnalyticsData_1 = require("./V3FbsPostingAnalyticsData"); const V3Barcodes_1 = require("./V3Barcodes"); const V3Cancellation_1 = require("./V3Cancellation"); const V3FbsPostingDetailOptional_1 = require("./V3FbsPostingDetailOptional"); const V3FbsPostingDetailRelatedPostings_1 = require("./V3FbsPostingDetailRelatedPostings"); const PostingV4PostingFbsListResponsePostingsContainer_1 = require("./PostingV4PostingFbsListResponsePostingsContainer"); const V3Addressee_1 = require("./V3Addressee"); const V3DeliveryMethod_1 = require("./V3DeliveryMethod"); /** * Check if a given object implements the V3FbsPostingDetail interface. */ function instanceOfV3FbsPostingDetail(value) { return true; } function V3FbsPostingDetailFromJSON(json) { return V3FbsPostingDetailFromJSONTyped(json, false); } function V3FbsPostingDetailFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(V3AdditionalDataItem_1.V3AdditionalDataItemFromJSON)), 'addressee': json['addressee'] == null ? undefined : (0, V3Addressee_1.V3AddresseeFromJSON)(json['addressee']), 'analytics_data': json['analytics_data'] == null ? undefined : (0, V3FbsPostingAnalyticsData_1.V3FbsPostingAnalyticsDataFromJSON)(json['analytics_data']), 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], 'barcodes': json['barcodes'] == null ? undefined : (0, V3Barcodes_1.V3BarcodesFromJSON)(json['barcodes']), 'cancellation': json['cancellation'] == null ? undefined : (0, V3Cancellation_1.V3CancellationFromJSON)(json['cancellation']), 'courier': json['courier'] == null ? undefined : (0, FbsPostingDetailCourier_1.FbsPostingDetailCourierFromJSON)(json['courier']), 'customer': json['customer'] == null ? undefined : (0, V3Customer_1.V3CustomerFromJSON)(json['customer']), 'container': json['container'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsContainer_1.PostingV4PostingFbsListResponsePostingsContainerFromJSON)(json['container']), 'container_sort_type': json['container_sort_type'] == null ? undefined : json['container_sort_type'], 'delivering_date': json['delivering_date'] == null ? undefined : json['delivering_date'], 'delivery_method': json['delivery_method'] == null ? undefined : (0, V3DeliveryMethod_1.V3DeliveryMethodFromJSON)(json['delivery_method']), 'delivery_price': json['delivery_price'] == null ? undefined : json['delivery_price'], 'external_order': json['external_order'] == null ? undefined : (0, PostingV3FbsPostingDetailExternalOrder_1.PostingV3FbsPostingDetailExternalOrderFromJSON)(json['external_order']), 'fact_delivery_date': json['fact_delivery_date'] == null ? undefined : json['fact_delivery_date'], 'financial_data': json['financial_data'] == null ? undefined : (0, V3PostingFinancialData_1.V3PostingFinancialDataFromJSON)(json['financial_data']), 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], 'is_express': json['is_express'] == null ? undefined : json['is_express'], 'is_multibox': json['is_multibox'] == null ? undefined : json['is_multibox'], 'legal_info': json['legal_info'] == null ? undefined : (0, V2FboSinglePostingLegalInfo_1.V2FboSinglePostingLegalInfoFromJSON)(json['legal_info']), 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], 'optional': json['optional'] == null ? undefined : (0, V3FbsPostingDetailOptional_1.V3FbsPostingDetailOptionalFromJSON)(json['optional']), 'order_id': json['order_id'] == null ? undefined : json['order_id'], 'order_number': json['order_number'] == null ? undefined : json['order_number'], 'parent_posting_number': json['parent_posting_number'] == null ? undefined : json['parent_posting_number'], 'pickup_code_verified_at': json['pickup_code_verified_at'] == null ? undefined : json['pickup_code_verified_at'], 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], 'product_exemplars': json['product_exemplars'] == null ? undefined : (0, V3FbsPostingProductExemplarsV3_1.V3FbsPostingProductExemplarsV3FromJSON)(json['product_exemplars']), 'products': json['products'] == null ? undefined : (json['products'].map(V3PostingProductDetail_1.V3PostingProductDetailFromJSON)), 'provider_status': json['provider_status'] == null ? undefined : json['provider_status'], 'prr_option': json['prr_option'] == null ? undefined : (0, FbsPostingDetailPrrOption_1.FbsPostingDetailPrrOptionFromJSON)(json['prr_option']), 'related_postings': json['related_postings'] == null ? undefined : (0, V3FbsPostingDetailRelatedPostings_1.V3FbsPostingDetailRelatedPostingsFromJSON)(json['related_postings']), 'related_weight_postings': json['related_weight_postings'] == null ? undefined : json['related_weight_postings'], 'require_blr_traceable_attrs': json['require_blr_traceable_attrs'] == null ? undefined : json['require_blr_traceable_attrs'], 'requirements': json['requirements'] == null ? undefined : (0, V3FbsPostingRequirementsV3_1.V3FbsPostingRequirementsV3FromJSON)(json['requirements']), 'shipment_date': json['shipment_date'] == null ? undefined : json['shipment_date'], 'shipment_date_without_delay': json['shipment_date_without_delay'] == null ? undefined : json['shipment_date_without_delay'], 'sorting_center': json['sorting_center'] == null ? undefined : (0, PostingV3FbsPostingDetailSortingCenter_1.PostingV3FbsPostingDetailSortingCenterFromJSON)(json['sorting_center']), 'status': json['status'] == null ? undefined : json['status'], 'substatus': json['substatus'] == null ? undefined : json['substatus'], 'previous_substatus': json['previous_substatus'] == null ? undefined : json['previous_substatus'], 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], 'tracking_number': json['tracking_number'] == null ? undefined : json['tracking_number'], 'tariffication': json['tariffication'] == null ? undefined : (0, V3FbsTariffication_1.V3FbsTarifficationFromJSON)(json['tariffication']), 'tariffication_steps': json['tariffication_steps'] == null ? undefined : (json['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStep_1.PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON)), }; } function V3FbsPostingDetailToJSON(value) { if (value == null) { return value; } return { 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(V3AdditionalDataItem_1.V3AdditionalDataItemToJSON)), 'addressee': (0, V3Addressee_1.V3AddresseeToJSON)(value['addressee']), 'analytics_data': (0, V3FbsPostingAnalyticsData_1.V3FbsPostingAnalyticsDataToJSON)(value['analytics_data']), 'available_actions': value['available_actions'], 'barcodes': (0, V3Barcodes_1.V3BarcodesToJSON)(value['barcodes']), 'cancellation': (0, V3Cancellation_1.V3CancellationToJSON)(value['cancellation']), 'courier': (0, FbsPostingDetailCourier_1.FbsPostingDetailCourierToJSON)(value['courier']), 'customer': (0, V3Customer_1.V3CustomerToJSON)(value['customer']), 'container': (0, PostingV4PostingFbsListResponsePostingsContainer_1.PostingV4PostingFbsListResponsePostingsContainerToJSON)(value['container']), 'container_sort_type': value['container_sort_type'], 'delivering_date': value['delivering_date'], 'delivery_method': (0, V3DeliveryMethod_1.V3DeliveryMethodToJSON)(value['delivery_method']), 'delivery_price': value['delivery_price'], 'external_order': (0, PostingV3FbsPostingDetailExternalOrder_1.PostingV3FbsPostingDetailExternalOrderToJSON)(value['external_order']), 'fact_delivery_date': value['fact_delivery_date'], 'financial_data': (0, V3PostingFinancialData_1.V3PostingFinancialDataToJSON)(value['financial_data']), 'in_process_at': value['in_process_at'], 'integration_type_flow': value['integration_type_flow'], 'is_express': value['is_express'], 'is_multibox': value['is_multibox'], 'legal_info': (0, V2FboSinglePostingLegalInfo_1.V2FboSinglePostingLegalInfoToJSON)(value['legal_info']), 'multi_box_qty': value['multi_box_qty'], 'optional': (0, V3FbsPostingDetailOptional_1.V3FbsPostingDetailOptionalToJSON)(value['optional']), 'order_id': value['order_id'], 'order_number': value['order_number'], 'parent_posting_number': value['parent_posting_number'], 'pickup_code_verified_at': value['pickup_code_verified_at'], 'posting_number': value['posting_number'], 'product_exemplars': (0, V3FbsPostingProductExemplarsV3_1.V3FbsPostingProductExemplarsV3ToJSON)(value['product_exemplars']), 'products': value['products'] == null ? undefined : (value['products'].map(V3PostingProductDetail_1.V3PostingProductDetailToJSON)), 'provider_status': value['provider_status'], 'prr_option': (0, FbsPostingDetailPrrOption_1.FbsPostingDetailPrrOptionToJSON)(value['prr_option']), 'related_postings': (0, V3FbsPostingDetailRelatedPostings_1.V3FbsPostingDetailRelatedPostingsToJSON)(value['related_postings']), 'related_weight_postings': value['related_weight_postings'], 'require_blr_traceable_attrs': value['require_blr_traceable_attrs'], 'requirements': (0, V3FbsPostingRequirementsV3_1.V3FbsPostingRequirementsV3ToJSON)(value['requirements']), 'shipment_date': value['shipment_date'], 'shipment_date_without_delay': value['shipment_date_without_delay'], 'sorting_center': (0, PostingV3FbsPostingDetailSortingCenter_1.PostingV3FbsPostingDetailSortingCenterToJSON)(value['sorting_center']), 'status': value['status'], 'substatus': value['substatus'], 'previous_substatus': value['previous_substatus'], 'tpl_integration_type': value['tpl_integration_type'], 'tracking_number': value['tracking_number'], 'tariffication': (0, V3FbsTariffication_1.V3FbsTarifficationToJSON)(value['tariffication']), 'tariffication_steps': value['tariffication_steps'] == null ? undefined : (value['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStep_1.PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON)), }; }