/**
* Docusign eSignature REST API
* The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
*
* OpenAPI spec version: v2.1
* Contact: devcenter@docusign.com
*
* NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/ExternalDocServiceErrorDetails', 'model/ExternalFile'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./ExternalDocServiceErrorDetails'), require('./ExternalFile'));
} else {
// Browser globals (root is window)
if (!root.Docusign) {
root.Docusign = {};
}
root.Docusign.ExternalFolder = factory(root.Docusign.ApiClient, root.Docusign.ExternalDocServiceErrorDetails, root.Docusign.ExternalFile);
}
}(this, function(ApiClient, ExternalDocServiceErrorDetails, ExternalFile) {
'use strict';
/**
* The ExternalFolder model module.
* @module model/ExternalFolder
*/
/**
* Constructs a new <code>ExternalFolder</code>.
* @alias module:model/ExternalFolder
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>ExternalFolder</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/ExternalFolder} obj Optional instance to populate.
* @return {module:model/ExternalFolder} The populated <code>ExternalFolder</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('endPosition')) {
obj['endPosition'] = ApiClient.convertToType(data['endPosition'], 'String');
}
if (data.hasOwnProperty('errorDetails')) {
obj['errorDetails'] = ExternalDocServiceErrorDetails.constructFromObject(data['errorDetails']);
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('items')) {
obj['items'] = ApiClient.convertToType(data['items'], [ExternalFile]);
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('nextUri')) {
obj['nextUri'] = ApiClient.convertToType(data['nextUri'], 'String');
}
if (data.hasOwnProperty('previousUri')) {
obj['previousUri'] = ApiClient.convertToType(data['previousUri'], 'String');
}
if (data.hasOwnProperty('resultSetSize')) {
obj['resultSetSize'] = ApiClient.convertToType(data['resultSetSize'], 'String');
}
if (data.hasOwnProperty('startPosition')) {
obj['startPosition'] = ApiClient.convertToType(data['startPosition'], 'String');
}
if (data.hasOwnProperty('totalSetSize')) {
obj['totalSetSize'] = ApiClient.convertToType(data['totalSetSize'], 'String');
}
}
return obj;
}
/**
* The last position in the result set.
* @member {String} endPosition
*/
exports.prototype['endPosition'] = undefined;
/**
* Array or errors.
* @member {module:model/ExternalDocServiceErrorDetails} errorDetails
*/
exports.prototype['errorDetails'] = undefined;
/**
*
* @member {String} id
*/
exports.prototype['id'] = undefined;
/**
*
* @member {Array.<module:model/ExternalFile>} items
*/
exports.prototype['items'] = undefined;
/**
*
* @member {String} name
*/
exports.prototype['name'] = undefined;
/**
* The URI to the next chunk of records based on the search request. If the endPosition is the entire results of the search, this is null.
* @member {String} nextUri
*/
exports.prototype['nextUri'] = undefined;
/**
* The postal code for the billing address.
* @member {String} previousUri
*/
exports.prototype['previousUri'] = undefined;
/**
* The number of results returned in this response.
* @member {String} resultSetSize
*/
exports.prototype['resultSetSize'] = undefined;
/**
* Starting position of the current result set.
* @member {String} startPosition
*/
exports.prototype['startPosition'] = undefined;
/**
* The total number of items available in the result set. This will always be greater than or equal to the value of the property returning the results in the in the response.
* @member {String} totalSetSize
*/
exports.prototype['totalSetSize'] = undefined;
return exports;
}));