Refactored model/ExternalIds.
This commit is contained in:
parent
cbc8c0d41b
commit
720e08b3c6
|
|
@ -42,6 +42,7 @@ import { DeliveryFlag } from "./model/DeliveryFlag";
|
|||
import { DimensionBasedAttribute } from "./model/DimensionBasedAttribute";
|
||||
import { DurationPrice } from "./model/DurationPrice";
|
||||
import { ErrorData } from "./model/ErrorData";
|
||||
import { ExternalIds } from "./model/ExternalIds";
|
||||
import { Languages } from "./model/Languages";
|
||||
import { LanguageType } from "./model/LanguageType";
|
||||
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
|
||||
|
|
|
|||
|
|
@ -21,25 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/MultiValuedAttribute'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./MultiValuedAttribute'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.ExternalIds = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.MultiValuedAttribute);
|
||||
}
|
||||
}(this, function(ApiClient, MultiValuedAttribute) {
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
import { MultiValuedAttribute } from "./MultiValuedAttribute";
|
||||
|
||||
/**
|
||||
* The ExternalIds model module.
|
||||
|
|
@ -47,18 +29,24 @@
|
|||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
/**
|
||||
* Constructs a new <code>ExternalIds</code>.
|
||||
* @alias module:model/ExternalIds
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
export class ExternalIds {
|
||||
/**
|
||||
* @member {module:model/MultiValuedAttribute} EANs
|
||||
*/
|
||||
public EANs?: MultiValuedAttribute
|
||||
/**
|
||||
* @member {module:model/MultiValuedAttribute} ISBNs
|
||||
*/
|
||||
public ISBNs?: MultiValuedAttribute;
|
||||
/**
|
||||
* @member {module:model/MultiValuedAttribute} UPCs
|
||||
*/
|
||||
public UPCs?: MultiValuedAttribute;
|
||||
|
||||
/**
|
||||
* Constructs a <code>ExternalIds</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -67,39 +55,20 @@
|
|||
* @param {module:model/ExternalIds} obj Optional instance to populate.
|
||||
* @return {module:model/ExternalIds} The populated <code>ExternalIds</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: ExternalIds) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new ExternalIds();
|
||||
|
||||
if (data.hasOwnProperty('EANs')) {
|
||||
obj['EANs'] = MultiValuedAttribute.constructFromObject(data['EANs']);
|
||||
obj.EANs = MultiValuedAttribute.constructFromObject(data['EANs']);
|
||||
}
|
||||
if (data.hasOwnProperty('ISBNs')) {
|
||||
obj['ISBNs'] = MultiValuedAttribute.constructFromObject(data['ISBNs']);
|
||||
obj.ISBNs = MultiValuedAttribute.constructFromObject(data['ISBNs']);
|
||||
}
|
||||
if (data.hasOwnProperty('UPCs')) {
|
||||
obj['UPCs'] = MultiValuedAttribute.constructFromObject(data['UPCs']);
|
||||
obj.UPCs = MultiValuedAttribute.constructFromObject(data['UPCs']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {module:model/MultiValuedAttribute} EANs
|
||||
*/
|
||||
exports.prototype['EANs'] = undefined;
|
||||
/**
|
||||
* @member {module:model/MultiValuedAttribute} ISBNs
|
||||
*/
|
||||
exports.prototype['ISBNs'] = undefined;
|
||||
/**
|
||||
* @member {module:model/MultiValuedAttribute} UPCs
|
||||
*/
|
||||
exports.prototype['UPCs'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user