"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.instanceOfV1SellerActionsCreateVoucherRequest = instanceOfV1SellerActionsCreateVoucherRequest; exports.V1SellerActionsCreateVoucherRequestFromJSON = V1SellerActionsCreateVoucherRequestFromJSON; exports.V1SellerActionsCreateVoucherRequestFromJSONTyped = V1SellerActionsCreateVoucherRequestFromJSONTyped; exports.V1SellerActionsCreateVoucherRequestToJSON = V1SellerActionsCreateVoucherRequestToJSON; const V1SellerActionsCreateVoucherRequestDiscountTypeEnum_1 = require("./V1SellerActionsCreateVoucherRequestDiscountTypeEnum"); const V1SellerActionsCreateVoucherRequestVoucherParameter_1 = require("./V1SellerActionsCreateVoucherRequestVoucherParameter"); /** * Check if a given object implements the V1SellerActionsCreateVoucherRequest interface. */ function instanceOfV1SellerActionsCreateVoucherRequest(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_type' in value) || value['discount_type'] === undefined) return false; if (!('discount_value' in value) || value['discount_value'] === undefined) return false; if (!('title' in value) || value['title'] === undefined) return false; if (!('voucher_parameters' in value) || value['voucher_parameters'] === undefined) return false; return true; } function V1SellerActionsCreateVoucherRequestFromJSON(json) { return V1SellerActionsCreateVoucherRequestFromJSONTyped(json, false); } function V1SellerActionsCreateVoucherRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'budget': json['budget'], 'date_end': json['date_end'], 'date_start': json['date_start'], 'discount_type': (0, V1SellerActionsCreateVoucherRequestDiscountTypeEnum_1.V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSON)(json['discount_type']), 'discount_value': json['discount_value'], 'title': json['title'], 'user_ids': json['user_ids'] == null ? undefined : json['user_ids'], 'voucher_parameters': (0, V1SellerActionsCreateVoucherRequestVoucherParameter_1.V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON)(json['voucher_parameters']), }; } function V1SellerActionsCreateVoucherRequestToJSON(value) { if (value == null) { return value; } return { 'budget': value['budget'], 'date_end': value['date_end'], 'date_start': value['date_start'], 'discount_type': (0, V1SellerActionsCreateVoucherRequestDiscountTypeEnum_1.V1SellerActionsCreateVoucherRequestDiscountTypeEnumToJSON)(value['discount_type']), 'discount_value': value['discount_value'], 'title': value['title'], 'user_ids': value['user_ids'], 'voucher_parameters': (0, V1SellerActionsCreateVoucherRequestVoucherParameter_1.V1SellerActionsCreateVoucherRequestVoucherParameterToJSON)(value['voucher_parameters']), }; }