"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.instanceOfV1SellerActionsCreateDiscountWithConditionRequest = instanceOfV1SellerActionsCreateDiscountWithConditionRequest; exports.V1SellerActionsCreateDiscountWithConditionRequestFromJSON = V1SellerActionsCreateDiscountWithConditionRequestFromJSON; exports.V1SellerActionsCreateDiscountWithConditionRequestFromJSONTyped = V1SellerActionsCreateDiscountWithConditionRequestFromJSONTyped; exports.V1SellerActionsCreateDiscountWithConditionRequestToJSON = V1SellerActionsCreateDiscountWithConditionRequestToJSON; const V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum_1 = require("./V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum"); /** * Check if a given object implements the V1SellerActionsCreateDiscountWithConditionRequest interface. */ function instanceOfV1SellerActionsCreateDiscountWithConditionRequest(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_type' in value) || value['discount_type'] === 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; return true; } function V1SellerActionsCreateDiscountWithConditionRequestFromJSON(json) { return V1SellerActionsCreateDiscountWithConditionRequestFromJSONTyped(json, false); } function V1SellerActionsCreateDiscountWithConditionRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'date_end': json['date_end'], 'date_start': json['date_start'], 'discount_type': (0, V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum_1.V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSON)(json['discount_type']), 'discount_value': json['discount_value'], 'min_order_amount': json['min_order_amount'], 'title': json['title'] == null ? undefined : json['title'], }; } function V1SellerActionsCreateDiscountWithConditionRequestToJSON(value) { if (value == null) { return value; } return { 'date_end': value['date_end'], 'date_start': value['date_start'], 'discount_type': (0, V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum_1.V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumToJSON)(value['discount_type']), 'discount_value': value['discount_value'], 'min_order_amount': value['min_order_amount'], 'title': value['title'], }; }