From fba67cfc2e69c4c85d939b0236119476a52a3303 Mon Sep 17 00:00:00 2001
From: Crhistian Ramirez n&&(o=n)):o=n;var i=t.length;o>i/2&&(o=i/2);for(var s=0;s
+ * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
+ *
+ * A non-AMD browser application (discouraged) might do something like this:
+ * e.length)throw new RangeError("Index out of range")}function B(e,t,r,o,n,i){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,o,n){return t=+t,r>>>=0,n||B(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,r,o,23,4),r+4}function N(e,t,r,o,n){return t=+t,r>>>=0,n||B(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,r,o,52,8),r+8}function G(e){if(e=e.split("=")[0],e=e.trim().replace(J,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function R(e,t){t=t||1/0;for(var r,o=e.length,n=null,i=[],s=0;sparam
.
+ */
+ exports.prototype.paramToString = function(param) {
+ if (param == undefined || param == null) {
+ return '';
+ }
+ if (param instanceof Date) {
+ return param.toJSON();
+ }
+ return param.toString();
+ };
+
+ /**
+ * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
+ * NOTE: query parameters are not handled here.
+ * @param {String} path The path to append to the base URL.
+ * @param {Object} pathParams The parameter values to append.
+ * @returns {String} The encoded path with parameter values substituted.
+ */
+ exports.prototype.buildUrl = function(path, pathParams) {
+ if (!path.match(/^\//)) {
+ path = '/' + path;
+ }
+ var _this = this;
+ var url = _this.baseApiPath + path;
+ url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) {
+ var value;
+ if (pathParams.hasOwnProperty(key)) {
+ value = _this.paramToString(pathParams[key]);
+ } else {
+ value = fullMatch;
+ }
+ return encodeURIComponent(value);
+ });
+ return url;
+ };
+
+ /**
+ * Checks whether the given content type represents JSON.
+ * JSON content type examples:
+ *
+ *
+ * @param {String} contentType The MIME content type to check.
+ * @returns {Boolean} true
if contentType
represents JSON, otherwise false
.
+ */
+ exports.prototype.isJsonMime = function(contentType) {
+ return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i));
+ };
+
+ /**
+ * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
+ * @param {Array.true
if param
represents a file.
+ */
+ exports.prototype.isFileParam = function(param) {
+ // fs.ReadStream in Node.js (but not in runtime like browserify)
+ if (typeof window === 'undefined' &&
+ typeof require === 'function' &&
+ require('fs') &&
+ param instanceof require('fs').ReadStream) {
+ return true;
+ }
+ // Buffer in Node.js
+ if (typeof Buffer === 'function' && param instanceof Buffer) {
+ return true;
+ }
+ // Blob in browser
+ if (typeof Blob === 'function' && param instanceof Blob) {
+ return true;
+ }
+ // File in browser (it seems File object is also instance of Blob, but keep this for safe)
+ if (typeof File === 'function' && param instanceof File) {
+ return true;
+ }
+ return false;
+ };
+
+ /**
+ * Normalizes parameter values:
+ *
+ *
+ * @param {Object.csv
+ * @const
+ */
+ CSV: ',',
+ /**
+ * Space-separated values. Value: ssv
+ * @const
+ */
+ SSV: ' ',
+ /**
+ * Tab-separated values. Value: tsv
+ * @const
+ */
+ TSV: '\t',
+ /**
+ * Pipe(|)-separated values. Value: pipes
+ * @const
+ */
+ PIPES: '|',
+ /**
+ * Native array. Value: multi
+ * @const
+ */
+ MULTI: 'multi'
+ };
+
+ /**
+ * Builds a string representation of an array-type actual parameter, according to the given collection format.
+ * @param {Array} param An array parameter.
+ * @param {module:Sdk.CollectionFormatEnum} collectionFormat The array element separator strategy.
+ * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns
+ * param
as is if collectionFormat
is multi
.
+ */
+ exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) {
+ if (param == null) {
+ return null;
+ }
+ if (typeof(param) == "string") {
+ return param
+ }
+ switch (collectionFormat) {
+ case 'csv':
+ return param.map(this.paramToString).join(',');
+ case 'ssv':
+ return param.map(this.paramToString).join(' ');
+ case 'tsv':
+ return param.map(this.paramToString).join('\t');
+ case 'plus':
+ return param.map(this.paramToString).join('+');
+ case 'pipes':
+ return param.map(this.paramToString).join('|');
+ case 'multi':
+ // return the array directly as SuperAgent will handle it as expected
+ return param.map(this.paramToString);
+ default:
+ throw new Error('Unknown collection format: ' + collectionFormat);
+ }
+ };
+
+ /**
+ * Applies authentication headers to the request.
+ * @param {Object} request The request object created by a superagent()
call.
+ * @param {String} accessToken An alternative token to the one stored in the sdk instance (useful for impersonation)
+ */
+ exports.prototype.applyAuthToRequest = function(request, accessToken) {
+ var _this = this;
+ var auth = _this.authentications['oauth2'];
+ var token;
+
+ if(accessToken) {
+ token = accessToken;
+ } else if(_this.impersonation) {
+ token = auth.impersonationToken;
+ } else {
+ token = auth.accessToken;
+ }
+
+ _this.impersonation = false; // reset impersonation boolean
+ request.set({'Authorization': 'Bearer ' + token});
+ };
+
+ /**
+ * Deserializes an HTTP response body into a value of the specified type.
+ * @param {Object} response A SuperAgent response object.
+ * @param {(String|Array.data
will be converted to this type.
+ * @returns A value of the specified type.
+ */
+ exports.prototype.deserialize = function deserialize(response, returnType) {
+ if (response == null || returnType == null) {
+ return null;
+ }
+ // Rely on SuperAgent for parsing response body.
+ // See http://visionmedia.github.io/superagent/#parsing-response-bodies
+ var data = response.body;
+ if (data == null) {
+ // SuperAgent does not always produce a body; use the unparsed response as a fallback
+ data = response.text;
+ }
+ return exports.convertToType(data, returnType);
+ };
+
+ /**
+ * Invokes the REST service using the supplied settings and parameters.
+ * @param {String} path The base URL to invoke.
+ * @param {String} httpMethod The HTTP method to use.
+ * @param {Object.
data
will be converted to this type.
+ * @returns An instance of the specified type.
+ */
+ exports.convertToType = function(data, type) {
+ if (data === null)
+ return null;
+ switch (type) {
+ case 'Boolean':
+ return Boolean(data);
+ case 'Integer':
+ return parseInt(data, 10);
+ case 'Number':
+ return parseFloat(data);
+ case 'String':
+ return String(data);
+ case 'Date':
+ return this.parseDate(String(data));
+ default:
+ if (type === Object) {
+ // generic object, return directly
+ return data;
+ } else if (typeof type === 'function') {
+ // for model type like: User
+ return type.constructFromObject(data);
+ } else if (Array.isArray(type)) {
+ // for array type like: ['String']
+ var itemType = type[0];
+ return data.map(function(item) {
+ return exports.convertToType(item, itemType);
+ });
+ } else if (typeof type === 'object') {
+ // for plain object type like: {'String': 'Integer'}
+ var keyType, valueType;
+ for (var k in type) {
+ if (type.hasOwnProperty(k)) {
+ keyType = k;
+ valueType = type[k];
+ break;
+ }
+ }
+ var result = {};
+ for (var k in data) {
+ if (data.hasOwnProperty(k)) {
+ var key = exports.convertToType(k, keyType);
+ var value = exports.convertToType(data[k], valueType);
+ result[key] = value;
+ }
+ }
+ return result;
+ } else {
+ // for unknown type, return the data directly
+ return data;
+ }
+ }
+ };
+
+ /**
+ * Constructs a new map or array model from REST data.
+ * @param data {Object|Array} The REST data.
+ * @param obj {Object|Array} The target object or array.
+ */
+ exports.constructFromObject = function(data, obj, itemType) {
+ if (Array.isArray(data)) {
+ for (var i = 0; i < data.length; i++) {
+ if (data.hasOwnProperty(i))
+ obj[i] = exports.convertToType(data[i], itemType);
+ }
+ } else {
+ for (var k in data) {
+ if (data.hasOwnProperty(k))
+ obj[k] = exports.convertToType(data[k], itemType);
+ }
+ }
+ };
+
+ /**
+ * The default API client implementation.
+ * @type {module:Sdk}
+ */
+ exports.instance = new exports();
+
+ return exports;
+}));
+
+}).call(this,require("buffer").Buffer)
+},{"buffer":3,"fs":1,"superagent":7}],13:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/Address', 'model/AddressAssignment', 'model/ListAddress', 'model/ListAddressAssignment'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('../model/Address'), require('../model/AddressAssignment'), require('../model/ListAddress'), require('../model/ListAddressAssignment'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Addresses = factory(root.OrderCloud.Sdk, root.OrderCloud.Address, root.OrderCloud.AddressAssignment, root.OrderCloud.ListAddress, root.OrderCloud.ListAddressAssignment);
+ }
+}(this, function(Sdk, Address, AddressAssignment, ListAddress, ListAddressAssignment) {
+ 'use strict';
+
+ /**
+ * Address service.
+ * @module api/Addresses
+ */
+
+ /**
+ * Constructs a new Addresses.
+ * @alias module:api/Addresses
+ * @class
+ * @param {module:Sdk} sdk Optional API client implementation to use,
+ * default to {@link module:Sdk#instance} if unspecified.
+ */
+ var exports = function(sdk) {
+ this.sdk = sdk || Sdk.instance;
+
+
+
+ /**
+ * @param {String} buyerID ID of the buyer.
+ * @param {module:model/Address} address
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
+ */
+ this.Create = function(buyerID, address, accessToken ) {
+ var postBody = address;
+
+ // verify the required parameter 'buyerID' is set
+ if (buyerID == undefined || buyerID == null) {
+ throw new Error("Missing the required parameter 'buyerID' when calling Create");
+ }
+
+ // verify the required parameter 'address' is set
+ if (address == undefined || address == null) {
+ throw new Error("Missing the required parameter 'address' when calling Create");
+ }
+
+
+ var pathParams = {
+ 'buyerID': buyerID
+ };
+ var queryParams = {
+ };
+ var headerParams = {
+ };
+ var formParams = {
+ };
+
+ var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
+ var accepts = ['application/json'];
+ var returnType = Address;
+
+ return this.sdk.callApi(
+ '/buyers/{buyerID}/addresses', 'POST',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ contentTypes, accepts, returnType, accessToken
+ );
+ }
+
+
+ /**
+ * @param {String} buyerID ID of the buyer.
+ * @param {String} addressID ID of the address.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
+ */
+ this.Delete = function(buyerID, addressID, accessToken ) {
+ var postBody = null;
+
+ // verify the required parameter 'buyerID' is set
+ if (buyerID == undefined || buyerID == null) {
+ throw new Error("Missing the required parameter 'buyerID' when calling Delete");
+ }
+
+ // verify the required parameter 'addressID' is set
+ if (addressID == undefined || addressID == null) {
+ throw new Error("Missing the required parameter 'addressID' when calling Delete");
+ }
+
+
+ var pathParams = {
+ 'buyerID': buyerID,
+ 'addressID': addressID
+ };
+ var queryParams = {
+ };
+ var headerParams = {
+ };
+ var formParams = {
+ };
+
+ var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
+ var accepts = ['application/json'];
+ var returnType = null;
+
+ return this.sdk.callApi(
+ '/buyers/{buyerID}/addresses/{addressID}', 'DELETE',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ contentTypes, accepts, returnType, accessToken
+ );
+ }
+
+
+ /**
+ * @param {String} buyerID ID of the buyer.
+ * @param {String} addressID ID of the address.
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.userID ID of the user.
+ * @param {String} opts.userGroupID ID of the user group.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
+ */
+ this.DeleteAssignment = function(buyerID, addressID, opts, accessToken ) {
+ opts = opts || {};
+ var postBody = null;
+
+ // verify the required parameter 'buyerID' is set
+ if (buyerID == undefined || buyerID == null) {
+ throw new Error("Missing the required parameter 'buyerID' when calling DeleteAssignment");
+ }
+
+ // verify the required parameter 'addressID' is set
+ if (addressID == undefined || addressID == null) {
+ throw new Error("Missing the required parameter 'addressID' when calling DeleteAssignment");
+ }
+
+
+ var pathParams = {
+ 'buyerID': buyerID,
+ 'addressID': addressID
+ };
+ var queryParams = {
+ 'userID': opts['userID'],
+ 'userGroupID': opts['userGroupID']
+ };
+ var headerParams = {
+ };
+ var formParams = {
+ };
+
+ var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
+ var accepts = ['application/json'];
+ var returnType = null;
+
+ return this.sdk.callApi(
+ '/buyers/{buyerID}/addresses/{addressID}/assignments', 'DELETE',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ contentTypes, accepts, returnType, accessToken
+ );
+ }
+
+
+ /**
+ * @param {String} buyerID ID of the buyer.
+ * @param {String} addressID ID of the address.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
+ */
+ this.Get = function(buyerID, addressID, accessToken ) {
+ var postBody = null;
+
+ // verify the required parameter 'buyerID' is set
+ if (buyerID == undefined || buyerID == null) {
+ throw new Error("Missing the required parameter 'buyerID' when calling Get");
+ }
+
+ // verify the required parameter 'addressID' is set
+ if (addressID == undefined || addressID == null) {
+ throw new Error("Missing the required parameter 'addressID' when calling Get");
+ }
+
+
+ var pathParams = {
+ 'buyerID': buyerID,
+ 'addressID': addressID
+ };
+ var queryParams = {
+ };
+ var headerParams = {
+ };
+ var formParams = {
+ };
+
+ var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
+ var accepts = ['application/json'];
+ var returnType = Address;
+
+ return this.sdk.callApi(
+ '/buyers/{buyerID}/addresses/{addressID}', 'GET',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ contentTypes, accepts, returnType, accessToken
+ );
+ }
+
+
+ /**
+ * @param {String} buyerID ID of the buyer.
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.search Word or phrase to search for.
+ * @param {String} opts.searchOn Comma-delimited list of fields to search on.
+ * @param {String} opts.sortBy Comma-delimited list of fields to sort by.
+ * @param {Number} opts.page Page of results to return. Default: 1
+ * @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
+ * @param {Object.
+ * The index
module provides access to constructors for all the classes which comprise the public API.
+ *
+ * var OrderCloud = require('index'); // See note below*.
+ * var xxxSvc = new OrderCloud.XxxApi(); // Allocate the API class we're going to use.
+ * var yyyModel = new OrderCloud.Yyy(); // Construct a model instance.
+ * yyyModel.someProperty = 'someValue';
+ * ...
+ * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
+ * ...
+ *
+ * *NOTE: For a top-level AMD script, use require(['index'], function(){...})
+ * and put the application logic within the callback function.
+ *
+ * var xxxSvc = new OrderCloud.XxxApi(); // Allocate the API class we're going to use.
+ * var yyy = new OrderCloud.Yyy(); // Construct a model instance.
+ * yyyModel.someProperty = 'someValue';
+ * ...
+ * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
+ * ...
+ *
+ *
AccessToken
.
+ * @alias module:model/AccessToken
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a AccessToken
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/AccessToken} obj Optional instance to populate.
+ * @return {module:model/AccessToken} The populated AccessToken
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('access_token')) {
+ obj['access_token'] = Sdk.convertToType(data['access_token'], 'String');
+ }
+ if (data.hasOwnProperty('expires_in')) {
+ obj['expires_in'] = Sdk.convertToType(data['expires_in'], 'Number');
+ }
+ if (data.hasOwnProperty('token_type')) {
+ obj['token_type'] = Sdk.convertToType(data['token_type'], 'String');
+ }
+ if (data.hasOwnProperty('refresh_token')) {
+ obj['refresh_token'] = Sdk.convertToType(data['refresh_token'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} access_token
+ */
+ exports.prototype['access_token'] = undefined;
+ /**
+ * @member {Number} expires_in
+ */
+ exports.prototype['expires_in'] = undefined;
+ /**
+ * @member {String} token_type
+ */
+ exports.prototype['token_type'] = undefined;
+ /**
+ * @member {String} refresh_token
+ */
+ exports.prototype['refresh_token'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],52:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Address = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Address model module.
+ * @module model/Address
+ */
+
+ /**
+ * Constructs a new Address
.
+ * @alias module:model/Address
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Address
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Address} obj Optional instance to populate.
+ * @return {module:model/Address} The populated Address
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('CompanyName')) {
+ obj['CompanyName'] = Sdk.convertToType(data['CompanyName'], 'String');
+ }
+ if (data.hasOwnProperty('FirstName')) {
+ obj['FirstName'] = Sdk.convertToType(data['FirstName'], 'String');
+ }
+ if (data.hasOwnProperty('LastName')) {
+ obj['LastName'] = Sdk.convertToType(data['LastName'], 'String');
+ }
+ if (data.hasOwnProperty('Street1')) {
+ obj['Street1'] = Sdk.convertToType(data['Street1'], 'String');
+ }
+ if (data.hasOwnProperty('Street2')) {
+ obj['Street2'] = Sdk.convertToType(data['Street2'], 'String');
+ }
+ if (data.hasOwnProperty('City')) {
+ obj['City'] = Sdk.convertToType(data['City'], 'String');
+ }
+ if (data.hasOwnProperty('State')) {
+ obj['State'] = Sdk.convertToType(data['State'], 'String');
+ }
+ if (data.hasOwnProperty('Zip')) {
+ obj['Zip'] = Sdk.convertToType(data['Zip'], 'String');
+ }
+ if (data.hasOwnProperty('Country')) {
+ obj['Country'] = Sdk.convertToType(data['Country'], 'String');
+ }
+ if (data.hasOwnProperty('Phone')) {
+ obj['Phone'] = Sdk.convertToType(data['Phone'], 'String');
+ }
+ if (data.hasOwnProperty('AddressName')) {
+ obj['AddressName'] = Sdk.convertToType(data['AddressName'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} CompanyName
+ */
+ exports.prototype['CompanyName'] = undefined;
+ /**
+ * @member {String} FirstName
+ */
+ exports.prototype['FirstName'] = undefined;
+ /**
+ * @member {String} LastName
+ */
+ exports.prototype['LastName'] = undefined;
+ /**
+ * @member {String} Street1
+ */
+ exports.prototype['Street1'] = undefined;
+ /**
+ * @member {String} Street2
+ */
+ exports.prototype['Street2'] = undefined;
+ /**
+ * @member {String} City
+ */
+ exports.prototype['City'] = undefined;
+ /**
+ * @member {String} State
+ */
+ exports.prototype['State'] = undefined;
+ /**
+ * @member {String} Zip
+ */
+ exports.prototype['Zip'] = undefined;
+ /**
+ * @member {String} Country
+ */
+ exports.prototype['Country'] = undefined;
+ /**
+ * @member {String} Phone
+ */
+ exports.prototype['Phone'] = undefined;
+ /**
+ * @member {String} AddressName
+ */
+ exports.prototype['AddressName'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],53:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.AddressAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The AddressAssignment model module.
+ * @module model/AddressAssignment
+ */
+
+ /**
+ * Constructs a new AddressAssignment
.
+ * @alias module:model/AddressAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a AddressAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/AddressAssignment} obj Optional instance to populate.
+ * @return {module:model/AddressAssignment} The populated AddressAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('AddressID')) {
+ obj['AddressID'] = Sdk.convertToType(data['AddressID'], 'String');
+ }
+ if (data.hasOwnProperty('UserID')) {
+ obj['UserID'] = Sdk.convertToType(data['UserID'], 'String');
+ }
+ if (data.hasOwnProperty('UserGroupID')) {
+ obj['UserGroupID'] = Sdk.convertToType(data['UserGroupID'], 'String');
+ }
+ if (data.hasOwnProperty('IsShipping')) {
+ obj['IsShipping'] = Sdk.convertToType(data['IsShipping'], 'Boolean');
+ }
+ if (data.hasOwnProperty('IsBilling')) {
+ obj['IsBilling'] = Sdk.convertToType(data['IsBilling'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} AddressID
+ */
+ exports.prototype['AddressID'] = undefined;
+ /**
+ * @member {String} UserID
+ */
+ exports.prototype['UserID'] = undefined;
+ /**
+ * @member {String} UserGroupID
+ */
+ exports.prototype['UserGroupID'] = undefined;
+ /**
+ * @member {Boolean} IsShipping
+ */
+ exports.prototype['IsShipping'] = undefined;
+ /**
+ * @member {Boolean} IsBilling
+ */
+ exports.prototype['IsBilling'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],54:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.ApiClient = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ApiClient model module.
+ * @module model/ApiClient
+ */
+
+ /**
+ * Constructs a new ApiClient
.
+ * @alias module:model/ApiClient
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a ApiClient
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ApiClient} obj Optional instance to populate.
+ * @return {module:model/ApiClient} The populated ApiClient
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('ClientSecret')) {
+ obj['ClientSecret'] = Sdk.convertToType(data['ClientSecret'], 'String');
+ }
+ if (data.hasOwnProperty('AccessTokenDuration')) {
+ obj['AccessTokenDuration'] = Sdk.convertToType(data['AccessTokenDuration'], 'Number');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('AppName')) {
+ obj['AppName'] = Sdk.convertToType(data['AppName'], 'String');
+ }
+ if (data.hasOwnProperty('RefreshTokenDuration')) {
+ obj['RefreshTokenDuration'] = Sdk.convertToType(data['RefreshTokenDuration'], 'Number');
+ }
+ if (data.hasOwnProperty('DefaultContextUserName')) {
+ obj['DefaultContextUserName'] = Sdk.convertToType(data['DefaultContextUserName'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('AllowAnyBuyer')) {
+ obj['AllowAnyBuyer'] = Sdk.convertToType(data['AllowAnyBuyer'], 'Boolean');
+ }
+ if (data.hasOwnProperty('AllowAnySupplier')) {
+ obj['AllowAnySupplier'] = Sdk.convertToType(data['AllowAnySupplier'], 'Boolean');
+ }
+ if (data.hasOwnProperty('AllowSeller')) {
+ obj['AllowSeller'] = Sdk.convertToType(data['AllowSeller'], 'Boolean');
+ }
+ if (data.hasOwnProperty('IsAnonBuyer')) {
+ obj['IsAnonBuyer'] = Sdk.convertToType(data['IsAnonBuyer'], 'Boolean');
+ }
+ if (data.hasOwnProperty('AssignedBuyerCount')) {
+ obj['AssignedBuyerCount'] = Sdk.convertToType(data['AssignedBuyerCount'], 'Number');
+ }
+ if (data.hasOwnProperty('AssignedSupplierCount')) {
+ obj['AssignedSupplierCount'] = Sdk.convertToType(data['AssignedSupplierCount'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} ClientSecret
+ */
+ exports.prototype['ClientSecret'] = undefined;
+ /**
+ * @member {Number} AccessTokenDuration
+ */
+ exports.prototype['AccessTokenDuration'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {String} AppName
+ */
+ exports.prototype['AppName'] = undefined;
+ /**
+ * @member {Number} RefreshTokenDuration
+ */
+ exports.prototype['RefreshTokenDuration'] = undefined;
+ /**
+ * @member {String} DefaultContextUserName
+ */
+ exports.prototype['DefaultContextUserName'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {Boolean} AllowAnyBuyer
+ */
+ exports.prototype['AllowAnyBuyer'] = undefined;
+ /**
+ * @member {Boolean} AllowAnySupplier
+ */
+ exports.prototype['AllowAnySupplier'] = undefined;
+ /**
+ * @member {Boolean} AllowSeller
+ */
+ exports.prototype['AllowSeller'] = undefined;
+ /**
+ * @member {Boolean} IsAnonBuyer
+ */
+ exports.prototype['IsAnonBuyer'] = undefined;
+ /**
+ * @member {Number} AssignedBuyerCount
+ */
+ exports.prototype['AssignedBuyerCount'] = undefined;
+ /**
+ * @member {Number} AssignedSupplierCount
+ */
+ exports.prototype['AssignedSupplierCount'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],55:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.ApiClientAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ApiClientAssignment model module.
+ * @module model/ApiClientAssignment
+ */
+
+ /**
+ * Constructs a new ApiClientAssignment
.
+ * @alias module:model/ApiClientAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+ };
+
+ /**
+ * Constructs a ApiClientAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ApiClientAssignment} obj Optional instance to populate.
+ * @return {module:model/ApiClientAssignment} The populated ApiClientAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ApiClientID')) {
+ obj['ApiClientID'] = Sdk.convertToType(data['ApiClientID'], 'String');
+ }
+ if (data.hasOwnProperty('BuyerID')) {
+ obj['BuyerID'] = Sdk.convertToType(data['BuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('SupplierID')) {
+ obj['SupplierID'] = Sdk.convertToType(data['SupplierID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ApiClientID
+ */
+ exports.prototype['ApiClientID'] = undefined;
+ /**
+ * @member {String} BuyerID
+ */
+ exports.prototype['BuyerID'] = undefined;
+ /**
+ * @member {String} SupplierID
+ */
+ exports.prototype['SupplierID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],56:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.ApprovalRule = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ApprovalRule model module.
+ * @module model/ApprovalRule
+ */
+
+ /**
+ * Constructs a new ApprovalRule
.
+ * @alias module:model/ApprovalRule
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a ApprovalRule
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ApprovalRule} obj Optional instance to populate.
+ * @return {module:model/ApprovalRule} The populated ApprovalRule
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('ApprovingGroupID')) {
+ obj['ApprovingGroupID'] = Sdk.convertToType(data['ApprovingGroupID'], 'String');
+ }
+ if (data.hasOwnProperty('RuleExpression')) {
+ obj['RuleExpression'] = Sdk.convertToType(data['RuleExpression'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {String} ApprovingGroupID
+ */
+ exports.prototype['ApprovingGroupID'] = undefined;
+ /**
+ * @member {String} RuleExpression
+ */
+ exports.prototype['RuleExpression'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],57:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Buyer = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Buyer model module.
+ * @module model/Buyer
+ */
+
+ /**
+ * Constructs a new Buyer
.
+ * @alias module:model/Buyer
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Buyer
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Buyer} obj Optional instance to populate.
+ * @return {module:model/Buyer} The populated Buyer
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('DefaultCatalogID')) {
+ obj['DefaultCatalogID'] = Sdk.convertToType(data['DefaultCatalogID'], 'String');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} DefaultCatalogID
+ */
+ exports.prototype['DefaultCatalogID'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],58:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.BuyerAddress = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The BuyerAddress model module.
+ * @module model/BuyerAddress
+ */
+
+ /**
+ * Constructs a new BuyerAddress
.
+ * @alias module:model/BuyerAddress
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a BuyerAddress
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BuyerAddress} obj Optional instance to populate.
+ * @return {module:model/BuyerAddress} The populated BuyerAddress
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Shipping')) {
+ obj['Shipping'] = Sdk.convertToType(data['Shipping'], 'Boolean');
+ }
+ if (data.hasOwnProperty('Billing')) {
+ obj['Billing'] = Sdk.convertToType(data['Billing'], 'Boolean');
+ }
+ if (data.hasOwnProperty('Editable')) {
+ obj['Editable'] = Sdk.convertToType(data['Editable'], 'Boolean');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('CompanyName')) {
+ obj['CompanyName'] = Sdk.convertToType(data['CompanyName'], 'String');
+ }
+ if (data.hasOwnProperty('FirstName')) {
+ obj['FirstName'] = Sdk.convertToType(data['FirstName'], 'String');
+ }
+ if (data.hasOwnProperty('LastName')) {
+ obj['LastName'] = Sdk.convertToType(data['LastName'], 'String');
+ }
+ if (data.hasOwnProperty('Street1')) {
+ obj['Street1'] = Sdk.convertToType(data['Street1'], 'String');
+ }
+ if (data.hasOwnProperty('Street2')) {
+ obj['Street2'] = Sdk.convertToType(data['Street2'], 'String');
+ }
+ if (data.hasOwnProperty('City')) {
+ obj['City'] = Sdk.convertToType(data['City'], 'String');
+ }
+ if (data.hasOwnProperty('State')) {
+ obj['State'] = Sdk.convertToType(data['State'], 'String');
+ }
+ if (data.hasOwnProperty('Zip')) {
+ obj['Zip'] = Sdk.convertToType(data['Zip'], 'String');
+ }
+ if (data.hasOwnProperty('Country')) {
+ obj['Country'] = Sdk.convertToType(data['Country'], 'String');
+ }
+ if (data.hasOwnProperty('Phone')) {
+ obj['Phone'] = Sdk.convertToType(data['Phone'], 'String');
+ }
+ if (data.hasOwnProperty('AddressName')) {
+ obj['AddressName'] = Sdk.convertToType(data['AddressName'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {Boolean} Shipping
+ */
+ exports.prototype['Shipping'] = undefined;
+ /**
+ * @member {Boolean} Billing
+ */
+ exports.prototype['Billing'] = undefined;
+ /**
+ * @member {Boolean} Editable
+ */
+ exports.prototype['Editable'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} CompanyName
+ */
+ exports.prototype['CompanyName'] = undefined;
+ /**
+ * @member {String} FirstName
+ */
+ exports.prototype['FirstName'] = undefined;
+ /**
+ * @member {String} LastName
+ */
+ exports.prototype['LastName'] = undefined;
+ /**
+ * @member {String} Street1
+ */
+ exports.prototype['Street1'] = undefined;
+ /**
+ * @member {String} Street2
+ */
+ exports.prototype['Street2'] = undefined;
+ /**
+ * @member {String} City
+ */
+ exports.prototype['City'] = undefined;
+ /**
+ * @member {String} State
+ */
+ exports.prototype['State'] = undefined;
+ /**
+ * @member {String} Zip
+ */
+ exports.prototype['Zip'] = undefined;
+ /**
+ * @member {String} Country
+ */
+ exports.prototype['Country'] = undefined;
+ /**
+ * @member {String} Phone
+ */
+ exports.prototype['Phone'] = undefined;
+ /**
+ * @member {String} AddressName
+ */
+ exports.prototype['AddressName'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],59:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.BuyerCreditCard = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The BuyerCreditCard model module.
+ * @module model/BuyerCreditCard
+ */
+
+ /**
+ * Constructs a new BuyerCreditCard
.
+ * @alias module:model/BuyerCreditCard
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a BuyerCreditCard
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BuyerCreditCard} obj Optional instance to populate.
+ * @return {module:model/BuyerCreditCard} The populated BuyerCreditCard
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Editable')) {
+ obj['Editable'] = Sdk.convertToType(data['Editable'], 'Boolean');
+ }
+ if (data.hasOwnProperty('Token')) {
+ obj['Token'] = Sdk.convertToType(data['Token'], 'String');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('CardType')) {
+ obj['CardType'] = Sdk.convertToType(data['CardType'], 'String');
+ }
+ if (data.hasOwnProperty('PartialAccountNumber')) {
+ obj['PartialAccountNumber'] = Sdk.convertToType(data['PartialAccountNumber'], 'String');
+ }
+ if (data.hasOwnProperty('CardholderName')) {
+ obj['CardholderName'] = Sdk.convertToType(data['CardholderName'], 'String');
+ }
+ if (data.hasOwnProperty('ExpirationDate')) {
+ obj['ExpirationDate'] = Sdk.convertToType(data['ExpirationDate'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {Boolean} Editable
+ */
+ exports.prototype['Editable'] = undefined;
+ /**
+ * @member {String} Token
+ */
+ exports.prototype['Token'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} CardType
+ */
+ exports.prototype['CardType'] = undefined;
+ /**
+ * @member {String} PartialAccountNumber
+ */
+ exports.prototype['PartialAccountNumber'] = undefined;
+ /**
+ * @member {String} CardholderName
+ */
+ exports.prototype['CardholderName'] = undefined;
+ /**
+ * @member {String} ExpirationDate
+ */
+ exports.prototype['ExpirationDate'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],60:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/Inventory', 'model/PriceSchedule'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./Inventory'), require('./PriceSchedule'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.BuyerProduct = factory(root.OrderCloud.Sdk, root.OrderCloud.Inventory, root.OrderCloud.PriceSchedule);
+ }
+}(this, function(Sdk, Inventory, PriceSchedule) {
+ 'use strict';
+
+
+
+
+ /**
+ * The BuyerProduct model module.
+ * @module model/BuyerProduct
+ */
+
+ /**
+ * Constructs a new BuyerProduct
.
+ * @alias module:model/BuyerProduct
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a BuyerProduct
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BuyerProduct} obj Optional instance to populate.
+ * @return {module:model/BuyerProduct} The populated BuyerProduct
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('PriceSchedule')) {
+ obj['PriceSchedule'] = PriceSchedule.constructFromObject(data['PriceSchedule']);
+ }
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('QuantityMultiplier')) {
+ obj['QuantityMultiplier'] = Sdk.convertToType(data['QuantityMultiplier'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWeight')) {
+ obj['ShipWeight'] = Sdk.convertToType(data['ShipWeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipHeight')) {
+ obj['ShipHeight'] = Sdk.convertToType(data['ShipHeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWidth')) {
+ obj['ShipWidth'] = Sdk.convertToType(data['ShipWidth'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipLength')) {
+ obj['ShipLength'] = Sdk.convertToType(data['ShipLength'], 'Number');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('SpecCount')) {
+ obj['SpecCount'] = Sdk.convertToType(data['SpecCount'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('VariantCount')) {
+ obj['VariantCount'] = Sdk.convertToType(data['VariantCount'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipFromAddressID')) {
+ obj['ShipFromAddressID'] = Sdk.convertToType(data['ShipFromAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('Inventory')) {
+ obj['Inventory'] = Inventory.constructFromObject(data['Inventory']);
+ }
+ if (data.hasOwnProperty('DefaultSupplierID')) {
+ obj['DefaultSupplierID'] = Sdk.convertToType(data['DefaultSupplierID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {module:model/PriceSchedule} PriceSchedule
+ */
+ exports.prototype['PriceSchedule'] = undefined;
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Number} QuantityMultiplier
+ */
+ exports.prototype['QuantityMultiplier'] = undefined;
+ /**
+ * @member {Number} ShipWeight
+ */
+ exports.prototype['ShipWeight'] = undefined;
+ /**
+ * @member {Number} ShipHeight
+ */
+ exports.prototype['ShipHeight'] = undefined;
+ /**
+ * @member {Number} ShipWidth
+ */
+ exports.prototype['ShipWidth'] = undefined;
+ /**
+ * @member {Number} ShipLength
+ */
+ exports.prototype['ShipLength'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Number} SpecCount
+ */
+ exports.prototype['SpecCount'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {Number} VariantCount
+ */
+ exports.prototype['VariantCount'] = undefined;
+ /**
+ * @member {String} ShipFromAddressID
+ */
+ exports.prototype['ShipFromAddressID'] = undefined;
+ /**
+ * @member {module:model/Inventory} Inventory
+ */
+ exports.prototype['Inventory'] = undefined;
+ /**
+ * @member {String} DefaultSupplierID
+ */
+ exports.prototype['DefaultSupplierID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12,"./Inventory":74,"./PriceSchedule":193}],61:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/SpecOption'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./SpecOption'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.BuyerSpec = factory(root.OrderCloud.Sdk, root.OrderCloud.SpecOption);
+ }
+}(this, function(Sdk, SpecOption) {
+ 'use strict';
+
+
+
+
+ /**
+ * The BuyerSpec model module.
+ * @module model/BuyerSpec
+ */
+
+ /**
+ * Constructs a new BuyerSpec
.
+ * @alias module:model/BuyerSpec
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a BuyerSpec
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BuyerSpec} obj Optional instance to populate.
+ * @return {module:model/BuyerSpec} The populated BuyerSpec
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Options')) {
+ obj['Options'] = Sdk.convertToType(data['Options'], [SpecOption]);
+ }
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('ListOrder')) {
+ obj['ListOrder'] = Sdk.convertToType(data['ListOrder'], 'Number');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('DefaultValue')) {
+ obj['DefaultValue'] = Sdk.convertToType(data['DefaultValue'], 'String');
+ }
+ if (data.hasOwnProperty('Required')) {
+ obj['Required'] = Sdk.convertToType(data['Required'], 'Boolean');
+ }
+ if (data.hasOwnProperty('AllowOpenText')) {
+ obj['AllowOpenText'] = Sdk.convertToType(data['AllowOpenText'], 'Boolean');
+ }
+ if (data.hasOwnProperty('DefaultOptionID')) {
+ obj['DefaultOptionID'] = Sdk.convertToType(data['DefaultOptionID'], 'String');
+ }
+ if (data.hasOwnProperty('DefinesVariant')) {
+ obj['DefinesVariant'] = Sdk.convertToType(data['DefinesVariant'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.Catalog
.
+ * @alias module:model/Catalog
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Catalog
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Catalog} obj Optional instance to populate.
+ * @return {module:model/Catalog} The populated Catalog
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('CategoryCount')) {
+ obj['CategoryCount'] = Sdk.convertToType(data['CategoryCount'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Number} CategoryCount
+ */
+ exports.prototype['CategoryCount'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],63:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.CatalogAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The CatalogAssignment model module.
+ * @module model/CatalogAssignment
+ */
+
+ /**
+ * Constructs a new CatalogAssignment
.
+ * @alias module:model/CatalogAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a CatalogAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CatalogAssignment} obj Optional instance to populate.
+ * @return {module:model/CatalogAssignment} The populated CatalogAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('CatalogID')) {
+ obj['CatalogID'] = Sdk.convertToType(data['CatalogID'], 'String');
+ }
+ if (data.hasOwnProperty('BuyerID')) {
+ obj['BuyerID'] = Sdk.convertToType(data['BuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('ViewAllCategories')) {
+ obj['ViewAllCategories'] = Sdk.convertToType(data['ViewAllCategories'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ViewAllProducts')) {
+ obj['ViewAllProducts'] = Sdk.convertToType(data['ViewAllProducts'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} CatalogID
+ */
+ exports.prototype['CatalogID'] = undefined;
+ /**
+ * @member {String} BuyerID
+ */
+ exports.prototype['BuyerID'] = undefined;
+ /**
+ * @member {Boolean} ViewAllCategories
+ */
+ exports.prototype['ViewAllCategories'] = undefined;
+ /**
+ * @member {Boolean} ViewAllProducts
+ */
+ exports.prototype['ViewAllProducts'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],64:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Category = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Category model module.
+ * @module model/Category
+ */
+
+ /**
+ * Constructs a new Category
.
+ * @alias module:model/Category
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Category
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Category} obj Optional instance to populate.
+ * @return {module:model/Category} The populated Category
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('ListOrder')) {
+ obj['ListOrder'] = Sdk.convertToType(data['ListOrder'], 'Number');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ParentID')) {
+ obj['ParentID'] = Sdk.convertToType(data['ParentID'], 'String');
+ }
+ if (data.hasOwnProperty('ChildCount')) {
+ obj['ChildCount'] = Sdk.convertToType(data['ChildCount'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Number} ListOrder
+ */
+ exports.prototype['ListOrder'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {String} ParentID
+ */
+ exports.prototype['ParentID'] = undefined;
+ /**
+ * @member {Number} ChildCount
+ */
+ exports.prototype['ChildCount'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],65:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.CategoryAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The CategoryAssignment model module.
+ * @module model/CategoryAssignment
+ */
+
+ /**
+ * Constructs a new CategoryAssignment
.
+ * @alias module:model/CategoryAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a CategoryAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CategoryAssignment} obj Optional instance to populate.
+ * @return {module:model/CategoryAssignment} The populated CategoryAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('CategoryID')) {
+ obj['CategoryID'] = Sdk.convertToType(data['CategoryID'], 'String');
+ }
+ if (data.hasOwnProperty('BuyerID')) {
+ obj['BuyerID'] = Sdk.convertToType(data['BuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('UserGroupID')) {
+ obj['UserGroupID'] = Sdk.convertToType(data['UserGroupID'], 'String');
+ }
+ if (data.hasOwnProperty('Visible')) {
+ obj['Visible'] = Sdk.convertToType(data['Visible'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ViewAllProducts')) {
+ obj['ViewAllProducts'] = Sdk.convertToType(data['ViewAllProducts'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} CategoryID
+ */
+ exports.prototype['CategoryID'] = undefined;
+ /**
+ * @member {String} BuyerID
+ */
+ exports.prototype['BuyerID'] = undefined;
+ /**
+ * @member {String} UserGroupID
+ */
+ exports.prototype['UserGroupID'] = undefined;
+ /**
+ * @member {Boolean} Visible
+ */
+ exports.prototype['Visible'] = undefined;
+ /**
+ * @member {Boolean} ViewAllProducts
+ */
+ exports.prototype['ViewAllProducts'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],66:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.CategoryProductAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The CategoryProductAssignment model module.
+ * @module model/CategoryProductAssignment
+ */
+
+ /**
+ * Constructs a new CategoryProductAssignment
.
+ * @alias module:model/CategoryProductAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+ };
+
+ /**
+ * Constructs a CategoryProductAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CategoryProductAssignment} obj Optional instance to populate.
+ * @return {module:model/CategoryProductAssignment} The populated CategoryProductAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('CategoryID')) {
+ obj['CategoryID'] = Sdk.convertToType(data['CategoryID'], 'String');
+ }
+ if (data.hasOwnProperty('ProductID')) {
+ obj['ProductID'] = Sdk.convertToType(data['ProductID'], 'String');
+ }
+ if (data.hasOwnProperty('ListOrder')) {
+ obj['ListOrder'] = Sdk.convertToType(data['ListOrder'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} CategoryID
+ */
+ exports.prototype['CategoryID'] = undefined;
+ /**
+ * @member {String} ProductID
+ */
+ exports.prototype['ProductID'] = undefined;
+ /**
+ * @member {Number} ListOrder
+ */
+ exports.prototype['ListOrder'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],67:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.CostCenter = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The CostCenter model module.
+ * @module model/CostCenter
+ */
+
+ /**
+ * Constructs a new CostCenter
.
+ * @alias module:model/CostCenter
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a CostCenter
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CostCenter} obj Optional instance to populate.
+ * @return {module:model/CostCenter} The populated CostCenter
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],68:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.CostCenterAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The CostCenterAssignment model module.
+ * @module model/CostCenterAssignment
+ */
+
+ /**
+ * Constructs a new CostCenterAssignment
.
+ * @alias module:model/CostCenterAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a CostCenterAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CostCenterAssignment} obj Optional instance to populate.
+ * @return {module:model/CostCenterAssignment} The populated CostCenterAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('CostCenterID')) {
+ obj['CostCenterID'] = Sdk.convertToType(data['CostCenterID'], 'String');
+ }
+ if (data.hasOwnProperty('UserGroupID')) {
+ obj['UserGroupID'] = Sdk.convertToType(data['UserGroupID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} CostCenterID
+ */
+ exports.prototype['CostCenterID'] = undefined;
+ /**
+ * @member {String} UserGroupID
+ */
+ exports.prototype['UserGroupID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],69:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.CreditCard = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The CreditCard model module.
+ * @module model/CreditCard
+ */
+
+ /**
+ * Constructs a new CreditCard
.
+ * @alias module:model/CreditCard
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a CreditCard
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CreditCard} obj Optional instance to populate.
+ * @return {module:model/CreditCard} The populated CreditCard
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Token')) {
+ obj['Token'] = Sdk.convertToType(data['Token'], 'String');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('CardType')) {
+ obj['CardType'] = Sdk.convertToType(data['CardType'], 'String');
+ }
+ if (data.hasOwnProperty('PartialAccountNumber')) {
+ obj['PartialAccountNumber'] = Sdk.convertToType(data['PartialAccountNumber'], 'String');
+ }
+ if (data.hasOwnProperty('CardholderName')) {
+ obj['CardholderName'] = Sdk.convertToType(data['CardholderName'], 'String');
+ }
+ if (data.hasOwnProperty('ExpirationDate')) {
+ obj['ExpirationDate'] = Sdk.convertToType(data['ExpirationDate'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Token
+ */
+ exports.prototype['Token'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} CardType
+ */
+ exports.prototype['CardType'] = undefined;
+ /**
+ * @member {String} PartialAccountNumber
+ */
+ exports.prototype['PartialAccountNumber'] = undefined;
+ /**
+ * @member {String} CardholderName
+ */
+ exports.prototype['CardholderName'] = undefined;
+ /**
+ * @member {String} ExpirationDate
+ */
+ exports.prototype['ExpirationDate'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],70:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.CreditCardAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The CreditCardAssignment model module.
+ * @module model/CreditCardAssignment
+ */
+
+ /**
+ * Constructs a new CreditCardAssignment
.
+ * @alias module:model/CreditCardAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+ };
+
+ /**
+ * Constructs a CreditCardAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CreditCardAssignment} obj Optional instance to populate.
+ * @return {module:model/CreditCardAssignment} The populated CreditCardAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('CreditCardID')) {
+ obj['CreditCardID'] = Sdk.convertToType(data['CreditCardID'], 'String');
+ }
+ if (data.hasOwnProperty('UserID')) {
+ obj['UserID'] = Sdk.convertToType(data['UserID'], 'String');
+ }
+ if (data.hasOwnProperty('UserGroupID')) {
+ obj['UserGroupID'] = Sdk.convertToType(data['UserGroupID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} CreditCardID
+ */
+ exports.prototype['CreditCardID'] = undefined;
+ /**
+ * @member {String} UserID
+ */
+ exports.prototype['UserID'] = undefined;
+ /**
+ * @member {String} UserGroupID
+ */
+ exports.prototype['UserGroupID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],71:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.ImpersonateTokenRequest = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ImpersonateTokenRequest model module.
+ * @module model/ImpersonateTokenRequest
+ */
+
+ /**
+ * Constructs a new ImpersonateTokenRequest
.
+ * @alias module:model/ImpersonateTokenRequest
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ImpersonateTokenRequest
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ImpersonateTokenRequest} obj Optional instance to populate.
+ * @return {module:model/ImpersonateTokenRequest} The populated ImpersonateTokenRequest
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ClientID')) {
+ obj['ClientID'] = Sdk.convertToType(data['ClientID'], 'String');
+ }
+ if (data.hasOwnProperty('Roles')) {
+ obj['Roles'] = Sdk.convertToType(data['Roles'], ['String']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ClientID
+ */
+ exports.prototype['ClientID'] = undefined;
+ /**
+ * @member {Array.ImpersonationConfig
.
+ * @alias module:model/ImpersonationConfig
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a ImpersonationConfig
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ImpersonationConfig} obj Optional instance to populate.
+ * @return {module:model/ImpersonationConfig} The populated ImpersonationConfig
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('ImpersonationBuyerID')) {
+ obj['ImpersonationBuyerID'] = Sdk.convertToType(data['ImpersonationBuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('ImpersonationGroupID')) {
+ obj['ImpersonationGroupID'] = Sdk.convertToType(data['ImpersonationGroupID'], 'String');
+ }
+ if (data.hasOwnProperty('ImpersonationUserID')) {
+ obj['ImpersonationUserID'] = Sdk.convertToType(data['ImpersonationUserID'], 'String');
+ }
+ if (data.hasOwnProperty('BuyerID')) {
+ obj['BuyerID'] = Sdk.convertToType(data['BuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('GroupID')) {
+ obj['GroupID'] = Sdk.convertToType(data['GroupID'], 'String');
+ }
+ if (data.hasOwnProperty('UserID')) {
+ obj['UserID'] = Sdk.convertToType(data['UserID'], 'String');
+ }
+ if (data.hasOwnProperty('SecurityProfileID')) {
+ obj['SecurityProfileID'] = Sdk.convertToType(data['SecurityProfileID'], 'String');
+ }
+ if (data.hasOwnProperty('ClientID')) {
+ obj['ClientID'] = Sdk.convertToType(data['ClientID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} ImpersonationBuyerID
+ */
+ exports.prototype['ImpersonationBuyerID'] = undefined;
+ /**
+ * @member {String} ImpersonationGroupID
+ */
+ exports.prototype['ImpersonationGroupID'] = undefined;
+ /**
+ * @member {String} ImpersonationUserID
+ */
+ exports.prototype['ImpersonationUserID'] = undefined;
+ /**
+ * @member {String} BuyerID
+ */
+ exports.prototype['BuyerID'] = undefined;
+ /**
+ * @member {String} GroupID
+ */
+ exports.prototype['GroupID'] = undefined;
+ /**
+ * @member {String} UserID
+ */
+ exports.prototype['UserID'] = undefined;
+ /**
+ * @member {String} SecurityProfileID
+ */
+ exports.prototype['SecurityProfileID'] = undefined;
+ /**
+ * @member {String} ClientID
+ */
+ exports.prototype['ClientID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],73:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Incrementor = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Incrementor model module.
+ * @module model/Incrementor
+ */
+
+ /**
+ * Constructs a new Incrementor
.
+ * @alias module:model/Incrementor
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Incrementor
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Incrementor} obj Optional instance to populate.
+ * @return {module:model/Incrementor} The populated Incrementor
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('LastNumber')) {
+ obj['LastNumber'] = Sdk.convertToType(data['LastNumber'], 'Number');
+ }
+ if (data.hasOwnProperty('LeftPaddingCount')) {
+ obj['LeftPaddingCount'] = Sdk.convertToType(data['LeftPaddingCount'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Number} LastNumber
+ */
+ exports.prototype['LastNumber'] = undefined;
+ /**
+ * @member {Number} LeftPaddingCount
+ */
+ exports.prototype['LeftPaddingCount'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],74:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Inventory = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Inventory model module.
+ * @module model/Inventory
+ */
+
+ /**
+ * Constructs a new Inventory
.
+ * @alias module:model/Inventory
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Inventory
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Inventory} obj Optional instance to populate.
+ * @return {module:model/Inventory} The populated Inventory
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Enabled')) {
+ obj['Enabled'] = Sdk.convertToType(data['Enabled'], 'Boolean');
+ }
+ if (data.hasOwnProperty('NotificationPoint')) {
+ obj['NotificationPoint'] = Sdk.convertToType(data['NotificationPoint'], 'Number');
+ }
+ if (data.hasOwnProperty('VariantLevelTracking')) {
+ obj['VariantLevelTracking'] = Sdk.convertToType(data['VariantLevelTracking'], 'Boolean');
+ }
+ if (data.hasOwnProperty('OrderCanExceed')) {
+ obj['OrderCanExceed'] = Sdk.convertToType(data['OrderCanExceed'], 'Boolean');
+ }
+ if (data.hasOwnProperty('QuantityAvailable')) {
+ obj['QuantityAvailable'] = Sdk.convertToType(data['QuantityAvailable'], 'Number');
+ }
+ if (data.hasOwnProperty('LastUpdated')) {
+ obj['LastUpdated'] = Sdk.convertToType(data['LastUpdated'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Boolean} Enabled
+ */
+ exports.prototype['Enabled'] = undefined;
+ /**
+ * @member {Number} NotificationPoint
+ */
+ exports.prototype['NotificationPoint'] = undefined;
+ /**
+ * @member {Boolean} VariantLevelTracking
+ */
+ exports.prototype['VariantLevelTracking'] = undefined;
+ /**
+ * @member {Boolean} OrderCanExceed
+ */
+ exports.prototype['OrderCanExceed'] = undefined;
+ /**
+ * @member {Number} QuantityAvailable
+ */
+ exports.prototype['QuantityAvailable'] = undefined;
+ /**
+ * @member {String} LastUpdated
+ */
+ exports.prototype['LastUpdated'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],75:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/Address', 'model/LineItemProduct', 'model/LineItemSpec', 'model/LineItemVariant'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./Address'), require('./LineItemProduct'), require('./LineItemSpec'), require('./LineItemVariant'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.LineItem = factory(root.OrderCloud.Sdk, root.OrderCloud.Address, root.OrderCloud.LineItemProduct, root.OrderCloud.LineItemSpec, root.OrderCloud.LineItemVariant);
+ }
+}(this, function(Sdk, Address, LineItemProduct, LineItemSpec, LineItemVariant) {
+ 'use strict';
+
+
+
+
+ /**
+ * The LineItem model module.
+ * @module model/LineItem
+ */
+
+ /**
+ * Constructs a new LineItem
.
+ * @alias module:model/LineItem
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a LineItem
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/LineItem} obj Optional instance to populate.
+ * @return {module:model/LineItem} The populated LineItem
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('ProductID')) {
+ obj['ProductID'] = Sdk.convertToType(data['ProductID'], 'String');
+ }
+ if (data.hasOwnProperty('Quantity')) {
+ obj['Quantity'] = Sdk.convertToType(data['Quantity'], 'Number');
+ }
+ if (data.hasOwnProperty('DateAdded')) {
+ obj['DateAdded'] = Sdk.convertToType(data['DateAdded'], 'String');
+ }
+ if (data.hasOwnProperty('QuantityShipped')) {
+ obj['QuantityShipped'] = Sdk.convertToType(data['QuantityShipped'], 'Number');
+ }
+ if (data.hasOwnProperty('UnitPrice')) {
+ obj['UnitPrice'] = Sdk.convertToType(data['UnitPrice'], 'Number');
+ }
+ if (data.hasOwnProperty('LineTotal')) {
+ obj['LineTotal'] = Sdk.convertToType(data['LineTotal'], 'Number');
+ }
+ if (data.hasOwnProperty('CostCenter')) {
+ obj['CostCenter'] = Sdk.convertToType(data['CostCenter'], 'String');
+ }
+ if (data.hasOwnProperty('DateNeeded')) {
+ obj['DateNeeded'] = Sdk.convertToType(data['DateNeeded'], 'String');
+ }
+ if (data.hasOwnProperty('ShippingAccount')) {
+ obj['ShippingAccount'] = Sdk.convertToType(data['ShippingAccount'], 'String');
+ }
+ if (data.hasOwnProperty('ShippingAddressID')) {
+ obj['ShippingAddressID'] = Sdk.convertToType(data['ShippingAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('ShipFromAddressID')) {
+ obj['ShipFromAddressID'] = Sdk.convertToType(data['ShipFromAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('Product')) {
+ obj['Product'] = LineItemProduct.constructFromObject(data['Product']);
+ }
+ if (data.hasOwnProperty('Variant')) {
+ obj['Variant'] = LineItemVariant.constructFromObject(data['Variant']);
+ }
+ if (data.hasOwnProperty('ShippingAddress')) {
+ obj['ShippingAddress'] = Address.constructFromObject(data['ShippingAddress']);
+ }
+ if (data.hasOwnProperty('ShipFromAddress')) {
+ obj['ShipFromAddress'] = Address.constructFromObject(data['ShipFromAddress']);
+ }
+ if (data.hasOwnProperty('SupplierID')) {
+ obj['SupplierID'] = Sdk.convertToType(data['SupplierID'], 'String');
+ }
+ if (data.hasOwnProperty('Specs')) {
+ obj['Specs'] = Sdk.convertToType(data['Specs'], [LineItemSpec]);
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} ProductID
+ */
+ exports.prototype['ProductID'] = undefined;
+ /**
+ * @member {Number} Quantity
+ */
+ exports.prototype['Quantity'] = undefined;
+ /**
+ * @member {String} DateAdded
+ */
+ exports.prototype['DateAdded'] = undefined;
+ /**
+ * @member {Number} QuantityShipped
+ */
+ exports.prototype['QuantityShipped'] = undefined;
+ /**
+ * @member {Number} UnitPrice
+ */
+ exports.prototype['UnitPrice'] = undefined;
+ /**
+ * @member {Number} LineTotal
+ */
+ exports.prototype['LineTotal'] = undefined;
+ /**
+ * @member {String} CostCenter
+ */
+ exports.prototype['CostCenter'] = undefined;
+ /**
+ * @member {String} DateNeeded
+ */
+ exports.prototype['DateNeeded'] = undefined;
+ /**
+ * @member {String} ShippingAccount
+ */
+ exports.prototype['ShippingAccount'] = undefined;
+ /**
+ * @member {String} ShippingAddressID
+ */
+ exports.prototype['ShippingAddressID'] = undefined;
+ /**
+ * @member {String} ShipFromAddressID
+ */
+ exports.prototype['ShipFromAddressID'] = undefined;
+ /**
+ * @member {module:model/LineItemProduct} Product
+ */
+ exports.prototype['Product'] = undefined;
+ /**
+ * @member {module:model/LineItemVariant} Variant
+ */
+ exports.prototype['Variant'] = undefined;
+ /**
+ * @member {module:model/Address} ShippingAddress
+ */
+ exports.prototype['ShippingAddress'] = undefined;
+ /**
+ * @member {module:model/Address} ShipFromAddress
+ */
+ exports.prototype['ShipFromAddress'] = undefined;
+ /**
+ * @member {String} SupplierID
+ */
+ exports.prototype['SupplierID'] = undefined;
+ /**
+ * @member {Array.LineItemProduct
.
+ * @alias module:model/LineItemProduct
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a LineItemProduct
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/LineItemProduct} obj Optional instance to populate.
+ * @return {module:model/LineItemProduct} The populated LineItemProduct
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('QuantityMultiplier')) {
+ obj['QuantityMultiplier'] = Sdk.convertToType(data['QuantityMultiplier'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWeight')) {
+ obj['ShipWeight'] = Sdk.convertToType(data['ShipWeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipHeight')) {
+ obj['ShipHeight'] = Sdk.convertToType(data['ShipHeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWidth')) {
+ obj['ShipWidth'] = Sdk.convertToType(data['ShipWidth'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipLength')) {
+ obj['ShipLength'] = Sdk.convertToType(data['ShipLength'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Number} QuantityMultiplier
+ */
+ exports.prototype['QuantityMultiplier'] = undefined;
+ /**
+ * @member {Number} ShipWeight
+ */
+ exports.prototype['ShipWeight'] = undefined;
+ /**
+ * @member {Number} ShipHeight
+ */
+ exports.prototype['ShipHeight'] = undefined;
+ /**
+ * @member {Number} ShipWidth
+ */
+ exports.prototype['ShipWidth'] = undefined;
+ /**
+ * @member {Number} ShipLength
+ */
+ exports.prototype['ShipLength'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],77:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.LineItemSpec = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The LineItemSpec model module.
+ * @module model/LineItemSpec
+ */
+
+ /**
+ * Constructs a new LineItemSpec
.
+ * @alias module:model/LineItemSpec
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a LineItemSpec
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/LineItemSpec} obj Optional instance to populate.
+ * @return {module:model/LineItemSpec} The populated LineItemSpec
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('SpecID')) {
+ obj['SpecID'] = Sdk.convertToType(data['SpecID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('OptionID')) {
+ obj['OptionID'] = Sdk.convertToType(data['OptionID'], 'String');
+ }
+ if (data.hasOwnProperty('Value')) {
+ obj['Value'] = Sdk.convertToType(data['Value'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} SpecID
+ */
+ exports.prototype['SpecID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} OptionID
+ */
+ exports.prototype['OptionID'] = undefined;
+ /**
+ * @member {String} Value
+ */
+ exports.prototype['Value'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],78:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.LineItemVariant = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The LineItemVariant model module.
+ * @module model/LineItemVariant
+ */
+
+ /**
+ * Constructs a new LineItemVariant
.
+ * @alias module:model/LineItemVariant
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a LineItemVariant
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/LineItemVariant} obj Optional instance to populate.
+ * @return {module:model/LineItemVariant} The populated LineItemVariant
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('ShipWeight')) {
+ obj['ShipWeight'] = Sdk.convertToType(data['ShipWeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipHeight')) {
+ obj['ShipHeight'] = Sdk.convertToType(data['ShipHeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWidth')) {
+ obj['ShipWidth'] = Sdk.convertToType(data['ShipWidth'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipLength')) {
+ obj['ShipLength'] = Sdk.convertToType(data['ShipLength'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Number} ShipWeight
+ */
+ exports.prototype['ShipWeight'] = undefined;
+ /**
+ * @member {Number} ShipHeight
+ */
+ exports.prototype['ShipHeight'] = undefined;
+ /**
+ * @member {Number} ShipWidth
+ */
+ exports.prototype['ShipWidth'] = undefined;
+ /**
+ * @member {Number} ShipLength
+ */
+ exports.prototype['ShipLength'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],79:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/Address', 'model/Meta'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./Address'), require('./Meta'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.ListAddress = factory(root.OrderCloud.Sdk, root.OrderCloud.Address, root.OrderCloud.Meta);
+ }
+}(this, function(Sdk, Address, Meta) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ListAddress model module.
+ * @module model/ListAddress
+ */
+
+ /**
+ * Constructs a new ListAddress
.
+ * @alias module:model/ListAddress
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListAddress
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListAddress} obj Optional instance to populate.
+ * @return {module:model/ListAddress} The populated ListAddress
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Address]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListAddressAssignment
.
+ * @alias module:model/ListAddressAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListAddressAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListAddressAssignment} obj Optional instance to populate.
+ * @return {module:model/ListAddressAssignment} The populated ListAddressAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [AddressAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListApiClient
.
+ * @alias module:model/ListApiClient
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListApiClient
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListApiClient} obj Optional instance to populate.
+ * @return {module:model/ListApiClient} The populated ListApiClient
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [ApiClient]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListApiClientAssignment
.
+ * @alias module:model/ListApiClientAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListApiClientAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListApiClientAssignment} obj Optional instance to populate.
+ * @return {module:model/ListApiClientAssignment} The populated ListApiClientAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [ApiClientAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListApprovalRule
.
+ * @alias module:model/ListApprovalRule
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListApprovalRule
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListApprovalRule} obj Optional instance to populate.
+ * @return {module:model/ListApprovalRule} The populated ListApprovalRule
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [ApprovalRule]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListBuyer
.
+ * @alias module:model/ListBuyer
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListBuyer
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListBuyer} obj Optional instance to populate.
+ * @return {module:model/ListBuyer} The populated ListBuyer
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Buyer]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListBuyerAddress
.
+ * @alias module:model/ListBuyerAddress
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListBuyerAddress
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListBuyerAddress} obj Optional instance to populate.
+ * @return {module:model/ListBuyerAddress} The populated ListBuyerAddress
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [BuyerAddress]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListBuyerCreditCard
.
+ * @alias module:model/ListBuyerCreditCard
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListBuyerCreditCard
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListBuyerCreditCard} obj Optional instance to populate.
+ * @return {module:model/ListBuyerCreditCard} The populated ListBuyerCreditCard
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [BuyerCreditCard]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListBuyerProduct
.
+ * @alias module:model/ListBuyerProduct
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListBuyerProduct
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListBuyerProduct} obj Optional instance to populate.
+ * @return {module:model/ListBuyerProduct} The populated ListBuyerProduct
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [BuyerProduct]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = MetaWithFacets.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListBuyerSpec
.
+ * @alias module:model/ListBuyerSpec
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListBuyerSpec
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListBuyerSpec} obj Optional instance to populate.
+ * @return {module:model/ListBuyerSpec} The populated ListBuyerSpec
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [BuyerSpec]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListCatalog
.
+ * @alias module:model/ListCatalog
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListCatalog
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListCatalog} obj Optional instance to populate.
+ * @return {module:model/ListCatalog} The populated ListCatalog
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Catalog]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListCatalogAssignment
.
+ * @alias module:model/ListCatalogAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListCatalogAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListCatalogAssignment} obj Optional instance to populate.
+ * @return {module:model/ListCatalogAssignment} The populated ListCatalogAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [CatalogAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListCategory
.
+ * @alias module:model/ListCategory
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListCategory
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListCategory} obj Optional instance to populate.
+ * @return {module:model/ListCategory} The populated ListCategory
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Category]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListCategoryAssignment
.
+ * @alias module:model/ListCategoryAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListCategoryAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListCategoryAssignment} obj Optional instance to populate.
+ * @return {module:model/ListCategoryAssignment} The populated ListCategoryAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [CategoryAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListCategoryProductAssignment
.
+ * @alias module:model/ListCategoryProductAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListCategoryProductAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListCategoryProductAssignment} obj Optional instance to populate.
+ * @return {module:model/ListCategoryProductAssignment} The populated ListCategoryProductAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [CategoryProductAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListCostCenter
.
+ * @alias module:model/ListCostCenter
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListCostCenter
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListCostCenter} obj Optional instance to populate.
+ * @return {module:model/ListCostCenter} The populated ListCostCenter
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [CostCenter]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListCostCenterAssignment
.
+ * @alias module:model/ListCostCenterAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListCostCenterAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListCostCenterAssignment} obj Optional instance to populate.
+ * @return {module:model/ListCostCenterAssignment} The populated ListCostCenterAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [CostCenterAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListCreditCard
.
+ * @alias module:model/ListCreditCard
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListCreditCard
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListCreditCard} obj Optional instance to populate.
+ * @return {module:model/ListCreditCard} The populated ListCreditCard
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [CreditCard]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListCreditCardAssignment
.
+ * @alias module:model/ListCreditCardAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListCreditCardAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListCreditCardAssignment} obj Optional instance to populate.
+ * @return {module:model/ListCreditCardAssignment} The populated ListCreditCardAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [CreditCardAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListFacet
.
+ * @alias module:model/ListFacet
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a ListFacet
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListFacet} obj Optional instance to populate.
+ * @return {module:model/ListFacet} The populated ListFacet
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('XpPath')) {
+ obj['XpPath'] = Sdk.convertToType(data['XpPath'], 'String');
+ }
+ if (data.hasOwnProperty('Values')) {
+ obj['Values'] = Sdk.convertToType(data['Values'], [ListFacetValue]);
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} XpPath
+ */
+ exports.prototype['XpPath'] = undefined;
+ /**
+ * @member {Array.ListFacetValue
.
+ * @alias module:model/ListFacetValue
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListFacetValue
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListFacetValue} obj Optional instance to populate.
+ * @return {module:model/ListFacetValue} The populated ListFacetValue
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Value')) {
+ obj['Value'] = Sdk.convertToType(data['Value'], 'String');
+ }
+ if (data.hasOwnProperty('Count')) {
+ obj['Count'] = Sdk.convertToType(data['Count'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} Value
+ */
+ exports.prototype['Value'] = undefined;
+ /**
+ * @member {Number} Count
+ */
+ exports.prototype['Count'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],100:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/ImpersonationConfig', 'model/Meta'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./ImpersonationConfig'), require('./Meta'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.ListImpersonationConfig = factory(root.OrderCloud.Sdk, root.OrderCloud.ImpersonationConfig, root.OrderCloud.Meta);
+ }
+}(this, function(Sdk, ImpersonationConfig, Meta) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ListImpersonationConfig model module.
+ * @module model/ListImpersonationConfig
+ */
+
+ /**
+ * Constructs a new ListImpersonationConfig
.
+ * @alias module:model/ListImpersonationConfig
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListImpersonationConfig
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListImpersonationConfig} obj Optional instance to populate.
+ * @return {module:model/ListImpersonationConfig} The populated ListImpersonationConfig
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [ImpersonationConfig]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListIncrementor
.
+ * @alias module:model/ListIncrementor
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListIncrementor
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListIncrementor} obj Optional instance to populate.
+ * @return {module:model/ListIncrementor} The populated ListIncrementor
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Incrementor]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListLineItem
.
+ * @alias module:model/ListLineItem
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListLineItem
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListLineItem} obj Optional instance to populate.
+ * @return {module:model/ListLineItem} The populated ListLineItem
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [LineItem]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListMessageCCListenerAssignment
.
+ * @alias module:model/ListMessageCCListenerAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListMessageCCListenerAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListMessageCCListenerAssignment} obj Optional instance to populate.
+ * @return {module:model/ListMessageCCListenerAssignment} The populated ListMessageCCListenerAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [MessageCCListenerAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListMessageSender
.
+ * @alias module:model/ListMessageSender
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListMessageSender
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListMessageSender} obj Optional instance to populate.
+ * @return {module:model/ListMessageSender} The populated ListMessageSender
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [MessageSender]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListMessageSenderAssignment
.
+ * @alias module:model/ListMessageSenderAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListMessageSenderAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListMessageSenderAssignment} obj Optional instance to populate.
+ * @return {module:model/ListMessageSenderAssignment} The populated ListMessageSenderAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [MessageSenderAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListOpenIdConnect
.
+ * @alias module:model/ListOpenIdConnect
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListOpenIdConnect
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListOpenIdConnect} obj Optional instance to populate.
+ * @return {module:model/ListOpenIdConnect} The populated ListOpenIdConnect
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [OpenIdConnect]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListOrder
.
+ * @alias module:model/ListOrder
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListOrder
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListOrder} obj Optional instance to populate.
+ * @return {module:model/ListOrder} The populated ListOrder
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Order]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListOrderApproval
.
+ * @alias module:model/ListOrderApproval
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListOrderApproval
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListOrderApproval} obj Optional instance to populate.
+ * @return {module:model/ListOrderApproval} The populated ListOrderApproval
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [OrderApproval]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListOrderPromotion
.
+ * @alias module:model/ListOrderPromotion
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListOrderPromotion
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListOrderPromotion} obj Optional instance to populate.
+ * @return {module:model/ListOrderPromotion} The populated ListOrderPromotion
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [OrderPromotion]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListPayment
.
+ * @alias module:model/ListPayment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListPayment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListPayment} obj Optional instance to populate.
+ * @return {module:model/ListPayment} The populated ListPayment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Payment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListPriceSchedule
.
+ * @alias module:model/ListPriceSchedule
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListPriceSchedule
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListPriceSchedule} obj Optional instance to populate.
+ * @return {module:model/ListPriceSchedule} The populated ListPriceSchedule
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [PriceSchedule]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListProduct
.
+ * @alias module:model/ListProduct
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListProduct
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListProduct} obj Optional instance to populate.
+ * @return {module:model/ListProduct} The populated ListProduct
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Product]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListProductAssignment
.
+ * @alias module:model/ListProductAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListProductAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListProductAssignment} obj Optional instance to populate.
+ * @return {module:model/ListProductAssignment} The populated ListProductAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [ProductAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListProductCatalogAssignment
.
+ * @alias module:model/ListProductCatalogAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListProductCatalogAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListProductCatalogAssignment} obj Optional instance to populate.
+ * @return {module:model/ListProductCatalogAssignment} The populated ListProductCatalogAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [ProductCatalogAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListProductFacet
.
+ * @alias module:model/ListProductFacet
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListProductFacet
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListProductFacet} obj Optional instance to populate.
+ * @return {module:model/ListProductFacet} The populated ListProductFacet
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [ProductFacet]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListPromotion
.
+ * @alias module:model/ListPromotion
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListPromotion
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListPromotion} obj Optional instance to populate.
+ * @return {module:model/ListPromotion} The populated ListPromotion
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Promotion]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListPromotionAssignment
.
+ * @alias module:model/ListPromotionAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListPromotionAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListPromotionAssignment} obj Optional instance to populate.
+ * @return {module:model/ListPromotionAssignment} The populated ListPromotionAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [PromotionAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListSecurityProfile
.
+ * @alias module:model/ListSecurityProfile
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListSecurityProfile
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListSecurityProfile} obj Optional instance to populate.
+ * @return {module:model/ListSecurityProfile} The populated ListSecurityProfile
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [SecurityProfile]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListSecurityProfileAssignment
.
+ * @alias module:model/ListSecurityProfileAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListSecurityProfileAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListSecurityProfileAssignment} obj Optional instance to populate.
+ * @return {module:model/ListSecurityProfileAssignment} The populated ListSecurityProfileAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [SecurityProfileAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListShipment
.
+ * @alias module:model/ListShipment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListShipment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListShipment} obj Optional instance to populate.
+ * @return {module:model/ListShipment} The populated ListShipment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Shipment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListShipmentItem
.
+ * @alias module:model/ListShipmentItem
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListShipmentItem
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListShipmentItem} obj Optional instance to populate.
+ * @return {module:model/ListShipmentItem} The populated ListShipmentItem
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [ShipmentItem]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListSpec
.
+ * @alias module:model/ListSpec
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListSpec
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListSpec} obj Optional instance to populate.
+ * @return {module:model/ListSpec} The populated ListSpec
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Spec]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListSpecOption
.
+ * @alias module:model/ListSpecOption
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListSpecOption
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListSpecOption} obj Optional instance to populate.
+ * @return {module:model/ListSpecOption} The populated ListSpecOption
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [SpecOption]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListSpecProductAssignment
.
+ * @alias module:model/ListSpecProductAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListSpecProductAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListSpecProductAssignment} obj Optional instance to populate.
+ * @return {module:model/ListSpecProductAssignment} The populated ListSpecProductAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [SpecProductAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListSpendingAccount
.
+ * @alias module:model/ListSpendingAccount
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListSpendingAccount
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListSpendingAccount} obj Optional instance to populate.
+ * @return {module:model/ListSpendingAccount} The populated ListSpendingAccount
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [SpendingAccount]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListSpendingAccountAssignment
.
+ * @alias module:model/ListSpendingAccountAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListSpendingAccountAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListSpendingAccountAssignment} obj Optional instance to populate.
+ * @return {module:model/ListSpendingAccountAssignment} The populated ListSpendingAccountAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [SpendingAccountAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListSupplier
.
+ * @alias module:model/ListSupplier
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListSupplier
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListSupplier} obj Optional instance to populate.
+ * @return {module:model/ListSupplier} The populated ListSupplier
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Supplier]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListUser
.
+ * @alias module:model/ListUser
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListUser
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListUser} obj Optional instance to populate.
+ * @return {module:model/ListUser} The populated ListUser
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [User]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListUserGroup
.
+ * @alias module:model/ListUserGroup
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListUserGroup
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListUserGroup} obj Optional instance to populate.
+ * @return {module:model/ListUserGroup} The populated ListUserGroup
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [UserGroup]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListUserGroupAssignment
.
+ * @alias module:model/ListUserGroupAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListUserGroupAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListUserGroupAssignment} obj Optional instance to populate.
+ * @return {module:model/ListUserGroupAssignment} The populated ListUserGroupAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [UserGroupAssignment]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListVariant
.
+ * @alias module:model/ListVariant
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListVariant
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListVariant} obj Optional instance to populate.
+ * @return {module:model/ListVariant} The populated ListVariant
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Variant]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListWebhook
.
+ * @alias module:model/ListWebhook
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListWebhook
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListWebhook} obj Optional instance to populate.
+ * @return {module:model/ListWebhook} The populated ListWebhook
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [Webhook]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.ListXpIndex
.
+ * @alias module:model/ListXpIndex
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ListXpIndex
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ListXpIndex} obj Optional instance to populate.
+ * @return {module:model/ListXpIndex} The populated ListXpIndex
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Items')) {
+ obj['Items'] = Sdk.convertToType(data['Items'], [XpIndex]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = Meta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.MeBuyer
.
+ * @alias module:model/MeBuyer
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a MeBuyer
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/MeBuyer} obj Optional instance to populate.
+ * @return {module:model/MeBuyer} The populated MeBuyer
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('DefaultCatalogID')) {
+ obj['DefaultCatalogID'] = Sdk.convertToType(data['DefaultCatalogID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} DefaultCatalogID
+ */
+ exports.prototype['DefaultCatalogID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],135:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.MeSupplier = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The MeSupplier model module.
+ * @module model/MeSupplier
+ */
+
+ /**
+ * Constructs a new MeSupplier
.
+ * @alias module:model/MeSupplier
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+ };
+
+ /**
+ * Constructs a MeSupplier
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/MeSupplier} obj Optional instance to populate.
+ * @return {module:model/MeSupplier} The populated MeSupplier
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],136:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/MeBuyer', 'model/MeSupplier'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./MeBuyer'), require('./MeSupplier'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.MeUser = factory(root.OrderCloud.Sdk, root.OrderCloud.MeBuyer, root.OrderCloud.MeSupplier);
+ }
+}(this, function(Sdk, MeBuyer, MeSupplier) {
+ 'use strict';
+
+
+
+
+ /**
+ * The MeUser model module.
+ * @module model/MeUser
+ */
+
+ /**
+ * Constructs a new MeUser
.
+ * @alias module:model/MeUser
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a MeUser
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/MeUser} obj Optional instance to populate.
+ * @return {module:model/MeUser} The populated MeUser
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Buyer')) {
+ obj['Buyer'] = MeBuyer.constructFromObject(data['Buyer']);
+ }
+ if (data.hasOwnProperty('Supplier')) {
+ obj['Supplier'] = MeSupplier.constructFromObject(data['Supplier']);
+ }
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Username')) {
+ obj['Username'] = Sdk.convertToType(data['Username'], 'String');
+ }
+ if (data.hasOwnProperty('Password')) {
+ obj['Password'] = Sdk.convertToType(data['Password'], 'String');
+ }
+ if (data.hasOwnProperty('FirstName')) {
+ obj['FirstName'] = Sdk.convertToType(data['FirstName'], 'String');
+ }
+ if (data.hasOwnProperty('LastName')) {
+ obj['LastName'] = Sdk.convertToType(data['LastName'], 'String');
+ }
+ if (data.hasOwnProperty('Email')) {
+ obj['Email'] = Sdk.convertToType(data['Email'], 'String');
+ }
+ if (data.hasOwnProperty('Phone')) {
+ obj['Phone'] = Sdk.convertToType(data['Phone'], 'String');
+ }
+ if (data.hasOwnProperty('TermsAccepted')) {
+ obj['TermsAccepted'] = Sdk.convertToType(data['TermsAccepted'], 'String');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('AvailableRoles')) {
+ obj['AvailableRoles'] = Sdk.convertToType(data['AvailableRoles'], ['String']);
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {module:model/MeBuyer} Buyer
+ */
+ exports.prototype['Buyer'] = undefined;
+ /**
+ * @member {module:model/MeSupplier} Supplier
+ */
+ exports.prototype['Supplier'] = undefined;
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Username
+ */
+ exports.prototype['Username'] = undefined;
+ /**
+ * @member {String} Password
+ */
+ exports.prototype['Password'] = undefined;
+ /**
+ * @member {String} FirstName
+ */
+ exports.prototype['FirstName'] = undefined;
+ /**
+ * @member {String} LastName
+ */
+ exports.prototype['LastName'] = undefined;
+ /**
+ * @member {String} Email
+ */
+ exports.prototype['Email'] = undefined;
+ /**
+ * @member {String} Phone
+ */
+ exports.prototype['Phone'] = undefined;
+ /**
+ * @member {String} TermsAccepted
+ */
+ exports.prototype['TermsAccepted'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {Array.MessageCCListenerAssignment
.
+ * @alias module:model/MessageCCListenerAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a MessageCCListenerAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/MessageCCListenerAssignment} obj Optional instance to populate.
+ * @return {module:model/MessageCCListenerAssignment} The populated MessageCCListenerAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('MessageSenderAssignment')) {
+ obj['MessageSenderAssignment'] = MessageSenderAssignment.constructFromObject(data['MessageSenderAssignment']);
+ }
+ if (data.hasOwnProperty('MessageConfigName')) {
+ obj['MessageConfigName'] = Sdk.convertToType(data['MessageConfigName'], 'String');
+ }
+ if (data.hasOwnProperty('MessageConfigDescription')) {
+ obj['MessageConfigDescription'] = Sdk.convertToType(data['MessageConfigDescription'], 'String');
+ }
+ if (data.hasOwnProperty('MessageType')) {
+ obj['MessageType'] = Sdk.convertToType(data['MessageType'], 'String');
+ }
+ if (data.hasOwnProperty('BuyerID')) {
+ obj['BuyerID'] = Sdk.convertToType(data['BuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('SupplierID')) {
+ obj['SupplierID'] = Sdk.convertToType(data['SupplierID'], 'String');
+ }
+ if (data.hasOwnProperty('UserGroupID')) {
+ obj['UserGroupID'] = Sdk.convertToType(data['UserGroupID'], 'String');
+ }
+ if (data.hasOwnProperty('UserID')) {
+ obj['UserID'] = Sdk.convertToType(data['UserID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {module:model/MessageSenderAssignment} MessageSenderAssignment
+ */
+ exports.prototype['MessageSenderAssignment'] = undefined;
+ /**
+ * @member {String} MessageConfigName
+ */
+ exports.prototype['MessageConfigName'] = undefined;
+ /**
+ * @member {String} MessageConfigDescription
+ */
+ exports.prototype['MessageConfigDescription'] = undefined;
+ /**
+ * @member {String} MessageType
+ */
+ exports.prototype['MessageType'] = undefined;
+ /**
+ * @member {String} BuyerID
+ */
+ exports.prototype['BuyerID'] = undefined;
+ /**
+ * @member {String} SupplierID
+ */
+ exports.prototype['SupplierID'] = undefined;
+ /**
+ * @member {String} UserGroupID
+ */
+ exports.prototype['UserGroupID'] = undefined;
+ /**
+ * @member {String} UserID
+ */
+ exports.prototype['UserID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12,"./MessageSenderAssignment":139}],138:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.MessageSender = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The MessageSender model module.
+ * @module model/MessageSender
+ */
+
+ /**
+ * Constructs a new MessageSender
.
+ * @alias module:model/MessageSender
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a MessageSender
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/MessageSender} obj Optional instance to populate.
+ * @return {module:model/MessageSender} The populated MessageSender
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('MessageTypes')) {
+ obj['MessageTypes'] = Sdk.convertToType(data['MessageTypes'], ['String']);
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('URL')) {
+ obj['URL'] = Sdk.convertToType(data['URL'], 'String');
+ }
+ if (data.hasOwnProperty('ElevatedRoles')) {
+ obj['ElevatedRoles'] = Sdk.convertToType(data['ElevatedRoles'], ['String']);
+ }
+ if (data.hasOwnProperty('SharedKey')) {
+ obj['SharedKey'] = Sdk.convertToType(data['SharedKey'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Array.MessageSenderAssignment
.
+ * @alias module:model/MessageSenderAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a MessageSenderAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/MessageSenderAssignment} obj Optional instance to populate.
+ * @return {module:model/MessageSenderAssignment} The populated MessageSenderAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('MessageSenderID')) {
+ obj['MessageSenderID'] = Sdk.convertToType(data['MessageSenderID'], 'String');
+ }
+ if (data.hasOwnProperty('BuyerID')) {
+ obj['BuyerID'] = Sdk.convertToType(data['BuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('SupplierID')) {
+ obj['SupplierID'] = Sdk.convertToType(data['SupplierID'], 'String');
+ }
+ if (data.hasOwnProperty('UserGroupID')) {
+ obj['UserGroupID'] = Sdk.convertToType(data['UserGroupID'], 'String');
+ }
+ if (data.hasOwnProperty('MessageConfigName')) {
+ obj['MessageConfigName'] = Sdk.convertToType(data['MessageConfigName'], 'String');
+ }
+ if (data.hasOwnProperty('MessageConfigDescription')) {
+ obj['MessageConfigDescription'] = Sdk.convertToType(data['MessageConfigDescription'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} MessageSenderID
+ */
+ exports.prototype['MessageSenderID'] = undefined;
+ /**
+ * @member {String} BuyerID
+ */
+ exports.prototype['BuyerID'] = undefined;
+ /**
+ * @member {String} SupplierID
+ */
+ exports.prototype['SupplierID'] = undefined;
+ /**
+ * @member {String} UserGroupID
+ */
+ exports.prototype['UserGroupID'] = undefined;
+ /**
+ * @member {String} MessageConfigName
+ */
+ exports.prototype['MessageConfigName'] = undefined;
+ /**
+ * @member {String} MessageConfigDescription
+ */
+ exports.prototype['MessageConfigDescription'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],140:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Meta = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Meta model module.
+ * @module model/Meta
+ */
+
+ /**
+ * Constructs a new Meta
.
+ * @alias module:model/Meta
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Meta
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Meta} obj Optional instance to populate.
+ * @return {module:model/Meta} The populated Meta
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Page')) {
+ obj['Page'] = Sdk.convertToType(data['Page'], 'Number');
+ }
+ if (data.hasOwnProperty('PageSize')) {
+ obj['PageSize'] = Sdk.convertToType(data['PageSize'], 'Number');
+ }
+ if (data.hasOwnProperty('TotalCount')) {
+ obj['TotalCount'] = Sdk.convertToType(data['TotalCount'], 'Number');
+ }
+ if (data.hasOwnProperty('TotalPages')) {
+ obj['TotalPages'] = Sdk.convertToType(data['TotalPages'], 'Number');
+ }
+ if (data.hasOwnProperty('ItemRange')) {
+ obj['ItemRange'] = Sdk.convertToType(data['ItemRange'], ['Number']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Number} Page
+ */
+ exports.prototype['Page'] = undefined;
+ /**
+ * @member {Number} PageSize
+ */
+ exports.prototype['PageSize'] = undefined;
+ /**
+ * @member {Number} TotalCount
+ */
+ exports.prototype['TotalCount'] = undefined;
+ /**
+ * @member {Number} TotalPages
+ */
+ exports.prototype['TotalPages'] = undefined;
+ /**
+ * @member {Array.MetaWithFacets
.
+ * @alias module:model/MetaWithFacets
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a MetaWithFacets
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/MetaWithFacets} obj Optional instance to populate.
+ * @return {module:model/MetaWithFacets} The populated MetaWithFacets
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Facets')) {
+ obj['Facets'] = Sdk.convertToType(data['Facets'], [ListFacet]);
+ }
+ if (data.hasOwnProperty('Page')) {
+ obj['Page'] = Sdk.convertToType(data['Page'], 'Number');
+ }
+ if (data.hasOwnProperty('PageSize')) {
+ obj['PageSize'] = Sdk.convertToType(data['PageSize'], 'Number');
+ }
+ if (data.hasOwnProperty('TotalCount')) {
+ obj['TotalCount'] = Sdk.convertToType(data['TotalCount'], 'Number');
+ }
+ if (data.hasOwnProperty('TotalPages')) {
+ obj['TotalPages'] = Sdk.convertToType(data['TotalPages'], 'Number');
+ }
+ if (data.hasOwnProperty('ItemRange')) {
+ obj['ItemRange'] = Sdk.convertToType(data['ItemRange'], ['Number']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.OpenIdConnect
.
+ * @alias module:model/OpenIdConnect
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a OpenIdConnect
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/OpenIdConnect} obj Optional instance to populate.
+ * @return {module:model/OpenIdConnect} The populated OpenIdConnect
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('OrderCloudApiClientID')) {
+ obj['OrderCloudApiClientID'] = Sdk.convertToType(data['OrderCloudApiClientID'], 'String');
+ }
+ if (data.hasOwnProperty('ConnectClientID')) {
+ obj['ConnectClientID'] = Sdk.convertToType(data['ConnectClientID'], 'String');
+ }
+ if (data.hasOwnProperty('ConnectClientSecret')) {
+ obj['ConnectClientSecret'] = Sdk.convertToType(data['ConnectClientSecret'], 'String');
+ }
+ if (data.hasOwnProperty('AppStartUrl')) {
+ obj['AppStartUrl'] = Sdk.convertToType(data['AppStartUrl'], 'String');
+ }
+ if (data.hasOwnProperty('AuthorizationEndpoint')) {
+ obj['AuthorizationEndpoint'] = Sdk.convertToType(data['AuthorizationEndpoint'], 'String');
+ }
+ if (data.hasOwnProperty('TokenEndpoint')) {
+ obj['TokenEndpoint'] = Sdk.convertToType(data['TokenEndpoint'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} OrderCloudApiClientID
+ */
+ exports.prototype['OrderCloudApiClientID'] = undefined;
+ /**
+ * @member {String} ConnectClientID
+ */
+ exports.prototype['ConnectClientID'] = undefined;
+ /**
+ * @member {String} ConnectClientSecret
+ */
+ exports.prototype['ConnectClientSecret'] = undefined;
+ /**
+ * @member {String} AppStartUrl
+ */
+ exports.prototype['AppStartUrl'] = undefined;
+ /**
+ * @member {String} AuthorizationEndpoint
+ */
+ exports.prototype['AuthorizationEndpoint'] = undefined;
+ /**
+ * @member {String} TokenEndpoint
+ */
+ exports.prototype['TokenEndpoint'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],143:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/Address', 'model/User'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./Address'), require('./User'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Order = factory(root.OrderCloud.Sdk, root.OrderCloud.Address, root.OrderCloud.User);
+ }
+}(this, function(Sdk, Address, User) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Order model module.
+ * @module model/Order
+ */
+
+ /**
+ * Constructs a new Order
.
+ * @alias module:model/Order
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Order
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Order} obj Optional instance to populate.
+ * @return {module:model/Order} The populated Order
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('FromUser')) {
+ obj['FromUser'] = User.constructFromObject(data['FromUser']);
+ }
+ if (data.hasOwnProperty('FromCompanyID')) {
+ obj['FromCompanyID'] = Sdk.convertToType(data['FromCompanyID'], 'String');
+ }
+ if (data.hasOwnProperty('FromUserID')) {
+ obj['FromUserID'] = Sdk.convertToType(data['FromUserID'], 'String');
+ }
+ if (data.hasOwnProperty('BillingAddressID')) {
+ obj['BillingAddressID'] = Sdk.convertToType(data['BillingAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('BillingAddress')) {
+ obj['BillingAddress'] = Address.constructFromObject(data['BillingAddress']);
+ }
+ if (data.hasOwnProperty('ShippingAddressID')) {
+ obj['ShippingAddressID'] = Sdk.convertToType(data['ShippingAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('Comments')) {
+ obj['Comments'] = Sdk.convertToType(data['Comments'], 'String');
+ }
+ if (data.hasOwnProperty('LineItemCount')) {
+ obj['LineItemCount'] = Sdk.convertToType(data['LineItemCount'], 'Number');
+ }
+ if (data.hasOwnProperty('Status')) {
+ obj['Status'] = Sdk.convertToType(data['Status'], 'String');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('DateSubmitted')) {
+ obj['DateSubmitted'] = Sdk.convertToType(data['DateSubmitted'], 'String');
+ }
+ if (data.hasOwnProperty('DateApproved')) {
+ obj['DateApproved'] = Sdk.convertToType(data['DateApproved'], 'String');
+ }
+ if (data.hasOwnProperty('DateDeclined')) {
+ obj['DateDeclined'] = Sdk.convertToType(data['DateDeclined'], 'String');
+ }
+ if (data.hasOwnProperty('DateCanceled')) {
+ obj['DateCanceled'] = Sdk.convertToType(data['DateCanceled'], 'String');
+ }
+ if (data.hasOwnProperty('DateCompleted')) {
+ obj['DateCompleted'] = Sdk.convertToType(data['DateCompleted'], 'String');
+ }
+ if (data.hasOwnProperty('Subtotal')) {
+ obj['Subtotal'] = Sdk.convertToType(data['Subtotal'], 'Number');
+ }
+ if (data.hasOwnProperty('ShippingCost')) {
+ obj['ShippingCost'] = Sdk.convertToType(data['ShippingCost'], 'Number');
+ }
+ if (data.hasOwnProperty('TaxCost')) {
+ obj['TaxCost'] = Sdk.convertToType(data['TaxCost'], 'Number');
+ }
+ if (data.hasOwnProperty('PromotionDiscount')) {
+ obj['PromotionDiscount'] = Sdk.convertToType(data['PromotionDiscount'], 'Number');
+ }
+ if (data.hasOwnProperty('Total')) {
+ obj['Total'] = Sdk.convertToType(data['Total'], 'Number');
+ }
+ if (data.hasOwnProperty('IsSubmitted')) {
+ obj['IsSubmitted'] = Sdk.convertToType(data['IsSubmitted'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {module:model/User} FromUser
+ */
+ exports.prototype['FromUser'] = undefined;
+ /**
+ * @member {String} FromCompanyID
+ */
+ exports.prototype['FromCompanyID'] = undefined;
+ /**
+ * @member {String} FromUserID
+ */
+ exports.prototype['FromUserID'] = undefined;
+ /**
+ * @member {String} BillingAddressID
+ */
+ exports.prototype['BillingAddressID'] = undefined;
+ /**
+ * @member {module:model/Address} BillingAddress
+ */
+ exports.prototype['BillingAddress'] = undefined;
+ /**
+ * @member {String} ShippingAddressID
+ */
+ exports.prototype['ShippingAddressID'] = undefined;
+ /**
+ * @member {String} Comments
+ */
+ exports.prototype['Comments'] = undefined;
+ /**
+ * @member {Number} LineItemCount
+ */
+ exports.prototype['LineItemCount'] = undefined;
+ /**
+ * @member {String} Status
+ */
+ exports.prototype['Status'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} DateSubmitted
+ */
+ exports.prototype['DateSubmitted'] = undefined;
+ /**
+ * @member {String} DateApproved
+ */
+ exports.prototype['DateApproved'] = undefined;
+ /**
+ * @member {String} DateDeclined
+ */
+ exports.prototype['DateDeclined'] = undefined;
+ /**
+ * @member {String} DateCanceled
+ */
+ exports.prototype['DateCanceled'] = undefined;
+ /**
+ * @member {String} DateCompleted
+ */
+ exports.prototype['DateCompleted'] = undefined;
+ /**
+ * @member {Number} Subtotal
+ */
+ exports.prototype['Subtotal'] = undefined;
+ /**
+ * @member {Number} ShippingCost
+ */
+ exports.prototype['ShippingCost'] = undefined;
+ /**
+ * @member {Number} TaxCost
+ */
+ exports.prototype['TaxCost'] = undefined;
+ /**
+ * @member {Number} PromotionDiscount
+ */
+ exports.prototype['PromotionDiscount'] = undefined;
+ /**
+ * @member {Number} Total
+ */
+ exports.prototype['Total'] = undefined;
+ /**
+ * @member {Boolean} IsSubmitted
+ */
+ exports.prototype['IsSubmitted'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12,"./Address":52,"./User":211}],144:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/User'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./User'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.OrderApproval = factory(root.OrderCloud.Sdk, root.OrderCloud.User);
+ }
+}(this, function(Sdk, User) {
+ 'use strict';
+
+
+
+
+ /**
+ * The OrderApproval model module.
+ * @module model/OrderApproval
+ */
+
+ /**
+ * Constructs a new OrderApproval
.
+ * @alias module:model/OrderApproval
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a OrderApproval
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/OrderApproval} obj Optional instance to populate.
+ * @return {module:model/OrderApproval} The populated OrderApproval
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ApprovalRuleID')) {
+ obj['ApprovalRuleID'] = Sdk.convertToType(data['ApprovalRuleID'], 'String');
+ }
+ if (data.hasOwnProperty('ApprovingGroupID')) {
+ obj['ApprovingGroupID'] = Sdk.convertToType(data['ApprovingGroupID'], 'String');
+ }
+ if (data.hasOwnProperty('Status')) {
+ obj['Status'] = Sdk.convertToType(data['Status'], 'String');
+ }
+ if (data.hasOwnProperty('AllowResubmit')) {
+ obj['AllowResubmit'] = Sdk.convertToType(data['AllowResubmit'], 'Boolean');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('DateCompleted')) {
+ obj['DateCompleted'] = Sdk.convertToType(data['DateCompleted'], 'String');
+ }
+ if (data.hasOwnProperty('Approver')) {
+ obj['Approver'] = User.constructFromObject(data['Approver']);
+ }
+ if (data.hasOwnProperty('Comments')) {
+ obj['Comments'] = Sdk.convertToType(data['Comments'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ApprovalRuleID
+ */
+ exports.prototype['ApprovalRuleID'] = undefined;
+ /**
+ * @member {String} ApprovingGroupID
+ */
+ exports.prototype['ApprovingGroupID'] = undefined;
+ /**
+ * @member {String} Status
+ */
+ exports.prototype['Status'] = undefined;
+ /**
+ * @member {Boolean} AllowResubmit
+ */
+ exports.prototype['AllowResubmit'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} DateCompleted
+ */
+ exports.prototype['DateCompleted'] = undefined;
+ /**
+ * @member {module:model/User} Approver
+ */
+ exports.prototype['Approver'] = undefined;
+ /**
+ * @member {String} Comments
+ */
+ exports.prototype['Comments'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12,"./User":211}],145:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.OrderApprovalInfo = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The OrderApprovalInfo model module.
+ * @module model/OrderApprovalInfo
+ */
+
+ /**
+ * Constructs a new OrderApprovalInfo
.
+ * @alias module:model/OrderApprovalInfo
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a OrderApprovalInfo
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/OrderApprovalInfo} obj Optional instance to populate.
+ * @return {module:model/OrderApprovalInfo} The populated OrderApprovalInfo
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Comments')) {
+ obj['Comments'] = Sdk.convertToType(data['Comments'], 'String');
+ }
+ if (data.hasOwnProperty('AllowResubmit')) {
+ obj['AllowResubmit'] = Sdk.convertToType(data['AllowResubmit'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} Comments
+ */
+ exports.prototype['Comments'] = undefined;
+ /**
+ * @member {Boolean} AllowResubmit
+ */
+ exports.prototype['AllowResubmit'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],146:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.OrderPromotion = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The OrderPromotion model module.
+ * @module model/OrderPromotion
+ */
+
+ /**
+ * Constructs a new OrderPromotion
.
+ * @alias module:model/OrderPromotion
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a OrderPromotion
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/OrderPromotion} obj Optional instance to populate.
+ * @return {module:model/OrderPromotion} The populated OrderPromotion
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Amount')) {
+ obj['Amount'] = Sdk.convertToType(data['Amount'], 'Number');
+ }
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Code')) {
+ obj['Code'] = Sdk.convertToType(data['Code'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('RedemptionLimit')) {
+ obj['RedemptionLimit'] = Sdk.convertToType(data['RedemptionLimit'], 'Number');
+ }
+ if (data.hasOwnProperty('RedemptionLimitPerUser')) {
+ obj['RedemptionLimitPerUser'] = Sdk.convertToType(data['RedemptionLimitPerUser'], 'Number');
+ }
+ if (data.hasOwnProperty('RedemptionCount')) {
+ obj['RedemptionCount'] = Sdk.convertToType(data['RedemptionCount'], 'Number');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('FinePrint')) {
+ obj['FinePrint'] = Sdk.convertToType(data['FinePrint'], 'String');
+ }
+ if (data.hasOwnProperty('StartDate')) {
+ obj['StartDate'] = Sdk.convertToType(data['StartDate'], 'String');
+ }
+ if (data.hasOwnProperty('ExpirationDate')) {
+ obj['ExpirationDate'] = Sdk.convertToType(data['ExpirationDate'], 'String');
+ }
+ if (data.hasOwnProperty('EligibleExpression')) {
+ obj['EligibleExpression'] = Sdk.convertToType(data['EligibleExpression'], 'String');
+ }
+ if (data.hasOwnProperty('ValueExpression')) {
+ obj['ValueExpression'] = Sdk.convertToType(data['ValueExpression'], 'String');
+ }
+ if (data.hasOwnProperty('CanCombine')) {
+ obj['CanCombine'] = Sdk.convertToType(data['CanCombine'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Number} Amount
+ */
+ exports.prototype['Amount'] = undefined;
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Code
+ */
+ exports.prototype['Code'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Number} RedemptionLimit
+ */
+ exports.prototype['RedemptionLimit'] = undefined;
+ /**
+ * @member {Number} RedemptionLimitPerUser
+ */
+ exports.prototype['RedemptionLimitPerUser'] = undefined;
+ /**
+ * @member {Number} RedemptionCount
+ */
+ exports.prototype['RedemptionCount'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {String} FinePrint
+ */
+ exports.prototype['FinePrint'] = undefined;
+ /**
+ * @member {String} StartDate
+ */
+ exports.prototype['StartDate'] = undefined;
+ /**
+ * @member {String} ExpirationDate
+ */
+ exports.prototype['ExpirationDate'] = undefined;
+ /**
+ * @member {String} EligibleExpression
+ */
+ exports.prototype['EligibleExpression'] = undefined;
+ /**
+ * @member {String} ValueExpression
+ */
+ exports.prototype['ValueExpression'] = undefined;
+ /**
+ * @member {Boolean} CanCombine
+ */
+ exports.prototype['CanCombine'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],147:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialAddress = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialAddress model module.
+ * @module model/PartialAddress
+ */
+
+ /**
+ * Constructs a new PartialAddress
.
+ * @alias module:model/PartialAddress
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialAddress
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialAddress} obj Optional instance to populate.
+ * @return {module:model/PartialAddress} The populated PartialAddress
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('CompanyName')) {
+ obj['CompanyName'] = Sdk.convertToType(data['CompanyName'], 'String');
+ }
+ if (data.hasOwnProperty('FirstName')) {
+ obj['FirstName'] = Sdk.convertToType(data['FirstName'], 'String');
+ }
+ if (data.hasOwnProperty('LastName')) {
+ obj['LastName'] = Sdk.convertToType(data['LastName'], 'String');
+ }
+ if (data.hasOwnProperty('Street1')) {
+ obj['Street1'] = Sdk.convertToType(data['Street1'], 'String');
+ }
+ if (data.hasOwnProperty('Street2')) {
+ obj['Street2'] = Sdk.convertToType(data['Street2'], 'String');
+ }
+ if (data.hasOwnProperty('City')) {
+ obj['City'] = Sdk.convertToType(data['City'], 'String');
+ }
+ if (data.hasOwnProperty('State')) {
+ obj['State'] = Sdk.convertToType(data['State'], 'String');
+ }
+ if (data.hasOwnProperty('Zip')) {
+ obj['Zip'] = Sdk.convertToType(data['Zip'], 'String');
+ }
+ if (data.hasOwnProperty('Country')) {
+ obj['Country'] = Sdk.convertToType(data['Country'], 'String');
+ }
+ if (data.hasOwnProperty('Phone')) {
+ obj['Phone'] = Sdk.convertToType(data['Phone'], 'String');
+ }
+ if (data.hasOwnProperty('AddressName')) {
+ obj['AddressName'] = Sdk.convertToType(data['AddressName'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} CompanyName
+ */
+ exports.prototype['CompanyName'] = undefined;
+ /**
+ * @member {String} FirstName
+ */
+ exports.prototype['FirstName'] = undefined;
+ /**
+ * @member {String} LastName
+ */
+ exports.prototype['LastName'] = undefined;
+ /**
+ * @member {String} Street1
+ */
+ exports.prototype['Street1'] = undefined;
+ /**
+ * @member {String} Street2
+ */
+ exports.prototype['Street2'] = undefined;
+ /**
+ * @member {String} City
+ */
+ exports.prototype['City'] = undefined;
+ /**
+ * @member {String} State
+ */
+ exports.prototype['State'] = undefined;
+ /**
+ * @member {String} Zip
+ */
+ exports.prototype['Zip'] = undefined;
+ /**
+ * @member {String} Country
+ */
+ exports.prototype['Country'] = undefined;
+ /**
+ * @member {String} Phone
+ */
+ exports.prototype['Phone'] = undefined;
+ /**
+ * @member {String} AddressName
+ */
+ exports.prototype['AddressName'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],148:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialApiClient = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialApiClient model module.
+ * @module model/PartialApiClient
+ */
+
+ /**
+ * Constructs a new PartialApiClient
.
+ * @alias module:model/PartialApiClient
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialApiClient
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialApiClient} obj Optional instance to populate.
+ * @return {module:model/PartialApiClient} The populated PartialApiClient
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('ClientSecret')) {
+ obj['ClientSecret'] = Sdk.convertToType(data['ClientSecret'], 'String');
+ }
+ if (data.hasOwnProperty('AccessTokenDuration')) {
+ obj['AccessTokenDuration'] = Sdk.convertToType(data['AccessTokenDuration'], 'Number');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('AppName')) {
+ obj['AppName'] = Sdk.convertToType(data['AppName'], 'String');
+ }
+ if (data.hasOwnProperty('RefreshTokenDuration')) {
+ obj['RefreshTokenDuration'] = Sdk.convertToType(data['RefreshTokenDuration'], 'Number');
+ }
+ if (data.hasOwnProperty('DefaultContextUserName')) {
+ obj['DefaultContextUserName'] = Sdk.convertToType(data['DefaultContextUserName'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('AllowAnyBuyer')) {
+ obj['AllowAnyBuyer'] = Sdk.convertToType(data['AllowAnyBuyer'], 'Boolean');
+ }
+ if (data.hasOwnProperty('AllowAnySupplier')) {
+ obj['AllowAnySupplier'] = Sdk.convertToType(data['AllowAnySupplier'], 'Boolean');
+ }
+ if (data.hasOwnProperty('AllowSeller')) {
+ obj['AllowSeller'] = Sdk.convertToType(data['AllowSeller'], 'Boolean');
+ }
+ if (data.hasOwnProperty('IsAnonBuyer')) {
+ obj['IsAnonBuyer'] = Sdk.convertToType(data['IsAnonBuyer'], 'Boolean');
+ }
+ if (data.hasOwnProperty('AssignedBuyerCount')) {
+ obj['AssignedBuyerCount'] = Sdk.convertToType(data['AssignedBuyerCount'], 'Number');
+ }
+ if (data.hasOwnProperty('AssignedSupplierCount')) {
+ obj['AssignedSupplierCount'] = Sdk.convertToType(data['AssignedSupplierCount'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} ClientSecret
+ */
+ exports.prototype['ClientSecret'] = undefined;
+ /**
+ * @member {Number} AccessTokenDuration
+ */
+ exports.prototype['AccessTokenDuration'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {String} AppName
+ */
+ exports.prototype['AppName'] = undefined;
+ /**
+ * @member {Number} RefreshTokenDuration
+ */
+ exports.prototype['RefreshTokenDuration'] = undefined;
+ /**
+ * @member {String} DefaultContextUserName
+ */
+ exports.prototype['DefaultContextUserName'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {Boolean} AllowAnyBuyer
+ */
+ exports.prototype['AllowAnyBuyer'] = undefined;
+ /**
+ * @member {Boolean} AllowAnySupplier
+ */
+ exports.prototype['AllowAnySupplier'] = undefined;
+ /**
+ * @member {Boolean} AllowSeller
+ */
+ exports.prototype['AllowSeller'] = undefined;
+ /**
+ * @member {Boolean} IsAnonBuyer
+ */
+ exports.prototype['IsAnonBuyer'] = undefined;
+ /**
+ * @member {Number} AssignedBuyerCount
+ */
+ exports.prototype['AssignedBuyerCount'] = undefined;
+ /**
+ * @member {Number} AssignedSupplierCount
+ */
+ exports.prototype['AssignedSupplierCount'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],149:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialApprovalRule = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialApprovalRule model module.
+ * @module model/PartialApprovalRule
+ */
+
+ /**
+ * Constructs a new PartialApprovalRule
.
+ * @alias module:model/PartialApprovalRule
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialApprovalRule
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialApprovalRule} obj Optional instance to populate.
+ * @return {module:model/PartialApprovalRule} The populated PartialApprovalRule
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('ApprovingGroupID')) {
+ obj['ApprovingGroupID'] = Sdk.convertToType(data['ApprovingGroupID'], 'String');
+ }
+ if (data.hasOwnProperty('RuleExpression')) {
+ obj['RuleExpression'] = Sdk.convertToType(data['RuleExpression'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {String} ApprovingGroupID
+ */
+ exports.prototype['ApprovingGroupID'] = undefined;
+ /**
+ * @member {String} RuleExpression
+ */
+ exports.prototype['RuleExpression'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],150:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialBuyer = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialBuyer model module.
+ * @module model/PartialBuyer
+ */
+
+ /**
+ * Constructs a new PartialBuyer
.
+ * @alias module:model/PartialBuyer
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialBuyer
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialBuyer} obj Optional instance to populate.
+ * @return {module:model/PartialBuyer} The populated PartialBuyer
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('DefaultCatalogID')) {
+ obj['DefaultCatalogID'] = Sdk.convertToType(data['DefaultCatalogID'], 'String');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} DefaultCatalogID
+ */
+ exports.prototype['DefaultCatalogID'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],151:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialBuyerAddress = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialBuyerAddress model module.
+ * @module model/PartialBuyerAddress
+ */
+
+ /**
+ * Constructs a new PartialBuyerAddress
.
+ * @alias module:model/PartialBuyerAddress
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialBuyerAddress
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialBuyerAddress} obj Optional instance to populate.
+ * @return {module:model/PartialBuyerAddress} The populated PartialBuyerAddress
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Shipping')) {
+ obj['Shipping'] = Sdk.convertToType(data['Shipping'], 'Boolean');
+ }
+ if (data.hasOwnProperty('Billing')) {
+ obj['Billing'] = Sdk.convertToType(data['Billing'], 'Boolean');
+ }
+ if (data.hasOwnProperty('Editable')) {
+ obj['Editable'] = Sdk.convertToType(data['Editable'], 'Boolean');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('CompanyName')) {
+ obj['CompanyName'] = Sdk.convertToType(data['CompanyName'], 'String');
+ }
+ if (data.hasOwnProperty('FirstName')) {
+ obj['FirstName'] = Sdk.convertToType(data['FirstName'], 'String');
+ }
+ if (data.hasOwnProperty('LastName')) {
+ obj['LastName'] = Sdk.convertToType(data['LastName'], 'String');
+ }
+ if (data.hasOwnProperty('Street1')) {
+ obj['Street1'] = Sdk.convertToType(data['Street1'], 'String');
+ }
+ if (data.hasOwnProperty('Street2')) {
+ obj['Street2'] = Sdk.convertToType(data['Street2'], 'String');
+ }
+ if (data.hasOwnProperty('City')) {
+ obj['City'] = Sdk.convertToType(data['City'], 'String');
+ }
+ if (data.hasOwnProperty('State')) {
+ obj['State'] = Sdk.convertToType(data['State'], 'String');
+ }
+ if (data.hasOwnProperty('Zip')) {
+ obj['Zip'] = Sdk.convertToType(data['Zip'], 'String');
+ }
+ if (data.hasOwnProperty('Country')) {
+ obj['Country'] = Sdk.convertToType(data['Country'], 'String');
+ }
+ if (data.hasOwnProperty('Phone')) {
+ obj['Phone'] = Sdk.convertToType(data['Phone'], 'String');
+ }
+ if (data.hasOwnProperty('AddressName')) {
+ obj['AddressName'] = Sdk.convertToType(data['AddressName'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {Boolean} Shipping
+ */
+ exports.prototype['Shipping'] = undefined;
+ /**
+ * @member {Boolean} Billing
+ */
+ exports.prototype['Billing'] = undefined;
+ /**
+ * @member {Boolean} Editable
+ */
+ exports.prototype['Editable'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} CompanyName
+ */
+ exports.prototype['CompanyName'] = undefined;
+ /**
+ * @member {String} FirstName
+ */
+ exports.prototype['FirstName'] = undefined;
+ /**
+ * @member {String} LastName
+ */
+ exports.prototype['LastName'] = undefined;
+ /**
+ * @member {String} Street1
+ */
+ exports.prototype['Street1'] = undefined;
+ /**
+ * @member {String} Street2
+ */
+ exports.prototype['Street2'] = undefined;
+ /**
+ * @member {String} City
+ */
+ exports.prototype['City'] = undefined;
+ /**
+ * @member {String} State
+ */
+ exports.prototype['State'] = undefined;
+ /**
+ * @member {String} Zip
+ */
+ exports.prototype['Zip'] = undefined;
+ /**
+ * @member {String} Country
+ */
+ exports.prototype['Country'] = undefined;
+ /**
+ * @member {String} Phone
+ */
+ exports.prototype['Phone'] = undefined;
+ /**
+ * @member {String} AddressName
+ */
+ exports.prototype['AddressName'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],152:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialBuyerCreditCard = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialBuyerCreditCard model module.
+ * @module model/PartialBuyerCreditCard
+ */
+
+ /**
+ * Constructs a new PartialBuyerCreditCard
.
+ * @alias module:model/PartialBuyerCreditCard
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialBuyerCreditCard
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialBuyerCreditCard} obj Optional instance to populate.
+ * @return {module:model/PartialBuyerCreditCard} The populated PartialBuyerCreditCard
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Editable')) {
+ obj['Editable'] = Sdk.convertToType(data['Editable'], 'Boolean');
+ }
+ if (data.hasOwnProperty('Token')) {
+ obj['Token'] = Sdk.convertToType(data['Token'], 'String');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('CardType')) {
+ obj['CardType'] = Sdk.convertToType(data['CardType'], 'String');
+ }
+ if (data.hasOwnProperty('PartialAccountNumber')) {
+ obj['PartialAccountNumber'] = Sdk.convertToType(data['PartialAccountNumber'], 'String');
+ }
+ if (data.hasOwnProperty('CardholderName')) {
+ obj['CardholderName'] = Sdk.convertToType(data['CardholderName'], 'String');
+ }
+ if (data.hasOwnProperty('ExpirationDate')) {
+ obj['ExpirationDate'] = Sdk.convertToType(data['ExpirationDate'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {Boolean} Editable
+ */
+ exports.prototype['Editable'] = undefined;
+ /**
+ * @member {String} Token
+ */
+ exports.prototype['Token'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} CardType
+ */
+ exports.prototype['CardType'] = undefined;
+ /**
+ * @member {String} PartialAccountNumber
+ */
+ exports.prototype['PartialAccountNumber'] = undefined;
+ /**
+ * @member {String} CardholderName
+ */
+ exports.prototype['CardholderName'] = undefined;
+ /**
+ * @member {String} ExpirationDate
+ */
+ exports.prototype['ExpirationDate'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],153:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialCatalog = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialCatalog model module.
+ * @module model/PartialCatalog
+ */
+
+ /**
+ * Constructs a new PartialCatalog
.
+ * @alias module:model/PartialCatalog
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialCatalog
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialCatalog} obj Optional instance to populate.
+ * @return {module:model/PartialCatalog} The populated PartialCatalog
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('CategoryCount')) {
+ obj['CategoryCount'] = Sdk.convertToType(data['CategoryCount'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Number} CategoryCount
+ */
+ exports.prototype['CategoryCount'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],154:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialCategory = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialCategory model module.
+ * @module model/PartialCategory
+ */
+
+ /**
+ * Constructs a new PartialCategory
.
+ * @alias module:model/PartialCategory
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialCategory
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialCategory} obj Optional instance to populate.
+ * @return {module:model/PartialCategory} The populated PartialCategory
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('ListOrder')) {
+ obj['ListOrder'] = Sdk.convertToType(data['ListOrder'], 'Number');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ParentID')) {
+ obj['ParentID'] = Sdk.convertToType(data['ParentID'], 'String');
+ }
+ if (data.hasOwnProperty('ChildCount')) {
+ obj['ChildCount'] = Sdk.convertToType(data['ChildCount'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Number} ListOrder
+ */
+ exports.prototype['ListOrder'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {String} ParentID
+ */
+ exports.prototype['ParentID'] = undefined;
+ /**
+ * @member {Number} ChildCount
+ */
+ exports.prototype['ChildCount'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],155:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialCostCenter = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialCostCenter model module.
+ * @module model/PartialCostCenter
+ */
+
+ /**
+ * Constructs a new PartialCostCenter
.
+ * @alias module:model/PartialCostCenter
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialCostCenter
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialCostCenter} obj Optional instance to populate.
+ * @return {module:model/PartialCostCenter} The populated PartialCostCenter
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],156:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialCreditCard = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialCreditCard model module.
+ * @module model/PartialCreditCard
+ */
+
+ /**
+ * Constructs a new PartialCreditCard
.
+ * @alias module:model/PartialCreditCard
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialCreditCard
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialCreditCard} obj Optional instance to populate.
+ * @return {module:model/PartialCreditCard} The populated PartialCreditCard
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Token')) {
+ obj['Token'] = Sdk.convertToType(data['Token'], 'String');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('CardType')) {
+ obj['CardType'] = Sdk.convertToType(data['CardType'], 'String');
+ }
+ if (data.hasOwnProperty('PartialAccountNumber')) {
+ obj['PartialAccountNumber'] = Sdk.convertToType(data['PartialAccountNumber'], 'String');
+ }
+ if (data.hasOwnProperty('CardholderName')) {
+ obj['CardholderName'] = Sdk.convertToType(data['CardholderName'], 'String');
+ }
+ if (data.hasOwnProperty('ExpirationDate')) {
+ obj['ExpirationDate'] = Sdk.convertToType(data['ExpirationDate'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Token
+ */
+ exports.prototype['Token'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} CardType
+ */
+ exports.prototype['CardType'] = undefined;
+ /**
+ * @member {String} PartialAccountNumber
+ */
+ exports.prototype['PartialAccountNumber'] = undefined;
+ /**
+ * @member {String} CardholderName
+ */
+ exports.prototype['CardholderName'] = undefined;
+ /**
+ * @member {String} ExpirationDate
+ */
+ exports.prototype['ExpirationDate'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],157:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialImpersonationConfig = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialImpersonationConfig model module.
+ * @module model/PartialImpersonationConfig
+ */
+
+ /**
+ * Constructs a new PartialImpersonationConfig
.
+ * @alias module:model/PartialImpersonationConfig
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialImpersonationConfig
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialImpersonationConfig} obj Optional instance to populate.
+ * @return {module:model/PartialImpersonationConfig} The populated PartialImpersonationConfig
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('ImpersonationBuyerID')) {
+ obj['ImpersonationBuyerID'] = Sdk.convertToType(data['ImpersonationBuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('ImpersonationGroupID')) {
+ obj['ImpersonationGroupID'] = Sdk.convertToType(data['ImpersonationGroupID'], 'String');
+ }
+ if (data.hasOwnProperty('ImpersonationUserID')) {
+ obj['ImpersonationUserID'] = Sdk.convertToType(data['ImpersonationUserID'], 'String');
+ }
+ if (data.hasOwnProperty('BuyerID')) {
+ obj['BuyerID'] = Sdk.convertToType(data['BuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('GroupID')) {
+ obj['GroupID'] = Sdk.convertToType(data['GroupID'], 'String');
+ }
+ if (data.hasOwnProperty('UserID')) {
+ obj['UserID'] = Sdk.convertToType(data['UserID'], 'String');
+ }
+ if (data.hasOwnProperty('SecurityProfileID')) {
+ obj['SecurityProfileID'] = Sdk.convertToType(data['SecurityProfileID'], 'String');
+ }
+ if (data.hasOwnProperty('ClientID')) {
+ obj['ClientID'] = Sdk.convertToType(data['ClientID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} ImpersonationBuyerID
+ */
+ exports.prototype['ImpersonationBuyerID'] = undefined;
+ /**
+ * @member {String} ImpersonationGroupID
+ */
+ exports.prototype['ImpersonationGroupID'] = undefined;
+ /**
+ * @member {String} ImpersonationUserID
+ */
+ exports.prototype['ImpersonationUserID'] = undefined;
+ /**
+ * @member {String} BuyerID
+ */
+ exports.prototype['BuyerID'] = undefined;
+ /**
+ * @member {String} GroupID
+ */
+ exports.prototype['GroupID'] = undefined;
+ /**
+ * @member {String} UserID
+ */
+ exports.prototype['UserID'] = undefined;
+ /**
+ * @member {String} SecurityProfileID
+ */
+ exports.prototype['SecurityProfileID'] = undefined;
+ /**
+ * @member {String} ClientID
+ */
+ exports.prototype['ClientID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],158:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialIncrementor = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialIncrementor model module.
+ * @module model/PartialIncrementor
+ */
+
+ /**
+ * Constructs a new PartialIncrementor
.
+ * @alias module:model/PartialIncrementor
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialIncrementor
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialIncrementor} obj Optional instance to populate.
+ * @return {module:model/PartialIncrementor} The populated PartialIncrementor
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('LastNumber')) {
+ obj['LastNumber'] = Sdk.convertToType(data['LastNumber'], 'Number');
+ }
+ if (data.hasOwnProperty('LeftPaddingCount')) {
+ obj['LeftPaddingCount'] = Sdk.convertToType(data['LeftPaddingCount'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Number} LastNumber
+ */
+ exports.prototype['LastNumber'] = undefined;
+ /**
+ * @member {Number} LeftPaddingCount
+ */
+ exports.prototype['LeftPaddingCount'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],159:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialInventory = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialInventory model module.
+ * @module model/PartialInventory
+ */
+
+ /**
+ * Constructs a new PartialInventory
.
+ * @alias module:model/PartialInventory
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialInventory
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialInventory} obj Optional instance to populate.
+ * @return {module:model/PartialInventory} The populated PartialInventory
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Enabled')) {
+ obj['Enabled'] = Sdk.convertToType(data['Enabled'], 'Boolean');
+ }
+ if (data.hasOwnProperty('NotificationPoint')) {
+ obj['NotificationPoint'] = Sdk.convertToType(data['NotificationPoint'], 'Number');
+ }
+ if (data.hasOwnProperty('VariantLevelTracking')) {
+ obj['VariantLevelTracking'] = Sdk.convertToType(data['VariantLevelTracking'], 'Boolean');
+ }
+ if (data.hasOwnProperty('OrderCanExceed')) {
+ obj['OrderCanExceed'] = Sdk.convertToType(data['OrderCanExceed'], 'Boolean');
+ }
+ if (data.hasOwnProperty('QuantityAvailable')) {
+ obj['QuantityAvailable'] = Sdk.convertToType(data['QuantityAvailable'], 'Number');
+ }
+ if (data.hasOwnProperty('LastUpdated')) {
+ obj['LastUpdated'] = Sdk.convertToType(data['LastUpdated'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Boolean} Enabled
+ */
+ exports.prototype['Enabled'] = undefined;
+ /**
+ * @member {Number} NotificationPoint
+ */
+ exports.prototype['NotificationPoint'] = undefined;
+ /**
+ * @member {Boolean} VariantLevelTracking
+ */
+ exports.prototype['VariantLevelTracking'] = undefined;
+ /**
+ * @member {Boolean} OrderCanExceed
+ */
+ exports.prototype['OrderCanExceed'] = undefined;
+ /**
+ * @member {Number} QuantityAvailable
+ */
+ exports.prototype['QuantityAvailable'] = undefined;
+ /**
+ * @member {String} LastUpdated
+ */
+ exports.prototype['LastUpdated'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],160:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/Address', 'model/LineItemProduct', 'model/LineItemSpec', 'model/LineItemVariant'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./Address'), require('./LineItemProduct'), require('./LineItemSpec'), require('./LineItemVariant'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialLineItem = factory(root.OrderCloud.Sdk, root.OrderCloud.Address, root.OrderCloud.LineItemProduct, root.OrderCloud.LineItemSpec, root.OrderCloud.LineItemVariant);
+ }
+}(this, function(Sdk, Address, LineItemProduct, LineItemSpec, LineItemVariant) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialLineItem model module.
+ * @module model/PartialLineItem
+ */
+
+ /**
+ * Constructs a new PartialLineItem
.
+ * @alias module:model/PartialLineItem
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialLineItem
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialLineItem} obj Optional instance to populate.
+ * @return {module:model/PartialLineItem} The populated PartialLineItem
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('ProductID')) {
+ obj['ProductID'] = Sdk.convertToType(data['ProductID'], 'String');
+ }
+ if (data.hasOwnProperty('Quantity')) {
+ obj['Quantity'] = Sdk.convertToType(data['Quantity'], 'Number');
+ }
+ if (data.hasOwnProperty('DateAdded')) {
+ obj['DateAdded'] = Sdk.convertToType(data['DateAdded'], 'String');
+ }
+ if (data.hasOwnProperty('QuantityShipped')) {
+ obj['QuantityShipped'] = Sdk.convertToType(data['QuantityShipped'], 'Number');
+ }
+ if (data.hasOwnProperty('UnitPrice')) {
+ obj['UnitPrice'] = Sdk.convertToType(data['UnitPrice'], 'Number');
+ }
+ if (data.hasOwnProperty('LineTotal')) {
+ obj['LineTotal'] = Sdk.convertToType(data['LineTotal'], 'Number');
+ }
+ if (data.hasOwnProperty('CostCenter')) {
+ obj['CostCenter'] = Sdk.convertToType(data['CostCenter'], 'String');
+ }
+ if (data.hasOwnProperty('DateNeeded')) {
+ obj['DateNeeded'] = Sdk.convertToType(data['DateNeeded'], 'String');
+ }
+ if (data.hasOwnProperty('ShippingAccount')) {
+ obj['ShippingAccount'] = Sdk.convertToType(data['ShippingAccount'], 'String');
+ }
+ if (data.hasOwnProperty('ShippingAddressID')) {
+ obj['ShippingAddressID'] = Sdk.convertToType(data['ShippingAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('ShipFromAddressID')) {
+ obj['ShipFromAddressID'] = Sdk.convertToType(data['ShipFromAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('Product')) {
+ obj['Product'] = LineItemProduct.constructFromObject(data['Product']);
+ }
+ if (data.hasOwnProperty('Variant')) {
+ obj['Variant'] = LineItemVariant.constructFromObject(data['Variant']);
+ }
+ if (data.hasOwnProperty('ShippingAddress')) {
+ obj['ShippingAddress'] = Address.constructFromObject(data['ShippingAddress']);
+ }
+ if (data.hasOwnProperty('ShipFromAddress')) {
+ obj['ShipFromAddress'] = Address.constructFromObject(data['ShipFromAddress']);
+ }
+ if (data.hasOwnProperty('SupplierID')) {
+ obj['SupplierID'] = Sdk.convertToType(data['SupplierID'], 'String');
+ }
+ if (data.hasOwnProperty('Specs')) {
+ obj['Specs'] = Sdk.convertToType(data['Specs'], [LineItemSpec]);
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} ProductID
+ */
+ exports.prototype['ProductID'] = undefined;
+ /**
+ * @member {Number} Quantity
+ */
+ exports.prototype['Quantity'] = undefined;
+ /**
+ * @member {String} DateAdded
+ */
+ exports.prototype['DateAdded'] = undefined;
+ /**
+ * @member {Number} QuantityShipped
+ */
+ exports.prototype['QuantityShipped'] = undefined;
+ /**
+ * @member {Number} UnitPrice
+ */
+ exports.prototype['UnitPrice'] = undefined;
+ /**
+ * @member {Number} LineTotal
+ */
+ exports.prototype['LineTotal'] = undefined;
+ /**
+ * @member {String} CostCenter
+ */
+ exports.prototype['CostCenter'] = undefined;
+ /**
+ * @member {String} DateNeeded
+ */
+ exports.prototype['DateNeeded'] = undefined;
+ /**
+ * @member {String} ShippingAccount
+ */
+ exports.prototype['ShippingAccount'] = undefined;
+ /**
+ * @member {String} ShippingAddressID
+ */
+ exports.prototype['ShippingAddressID'] = undefined;
+ /**
+ * @member {String} ShipFromAddressID
+ */
+ exports.prototype['ShipFromAddressID'] = undefined;
+ /**
+ * @member {module:model/LineItemProduct} Product
+ */
+ exports.prototype['Product'] = undefined;
+ /**
+ * @member {module:model/LineItemVariant} Variant
+ */
+ exports.prototype['Variant'] = undefined;
+ /**
+ * @member {module:model/Address} ShippingAddress
+ */
+ exports.prototype['ShippingAddress'] = undefined;
+ /**
+ * @member {module:model/Address} ShipFromAddress
+ */
+ exports.prototype['ShipFromAddress'] = undefined;
+ /**
+ * @member {String} SupplierID
+ */
+ exports.prototype['SupplierID'] = undefined;
+ /**
+ * @member {Array.PartialLineItemProduct
.
+ * @alias module:model/PartialLineItemProduct
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialLineItemProduct
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialLineItemProduct} obj Optional instance to populate.
+ * @return {module:model/PartialLineItemProduct} The populated PartialLineItemProduct
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('QuantityMultiplier')) {
+ obj['QuantityMultiplier'] = Sdk.convertToType(data['QuantityMultiplier'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWeight')) {
+ obj['ShipWeight'] = Sdk.convertToType(data['ShipWeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipHeight')) {
+ obj['ShipHeight'] = Sdk.convertToType(data['ShipHeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWidth')) {
+ obj['ShipWidth'] = Sdk.convertToType(data['ShipWidth'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipLength')) {
+ obj['ShipLength'] = Sdk.convertToType(data['ShipLength'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Number} QuantityMultiplier
+ */
+ exports.prototype['QuantityMultiplier'] = undefined;
+ /**
+ * @member {Number} ShipWeight
+ */
+ exports.prototype['ShipWeight'] = undefined;
+ /**
+ * @member {Number} ShipHeight
+ */
+ exports.prototype['ShipHeight'] = undefined;
+ /**
+ * @member {Number} ShipWidth
+ */
+ exports.prototype['ShipWidth'] = undefined;
+ /**
+ * @member {Number} ShipLength
+ */
+ exports.prototype['ShipLength'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],162:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialLineItemSpec = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialLineItemSpec model module.
+ * @module model/PartialLineItemSpec
+ */
+
+ /**
+ * Constructs a new PartialLineItemSpec
.
+ * @alias module:model/PartialLineItemSpec
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialLineItemSpec
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialLineItemSpec} obj Optional instance to populate.
+ * @return {module:model/PartialLineItemSpec} The populated PartialLineItemSpec
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('SpecID')) {
+ obj['SpecID'] = Sdk.convertToType(data['SpecID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('OptionID')) {
+ obj['OptionID'] = Sdk.convertToType(data['OptionID'], 'String');
+ }
+ if (data.hasOwnProperty('Value')) {
+ obj['Value'] = Sdk.convertToType(data['Value'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} SpecID
+ */
+ exports.prototype['SpecID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} OptionID
+ */
+ exports.prototype['OptionID'] = undefined;
+ /**
+ * @member {String} Value
+ */
+ exports.prototype['Value'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],163:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialLineItemVariant = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialLineItemVariant model module.
+ * @module model/PartialLineItemVariant
+ */
+
+ /**
+ * Constructs a new PartialLineItemVariant
.
+ * @alias module:model/PartialLineItemVariant
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialLineItemVariant
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialLineItemVariant} obj Optional instance to populate.
+ * @return {module:model/PartialLineItemVariant} The populated PartialLineItemVariant
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('ShipWeight')) {
+ obj['ShipWeight'] = Sdk.convertToType(data['ShipWeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipHeight')) {
+ obj['ShipHeight'] = Sdk.convertToType(data['ShipHeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWidth')) {
+ obj['ShipWidth'] = Sdk.convertToType(data['ShipWidth'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipLength')) {
+ obj['ShipLength'] = Sdk.convertToType(data['ShipLength'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Number} ShipWeight
+ */
+ exports.prototype['ShipWeight'] = undefined;
+ /**
+ * @member {Number} ShipHeight
+ */
+ exports.prototype['ShipHeight'] = undefined;
+ /**
+ * @member {Number} ShipWidth
+ */
+ exports.prototype['ShipWidth'] = undefined;
+ /**
+ * @member {Number} ShipLength
+ */
+ exports.prototype['ShipLength'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],164:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialMeBuyer = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialMeBuyer model module.
+ * @module model/PartialMeBuyer
+ */
+
+ /**
+ * Constructs a new PartialMeBuyer
.
+ * @alias module:model/PartialMeBuyer
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a PartialMeBuyer
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialMeBuyer} obj Optional instance to populate.
+ * @return {module:model/PartialMeBuyer} The populated PartialMeBuyer
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('DefaultCatalogID')) {
+ obj['DefaultCatalogID'] = Sdk.convertToType(data['DefaultCatalogID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} DefaultCatalogID
+ */
+ exports.prototype['DefaultCatalogID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],165:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialMeSupplier = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialMeSupplier model module.
+ * @module model/PartialMeSupplier
+ */
+
+ /**
+ * Constructs a new PartialMeSupplier
.
+ * @alias module:model/PartialMeSupplier
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+ };
+
+ /**
+ * Constructs a PartialMeSupplier
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialMeSupplier} obj Optional instance to populate.
+ * @return {module:model/PartialMeSupplier} The populated PartialMeSupplier
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],166:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/MeBuyer', 'model/MeSupplier'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./MeBuyer'), require('./MeSupplier'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialMeUser = factory(root.OrderCloud.Sdk, root.OrderCloud.MeBuyer, root.OrderCloud.MeSupplier);
+ }
+}(this, function(Sdk, MeBuyer, MeSupplier) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialMeUser model module.
+ * @module model/PartialMeUser
+ */
+
+ /**
+ * Constructs a new PartialMeUser
.
+ * @alias module:model/PartialMeUser
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialMeUser
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialMeUser} obj Optional instance to populate.
+ * @return {module:model/PartialMeUser} The populated PartialMeUser
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Buyer')) {
+ obj['Buyer'] = MeBuyer.constructFromObject(data['Buyer']);
+ }
+ if (data.hasOwnProperty('Supplier')) {
+ obj['Supplier'] = MeSupplier.constructFromObject(data['Supplier']);
+ }
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Username')) {
+ obj['Username'] = Sdk.convertToType(data['Username'], 'String');
+ }
+ if (data.hasOwnProperty('Password')) {
+ obj['Password'] = Sdk.convertToType(data['Password'], 'String');
+ }
+ if (data.hasOwnProperty('FirstName')) {
+ obj['FirstName'] = Sdk.convertToType(data['FirstName'], 'String');
+ }
+ if (data.hasOwnProperty('LastName')) {
+ obj['LastName'] = Sdk.convertToType(data['LastName'], 'String');
+ }
+ if (data.hasOwnProperty('Email')) {
+ obj['Email'] = Sdk.convertToType(data['Email'], 'String');
+ }
+ if (data.hasOwnProperty('Phone')) {
+ obj['Phone'] = Sdk.convertToType(data['Phone'], 'String');
+ }
+ if (data.hasOwnProperty('TermsAccepted')) {
+ obj['TermsAccepted'] = Sdk.convertToType(data['TermsAccepted'], 'String');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('AvailableRoles')) {
+ obj['AvailableRoles'] = Sdk.convertToType(data['AvailableRoles'], ['String']);
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {module:model/MeBuyer} Buyer
+ */
+ exports.prototype['Buyer'] = undefined;
+ /**
+ * @member {module:model/MeSupplier} Supplier
+ */
+ exports.prototype['Supplier'] = undefined;
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Username
+ */
+ exports.prototype['Username'] = undefined;
+ /**
+ * @member {String} Password
+ */
+ exports.prototype['Password'] = undefined;
+ /**
+ * @member {String} FirstName
+ */
+ exports.prototype['FirstName'] = undefined;
+ /**
+ * @member {String} LastName
+ */
+ exports.prototype['LastName'] = undefined;
+ /**
+ * @member {String} Email
+ */
+ exports.prototype['Email'] = undefined;
+ /**
+ * @member {String} Phone
+ */
+ exports.prototype['Phone'] = undefined;
+ /**
+ * @member {String} TermsAccepted
+ */
+ exports.prototype['TermsAccepted'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {Array.PartialMessageSender
.
+ * @alias module:model/PartialMessageSender
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialMessageSender
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialMessageSender} obj Optional instance to populate.
+ * @return {module:model/PartialMessageSender} The populated PartialMessageSender
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('MessageTypes')) {
+ obj['MessageTypes'] = Sdk.convertToType(data['MessageTypes'], ['String']);
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('URL')) {
+ obj['URL'] = Sdk.convertToType(data['URL'], 'String');
+ }
+ if (data.hasOwnProperty('ElevatedRoles')) {
+ obj['ElevatedRoles'] = Sdk.convertToType(data['ElevatedRoles'], ['String']);
+ }
+ if (data.hasOwnProperty('SharedKey')) {
+ obj['SharedKey'] = Sdk.convertToType(data['SharedKey'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Array.PartialOpenIdConnect
.
+ * @alias module:model/PartialOpenIdConnect
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialOpenIdConnect
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialOpenIdConnect} obj Optional instance to populate.
+ * @return {module:model/PartialOpenIdConnect} The populated PartialOpenIdConnect
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('OrderCloudApiClientID')) {
+ obj['OrderCloudApiClientID'] = Sdk.convertToType(data['OrderCloudApiClientID'], 'String');
+ }
+ if (data.hasOwnProperty('ConnectClientID')) {
+ obj['ConnectClientID'] = Sdk.convertToType(data['ConnectClientID'], 'String');
+ }
+ if (data.hasOwnProperty('ConnectClientSecret')) {
+ obj['ConnectClientSecret'] = Sdk.convertToType(data['ConnectClientSecret'], 'String');
+ }
+ if (data.hasOwnProperty('AppStartUrl')) {
+ obj['AppStartUrl'] = Sdk.convertToType(data['AppStartUrl'], 'String');
+ }
+ if (data.hasOwnProperty('AuthorizationEndpoint')) {
+ obj['AuthorizationEndpoint'] = Sdk.convertToType(data['AuthorizationEndpoint'], 'String');
+ }
+ if (data.hasOwnProperty('TokenEndpoint')) {
+ obj['TokenEndpoint'] = Sdk.convertToType(data['TokenEndpoint'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} OrderCloudApiClientID
+ */
+ exports.prototype['OrderCloudApiClientID'] = undefined;
+ /**
+ * @member {String} ConnectClientID
+ */
+ exports.prototype['ConnectClientID'] = undefined;
+ /**
+ * @member {String} ConnectClientSecret
+ */
+ exports.prototype['ConnectClientSecret'] = undefined;
+ /**
+ * @member {String} AppStartUrl
+ */
+ exports.prototype['AppStartUrl'] = undefined;
+ /**
+ * @member {String} AuthorizationEndpoint
+ */
+ exports.prototype['AuthorizationEndpoint'] = undefined;
+ /**
+ * @member {String} TokenEndpoint
+ */
+ exports.prototype['TokenEndpoint'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],169:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/Address', 'model/User'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./Address'), require('./User'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialOrder = factory(root.OrderCloud.Sdk, root.OrderCloud.Address, root.OrderCloud.User);
+ }
+}(this, function(Sdk, Address, User) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialOrder model module.
+ * @module model/PartialOrder
+ */
+
+ /**
+ * Constructs a new PartialOrder
.
+ * @alias module:model/PartialOrder
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialOrder
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialOrder} obj Optional instance to populate.
+ * @return {module:model/PartialOrder} The populated PartialOrder
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('FromUser')) {
+ obj['FromUser'] = User.constructFromObject(data['FromUser']);
+ }
+ if (data.hasOwnProperty('FromCompanyID')) {
+ obj['FromCompanyID'] = Sdk.convertToType(data['FromCompanyID'], 'String');
+ }
+ if (data.hasOwnProperty('FromUserID')) {
+ obj['FromUserID'] = Sdk.convertToType(data['FromUserID'], 'String');
+ }
+ if (data.hasOwnProperty('BillingAddressID')) {
+ obj['BillingAddressID'] = Sdk.convertToType(data['BillingAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('BillingAddress')) {
+ obj['BillingAddress'] = Address.constructFromObject(data['BillingAddress']);
+ }
+ if (data.hasOwnProperty('ShippingAddressID')) {
+ obj['ShippingAddressID'] = Sdk.convertToType(data['ShippingAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('Comments')) {
+ obj['Comments'] = Sdk.convertToType(data['Comments'], 'String');
+ }
+ if (data.hasOwnProperty('LineItemCount')) {
+ obj['LineItemCount'] = Sdk.convertToType(data['LineItemCount'], 'Number');
+ }
+ if (data.hasOwnProperty('Status')) {
+ obj['Status'] = Sdk.convertToType(data['Status'], 'String');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('DateSubmitted')) {
+ obj['DateSubmitted'] = Sdk.convertToType(data['DateSubmitted'], 'String');
+ }
+ if (data.hasOwnProperty('DateApproved')) {
+ obj['DateApproved'] = Sdk.convertToType(data['DateApproved'], 'String');
+ }
+ if (data.hasOwnProperty('DateDeclined')) {
+ obj['DateDeclined'] = Sdk.convertToType(data['DateDeclined'], 'String');
+ }
+ if (data.hasOwnProperty('DateCanceled')) {
+ obj['DateCanceled'] = Sdk.convertToType(data['DateCanceled'], 'String');
+ }
+ if (data.hasOwnProperty('DateCompleted')) {
+ obj['DateCompleted'] = Sdk.convertToType(data['DateCompleted'], 'String');
+ }
+ if (data.hasOwnProperty('Subtotal')) {
+ obj['Subtotal'] = Sdk.convertToType(data['Subtotal'], 'Number');
+ }
+ if (data.hasOwnProperty('ShippingCost')) {
+ obj['ShippingCost'] = Sdk.convertToType(data['ShippingCost'], 'Number');
+ }
+ if (data.hasOwnProperty('TaxCost')) {
+ obj['TaxCost'] = Sdk.convertToType(data['TaxCost'], 'Number');
+ }
+ if (data.hasOwnProperty('PromotionDiscount')) {
+ obj['PromotionDiscount'] = Sdk.convertToType(data['PromotionDiscount'], 'Number');
+ }
+ if (data.hasOwnProperty('Total')) {
+ obj['Total'] = Sdk.convertToType(data['Total'], 'Number');
+ }
+ if (data.hasOwnProperty('IsSubmitted')) {
+ obj['IsSubmitted'] = Sdk.convertToType(data['IsSubmitted'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {module:model/User} FromUser
+ */
+ exports.prototype['FromUser'] = undefined;
+ /**
+ * @member {String} FromCompanyID
+ */
+ exports.prototype['FromCompanyID'] = undefined;
+ /**
+ * @member {String} FromUserID
+ */
+ exports.prototype['FromUserID'] = undefined;
+ /**
+ * @member {String} BillingAddressID
+ */
+ exports.prototype['BillingAddressID'] = undefined;
+ /**
+ * @member {module:model/Address} BillingAddress
+ */
+ exports.prototype['BillingAddress'] = undefined;
+ /**
+ * @member {String} ShippingAddressID
+ */
+ exports.prototype['ShippingAddressID'] = undefined;
+ /**
+ * @member {String} Comments
+ */
+ exports.prototype['Comments'] = undefined;
+ /**
+ * @member {Number} LineItemCount
+ */
+ exports.prototype['LineItemCount'] = undefined;
+ /**
+ * @member {String} Status
+ */
+ exports.prototype['Status'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} DateSubmitted
+ */
+ exports.prototype['DateSubmitted'] = undefined;
+ /**
+ * @member {String} DateApproved
+ */
+ exports.prototype['DateApproved'] = undefined;
+ /**
+ * @member {String} DateDeclined
+ */
+ exports.prototype['DateDeclined'] = undefined;
+ /**
+ * @member {String} DateCanceled
+ */
+ exports.prototype['DateCanceled'] = undefined;
+ /**
+ * @member {String} DateCompleted
+ */
+ exports.prototype['DateCompleted'] = undefined;
+ /**
+ * @member {Number} Subtotal
+ */
+ exports.prototype['Subtotal'] = undefined;
+ /**
+ * @member {Number} ShippingCost
+ */
+ exports.prototype['ShippingCost'] = undefined;
+ /**
+ * @member {Number} TaxCost
+ */
+ exports.prototype['TaxCost'] = undefined;
+ /**
+ * @member {Number} PromotionDiscount
+ */
+ exports.prototype['PromotionDiscount'] = undefined;
+ /**
+ * @member {Number} Total
+ */
+ exports.prototype['Total'] = undefined;
+ /**
+ * @member {Boolean} IsSubmitted
+ */
+ exports.prototype['IsSubmitted'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12,"./Address":52,"./User":211}],170:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/PaymentTransaction'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./PaymentTransaction'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialPayment = factory(root.OrderCloud.Sdk, root.OrderCloud.PaymentTransaction);
+ }
+}(this, function(Sdk, PaymentTransaction) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialPayment model module.
+ * @module model/PartialPayment
+ */
+
+ /**
+ * Constructs a new PartialPayment
.
+ * @alias module:model/PartialPayment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialPayment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialPayment} obj Optional instance to populate.
+ * @return {module:model/PartialPayment} The populated PartialPayment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Type')) {
+ obj['Type'] = Sdk.convertToType(data['Type'], 'String');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('CreditCardID')) {
+ obj['CreditCardID'] = Sdk.convertToType(data['CreditCardID'], 'String');
+ }
+ if (data.hasOwnProperty('SpendingAccountID')) {
+ obj['SpendingAccountID'] = Sdk.convertToType(data['SpendingAccountID'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('Amount')) {
+ obj['Amount'] = Sdk.convertToType(data['Amount'], 'Number');
+ }
+ if (data.hasOwnProperty('Accepted')) {
+ obj['Accepted'] = Sdk.convertToType(data['Accepted'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('Transactions')) {
+ obj['Transactions'] = Sdk.convertToType(data['Transactions'], [PaymentTransaction]);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Type
+ */
+ exports.prototype['Type'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} CreditCardID
+ */
+ exports.prototype['CreditCardID'] = undefined;
+ /**
+ * @member {String} SpendingAccountID
+ */
+ exports.prototype['SpendingAccountID'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Number} Amount
+ */
+ exports.prototype['Amount'] = undefined;
+ /**
+ * @member {Boolean} Accepted
+ */
+ exports.prototype['Accepted'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {Array.PartialPaymentTransaction
.
+ * @alias module:model/PartialPaymentTransaction
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialPaymentTransaction
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialPaymentTransaction} obj Optional instance to populate.
+ * @return {module:model/PartialPaymentTransaction} The populated PartialPaymentTransaction
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Type')) {
+ obj['Type'] = Sdk.convertToType(data['Type'], 'String');
+ }
+ if (data.hasOwnProperty('DateExecuted')) {
+ obj['DateExecuted'] = Sdk.convertToType(data['DateExecuted'], 'String');
+ }
+ if (data.hasOwnProperty('Amount')) {
+ obj['Amount'] = Sdk.convertToType(data['Amount'], 'Number');
+ }
+ if (data.hasOwnProperty('Succeeded')) {
+ obj['Succeeded'] = Sdk.convertToType(data['Succeeded'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ResultCode')) {
+ obj['ResultCode'] = Sdk.convertToType(data['ResultCode'], 'String');
+ }
+ if (data.hasOwnProperty('ResultMessage')) {
+ obj['ResultMessage'] = Sdk.convertToType(data['ResultMessage'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Type
+ */
+ exports.prototype['Type'] = undefined;
+ /**
+ * @member {String} DateExecuted
+ */
+ exports.prototype['DateExecuted'] = undefined;
+ /**
+ * @member {Number} Amount
+ */
+ exports.prototype['Amount'] = undefined;
+ /**
+ * @member {Boolean} Succeeded
+ */
+ exports.prototype['Succeeded'] = undefined;
+ /**
+ * @member {String} ResultCode
+ */
+ exports.prototype['ResultCode'] = undefined;
+ /**
+ * @member {String} ResultMessage
+ */
+ exports.prototype['ResultMessage'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],172:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialPriceBreak = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialPriceBreak model module.
+ * @module model/PartialPriceBreak
+ */
+
+ /**
+ * Constructs a new PartialPriceBreak
.
+ * @alias module:model/PartialPriceBreak
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a PartialPriceBreak
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialPriceBreak} obj Optional instance to populate.
+ * @return {module:model/PartialPriceBreak} The populated PartialPriceBreak
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Quantity')) {
+ obj['Quantity'] = Sdk.convertToType(data['Quantity'], 'Number');
+ }
+ if (data.hasOwnProperty('Price')) {
+ obj['Price'] = Sdk.convertToType(data['Price'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Number} Quantity
+ */
+ exports.prototype['Quantity'] = undefined;
+ /**
+ * @member {Number} Price
+ */
+ exports.prototype['Price'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],173:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/PriceBreak'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./PriceBreak'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialPriceSchedule = factory(root.OrderCloud.Sdk, root.OrderCloud.PriceBreak);
+ }
+}(this, function(Sdk, PriceBreak) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialPriceSchedule model module.
+ * @module model/PartialPriceSchedule
+ */
+
+ /**
+ * Constructs a new PartialPriceSchedule
.
+ * @alias module:model/PartialPriceSchedule
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialPriceSchedule
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialPriceSchedule} obj Optional instance to populate.
+ * @return {module:model/PartialPriceSchedule} The populated PartialPriceSchedule
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('ApplyTax')) {
+ obj['ApplyTax'] = Sdk.convertToType(data['ApplyTax'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ApplyShipping')) {
+ obj['ApplyShipping'] = Sdk.convertToType(data['ApplyShipping'], 'Boolean');
+ }
+ if (data.hasOwnProperty('MinQuantity')) {
+ obj['MinQuantity'] = Sdk.convertToType(data['MinQuantity'], 'Number');
+ }
+ if (data.hasOwnProperty('MaxQuantity')) {
+ obj['MaxQuantity'] = Sdk.convertToType(data['MaxQuantity'], 'Number');
+ }
+ if (data.hasOwnProperty('UseCumulativeQuantity')) {
+ obj['UseCumulativeQuantity'] = Sdk.convertToType(data['UseCumulativeQuantity'], 'Boolean');
+ }
+ if (data.hasOwnProperty('RestrictedQuantity')) {
+ obj['RestrictedQuantity'] = Sdk.convertToType(data['RestrictedQuantity'], 'Boolean');
+ }
+ if (data.hasOwnProperty('PriceBreaks')) {
+ obj['PriceBreaks'] = Sdk.convertToType(data['PriceBreaks'], [PriceBreak]);
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Boolean} ApplyTax
+ */
+ exports.prototype['ApplyTax'] = undefined;
+ /**
+ * @member {Boolean} ApplyShipping
+ */
+ exports.prototype['ApplyShipping'] = undefined;
+ /**
+ * @member {Number} MinQuantity
+ */
+ exports.prototype['MinQuantity'] = undefined;
+ /**
+ * @member {Number} MaxQuantity
+ */
+ exports.prototype['MaxQuantity'] = undefined;
+ /**
+ * @member {Boolean} UseCumulativeQuantity
+ */
+ exports.prototype['UseCumulativeQuantity'] = undefined;
+ /**
+ * @member {Boolean} RestrictedQuantity
+ */
+ exports.prototype['RestrictedQuantity'] = undefined;
+ /**
+ * @member {Array.PartialProduct
.
+ * @alias module:model/PartialProduct
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialProduct
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialProduct} obj Optional instance to populate.
+ * @return {module:model/PartialProduct} The populated PartialProduct
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('DefaultPriceScheduleID')) {
+ obj['DefaultPriceScheduleID'] = Sdk.convertToType(data['DefaultPriceScheduleID'], 'String');
+ }
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('QuantityMultiplier')) {
+ obj['QuantityMultiplier'] = Sdk.convertToType(data['QuantityMultiplier'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWeight')) {
+ obj['ShipWeight'] = Sdk.convertToType(data['ShipWeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipHeight')) {
+ obj['ShipHeight'] = Sdk.convertToType(data['ShipHeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWidth')) {
+ obj['ShipWidth'] = Sdk.convertToType(data['ShipWidth'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipLength')) {
+ obj['ShipLength'] = Sdk.convertToType(data['ShipLength'], 'Number');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('SpecCount')) {
+ obj['SpecCount'] = Sdk.convertToType(data['SpecCount'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('VariantCount')) {
+ obj['VariantCount'] = Sdk.convertToType(data['VariantCount'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipFromAddressID')) {
+ obj['ShipFromAddressID'] = Sdk.convertToType(data['ShipFromAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('Inventory')) {
+ obj['Inventory'] = Inventory.constructFromObject(data['Inventory']);
+ }
+ if (data.hasOwnProperty('DefaultSupplierID')) {
+ obj['DefaultSupplierID'] = Sdk.convertToType(data['DefaultSupplierID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} DefaultPriceScheduleID
+ */
+ exports.prototype['DefaultPriceScheduleID'] = undefined;
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Number} QuantityMultiplier
+ */
+ exports.prototype['QuantityMultiplier'] = undefined;
+ /**
+ * @member {Number} ShipWeight
+ */
+ exports.prototype['ShipWeight'] = undefined;
+ /**
+ * @member {Number} ShipHeight
+ */
+ exports.prototype['ShipHeight'] = undefined;
+ /**
+ * @member {Number} ShipWidth
+ */
+ exports.prototype['ShipWidth'] = undefined;
+ /**
+ * @member {Number} ShipLength
+ */
+ exports.prototype['ShipLength'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Number} SpecCount
+ */
+ exports.prototype['SpecCount'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {Number} VariantCount
+ */
+ exports.prototype['VariantCount'] = undefined;
+ /**
+ * @member {String} ShipFromAddressID
+ */
+ exports.prototype['ShipFromAddressID'] = undefined;
+ /**
+ * @member {module:model/Inventory} Inventory
+ */
+ exports.prototype['Inventory'] = undefined;
+ /**
+ * @member {String} DefaultSupplierID
+ */
+ exports.prototype['DefaultSupplierID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12,"./Inventory":74}],175:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialProductFacet = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialProductFacet model module.
+ * @module model/PartialProductFacet
+ */
+
+ /**
+ * Constructs a new PartialProductFacet
.
+ * @alias module:model/PartialProductFacet
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialProductFacet
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialProductFacet} obj Optional instance to populate.
+ * @return {module:model/PartialProductFacet} The populated PartialProductFacet
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('XpPath')) {
+ obj['XpPath'] = Sdk.convertToType(data['XpPath'], 'String');
+ }
+ if (data.hasOwnProperty('ListOrder')) {
+ obj['ListOrder'] = Sdk.convertToType(data['ListOrder'], 'Number');
+ }
+ if (data.hasOwnProperty('MinCount')) {
+ obj['MinCount'] = Sdk.convertToType(data['MinCount'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} XpPath
+ */
+ exports.prototype['XpPath'] = undefined;
+ /**
+ * @member {Number} ListOrder
+ */
+ exports.prototype['ListOrder'] = undefined;
+ /**
+ * @member {Number} MinCount
+ */
+ exports.prototype['MinCount'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],176:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialPromotion = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialPromotion model module.
+ * @module model/PartialPromotion
+ */
+
+ /**
+ * Constructs a new PartialPromotion
.
+ * @alias module:model/PartialPromotion
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialPromotion
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialPromotion} obj Optional instance to populate.
+ * @return {module:model/PartialPromotion} The populated PartialPromotion
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Code')) {
+ obj['Code'] = Sdk.convertToType(data['Code'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('RedemptionLimit')) {
+ obj['RedemptionLimit'] = Sdk.convertToType(data['RedemptionLimit'], 'Number');
+ }
+ if (data.hasOwnProperty('RedemptionLimitPerUser')) {
+ obj['RedemptionLimitPerUser'] = Sdk.convertToType(data['RedemptionLimitPerUser'], 'Number');
+ }
+ if (data.hasOwnProperty('RedemptionCount')) {
+ obj['RedemptionCount'] = Sdk.convertToType(data['RedemptionCount'], 'Number');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('FinePrint')) {
+ obj['FinePrint'] = Sdk.convertToType(data['FinePrint'], 'String');
+ }
+ if (data.hasOwnProperty('StartDate')) {
+ obj['StartDate'] = Sdk.convertToType(data['StartDate'], 'String');
+ }
+ if (data.hasOwnProperty('ExpirationDate')) {
+ obj['ExpirationDate'] = Sdk.convertToType(data['ExpirationDate'], 'String');
+ }
+ if (data.hasOwnProperty('EligibleExpression')) {
+ obj['EligibleExpression'] = Sdk.convertToType(data['EligibleExpression'], 'String');
+ }
+ if (data.hasOwnProperty('ValueExpression')) {
+ obj['ValueExpression'] = Sdk.convertToType(data['ValueExpression'], 'String');
+ }
+ if (data.hasOwnProperty('CanCombine')) {
+ obj['CanCombine'] = Sdk.convertToType(data['CanCombine'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Code
+ */
+ exports.prototype['Code'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Number} RedemptionLimit
+ */
+ exports.prototype['RedemptionLimit'] = undefined;
+ /**
+ * @member {Number} RedemptionLimitPerUser
+ */
+ exports.prototype['RedemptionLimitPerUser'] = undefined;
+ /**
+ * @member {Number} RedemptionCount
+ */
+ exports.prototype['RedemptionCount'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {String} FinePrint
+ */
+ exports.prototype['FinePrint'] = undefined;
+ /**
+ * @member {String} StartDate
+ */
+ exports.prototype['StartDate'] = undefined;
+ /**
+ * @member {String} ExpirationDate
+ */
+ exports.prototype['ExpirationDate'] = undefined;
+ /**
+ * @member {String} EligibleExpression
+ */
+ exports.prototype['EligibleExpression'] = undefined;
+ /**
+ * @member {String} ValueExpression
+ */
+ exports.prototype['ValueExpression'] = undefined;
+ /**
+ * @member {Boolean} CanCombine
+ */
+ exports.prototype['CanCombine'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],177:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/Address'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./Address'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialShipment = factory(root.OrderCloud.Sdk, root.OrderCloud.Address);
+ }
+}(this, function(Sdk, Address) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialShipment model module.
+ * @module model/PartialShipment
+ */
+
+ /**
+ * Constructs a new PartialShipment
.
+ * @alias module:model/PartialShipment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialShipment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialShipment} obj Optional instance to populate.
+ * @return {module:model/PartialShipment} The populated PartialShipment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('BuyerID')) {
+ obj['BuyerID'] = Sdk.convertToType(data['BuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('Shipper')) {
+ obj['Shipper'] = Sdk.convertToType(data['Shipper'], 'String');
+ }
+ if (data.hasOwnProperty('DateShipped')) {
+ obj['DateShipped'] = Sdk.convertToType(data['DateShipped'], 'String');
+ }
+ if (data.hasOwnProperty('DateDelivered')) {
+ obj['DateDelivered'] = Sdk.convertToType(data['DateDelivered'], 'String');
+ }
+ if (data.hasOwnProperty('TrackingNumber')) {
+ obj['TrackingNumber'] = Sdk.convertToType(data['TrackingNumber'], 'String');
+ }
+ if (data.hasOwnProperty('Cost')) {
+ obj['Cost'] = Sdk.convertToType(data['Cost'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('Account')) {
+ obj['Account'] = Sdk.convertToType(data['Account'], 'String');
+ }
+ if (data.hasOwnProperty('FromAddressID')) {
+ obj['FromAddressID'] = Sdk.convertToType(data['FromAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('ToAddressID')) {
+ obj['ToAddressID'] = Sdk.convertToType(data['ToAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('FromAddress')) {
+ obj['FromAddress'] = Address.constructFromObject(data['FromAddress']);
+ }
+ if (data.hasOwnProperty('ToAddress')) {
+ obj['ToAddress'] = Address.constructFromObject(data['ToAddress']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} BuyerID
+ */
+ exports.prototype['BuyerID'] = undefined;
+ /**
+ * @member {String} Shipper
+ */
+ exports.prototype['Shipper'] = undefined;
+ /**
+ * @member {String} DateShipped
+ */
+ exports.prototype['DateShipped'] = undefined;
+ /**
+ * @member {String} DateDelivered
+ */
+ exports.prototype['DateDelivered'] = undefined;
+ /**
+ * @member {String} TrackingNumber
+ */
+ exports.prototype['TrackingNumber'] = undefined;
+ /**
+ * @member {Number} Cost
+ */
+ exports.prototype['Cost'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {String} Account
+ */
+ exports.prototype['Account'] = undefined;
+ /**
+ * @member {String} FromAddressID
+ */
+ exports.prototype['FromAddressID'] = undefined;
+ /**
+ * @member {String} ToAddressID
+ */
+ exports.prototype['ToAddressID'] = undefined;
+ /**
+ * @member {module:model/Address} FromAddress
+ */
+ exports.prototype['FromAddress'] = undefined;
+ /**
+ * @member {module:model/Address} ToAddress
+ */
+ exports.prototype['ToAddress'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12,"./Address":52}],178:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialSpec = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialSpec model module.
+ * @module model/PartialSpec
+ */
+
+ /**
+ * Constructs a new PartialSpec
.
+ * @alias module:model/PartialSpec
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialSpec
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialSpec} obj Optional instance to populate.
+ * @return {module:model/PartialSpec} The populated PartialSpec
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('OptionCount')) {
+ obj['OptionCount'] = Sdk.convertToType(data['OptionCount'], 'Number');
+ }
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('ListOrder')) {
+ obj['ListOrder'] = Sdk.convertToType(data['ListOrder'], 'Number');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('DefaultValue')) {
+ obj['DefaultValue'] = Sdk.convertToType(data['DefaultValue'], 'String');
+ }
+ if (data.hasOwnProperty('Required')) {
+ obj['Required'] = Sdk.convertToType(data['Required'], 'Boolean');
+ }
+ if (data.hasOwnProperty('AllowOpenText')) {
+ obj['AllowOpenText'] = Sdk.convertToType(data['AllowOpenText'], 'Boolean');
+ }
+ if (data.hasOwnProperty('DefaultOptionID')) {
+ obj['DefaultOptionID'] = Sdk.convertToType(data['DefaultOptionID'], 'String');
+ }
+ if (data.hasOwnProperty('DefinesVariant')) {
+ obj['DefinesVariant'] = Sdk.convertToType(data['DefinesVariant'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Number} OptionCount
+ */
+ exports.prototype['OptionCount'] = undefined;
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {Number} ListOrder
+ */
+ exports.prototype['ListOrder'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} DefaultValue
+ */
+ exports.prototype['DefaultValue'] = undefined;
+ /**
+ * @member {Boolean} Required
+ */
+ exports.prototype['Required'] = undefined;
+ /**
+ * @member {Boolean} AllowOpenText
+ */
+ exports.prototype['AllowOpenText'] = undefined;
+ /**
+ * @member {String} DefaultOptionID
+ */
+ exports.prototype['DefaultOptionID'] = undefined;
+ /**
+ * @member {Boolean} DefinesVariant
+ */
+ exports.prototype['DefinesVariant'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],179:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialSpecOption = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialSpecOption model module.
+ * @module model/PartialSpecOption
+ */
+
+ /**
+ * Constructs a new PartialSpecOption
.
+ * @alias module:model/PartialSpecOption
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialSpecOption
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialSpecOption} obj Optional instance to populate.
+ * @return {module:model/PartialSpecOption} The populated PartialSpecOption
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Value')) {
+ obj['Value'] = Sdk.convertToType(data['Value'], 'String');
+ }
+ if (data.hasOwnProperty('ListOrder')) {
+ obj['ListOrder'] = Sdk.convertToType(data['ListOrder'], 'Number');
+ }
+ if (data.hasOwnProperty('IsOpenText')) {
+ obj['IsOpenText'] = Sdk.convertToType(data['IsOpenText'], 'Boolean');
+ }
+ if (data.hasOwnProperty('PriceMarkupType')) {
+ obj['PriceMarkupType'] = Sdk.convertToType(data['PriceMarkupType'], 'String');
+ }
+ if (data.hasOwnProperty('PriceMarkup')) {
+ obj['PriceMarkup'] = Sdk.convertToType(data['PriceMarkup'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Value
+ */
+ exports.prototype['Value'] = undefined;
+ /**
+ * @member {Number} ListOrder
+ */
+ exports.prototype['ListOrder'] = undefined;
+ /**
+ * @member {Boolean} IsOpenText
+ */
+ exports.prototype['IsOpenText'] = undefined;
+ /**
+ * @member {String} PriceMarkupType
+ */
+ exports.prototype['PriceMarkupType'] = undefined;
+ /**
+ * @member {Number} PriceMarkup
+ */
+ exports.prototype['PriceMarkup'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],180:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialSpendingAccount = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialSpendingAccount model module.
+ * @module model/PartialSpendingAccount
+ */
+
+ /**
+ * Constructs a new PartialSpendingAccount
.
+ * @alias module:model/PartialSpendingAccount
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialSpendingAccount
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialSpendingAccount} obj Optional instance to populate.
+ * @return {module:model/PartialSpendingAccount} The populated PartialSpendingAccount
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Balance')) {
+ obj['Balance'] = Sdk.convertToType(data['Balance'], 'Number');
+ }
+ if (data.hasOwnProperty('AllowAsPaymentMethod')) {
+ obj['AllowAsPaymentMethod'] = Sdk.convertToType(data['AllowAsPaymentMethod'], 'Boolean');
+ }
+ if (data.hasOwnProperty('RedemptionCode')) {
+ obj['RedemptionCode'] = Sdk.convertToType(data['RedemptionCode'], 'String');
+ }
+ if (data.hasOwnProperty('StartDate')) {
+ obj['StartDate'] = Sdk.convertToType(data['StartDate'], 'String');
+ }
+ if (data.hasOwnProperty('EndDate')) {
+ obj['EndDate'] = Sdk.convertToType(data['EndDate'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Number} Balance
+ */
+ exports.prototype['Balance'] = undefined;
+ /**
+ * @member {Boolean} AllowAsPaymentMethod
+ */
+ exports.prototype['AllowAsPaymentMethod'] = undefined;
+ /**
+ * @member {String} RedemptionCode
+ */
+ exports.prototype['RedemptionCode'] = undefined;
+ /**
+ * @member {String} StartDate
+ */
+ exports.prototype['StartDate'] = undefined;
+ /**
+ * @member {String} EndDate
+ */
+ exports.prototype['EndDate'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],181:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialSupplier = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialSupplier model module.
+ * @module model/PartialSupplier
+ */
+
+ /**
+ * Constructs a new PartialSupplier
.
+ * @alias module:model/PartialSupplier
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialSupplier
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialSupplier} obj Optional instance to populate.
+ * @return {module:model/PartialSupplier} The populated PartialSupplier
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],182:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialUser = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialUser model module.
+ * @module model/PartialUser
+ */
+
+ /**
+ * Constructs a new PartialUser
.
+ * @alias module:model/PartialUser
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialUser
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialUser} obj Optional instance to populate.
+ * @return {module:model/PartialUser} The populated PartialUser
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Username')) {
+ obj['Username'] = Sdk.convertToType(data['Username'], 'String');
+ }
+ if (data.hasOwnProperty('Password')) {
+ obj['Password'] = Sdk.convertToType(data['Password'], 'String');
+ }
+ if (data.hasOwnProperty('FirstName')) {
+ obj['FirstName'] = Sdk.convertToType(data['FirstName'], 'String');
+ }
+ if (data.hasOwnProperty('LastName')) {
+ obj['LastName'] = Sdk.convertToType(data['LastName'], 'String');
+ }
+ if (data.hasOwnProperty('Email')) {
+ obj['Email'] = Sdk.convertToType(data['Email'], 'String');
+ }
+ if (data.hasOwnProperty('Phone')) {
+ obj['Phone'] = Sdk.convertToType(data['Phone'], 'String');
+ }
+ if (data.hasOwnProperty('TermsAccepted')) {
+ obj['TermsAccepted'] = Sdk.convertToType(data['TermsAccepted'], 'String');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('AvailableRoles')) {
+ obj['AvailableRoles'] = Sdk.convertToType(data['AvailableRoles'], ['String']);
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Username
+ */
+ exports.prototype['Username'] = undefined;
+ /**
+ * @member {String} Password
+ */
+ exports.prototype['Password'] = undefined;
+ /**
+ * @member {String} FirstName
+ */
+ exports.prototype['FirstName'] = undefined;
+ /**
+ * @member {String} LastName
+ */
+ exports.prototype['LastName'] = undefined;
+ /**
+ * @member {String} Email
+ */
+ exports.prototype['Email'] = undefined;
+ /**
+ * @member {String} Phone
+ */
+ exports.prototype['Phone'] = undefined;
+ /**
+ * @member {String} TermsAccepted
+ */
+ exports.prototype['TermsAccepted'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {Array.PartialUserGroup
.
+ * @alias module:model/PartialUserGroup
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialUserGroup
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialUserGroup} obj Optional instance to populate.
+ * @return {module:model/PartialUserGroup} The populated PartialUserGroup
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],184:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/VariantInventory'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./VariantInventory'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialVariant = factory(root.OrderCloud.Sdk, root.OrderCloud.VariantInventory);
+ }
+}(this, function(Sdk, VariantInventory) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialVariant model module.
+ * @module model/PartialVariant
+ */
+
+ /**
+ * Constructs a new PartialVariant
.
+ * @alias module:model/PartialVariant
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialVariant
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialVariant} obj Optional instance to populate.
+ * @return {module:model/PartialVariant} The populated PartialVariant
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ShipWeight')) {
+ obj['ShipWeight'] = Sdk.convertToType(data['ShipWeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipHeight')) {
+ obj['ShipHeight'] = Sdk.convertToType(data['ShipHeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWidth')) {
+ obj['ShipWidth'] = Sdk.convertToType(data['ShipWidth'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipLength')) {
+ obj['ShipLength'] = Sdk.convertToType(data['ShipLength'], 'Number');
+ }
+ if (data.hasOwnProperty('Inventory')) {
+ obj['Inventory'] = VariantInventory.constructFromObject(data['Inventory']);
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Number} ShipWeight
+ */
+ exports.prototype['ShipWeight'] = undefined;
+ /**
+ * @member {Number} ShipHeight
+ */
+ exports.prototype['ShipHeight'] = undefined;
+ /**
+ * @member {Number} ShipWidth
+ */
+ exports.prototype['ShipWidth'] = undefined;
+ /**
+ * @member {Number} ShipLength
+ */
+ exports.prototype['ShipLength'] = undefined;
+ /**
+ * @member {module:model/VariantInventory} Inventory
+ */
+ exports.prototype['Inventory'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12,"./VariantInventory":215}],185:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialVariantInventory = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialVariantInventory model module.
+ * @module model/PartialVariantInventory
+ */
+
+ /**
+ * Constructs a new PartialVariantInventory
.
+ * @alias module:model/PartialVariantInventory
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a PartialVariantInventory
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialVariantInventory} obj Optional instance to populate.
+ * @return {module:model/PartialVariantInventory} The populated PartialVariantInventory
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('QuantityAvailable')) {
+ obj['QuantityAvailable'] = Sdk.convertToType(data['QuantityAvailable'], 'Number');
+ }
+ if (data.hasOwnProperty('LastUpdated')) {
+ obj['LastUpdated'] = Sdk.convertToType(data['LastUpdated'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Number} QuantityAvailable
+ */
+ exports.prototype['QuantityAvailable'] = undefined;
+ /**
+ * @member {String} LastUpdated
+ */
+ exports.prototype['LastUpdated'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],186:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/WebhookRoute'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./WebhookRoute'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PartialWebhook = factory(root.OrderCloud.Sdk, root.OrderCloud.WebhookRoute);
+ }
+}(this, function(Sdk, WebhookRoute) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PartialWebhook model module.
+ * @module model/PartialWebhook
+ */
+
+ /**
+ * Constructs a new PartialWebhook
.
+ * @alias module:model/PartialWebhook
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PartialWebhook
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialWebhook} obj Optional instance to populate.
+ * @return {module:model/PartialWebhook} The populated PartialWebhook
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('Url')) {
+ obj['Url'] = Sdk.convertToType(data['Url'], 'String');
+ }
+ if (data.hasOwnProperty('HashKey')) {
+ obj['HashKey'] = Sdk.convertToType(data['HashKey'], 'String');
+ }
+ if (data.hasOwnProperty('ElevatedRoles')) {
+ obj['ElevatedRoles'] = Sdk.convertToType(data['ElevatedRoles'], ['String']);
+ }
+ if (data.hasOwnProperty('ConfigData')) {
+ obj['ConfigData'] = Sdk.convertToType(data['ConfigData'], Object);
+ }
+ if (data.hasOwnProperty('BeforeProcessRequest')) {
+ obj['BeforeProcessRequest'] = Sdk.convertToType(data['BeforeProcessRequest'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ApiClientIDs')) {
+ obj['ApiClientIDs'] = Sdk.convertToType(data['ApiClientIDs'], ['String']);
+ }
+ if (data.hasOwnProperty('WebhookRoutes')) {
+ obj['WebhookRoutes'] = Sdk.convertToType(data['WebhookRoutes'], [WebhookRoute]);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {String} Url
+ */
+ exports.prototype['Url'] = undefined;
+ /**
+ * @member {String} HashKey
+ */
+ exports.prototype['HashKey'] = undefined;
+ /**
+ * @member {Array.PartialWebhookRoute
.
+ * @alias module:model/PartialWebhookRoute
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a PartialWebhookRoute
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PartialWebhookRoute} obj Optional instance to populate.
+ * @return {module:model/PartialWebhookRoute} The populated PartialWebhookRoute
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Route')) {
+ obj['Route'] = Sdk.convertToType(data['Route'], 'String');
+ }
+ if (data.hasOwnProperty('Verb')) {
+ obj['Verb'] = Sdk.convertToType(data['Verb'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} Route
+ */
+ exports.prototype['Route'] = undefined;
+ /**
+ * @member {String} Verb
+ */
+ exports.prototype['Verb'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],188:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PasswordReset = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PasswordReset model module.
+ * @module model/PasswordReset
+ */
+
+ /**
+ * Constructs a new PasswordReset
.
+ * @alias module:model/PasswordReset
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+ };
+
+ /**
+ * Constructs a PasswordReset
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PasswordReset} obj Optional instance to populate.
+ * @return {module:model/PasswordReset} The populated PasswordReset
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ClientID')) {
+ obj['ClientID'] = Sdk.convertToType(data['ClientID'], 'String');
+ }
+ if (data.hasOwnProperty('Username')) {
+ obj['Username'] = Sdk.convertToType(data['Username'], 'String');
+ }
+ if (data.hasOwnProperty('Password')) {
+ obj['Password'] = Sdk.convertToType(data['Password'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ClientID
+ */
+ exports.prototype['ClientID'] = undefined;
+ /**
+ * @member {String} Username
+ */
+ exports.prototype['Username'] = undefined;
+ /**
+ * @member {String} Password
+ */
+ exports.prototype['Password'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],189:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PasswordResetRequest = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PasswordResetRequest model module.
+ * @module model/PasswordResetRequest
+ */
+
+ /**
+ * Constructs a new PasswordResetRequest
.
+ * @alias module:model/PasswordResetRequest
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PasswordResetRequest
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PasswordResetRequest} obj Optional instance to populate.
+ * @return {module:model/PasswordResetRequest} The populated PasswordResetRequest
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ClientID')) {
+ obj['ClientID'] = Sdk.convertToType(data['ClientID'], 'String');
+ }
+ if (data.hasOwnProperty('Email')) {
+ obj['Email'] = Sdk.convertToType(data['Email'], 'String');
+ }
+ if (data.hasOwnProperty('Username')) {
+ obj['Username'] = Sdk.convertToType(data['Username'], 'String');
+ }
+ if (data.hasOwnProperty('URL')) {
+ obj['URL'] = Sdk.convertToType(data['URL'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ClientID
+ */
+ exports.prototype['ClientID'] = undefined;
+ /**
+ * @member {String} Email
+ */
+ exports.prototype['Email'] = undefined;
+ /**
+ * @member {String} Username
+ */
+ exports.prototype['Username'] = undefined;
+ /**
+ * @member {String} URL
+ */
+ exports.prototype['URL'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],190:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/PaymentTransaction'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./PaymentTransaction'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Payment = factory(root.OrderCloud.Sdk, root.OrderCloud.PaymentTransaction);
+ }
+}(this, function(Sdk, PaymentTransaction) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Payment model module.
+ * @module model/Payment
+ */
+
+ /**
+ * Constructs a new Payment
.
+ * @alias module:model/Payment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Payment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Payment} obj Optional instance to populate.
+ * @return {module:model/Payment} The populated Payment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Type')) {
+ obj['Type'] = Sdk.convertToType(data['Type'], 'String');
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ if (data.hasOwnProperty('CreditCardID')) {
+ obj['CreditCardID'] = Sdk.convertToType(data['CreditCardID'], 'String');
+ }
+ if (data.hasOwnProperty('SpendingAccountID')) {
+ obj['SpendingAccountID'] = Sdk.convertToType(data['SpendingAccountID'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('Amount')) {
+ obj['Amount'] = Sdk.convertToType(data['Amount'], 'Number');
+ }
+ if (data.hasOwnProperty('Accepted')) {
+ obj['Accepted'] = Sdk.convertToType(data['Accepted'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('Transactions')) {
+ obj['Transactions'] = Sdk.convertToType(data['Transactions'], [PaymentTransaction]);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Type
+ */
+ exports.prototype['Type'] = undefined;
+ /**
+ * @member {String} DateCreated
+ */
+ exports.prototype['DateCreated'] = undefined;
+ /**
+ * @member {String} CreditCardID
+ */
+ exports.prototype['CreditCardID'] = undefined;
+ /**
+ * @member {String} SpendingAccountID
+ */
+ exports.prototype['SpendingAccountID'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Number} Amount
+ */
+ exports.prototype['Amount'] = undefined;
+ /**
+ * @member {Boolean} Accepted
+ */
+ exports.prototype['Accepted'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {Array.PaymentTransaction
.
+ * @alias module:model/PaymentTransaction
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PaymentTransaction
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PaymentTransaction} obj Optional instance to populate.
+ * @return {module:model/PaymentTransaction} The populated PaymentTransaction
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Type')) {
+ obj['Type'] = Sdk.convertToType(data['Type'], 'String');
+ }
+ if (data.hasOwnProperty('DateExecuted')) {
+ obj['DateExecuted'] = Sdk.convertToType(data['DateExecuted'], 'String');
+ }
+ if (data.hasOwnProperty('Amount')) {
+ obj['Amount'] = Sdk.convertToType(data['Amount'], 'Number');
+ }
+ if (data.hasOwnProperty('Succeeded')) {
+ obj['Succeeded'] = Sdk.convertToType(data['Succeeded'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ResultCode')) {
+ obj['ResultCode'] = Sdk.convertToType(data['ResultCode'], 'String');
+ }
+ if (data.hasOwnProperty('ResultMessage')) {
+ obj['ResultMessage'] = Sdk.convertToType(data['ResultMessage'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Type
+ */
+ exports.prototype['Type'] = undefined;
+ /**
+ * @member {String} DateExecuted
+ */
+ exports.prototype['DateExecuted'] = undefined;
+ /**
+ * @member {Number} Amount
+ */
+ exports.prototype['Amount'] = undefined;
+ /**
+ * @member {Boolean} Succeeded
+ */
+ exports.prototype['Succeeded'] = undefined;
+ /**
+ * @member {String} ResultCode
+ */
+ exports.prototype['ResultCode'] = undefined;
+ /**
+ * @member {String} ResultMessage
+ */
+ exports.prototype['ResultMessage'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],192:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PriceBreak = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PriceBreak model module.
+ * @module model/PriceBreak
+ */
+
+ /**
+ * Constructs a new PriceBreak
.
+ * @alias module:model/PriceBreak
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a PriceBreak
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PriceBreak} obj Optional instance to populate.
+ * @return {module:model/PriceBreak} The populated PriceBreak
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Quantity')) {
+ obj['Quantity'] = Sdk.convertToType(data['Quantity'], 'Number');
+ }
+ if (data.hasOwnProperty('Price')) {
+ obj['Price'] = Sdk.convertToType(data['Price'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Number} Quantity
+ */
+ exports.prototype['Quantity'] = undefined;
+ /**
+ * @member {Number} Price
+ */
+ exports.prototype['Price'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],193:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/PriceBreak'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./PriceBreak'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PriceSchedule = factory(root.OrderCloud.Sdk, root.OrderCloud.PriceBreak);
+ }
+}(this, function(Sdk, PriceBreak) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PriceSchedule model module.
+ * @module model/PriceSchedule
+ */
+
+ /**
+ * Constructs a new PriceSchedule
.
+ * @alias module:model/PriceSchedule
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a PriceSchedule
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PriceSchedule} obj Optional instance to populate.
+ * @return {module:model/PriceSchedule} The populated PriceSchedule
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('ApplyTax')) {
+ obj['ApplyTax'] = Sdk.convertToType(data['ApplyTax'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ApplyShipping')) {
+ obj['ApplyShipping'] = Sdk.convertToType(data['ApplyShipping'], 'Boolean');
+ }
+ if (data.hasOwnProperty('MinQuantity')) {
+ obj['MinQuantity'] = Sdk.convertToType(data['MinQuantity'], 'Number');
+ }
+ if (data.hasOwnProperty('MaxQuantity')) {
+ obj['MaxQuantity'] = Sdk.convertToType(data['MaxQuantity'], 'Number');
+ }
+ if (data.hasOwnProperty('UseCumulativeQuantity')) {
+ obj['UseCumulativeQuantity'] = Sdk.convertToType(data['UseCumulativeQuantity'], 'Boolean');
+ }
+ if (data.hasOwnProperty('RestrictedQuantity')) {
+ obj['RestrictedQuantity'] = Sdk.convertToType(data['RestrictedQuantity'], 'Boolean');
+ }
+ if (data.hasOwnProperty('PriceBreaks')) {
+ obj['PriceBreaks'] = Sdk.convertToType(data['PriceBreaks'], [PriceBreak]);
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Boolean} ApplyTax
+ */
+ exports.prototype['ApplyTax'] = undefined;
+ /**
+ * @member {Boolean} ApplyShipping
+ */
+ exports.prototype['ApplyShipping'] = undefined;
+ /**
+ * @member {Number} MinQuantity
+ */
+ exports.prototype['MinQuantity'] = undefined;
+ /**
+ * @member {Number} MaxQuantity
+ */
+ exports.prototype['MaxQuantity'] = undefined;
+ /**
+ * @member {Boolean} UseCumulativeQuantity
+ */
+ exports.prototype['UseCumulativeQuantity'] = undefined;
+ /**
+ * @member {Boolean} RestrictedQuantity
+ */
+ exports.prototype['RestrictedQuantity'] = undefined;
+ /**
+ * @member {Array.Product
.
+ * @alias module:model/Product
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Product
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Product} obj Optional instance to populate.
+ * @return {module:model/Product} The populated Product
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('DefaultPriceScheduleID')) {
+ obj['DefaultPriceScheduleID'] = Sdk.convertToType(data['DefaultPriceScheduleID'], 'String');
+ }
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('QuantityMultiplier')) {
+ obj['QuantityMultiplier'] = Sdk.convertToType(data['QuantityMultiplier'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWeight')) {
+ obj['ShipWeight'] = Sdk.convertToType(data['ShipWeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipHeight')) {
+ obj['ShipHeight'] = Sdk.convertToType(data['ShipHeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWidth')) {
+ obj['ShipWidth'] = Sdk.convertToType(data['ShipWidth'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipLength')) {
+ obj['ShipLength'] = Sdk.convertToType(data['ShipLength'], 'Number');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('SpecCount')) {
+ obj['SpecCount'] = Sdk.convertToType(data['SpecCount'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('VariantCount')) {
+ obj['VariantCount'] = Sdk.convertToType(data['VariantCount'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipFromAddressID')) {
+ obj['ShipFromAddressID'] = Sdk.convertToType(data['ShipFromAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('Inventory')) {
+ obj['Inventory'] = Inventory.constructFromObject(data['Inventory']);
+ }
+ if (data.hasOwnProperty('DefaultSupplierID')) {
+ obj['DefaultSupplierID'] = Sdk.convertToType(data['DefaultSupplierID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} DefaultPriceScheduleID
+ */
+ exports.prototype['DefaultPriceScheduleID'] = undefined;
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Number} QuantityMultiplier
+ */
+ exports.prototype['QuantityMultiplier'] = undefined;
+ /**
+ * @member {Number} ShipWeight
+ */
+ exports.prototype['ShipWeight'] = undefined;
+ /**
+ * @member {Number} ShipHeight
+ */
+ exports.prototype['ShipHeight'] = undefined;
+ /**
+ * @member {Number} ShipWidth
+ */
+ exports.prototype['ShipWidth'] = undefined;
+ /**
+ * @member {Number} ShipLength
+ */
+ exports.prototype['ShipLength'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Number} SpecCount
+ */
+ exports.prototype['SpecCount'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {Number} VariantCount
+ */
+ exports.prototype['VariantCount'] = undefined;
+ /**
+ * @member {String} ShipFromAddressID
+ */
+ exports.prototype['ShipFromAddressID'] = undefined;
+ /**
+ * @member {module:model/Inventory} Inventory
+ */
+ exports.prototype['Inventory'] = undefined;
+ /**
+ * @member {String} DefaultSupplierID
+ */
+ exports.prototype['DefaultSupplierID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12,"./Inventory":74}],195:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.ProductAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ProductAssignment model module.
+ * @module model/ProductAssignment
+ */
+
+ /**
+ * Constructs a new ProductAssignment
.
+ * @alias module:model/ProductAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a ProductAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ProductAssignment} obj Optional instance to populate.
+ * @return {module:model/ProductAssignment} The populated ProductAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ProductID')) {
+ obj['ProductID'] = Sdk.convertToType(data['ProductID'], 'String');
+ }
+ if (data.hasOwnProperty('BuyerID')) {
+ obj['BuyerID'] = Sdk.convertToType(data['BuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('UserGroupID')) {
+ obj['UserGroupID'] = Sdk.convertToType(data['UserGroupID'], 'String');
+ }
+ if (data.hasOwnProperty('PriceScheduleID')) {
+ obj['PriceScheduleID'] = Sdk.convertToType(data['PriceScheduleID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ProductID
+ */
+ exports.prototype['ProductID'] = undefined;
+ /**
+ * @member {String} BuyerID
+ */
+ exports.prototype['BuyerID'] = undefined;
+ /**
+ * @member {String} UserGroupID
+ */
+ exports.prototype['UserGroupID'] = undefined;
+ /**
+ * @member {String} PriceScheduleID
+ */
+ exports.prototype['PriceScheduleID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],196:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.ProductCatalogAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ProductCatalogAssignment model module.
+ * @module model/ProductCatalogAssignment
+ */
+
+ /**
+ * Constructs a new ProductCatalogAssignment
.
+ * @alias module:model/ProductCatalogAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a ProductCatalogAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ProductCatalogAssignment} obj Optional instance to populate.
+ * @return {module:model/ProductCatalogAssignment} The populated ProductCatalogAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('CatalogID')) {
+ obj['CatalogID'] = Sdk.convertToType(data['CatalogID'], 'String');
+ }
+ if (data.hasOwnProperty('ProductID')) {
+ obj['ProductID'] = Sdk.convertToType(data['ProductID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} CatalogID
+ */
+ exports.prototype['CatalogID'] = undefined;
+ /**
+ * @member {String} ProductID
+ */
+ exports.prototype['ProductID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],197:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.ProductFacet = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ProductFacet model module.
+ * @module model/ProductFacet
+ */
+
+ /**
+ * Constructs a new ProductFacet
.
+ * @alias module:model/ProductFacet
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a ProductFacet
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ProductFacet} obj Optional instance to populate.
+ * @return {module:model/ProductFacet} The populated ProductFacet
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('XpPath')) {
+ obj['XpPath'] = Sdk.convertToType(data['XpPath'], 'String');
+ }
+ if (data.hasOwnProperty('ListOrder')) {
+ obj['ListOrder'] = Sdk.convertToType(data['ListOrder'], 'Number');
+ }
+ if (data.hasOwnProperty('MinCount')) {
+ obj['MinCount'] = Sdk.convertToType(data['MinCount'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} XpPath
+ */
+ exports.prototype['XpPath'] = undefined;
+ /**
+ * @member {Number} ListOrder
+ */
+ exports.prototype['ListOrder'] = undefined;
+ /**
+ * @member {Number} MinCount
+ */
+ exports.prototype['MinCount'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],198:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Promotion = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Promotion model module.
+ * @module model/Promotion
+ */
+
+ /**
+ * Constructs a new Promotion
.
+ * @alias module:model/Promotion
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Promotion
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Promotion} obj Optional instance to populate.
+ * @return {module:model/Promotion} The populated Promotion
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Code')) {
+ obj['Code'] = Sdk.convertToType(data['Code'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('RedemptionLimit')) {
+ obj['RedemptionLimit'] = Sdk.convertToType(data['RedemptionLimit'], 'Number');
+ }
+ if (data.hasOwnProperty('RedemptionLimitPerUser')) {
+ obj['RedemptionLimitPerUser'] = Sdk.convertToType(data['RedemptionLimitPerUser'], 'Number');
+ }
+ if (data.hasOwnProperty('RedemptionCount')) {
+ obj['RedemptionCount'] = Sdk.convertToType(data['RedemptionCount'], 'Number');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('FinePrint')) {
+ obj['FinePrint'] = Sdk.convertToType(data['FinePrint'], 'String');
+ }
+ if (data.hasOwnProperty('StartDate')) {
+ obj['StartDate'] = Sdk.convertToType(data['StartDate'], 'String');
+ }
+ if (data.hasOwnProperty('ExpirationDate')) {
+ obj['ExpirationDate'] = Sdk.convertToType(data['ExpirationDate'], 'String');
+ }
+ if (data.hasOwnProperty('EligibleExpression')) {
+ obj['EligibleExpression'] = Sdk.convertToType(data['EligibleExpression'], 'String');
+ }
+ if (data.hasOwnProperty('ValueExpression')) {
+ obj['ValueExpression'] = Sdk.convertToType(data['ValueExpression'], 'String');
+ }
+ if (data.hasOwnProperty('CanCombine')) {
+ obj['CanCombine'] = Sdk.convertToType(data['CanCombine'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Code
+ */
+ exports.prototype['Code'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Number} RedemptionLimit
+ */
+ exports.prototype['RedemptionLimit'] = undefined;
+ /**
+ * @member {Number} RedemptionLimitPerUser
+ */
+ exports.prototype['RedemptionLimitPerUser'] = undefined;
+ /**
+ * @member {Number} RedemptionCount
+ */
+ exports.prototype['RedemptionCount'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {String} FinePrint
+ */
+ exports.prototype['FinePrint'] = undefined;
+ /**
+ * @member {String} StartDate
+ */
+ exports.prototype['StartDate'] = undefined;
+ /**
+ * @member {String} ExpirationDate
+ */
+ exports.prototype['ExpirationDate'] = undefined;
+ /**
+ * @member {String} EligibleExpression
+ */
+ exports.prototype['EligibleExpression'] = undefined;
+ /**
+ * @member {String} ValueExpression
+ */
+ exports.prototype['ValueExpression'] = undefined;
+ /**
+ * @member {Boolean} CanCombine
+ */
+ exports.prototype['CanCombine'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],199:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.PromotionAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The PromotionAssignment model module.
+ * @module model/PromotionAssignment
+ */
+
+ /**
+ * Constructs a new PromotionAssignment
.
+ * @alias module:model/PromotionAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+ };
+
+ /**
+ * Constructs a PromotionAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/PromotionAssignment} obj Optional instance to populate.
+ * @return {module:model/PromotionAssignment} The populated PromotionAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('PromotionID')) {
+ obj['PromotionID'] = Sdk.convertToType(data['PromotionID'], 'String');
+ }
+ if (data.hasOwnProperty('BuyerID')) {
+ obj['BuyerID'] = Sdk.convertToType(data['BuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('UserGroupID')) {
+ obj['UserGroupID'] = Sdk.convertToType(data['UserGroupID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} PromotionID
+ */
+ exports.prototype['PromotionID'] = undefined;
+ /**
+ * @member {String} BuyerID
+ */
+ exports.prototype['BuyerID'] = undefined;
+ /**
+ * @member {String} UserGroupID
+ */
+ exports.prototype['UserGroupID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],200:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.SecurityProfile = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The SecurityProfile model module.
+ * @module model/SecurityProfile
+ */
+
+ /**
+ * Constructs a new SecurityProfile
.
+ * @alias module:model/SecurityProfile
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+ };
+
+ /**
+ * Constructs a SecurityProfile
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/SecurityProfile} obj Optional instance to populate.
+ * @return {module:model/SecurityProfile} The populated SecurityProfile
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Roles')) {
+ obj['Roles'] = Sdk.convertToType(data['Roles'], ['String']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Array.SecurityProfileAssignment
.
+ * @alias module:model/SecurityProfileAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a SecurityProfileAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/SecurityProfileAssignment} obj Optional instance to populate.
+ * @return {module:model/SecurityProfileAssignment} The populated SecurityProfileAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('SecurityProfileID')) {
+ obj['SecurityProfileID'] = Sdk.convertToType(data['SecurityProfileID'], 'String');
+ }
+ if (data.hasOwnProperty('BuyerID')) {
+ obj['BuyerID'] = Sdk.convertToType(data['BuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('SupplierID')) {
+ obj['SupplierID'] = Sdk.convertToType(data['SupplierID'], 'String');
+ }
+ if (data.hasOwnProperty('UserID')) {
+ obj['UserID'] = Sdk.convertToType(data['UserID'], 'String');
+ }
+ if (data.hasOwnProperty('UserGroupID')) {
+ obj['UserGroupID'] = Sdk.convertToType(data['UserGroupID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} SecurityProfileID
+ */
+ exports.prototype['SecurityProfileID'] = undefined;
+ /**
+ * @member {String} BuyerID
+ */
+ exports.prototype['BuyerID'] = undefined;
+ /**
+ * @member {String} SupplierID
+ */
+ exports.prototype['SupplierID'] = undefined;
+ /**
+ * @member {String} UserID
+ */
+ exports.prototype['UserID'] = undefined;
+ /**
+ * @member {String} UserGroupID
+ */
+ exports.prototype['UserGroupID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],202:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/Address'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./Address'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Shipment = factory(root.OrderCloud.Sdk, root.OrderCloud.Address);
+ }
+}(this, function(Sdk, Address) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Shipment model module.
+ * @module model/Shipment
+ */
+
+ /**
+ * Constructs a new Shipment
.
+ * @alias module:model/Shipment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Shipment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Shipment} obj Optional instance to populate.
+ * @return {module:model/Shipment} The populated Shipment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('BuyerID')) {
+ obj['BuyerID'] = Sdk.convertToType(data['BuyerID'], 'String');
+ }
+ if (data.hasOwnProperty('Shipper')) {
+ obj['Shipper'] = Sdk.convertToType(data['Shipper'], 'String');
+ }
+ if (data.hasOwnProperty('DateShipped')) {
+ obj['DateShipped'] = Sdk.convertToType(data['DateShipped'], 'String');
+ }
+ if (data.hasOwnProperty('DateDelivered')) {
+ obj['DateDelivered'] = Sdk.convertToType(data['DateDelivered'], 'String');
+ }
+ if (data.hasOwnProperty('TrackingNumber')) {
+ obj['TrackingNumber'] = Sdk.convertToType(data['TrackingNumber'], 'String');
+ }
+ if (data.hasOwnProperty('Cost')) {
+ obj['Cost'] = Sdk.convertToType(data['Cost'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('Account')) {
+ obj['Account'] = Sdk.convertToType(data['Account'], 'String');
+ }
+ if (data.hasOwnProperty('FromAddressID')) {
+ obj['FromAddressID'] = Sdk.convertToType(data['FromAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('ToAddressID')) {
+ obj['ToAddressID'] = Sdk.convertToType(data['ToAddressID'], 'String');
+ }
+ if (data.hasOwnProperty('FromAddress')) {
+ obj['FromAddress'] = Address.constructFromObject(data['FromAddress']);
+ }
+ if (data.hasOwnProperty('ToAddress')) {
+ obj['ToAddress'] = Address.constructFromObject(data['ToAddress']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} BuyerID
+ */
+ exports.prototype['BuyerID'] = undefined;
+ /**
+ * @member {String} Shipper
+ */
+ exports.prototype['Shipper'] = undefined;
+ /**
+ * @member {String} DateShipped
+ */
+ exports.prototype['DateShipped'] = undefined;
+ /**
+ * @member {String} DateDelivered
+ */
+ exports.prototype['DateDelivered'] = undefined;
+ /**
+ * @member {String} TrackingNumber
+ */
+ exports.prototype['TrackingNumber'] = undefined;
+ /**
+ * @member {Number} Cost
+ */
+ exports.prototype['Cost'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {String} Account
+ */
+ exports.prototype['Account'] = undefined;
+ /**
+ * @member {String} FromAddressID
+ */
+ exports.prototype['FromAddressID'] = undefined;
+ /**
+ * @member {String} ToAddressID
+ */
+ exports.prototype['ToAddressID'] = undefined;
+ /**
+ * @member {module:model/Address} FromAddress
+ */
+ exports.prototype['FromAddress'] = undefined;
+ /**
+ * @member {module:model/Address} ToAddress
+ */
+ exports.prototype['ToAddress'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12,"./Address":52}],203:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/LineItemProduct', 'model/LineItemSpec', 'model/LineItemVariant'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./LineItemProduct'), require('./LineItemSpec'), require('./LineItemVariant'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.ShipmentItem = factory(root.OrderCloud.Sdk, root.OrderCloud.LineItemProduct, root.OrderCloud.LineItemSpec, root.OrderCloud.LineItemVariant);
+ }
+}(this, function(Sdk, LineItemProduct, LineItemSpec, LineItemVariant) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ShipmentItem model module.
+ * @module model/ShipmentItem
+ */
+
+ /**
+ * Constructs a new ShipmentItem
.
+ * @alias module:model/ShipmentItem
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a ShipmentItem
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ShipmentItem} obj Optional instance to populate.
+ * @return {module:model/ShipmentItem} The populated ShipmentItem
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('OrderID')) {
+ obj['OrderID'] = Sdk.convertToType(data['OrderID'], 'String');
+ }
+ if (data.hasOwnProperty('LineItemID')) {
+ obj['LineItemID'] = Sdk.convertToType(data['LineItemID'], 'String');
+ }
+ if (data.hasOwnProperty('QuantityShipped')) {
+ obj['QuantityShipped'] = Sdk.convertToType(data['QuantityShipped'], 'Number');
+ }
+ if (data.hasOwnProperty('UnitPrice')) {
+ obj['UnitPrice'] = Sdk.convertToType(data['UnitPrice'], 'Number');
+ }
+ if (data.hasOwnProperty('CostCenter')) {
+ obj['CostCenter'] = Sdk.convertToType(data['CostCenter'], 'String');
+ }
+ if (data.hasOwnProperty('DateNeeded')) {
+ obj['DateNeeded'] = Sdk.convertToType(data['DateNeeded'], 'String');
+ }
+ if (data.hasOwnProperty('Product')) {
+ obj['Product'] = LineItemProduct.constructFromObject(data['Product']);
+ }
+ if (data.hasOwnProperty('Variant')) {
+ obj['Variant'] = LineItemVariant.constructFromObject(data['Variant']);
+ }
+ if (data.hasOwnProperty('Specs')) {
+ obj['Specs'] = Sdk.convertToType(data['Specs'], [LineItemSpec]);
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} OrderID
+ */
+ exports.prototype['OrderID'] = undefined;
+ /**
+ * @member {String} LineItemID
+ */
+ exports.prototype['LineItemID'] = undefined;
+ /**
+ * @member {Number} QuantityShipped
+ */
+ exports.prototype['QuantityShipped'] = undefined;
+ /**
+ * @member {Number} UnitPrice
+ */
+ exports.prototype['UnitPrice'] = undefined;
+ /**
+ * @member {String} CostCenter
+ */
+ exports.prototype['CostCenter'] = undefined;
+ /**
+ * @member {String} DateNeeded
+ */
+ exports.prototype['DateNeeded'] = undefined;
+ /**
+ * @member {module:model/LineItemProduct} Product
+ */
+ exports.prototype['Product'] = undefined;
+ /**
+ * @member {module:model/LineItemVariant} Variant
+ */
+ exports.prototype['Variant'] = undefined;
+ /**
+ * @member {Array.Spec
.
+ * @alias module:model/Spec
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Spec
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Spec} obj Optional instance to populate.
+ * @return {module:model/Spec} The populated Spec
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('OptionCount')) {
+ obj['OptionCount'] = Sdk.convertToType(data['OptionCount'], 'Number');
+ }
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('ListOrder')) {
+ obj['ListOrder'] = Sdk.convertToType(data['ListOrder'], 'Number');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('DefaultValue')) {
+ obj['DefaultValue'] = Sdk.convertToType(data['DefaultValue'], 'String');
+ }
+ if (data.hasOwnProperty('Required')) {
+ obj['Required'] = Sdk.convertToType(data['Required'], 'Boolean');
+ }
+ if (data.hasOwnProperty('AllowOpenText')) {
+ obj['AllowOpenText'] = Sdk.convertToType(data['AllowOpenText'], 'Boolean');
+ }
+ if (data.hasOwnProperty('DefaultOptionID')) {
+ obj['DefaultOptionID'] = Sdk.convertToType(data['DefaultOptionID'], 'String');
+ }
+ if (data.hasOwnProperty('DefinesVariant')) {
+ obj['DefinesVariant'] = Sdk.convertToType(data['DefinesVariant'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Number} OptionCount
+ */
+ exports.prototype['OptionCount'] = undefined;
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {Number} ListOrder
+ */
+ exports.prototype['ListOrder'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} DefaultValue
+ */
+ exports.prototype['DefaultValue'] = undefined;
+ /**
+ * @member {Boolean} Required
+ */
+ exports.prototype['Required'] = undefined;
+ /**
+ * @member {Boolean} AllowOpenText
+ */
+ exports.prototype['AllowOpenText'] = undefined;
+ /**
+ * @member {String} DefaultOptionID
+ */
+ exports.prototype['DefaultOptionID'] = undefined;
+ /**
+ * @member {Boolean} DefinesVariant
+ */
+ exports.prototype['DefinesVariant'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],205:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.SpecOption = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The SpecOption model module.
+ * @module model/SpecOption
+ */
+
+ /**
+ * Constructs a new SpecOption
.
+ * @alias module:model/SpecOption
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a SpecOption
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/SpecOption} obj Optional instance to populate.
+ * @return {module:model/SpecOption} The populated SpecOption
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Value')) {
+ obj['Value'] = Sdk.convertToType(data['Value'], 'String');
+ }
+ if (data.hasOwnProperty('ListOrder')) {
+ obj['ListOrder'] = Sdk.convertToType(data['ListOrder'], 'Number');
+ }
+ if (data.hasOwnProperty('IsOpenText')) {
+ obj['IsOpenText'] = Sdk.convertToType(data['IsOpenText'], 'Boolean');
+ }
+ if (data.hasOwnProperty('PriceMarkupType')) {
+ obj['PriceMarkupType'] = Sdk.convertToType(data['PriceMarkupType'], 'String');
+ }
+ if (data.hasOwnProperty('PriceMarkup')) {
+ obj['PriceMarkup'] = Sdk.convertToType(data['PriceMarkup'], 'Number');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Value
+ */
+ exports.prototype['Value'] = undefined;
+ /**
+ * @member {Number} ListOrder
+ */
+ exports.prototype['ListOrder'] = undefined;
+ /**
+ * @member {Boolean} IsOpenText
+ */
+ exports.prototype['IsOpenText'] = undefined;
+ /**
+ * @member {String} PriceMarkupType
+ */
+ exports.prototype['PriceMarkupType'] = undefined;
+ /**
+ * @member {Number} PriceMarkup
+ */
+ exports.prototype['PriceMarkup'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],206:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.SpecProductAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The SpecProductAssignment model module.
+ * @module model/SpecProductAssignment
+ */
+
+ /**
+ * Constructs a new SpecProductAssignment
.
+ * @alias module:model/SpecProductAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a SpecProductAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/SpecProductAssignment} obj Optional instance to populate.
+ * @return {module:model/SpecProductAssignment} The populated SpecProductAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('SpecID')) {
+ obj['SpecID'] = Sdk.convertToType(data['SpecID'], 'String');
+ }
+ if (data.hasOwnProperty('ProductID')) {
+ obj['ProductID'] = Sdk.convertToType(data['ProductID'], 'String');
+ }
+ if (data.hasOwnProperty('DefaultValue')) {
+ obj['DefaultValue'] = Sdk.convertToType(data['DefaultValue'], 'String');
+ }
+ if (data.hasOwnProperty('DefaultOptionID')) {
+ obj['DefaultOptionID'] = Sdk.convertToType(data['DefaultOptionID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} SpecID
+ */
+ exports.prototype['SpecID'] = undefined;
+ /**
+ * @member {String} ProductID
+ */
+ exports.prototype['ProductID'] = undefined;
+ /**
+ * @member {String} DefaultValue
+ */
+ exports.prototype['DefaultValue'] = undefined;
+ /**
+ * @member {String} DefaultOptionID
+ */
+ exports.prototype['DefaultOptionID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],207:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.SpendingAccount = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The SpendingAccount model module.
+ * @module model/SpendingAccount
+ */
+
+ /**
+ * Constructs a new SpendingAccount
.
+ * @alias module:model/SpendingAccount
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a SpendingAccount
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/SpendingAccount} obj Optional instance to populate.
+ * @return {module:model/SpendingAccount} The populated SpendingAccount
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Balance')) {
+ obj['Balance'] = Sdk.convertToType(data['Balance'], 'Number');
+ }
+ if (data.hasOwnProperty('AllowAsPaymentMethod')) {
+ obj['AllowAsPaymentMethod'] = Sdk.convertToType(data['AllowAsPaymentMethod'], 'Boolean');
+ }
+ if (data.hasOwnProperty('RedemptionCode')) {
+ obj['RedemptionCode'] = Sdk.convertToType(data['RedemptionCode'], 'String');
+ }
+ if (data.hasOwnProperty('StartDate')) {
+ obj['StartDate'] = Sdk.convertToType(data['StartDate'], 'String');
+ }
+ if (data.hasOwnProperty('EndDate')) {
+ obj['EndDate'] = Sdk.convertToType(data['EndDate'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Number} Balance
+ */
+ exports.prototype['Balance'] = undefined;
+ /**
+ * @member {Boolean} AllowAsPaymentMethod
+ */
+ exports.prototype['AllowAsPaymentMethod'] = undefined;
+ /**
+ * @member {String} RedemptionCode
+ */
+ exports.prototype['RedemptionCode'] = undefined;
+ /**
+ * @member {String} StartDate
+ */
+ exports.prototype['StartDate'] = undefined;
+ /**
+ * @member {String} EndDate
+ */
+ exports.prototype['EndDate'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],208:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.SpendingAccountAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The SpendingAccountAssignment model module.
+ * @module model/SpendingAccountAssignment
+ */
+
+ /**
+ * Constructs a new SpendingAccountAssignment
.
+ * @alias module:model/SpendingAccountAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a SpendingAccountAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/SpendingAccountAssignment} obj Optional instance to populate.
+ * @return {module:model/SpendingAccountAssignment} The populated SpendingAccountAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('SpendingAccountID')) {
+ obj['SpendingAccountID'] = Sdk.convertToType(data['SpendingAccountID'], 'String');
+ }
+ if (data.hasOwnProperty('UserID')) {
+ obj['UserID'] = Sdk.convertToType(data['UserID'], 'String');
+ }
+ if (data.hasOwnProperty('UserGroupID')) {
+ obj['UserGroupID'] = Sdk.convertToType(data['UserGroupID'], 'String');
+ }
+ if (data.hasOwnProperty('AllowExceed')) {
+ obj['AllowExceed'] = Sdk.convertToType(data['AllowExceed'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} SpendingAccountID
+ */
+ exports.prototype['SpendingAccountID'] = undefined;
+ /**
+ * @member {String} UserID
+ */
+ exports.prototype['UserID'] = undefined;
+ /**
+ * @member {String} UserGroupID
+ */
+ exports.prototype['UserGroupID'] = undefined;
+ /**
+ * @member {Boolean} AllowExceed
+ */
+ exports.prototype['AllowExceed'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],209:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Supplier = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Supplier model module.
+ * @module model/Supplier
+ */
+
+ /**
+ * Constructs a new Supplier
.
+ * @alias module:model/Supplier
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Supplier
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Supplier} obj Optional instance to populate.
+ * @return {module:model/Supplier} The populated Supplier
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],210:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.TokenPasswordReset = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The TokenPasswordReset model module.
+ * @module model/TokenPasswordReset
+ */
+
+ /**
+ * Constructs a new TokenPasswordReset
.
+ * @alias module:model/TokenPasswordReset
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+ };
+
+ /**
+ * Constructs a TokenPasswordReset
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/TokenPasswordReset} obj Optional instance to populate.
+ * @return {module:model/TokenPasswordReset} The populated TokenPasswordReset
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('NewPassword')) {
+ obj['NewPassword'] = Sdk.convertToType(data['NewPassword'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} NewPassword
+ */
+ exports.prototype['NewPassword'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],211:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.User = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The User model module.
+ * @module model/User
+ */
+
+ /**
+ * Constructs a new User
.
+ * @alias module:model/User
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a User
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/User} obj Optional instance to populate.
+ * @return {module:model/User} The populated User
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Username')) {
+ obj['Username'] = Sdk.convertToType(data['Username'], 'String');
+ }
+ if (data.hasOwnProperty('Password')) {
+ obj['Password'] = Sdk.convertToType(data['Password'], 'String');
+ }
+ if (data.hasOwnProperty('FirstName')) {
+ obj['FirstName'] = Sdk.convertToType(data['FirstName'], 'String');
+ }
+ if (data.hasOwnProperty('LastName')) {
+ obj['LastName'] = Sdk.convertToType(data['LastName'], 'String');
+ }
+ if (data.hasOwnProperty('Email')) {
+ obj['Email'] = Sdk.convertToType(data['Email'], 'String');
+ }
+ if (data.hasOwnProperty('Phone')) {
+ obj['Phone'] = Sdk.convertToType(data['Phone'], 'String');
+ }
+ if (data.hasOwnProperty('TermsAccepted')) {
+ obj['TermsAccepted'] = Sdk.convertToType(data['TermsAccepted'], 'String');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ if (data.hasOwnProperty('AvailableRoles')) {
+ obj['AvailableRoles'] = Sdk.convertToType(data['AvailableRoles'], ['String']);
+ }
+ if (data.hasOwnProperty('DateCreated')) {
+ obj['DateCreated'] = Sdk.convertToType(data['DateCreated'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Username
+ */
+ exports.prototype['Username'] = undefined;
+ /**
+ * @member {String} Password
+ */
+ exports.prototype['Password'] = undefined;
+ /**
+ * @member {String} FirstName
+ */
+ exports.prototype['FirstName'] = undefined;
+ /**
+ * @member {String} LastName
+ */
+ exports.prototype['LastName'] = undefined;
+ /**
+ * @member {String} Email
+ */
+ exports.prototype['Email'] = undefined;
+ /**
+ * @member {String} Phone
+ */
+ exports.prototype['Phone'] = undefined;
+ /**
+ * @member {String} TermsAccepted
+ */
+ exports.prototype['TermsAccepted'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+ /**
+ * @member {Array.UserGroup
.
+ * @alias module:model/UserGroup
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a UserGroup
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/UserGroup} obj Optional instance to populate.
+ * @return {module:model/UserGroup} The populated UserGroup
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],213:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.UserGroupAssignment = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The UserGroupAssignment model module.
+ * @module model/UserGroupAssignment
+ */
+
+ /**
+ * Constructs a new UserGroupAssignment
.
+ * @alias module:model/UserGroupAssignment
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a UserGroupAssignment
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/UserGroupAssignment} obj Optional instance to populate.
+ * @return {module:model/UserGroupAssignment} The populated UserGroupAssignment
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('UserGroupID')) {
+ obj['UserGroupID'] = Sdk.convertToType(data['UserGroupID'], 'String');
+ }
+ if (data.hasOwnProperty('UserID')) {
+ obj['UserID'] = Sdk.convertToType(data['UserID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} UserGroupID
+ */
+ exports.prototype['UserGroupID'] = undefined;
+ /**
+ * @member {String} UserID
+ */
+ exports.prototype['UserID'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],214:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/VariantInventory'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./VariantInventory'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Variant = factory(root.OrderCloud.Sdk, root.OrderCloud.VariantInventory);
+ }
+}(this, function(Sdk, VariantInventory) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Variant model module.
+ * @module model/Variant
+ */
+
+ /**
+ * Constructs a new Variant
.
+ * @alias module:model/Variant
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Variant
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Variant} obj Optional instance to populate.
+ * @return {module:model/Variant} The populated Variant
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('Active')) {
+ obj['Active'] = Sdk.convertToType(data['Active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ShipWeight')) {
+ obj['ShipWeight'] = Sdk.convertToType(data['ShipWeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipHeight')) {
+ obj['ShipHeight'] = Sdk.convertToType(data['ShipHeight'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipWidth')) {
+ obj['ShipWidth'] = Sdk.convertToType(data['ShipWidth'], 'Number');
+ }
+ if (data.hasOwnProperty('ShipLength')) {
+ obj['ShipLength'] = Sdk.convertToType(data['ShipLength'], 'Number');
+ }
+ if (data.hasOwnProperty('Inventory')) {
+ obj['Inventory'] = VariantInventory.constructFromObject(data['Inventory']);
+ }
+ if (data.hasOwnProperty('xp')) {
+ obj['xp'] = Sdk.convertToType(data['xp'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {Boolean} Active
+ */
+ exports.prototype['Active'] = undefined;
+ /**
+ * @member {Number} ShipWeight
+ */
+ exports.prototype['ShipWeight'] = undefined;
+ /**
+ * @member {Number} ShipHeight
+ */
+ exports.prototype['ShipHeight'] = undefined;
+ /**
+ * @member {Number} ShipWidth
+ */
+ exports.prototype['ShipWidth'] = undefined;
+ /**
+ * @member {Number} ShipLength
+ */
+ exports.prototype['ShipLength'] = undefined;
+ /**
+ * @member {module:model/VariantInventory} Inventory
+ */
+ exports.prototype['Inventory'] = undefined;
+ /**
+ * @member {Object} xp
+ */
+ exports.prototype['xp'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12,"./VariantInventory":215}],215:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.VariantInventory = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The VariantInventory model module.
+ * @module model/VariantInventory
+ */
+
+ /**
+ * Constructs a new VariantInventory
.
+ * @alias module:model/VariantInventory
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a VariantInventory
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/VariantInventory} obj Optional instance to populate.
+ * @return {module:model/VariantInventory} The populated VariantInventory
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('QuantityAvailable')) {
+ obj['QuantityAvailable'] = Sdk.convertToType(data['QuantityAvailable'], 'Number');
+ }
+ if (data.hasOwnProperty('LastUpdated')) {
+ obj['LastUpdated'] = Sdk.convertToType(data['LastUpdated'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Number} QuantityAvailable
+ */
+ exports.prototype['QuantityAvailable'] = undefined;
+ /**
+ * @member {String} LastUpdated
+ */
+ exports.prototype['LastUpdated'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],216:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk', 'model/WebhookRoute'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'), require('./WebhookRoute'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.Webhook = factory(root.OrderCloud.Sdk, root.OrderCloud.WebhookRoute);
+ }
+}(this, function(Sdk, WebhookRoute) {
+ 'use strict';
+
+
+
+
+ /**
+ * The Webhook model module.
+ * @module model/Webhook
+ */
+
+ /**
+ * Constructs a new Webhook
.
+ * @alias module:model/Webhook
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+
+
+
+
+
+
+
+
+ };
+
+ /**
+ * Constructs a Webhook
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Webhook} obj Optional instance to populate.
+ * @return {module:model/Webhook} The populated Webhook
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = Sdk.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = Sdk.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('Url')) {
+ obj['Url'] = Sdk.convertToType(data['Url'], 'String');
+ }
+ if (data.hasOwnProperty('HashKey')) {
+ obj['HashKey'] = Sdk.convertToType(data['HashKey'], 'String');
+ }
+ if (data.hasOwnProperty('ElevatedRoles')) {
+ obj['ElevatedRoles'] = Sdk.convertToType(data['ElevatedRoles'], ['String']);
+ }
+ if (data.hasOwnProperty('ConfigData')) {
+ obj['ConfigData'] = Sdk.convertToType(data['ConfigData'], Object);
+ }
+ if (data.hasOwnProperty('BeforeProcessRequest')) {
+ obj['BeforeProcessRequest'] = Sdk.convertToType(data['BeforeProcessRequest'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ApiClientIDs')) {
+ obj['ApiClientIDs'] = Sdk.convertToType(data['ApiClientIDs'], ['String']);
+ }
+ if (data.hasOwnProperty('WebhookRoutes')) {
+ obj['WebhookRoutes'] = Sdk.convertToType(data['WebhookRoutes'], [WebhookRoute]);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ID
+ */
+ exports.prototype['ID'] = undefined;
+ /**
+ * @member {String} Name
+ */
+ exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
+ /**
+ * @member {String} Url
+ */
+ exports.prototype['Url'] = undefined;
+ /**
+ * @member {String} HashKey
+ */
+ exports.prototype['HashKey'] = undefined;
+ /**
+ * @member {Array.WebhookRoute
.
+ * @alias module:model/WebhookRoute
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a WebhookRoute
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/WebhookRoute} obj Optional instance to populate.
+ * @return {module:model/WebhookRoute} The populated WebhookRoute
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('Route')) {
+ obj['Route'] = Sdk.convertToType(data['Route'], 'String');
+ }
+ if (data.hasOwnProperty('Verb')) {
+ obj['Verb'] = Sdk.convertToType(data['Verb'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} Route
+ */
+ exports.prototype['Route'] = undefined;
+ /**
+ * @member {String} Verb
+ */
+ exports.prototype['Verb'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}],218:[function(require,module,exports){
+/**
+ * OrderCloud
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 1.0
+ * Contact: ordercloud@four51.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['Sdk'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../Sdk'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.OrderCloud) {
+ root.OrderCloud = {};
+ }
+ root.OrderCloud.XpIndex = factory(root.OrderCloud.Sdk);
+ }
+}(this, function(Sdk) {
+ 'use strict';
+
+
+
+
+ /**
+ * The XpIndex model module.
+ * @module model/XpIndex
+ */
+
+ /**
+ * Constructs a new XpIndex
.
+ * @alias module:model/XpIndex
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a XpIndex
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/XpIndex} obj Optional instance to populate.
+ * @return {module:model/XpIndex} The populated XpIndex
instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ThingType')) {
+ obj['ThingType'] = Sdk.convertToType(data['ThingType'], 'String');
+ }
+ if (data.hasOwnProperty('Key')) {
+ obj['Key'] = Sdk.convertToType(data['Key'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} ThingType
+ */
+ exports.prototype['ThingType'] = undefined;
+ /**
+ * @member {String} Key
+ */
+ exports.prototype['Key'] = undefined;
+
+
+
+ return exports;
+}));
+
+
+
+},{"../Sdk":12}]},{},[50])(50)
});
diff --git a/dist/ordercloud-javascript-sdk.min.js b/dist/ordercloud-javascript-sdk.min.js
index 16fa2500..08042e72 100644
--- a/dist/ordercloud-javascript-sdk.min.js
+++ b/dist/ordercloud-javascript-sdk.min.js
@@ -1,13 +1,14 @@
-!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.OrderCloudSDK=e()}}(function(){var e,t,r;return function(){function e(t,r,o){function n(s,a){if(!r[s]){if(!t[s]){var p="function"==typeof require&&require;if(!a&&p)return p(s,!0);if(i)return i(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var r=t[s][1][e];return n(r||e)},l,l.exports,e,t,r,o)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;sn&&(o=n)):o=n;var i=t.length;o>i/2&&(o=i/2);for(var s=0;s n&&(o=n)):o=n;var i=t.length;o>i/2&&(o=i/2);for(var s=0;se.length)throw new RangeError("Index out of range")}function B(e,t,r,o,n,i){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,o,n){return t=+t,r>>>=0,n||B(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,r,o,23,4),r+4}function N(e,t,r,o,n){return t=+t,r>>>=0,n||B(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,r,o,52,8),r+8}function G(e){if(e=e.split("=")[0],e=e.trim().replace(J,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function R(e,t){t=t||1/0;for(var r,o=e.length,n=null,i=[],s=0;se.length)throw new RangeError("Index out of range")}function B(e,t,r,o,n,i){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,o,n){return t=+t,r>>>=0,n||B(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(e,t,r,o,23,4),r+4}function N(e,t,r,o,n){return t=+t,r>>>=0,n||B(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(e,t,r,o,52,8),r+8}function G(e){if(e=e.split("=")[0],e=e.trim().replace(J,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function R(e,t){t=t||1/0;for(var r,o=e.length,n=null,i=[],s=0;s