"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.instanceOfV1OrderCancelCheckResponse = instanceOfV1OrderCancelCheckResponse; exports.V1OrderCancelCheckResponseFromJSON = V1OrderCancelCheckResponseFromJSON; exports.V1OrderCancelCheckResponseFromJSONTyped = V1OrderCancelCheckResponseFromJSONTyped; exports.V1OrderCancelCheckResponseToJSON = V1OrderCancelCheckResponseToJSON; const OrderCancelCheckResponsePostingGroup_1 = require("./OrderCancelCheckResponsePostingGroup"); const OrderCancelCheckResponsePosting_1 = require("./OrderCancelCheckResponsePosting"); /** * Check if a given object implements the V1OrderCancelCheckResponse interface. */ function instanceOfV1OrderCancelCheckResponse(value) { return true; } function V1OrderCancelCheckResponseFromJSON(json) { return V1OrderCancelCheckResponseFromJSONTyped(json, false); } function V1OrderCancelCheckResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'cancellable': json['cancellable'] == null ? undefined : json['cancellable'], 'order_number': json['order_number'] == null ? undefined : json['order_number'], 'posting_groups': json['posting_groups'] == null ? undefined : (json['posting_groups'].map(OrderCancelCheckResponsePostingGroup_1.OrderCancelCheckResponsePostingGroupFromJSON)), 'postings': json['postings'] == null ? undefined : (json['postings'].map(OrderCancelCheckResponsePosting_1.OrderCancelCheckResponsePostingFromJSON)), }; } function V1OrderCancelCheckResponseToJSON(value) { if (value == null) { return value; } return { 'cancellable': value['cancellable'], 'order_number': value['order_number'], 'posting_groups': value['posting_groups'] == null ? undefined : (value['posting_groups'].map(OrderCancelCheckResponsePostingGroup_1.OrderCancelCheckResponsePostingGroupToJSON)), 'postings': value['postings'] == null ? undefined : (value['postings'].map(OrderCancelCheckResponsePosting_1.OrderCancelCheckResponsePostingToJSON)), }; }