UNPKG

docusign-esign

Version:
133 lines (118 loc) 4.57 kB
/** * 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/BulkEnvelopeStatus', 'model/ErrorDetails'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./BulkEnvelopeStatus'), require('./ErrorDetails')); } else { // Browser globals (root is window) if (!root.Docusign) { root.Docusign = {}; } root.Docusign.EnvelopeSummary = factory(root.Docusign.ApiClient, root.Docusign.BulkEnvelopeStatus, root.Docusign.ErrorDetails); } }(this, function(ApiClient, BulkEnvelopeStatus, ErrorDetails) { 'use strict'; /** * The EnvelopeSummary model module. * @module model/EnvelopeSummary */ /** * Constructs a new <code>EnvelopeSummary</code>. * This object describes an envelope. * @alias module:model/EnvelopeSummary * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>EnvelopeSummary</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/EnvelopeSummary} obj Optional instance to populate. * @return {module:model/EnvelopeSummary} The populated <code>EnvelopeSummary</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('bulkEnvelopeStatus')) { obj['bulkEnvelopeStatus'] = BulkEnvelopeStatus.constructFromObject(data['bulkEnvelopeStatus']); } if (data.hasOwnProperty('envelopeId')) { obj['envelopeId'] = ApiClient.convertToType(data['envelopeId'], 'String'); } if (data.hasOwnProperty('errorDetails')) { obj['errorDetails'] = ErrorDetails.constructFromObject(data['errorDetails']); } if (data.hasOwnProperty('recipientSigningUri')) { obj['recipientSigningUri'] = ApiClient.convertToType(data['recipientSigningUri'], 'String'); } if (data.hasOwnProperty('recipientSigningUriError')) { obj['recipientSigningUriError'] = ApiClient.convertToType(data['recipientSigningUriError'], 'String'); } if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } if (data.hasOwnProperty('statusDateTime')) { obj['statusDateTime'] = ApiClient.convertToType(data['statusDateTime'], 'String'); } if (data.hasOwnProperty('uri')) { obj['uri'] = ApiClient.convertToType(data['uri'], 'String'); } } return obj; } /** * An object that describes the status of the bulk send envelopes. * @member {module:model/BulkEnvelopeStatus} bulkEnvelopeStatus */ exports.prototype['bulkEnvelopeStatus'] = undefined; /** * The envelope ID of the envelope status that failed to post. * @member {String} envelopeId */ exports.prototype['envelopeId'] = undefined; /** * Array or errors. * @member {module:model/ErrorDetails} errorDetails */ exports.prototype['errorDetails'] = undefined; /** * * @member {String} recipientSigningUri */ exports.prototype['recipientSigningUri'] = undefined; /** * * @member {String} recipientSigningUriError */ exports.prototype['recipientSigningUriError'] = undefined; /** * Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later. * @member {String} status */ exports.prototype['status'] = undefined; /** * The DateTime that the envelope changed status (i.e. was created or sent.) * @member {String} statusDateTime */ exports.prototype['statusDateTime'] = undefined; /** * * @member {String} uri */ exports.prototype['uri'] = undefined; return exports; }));