model/EnvelopePurgeConfiguration.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'], 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'));
  18. } else {
  19. // Browser globals (root is window)
  20. if (!root.Docusign) {
  21. root.Docusign = {};
  22. }
  23. root.Docusign.EnvelopePurgeConfiguration = factory(root.Docusign.ApiClient);
  24. }
  25. }(this, function(ApiClient) {
  26. 'use strict';
  27. /**
  28. * The EnvelopePurgeConfiguration model module.
  29. * @module model/EnvelopePurgeConfiguration
  30. */
  31. /**
  32. * Constructs a new <code>EnvelopePurgeConfiguration</code>.
  33. * Contains information about the current envelope purge configuration for an account, which enables account administrators to purge documents from completed and voided envelopes after a set number of days (`retentionDays`).
  34. * @alias module:model/EnvelopePurgeConfiguration
  35. * @class
  36. */
  37. var exports = function() {
  38. var _this = this;
  39. };
  40. /**
  41. * Constructs a <code>EnvelopePurgeConfiguration</code> from a plain JavaScript object, optionally creating a new instance.
  42. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  43. * @param {Object} data The plain JavaScript object bearing properties of interest.
  44. * @param {module:model/EnvelopePurgeConfiguration} obj Optional instance to populate.
  45. * @return {module:model/EnvelopePurgeConfiguration} The populated <code>EnvelopePurgeConfiguration</code> instance.
  46. */
  47. exports.constructFromObject = function(data, obj) {
  48. if (data) {
  49. obj = obj || new exports();
  50. if (data.hasOwnProperty('purgeEnvelopes')) {
  51. obj['purgeEnvelopes'] = ApiClient.convertToType(data['purgeEnvelopes'], 'String');
  52. }
  53. if (data.hasOwnProperty('redactPII')) {
  54. obj['redactPII'] = ApiClient.convertToType(data['redactPII'], 'String');
  55. }
  56. if (data.hasOwnProperty('removeTabsAndEnvelopeAttachments')) {
  57. obj['removeTabsAndEnvelopeAttachments'] = ApiClient.convertToType(data['removeTabsAndEnvelopeAttachments'], 'String');
  58. }
  59. if (data.hasOwnProperty('retentionDays')) {
  60. obj['retentionDays'] = ApiClient.convertToType(data['retentionDays'], 'String');
  61. }
  62. }
  63. return obj;
  64. }
  65. /**
  66. *
  67. * @member {String} purgeEnvelopes
  68. */
  69. exports.prototype['purgeEnvelopes'] = undefined;
  70. /**
  71. *
  72. * @member {String} redactPII
  73. */
  74. exports.prototype['redactPII'] = undefined;
  75. /**
  76. *
  77. * @member {String} removeTabsAndEnvelopeAttachments
  78. */
  79. exports.prototype['removeTabsAndEnvelopeAttachments'] = undefined;
  80. /**
  81. *
  82. * @member {String} retentionDays
  83. */
  84. exports.prototype['retentionDays'] = undefined;
  85. return exports;
  86. }));