"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.instanceOfV1SellerActionsUpdateDiscountWithConditionRequestActionParameters = instanceOfV1SellerActionsUpdateDiscountWithConditionRequestActionParameters; exports.V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSON = V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSON; exports.V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSONTyped = V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSONTyped; exports.V1SellerActionsUpdateDiscountWithConditionRequestActionParametersToJSON = V1SellerActionsUpdateDiscountWithConditionRequestActionParametersToJSON; /** * Check if a given object implements the V1SellerActionsUpdateDiscountWithConditionRequestActionParameters interface. */ function instanceOfV1SellerActionsUpdateDiscountWithConditionRequestActionParameters(value) { if (!('date_end' in value) || value['date_end'] === undefined) return false; if (!('date_start' in value) || value['date_start'] === undefined) return false; if (!('discount_value' in value) || value['discount_value'] === undefined) return false; if (!('min_order_amount' in value) || value['min_order_amount'] === undefined) return false; if (!('title' in value) || value['title'] === undefined) return false; return true; } function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSON(json) { return V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSONTyped(json, false); } function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'date_end': json['date_end'], 'date_start': json['date_start'], 'discount_value': json['discount_value'], 'min_order_amount': json['min_order_amount'], 'title': json['title'], }; } function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersToJSON(value) { if (value == null) { return value; } return { 'date_end': value['date_end'], 'date_start': value['date_start'], 'discount_value': value['discount_value'], 'min_order_amount': value['min_order_amount'], 'title': value['title'], }; }