model/EnvelopeDocumentsResult.js

  1. /**
  2. * Docusign eSignature REST API
  3. * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
  4. *
  5. * OpenAPI spec version: v2.1
  6. * Contact: devcenter@docusign.com
  7. *
  8. * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead.
  9. *
  10. */
  11. (function(root, factory) {
  12. if (typeof define === 'function' && define.amd) {
  13. // AMD. Register as an anonymous module.
  14. define(['ApiClient', 'model/EnvelopeDocument'], factory);
  15. } else if (typeof module === 'object' && module.exports) {
  16. // CommonJS-like environments that support module.exports, like Node.
  17. module.exports = factory(require('../ApiClient'), require('./EnvelopeDocument'));
  18. } else {
  19. // Browser globals (root is window)
  20. if (!root.Docusign) {
  21. root.Docusign = {};
  22. }
  23. root.Docusign.EnvelopeDocumentsResult = factory(root.Docusign.ApiClient, root.Docusign.EnvelopeDocument);
  24. }
  25. }(this, function(ApiClient, EnvelopeDocument) {
  26. 'use strict';
  27. /**
  28. * The EnvelopeDocumentsResult model module.
  29. * @module model/EnvelopeDocumentsResult
  30. */
  31. /**
  32. * Constructs a new <code>EnvelopeDocumentsResult</code>.
  33. * @alias module:model/EnvelopeDocumentsResult
  34. * @class
  35. */
  36. var exports = function() {
  37. var _this = this;
  38. };
  39. /**
  40. * Constructs a <code>EnvelopeDocumentsResult</code> from a plain JavaScript object, optionally creating a new instance.
  41. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  42. * @param {Object} data The plain JavaScript object bearing properties of interest.
  43. * @param {module:model/EnvelopeDocumentsResult} obj Optional instance to populate.
  44. * @return {module:model/EnvelopeDocumentsResult} The populated <code>EnvelopeDocumentsResult</code> instance.
  45. */
  46. exports.constructFromObject = function(data, obj) {
  47. if (data) {
  48. obj = obj || new exports();
  49. if (data.hasOwnProperty('envelopeDocuments')) {
  50. obj['envelopeDocuments'] = ApiClient.convertToType(data['envelopeDocuments'], [EnvelopeDocument]);
  51. }
  52. if (data.hasOwnProperty('envelopeId')) {
  53. obj['envelopeId'] = ApiClient.convertToType(data['envelopeId'], 'String');
  54. }
  55. }
  56. return obj;
  57. }
  58. /**
  59. *
  60. * @member {Array.<module:model/EnvelopeDocument>} envelopeDocuments
  61. */
  62. exports.prototype['envelopeDocuments'] = undefined;
  63. /**
  64. * The envelope ID of the envelope status that failed to post.
  65. * @member {String} envelopeId
  66. */
  67. exports.prototype['envelopeId'] = undefined;
  68. return exports;
  69. }));