56 lines
3.3 KiB
JavaScript
56 lines
3.3 KiB
JavaScript
"use strict";
|
||
/* tslint:disable */
|
||
/* eslint-disable */
|
||
/**
|
||
* Документация Ozon Seller API
|
||
* По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. <aside class=\"warning\">Обновляем корневой TLS/SSL-сертификат GlobalSign — вместо него будем использовать <a href=\"https://app.harica.gr/\">HARICA</a>.<br><a href=\"https://dev.ozon.ru/news/775-Izmeneniia-v-Ozon-API-migratsiia-kornevogo-sertifikata-UTs-Ozon/\">Подробнее о переходе на HARICA на платформе разработчиков Ozon for dev</a></aside> > [Инструкции по работе с маркетплейсом](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.instanceOfV1SellerActionsCreateVoucherRequestVoucherParameter = instanceOfV1SellerActionsCreateVoucherRequestVoucherParameter;
|
||
exports.V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON = V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON;
|
||
exports.V1SellerActionsCreateVoucherRequestVoucherParameterFromJSONTyped = V1SellerActionsCreateVoucherRequestVoucherParameterFromJSONTyped;
|
||
exports.V1SellerActionsCreateVoucherRequestVoucherParameterToJSON = V1SellerActionsCreateVoucherRequestVoucherParameterToJSON;
|
||
const V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum_1 = require("./V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum");
|
||
/**
|
||
* Check if a given object implements the V1SellerActionsCreateVoucherRequestVoucherParameter interface.
|
||
*/
|
||
function instanceOfV1SellerActionsCreateVoucherRequestVoucherParameter(value) {
|
||
if (!('count_codes' in value) || value['count_codes'] === undefined)
|
||
return false;
|
||
if (!('is_private' in value) || value['is_private'] === undefined)
|
||
return false;
|
||
if (!('type' in value) || value['type'] === undefined)
|
||
return false;
|
||
return true;
|
||
}
|
||
function V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON(json) {
|
||
return V1SellerActionsCreateVoucherRequestVoucherParameterFromJSONTyped(json, false);
|
||
}
|
||
function V1SellerActionsCreateVoucherRequestVoucherParameterFromJSONTyped(json, ignoreDiscriminator) {
|
||
if (json == null) {
|
||
return json;
|
||
}
|
||
return {
|
||
'count_codes': json['count_codes'],
|
||
'is_private': json['is_private'],
|
||
'type': (0, V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum_1.V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSON)(json['type']),
|
||
};
|
||
}
|
||
function V1SellerActionsCreateVoucherRequestVoucherParameterToJSON(value) {
|
||
if (value == null) {
|
||
return value;
|
||
}
|
||
return {
|
||
'count_codes': value['count_codes'],
|
||
'is_private': value['is_private'],
|
||
'type': (0, V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum_1.V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumToJSON)(value['type']),
|
||
};
|
||
}
|