"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.instanceOfV3FbsPosting = instanceOfV3FbsPosting; exports.V3FbsPostingFromJSON = V3FbsPostingFromJSON; exports.V3FbsPostingFromJSONTyped = V3FbsPostingFromJSONTyped; exports.V3FbsPostingToJSON = V3FbsPostingToJSON; const V3CustomerFbsLists_1 = require("./V3CustomerFbsLists"); const V3FbsPostingRequirementsV3_1 = require("./V3FbsPostingRequirementsV3"); const PostingV3FbsPostingSortingCenter_1 = require("./PostingV3FbsPostingSortingCenter"); const V2FboSinglePostingLegalInfo_1 = require("./V2FboSinglePostingLegalInfo"); const PostingV4PostingFbsListResponsePostingsTarifficationStep_1 = require("./PostingV4PostingFbsListResponsePostingsTarifficationStep"); const V3PostingFinancialData_1 = require("./V3PostingFinancialData"); 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 PostingV4PostingFbsListResponsePostingsContainer_1 = require("./PostingV4PostingFbsListResponsePostingsContainer"); const V3AddresseeFbsLists_1 = require("./V3AddresseeFbsLists"); const V3FbsPostingProduct_1 = require("./V3FbsPostingProduct"); const V3DeliveryMethod_1 = require("./V3DeliveryMethod"); /** * Check if a given object implements the V3FbsPosting interface. */ function instanceOfV3FbsPosting(value) { return true; } function V3FbsPostingFromJSON(json) { return V3FbsPostingFromJSONTyped(json, false); } function V3FbsPostingFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'addressee': json['addressee'] == null ? undefined : (0, V3AddresseeFbsLists_1.V3AddresseeFbsListsFromJSON)(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']), 'customer': json['customer'] == null ? undefined : (0, V3CustomerFbsLists_1.V3CustomerFbsListsFromJSON)(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']), 'destination_place_id': json['destination_place_id'] == null ? undefined : json['destination_place_id'], 'destination_place_name': json['destination_place_name'] == null ? undefined : json['destination_place_name'], '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'], 'is_express': json['is_express'] == null ? undefined : json['is_express'], 'is_multibox': json['is_multibox'] == null ? undefined : json['is_multibox'], 'is_presortable': json['is_presortable'] == null ? undefined : json['is_presortable'], 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], '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'], 'products': json['products'] == null ? undefined : (json['products'].map(V3FbsPostingProduct_1.V3FbsPostingProductFromJSON)), 'prr_option': json['prr_option'] == null ? undefined : json['prr_option'], 'quantum_id': json['quantum_id'] == null ? undefined : json['quantum_id'], '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, PostingV3FbsPostingSortingCenter_1.PostingV3FbsPostingSortingCenterFromJSON)(json['sorting_center']), 'status': json['status'] == null ? undefined : json['status'], 'substatus': json['substatus'] == null ? undefined : json['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 V3FbsPostingToJSON(value) { if (value == null) { return value; } return { 'addressee': (0, V3AddresseeFbsLists_1.V3AddresseeFbsListsToJSON)(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']), 'customer': (0, V3CustomerFbsLists_1.V3CustomerFbsListsToJSON)(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']), 'destination_place_id': value['destination_place_id'], 'destination_place_name': value['destination_place_name'], 'financial_data': (0, V3PostingFinancialData_1.V3PostingFinancialDataToJSON)(value['financial_data']), 'in_process_at': value['in_process_at'], 'is_express': value['is_express'], 'is_multibox': value['is_multibox'], 'is_presortable': value['is_presortable'], 'integration_type_flow': value['integration_type_flow'], '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'], 'products': value['products'] == null ? undefined : (value['products'].map(V3FbsPostingProduct_1.V3FbsPostingProductToJSON)), 'prr_option': value['prr_option'], 'quantum_id': value['quantum_id'], '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, PostingV3FbsPostingSortingCenter_1.PostingV3FbsPostingSortingCenterToJSON)(value['sorting_center']), 'status': value['status'], 'substatus': value['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)), }; }