"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.instanceOfV1SellerActionsUpdateVoucherRequestActionParameters = instanceOfV1SellerActionsUpdateVoucherRequestActionParameters; exports.V1SellerActionsUpdateVoucherRequestActionParametersFromJSON = V1SellerActionsUpdateVoucherRequestActionParametersFromJSON; exports.V1SellerActionsUpdateVoucherRequestActionParametersFromJSONTyped = V1SellerActionsUpdateVoucherRequestActionParametersFromJSONTyped; exports.V1SellerActionsUpdateVoucherRequestActionParametersToJSON = V1SellerActionsUpdateVoucherRequestActionParametersToJSON; /** * Check if a given object implements the V1SellerActionsUpdateVoucherRequestActionParameters interface. */ function instanceOfV1SellerActionsUpdateVoucherRequestActionParameters(value) { if (!('budget' in value) || value['budget'] === undefined) return false; 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 (!('title' in value) || value['title'] === undefined) return false; return true; } function V1SellerActionsUpdateVoucherRequestActionParametersFromJSON(json) { return V1SellerActionsUpdateVoucherRequestActionParametersFromJSONTyped(json, false); } function V1SellerActionsUpdateVoucherRequestActionParametersFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'budget': json['budget'], 'date_end': json['date_end'], 'date_start': json['date_start'], 'discount_value': json['discount_value'], 'title': json['title'], 'user_ids': json['user_ids'] == null ? undefined : json['user_ids'], }; } function V1SellerActionsUpdateVoucherRequestActionParametersToJSON(value) { if (value == null) { return value; } return { 'budget': value['budget'], 'date_end': value['date_end'], 'date_start': value['date_start'], 'discount_value': value['discount_value'], 'title': value['title'], 'user_ids': value['user_ids'], }; }