/**
* 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/ErrorDetails', 'model/TemplateMatch'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./ErrorDetails'), require('./TemplateMatch'));
} else {
// Browser globals (root is window)
if (!root.Docusign) {
root.Docusign = {};
}
root.Docusign.TemplateSummary = factory(root.Docusign.ApiClient, root.Docusign.ErrorDetails, root.Docusign.TemplateMatch);
}
}(this, function(ApiClient, ErrorDetails, TemplateMatch) {
'use strict';
/**
* The TemplateSummary model module.
* @module model/TemplateSummary
*/
/**
* Constructs a new <code>TemplateSummary</code>.
* Summary of a template request.
* @alias module:model/TemplateSummary
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>TemplateSummary</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/TemplateSummary} obj Optional instance to populate.
* @return {module:model/TemplateSummary} The populated <code>TemplateSummary</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('applied')) {
obj['applied'] = ApiClient.convertToType(data['applied'], 'String');
}
if (data.hasOwnProperty('documentId')) {
obj['documentId'] = ApiClient.convertToType(data['documentId'], 'String');
}
if (data.hasOwnProperty('documentName')) {
obj['documentName'] = ApiClient.convertToType(data['documentName'], 'String');
}
if (data.hasOwnProperty('errorDetails')) {
obj['errorDetails'] = ErrorDetails.constructFromObject(data['errorDetails']);
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('templateId')) {
obj['templateId'] = ApiClient.convertToType(data['templateId'], 'String');
}
if (data.hasOwnProperty('templateMatch')) {
obj['templateMatch'] = TemplateMatch.constructFromObject(data['templateMatch']);
}
if (data.hasOwnProperty('uri')) {
obj['uri'] = ApiClient.convertToType(data['uri'], 'String');
}
}
return obj;
}
/**
* Reserved: TBD
* @member {String} applied
*/
exports.prototype['applied'] = undefined;
/**
* Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute.
* @member {String} documentId
*/
exports.prototype['documentId'] = undefined;
/**
*
* @member {String} documentName
*/
exports.prototype['documentName'] = undefined;
/**
* Array or errors.
* @member {module:model/ErrorDetails} errorDetails
*/
exports.prototype['errorDetails'] = undefined;
/**
*
* @member {String} name
*/
exports.prototype['name'] = undefined;
/**
* The unique identifier of the template. If this is not provided, DocuSign will generate a value.
* @member {String} templateId
*/
exports.prototype['templateId'] = undefined;
/**
*
* @member {module:model/TemplateMatch} templateMatch
*/
exports.prototype['templateMatch'] = undefined;
/**
*
* @member {String} uri
*/
exports.prototype['uri'] = undefined;
return exports;
}));