model/LinkedExternalPrimaryAccount.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/ExternalPrimaryAccountRecipientAuthRequirements'], 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('./ExternalPrimaryAccountRecipientAuthRequirements'));
  18. } else {
  19. // Browser globals (root is window)
  20. if (!root.Docusign) {
  21. root.Docusign = {};
  22. }
  23. root.Docusign.LinkedExternalPrimaryAccount = factory(root.Docusign.ApiClient, root.Docusign.ExternalPrimaryAccountRecipientAuthRequirements);
  24. }
  25. }(this, function(ApiClient, ExternalPrimaryAccountRecipientAuthRequirements) {
  26. 'use strict';
  27. /**
  28. * The LinkedExternalPrimaryAccount model module.
  29. * @module model/LinkedExternalPrimaryAccount
  30. */
  31. /**
  32. * Constructs a new <code>LinkedExternalPrimaryAccount</code>.
  33. * @alias module:model/LinkedExternalPrimaryAccount
  34. * @class
  35. */
  36. var exports = function() {
  37. var _this = this;
  38. };
  39. /**
  40. * Constructs a <code>LinkedExternalPrimaryAccount</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/LinkedExternalPrimaryAccount} obj Optional instance to populate.
  44. * @return {module:model/LinkedExternalPrimaryAccount} The populated <code>LinkedExternalPrimaryAccount</code> instance.
  45. */
  46. exports.constructFromObject = function(data, obj) {
  47. if (data) {
  48. obj = obj || new exports();
  49. if (data.hasOwnProperty('accountName')) {
  50. obj['accountName'] = ApiClient.convertToType(data['accountName'], 'String');
  51. }
  52. if (data.hasOwnProperty('configurationId')) {
  53. obj['configurationId'] = ApiClient.convertToType(data['configurationId'], 'String');
  54. }
  55. if (data.hasOwnProperty('email')) {
  56. obj['email'] = ApiClient.convertToType(data['email'], 'String');
  57. }
  58. if (data.hasOwnProperty('linkId')) {
  59. obj['linkId'] = ApiClient.convertToType(data['linkId'], 'String');
  60. }
  61. if (data.hasOwnProperty('pdfFieldHandlingOption')) {
  62. obj['pdfFieldHandlingOption'] = ApiClient.convertToType(data['pdfFieldHandlingOption'], 'String');
  63. }
  64. if (data.hasOwnProperty('recipientAuthRequirements')) {
  65. obj['recipientAuthRequirements'] = ExternalPrimaryAccountRecipientAuthRequirements.constructFromObject(data['recipientAuthRequirements']);
  66. }
  67. if (data.hasOwnProperty('status')) {
  68. obj['status'] = ApiClient.convertToType(data['status'], 'String');
  69. }
  70. if (data.hasOwnProperty('userId')) {
  71. obj['userId'] = ApiClient.convertToType(data['userId'], 'String');
  72. }
  73. }
  74. return obj;
  75. }
  76. /**
  77. *
  78. * @member {String} accountName
  79. */
  80. exports.prototype['accountName'] = undefined;
  81. /**
  82. *
  83. * @member {String} configurationId
  84. */
  85. exports.prototype['configurationId'] = undefined;
  86. /**
  87. *
  88. * @member {String} email
  89. */
  90. exports.prototype['email'] = undefined;
  91. /**
  92. *
  93. * @member {String} linkId
  94. */
  95. exports.prototype['linkId'] = undefined;
  96. /**
  97. *
  98. * @member {String} pdfFieldHandlingOption
  99. */
  100. exports.prototype['pdfFieldHandlingOption'] = undefined;
  101. /**
  102. *
  103. * @member {module:model/ExternalPrimaryAccountRecipientAuthRequirements} recipientAuthRequirements
  104. */
  105. exports.prototype['recipientAuthRequirements'] = undefined;
  106. /**
  107. * 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.
  108. * @member {String} status
  109. */
  110. exports.prototype['status'] = undefined;
  111. /**
  112. *
  113. * @member {String} userId
  114. */
  115. exports.prototype['userId'] = undefined;
  116. return exports;
  117. }));