model/UserAuthorizations.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/UserAuthorization'], 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('./UserAuthorization'));
  18. } else {
  19. // Browser globals (root is window)
  20. if (!root.Docusign) {
  21. root.Docusign = {};
  22. }
  23. root.Docusign.UserAuthorizations = factory(root.Docusign.ApiClient, root.Docusign.UserAuthorization);
  24. }
  25. }(this, function(ApiClient, UserAuthorization) {
  26. 'use strict';
  27. /**
  28. * The UserAuthorizations model module.
  29. * @module model/UserAuthorizations
  30. */
  31. /**
  32. * Constructs a new <code>UserAuthorizations</code>.
  33. * @alias module:model/UserAuthorizations
  34. * @class
  35. */
  36. var exports = function() {
  37. var _this = this;
  38. };
  39. /**
  40. * Constructs a <code>UserAuthorizations</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/UserAuthorizations} obj Optional instance to populate.
  44. * @return {module:model/UserAuthorizations} The populated <code>UserAuthorizations</code> instance.
  45. */
  46. exports.constructFromObject = function(data, obj) {
  47. if (data) {
  48. obj = obj || new exports();
  49. if (data.hasOwnProperty('authorizations')) {
  50. obj['authorizations'] = ApiClient.convertToType(data['authorizations'], [UserAuthorization]);
  51. }
  52. if (data.hasOwnProperty('endPosition')) {
  53. obj['endPosition'] = ApiClient.convertToType(data['endPosition'], 'String');
  54. }
  55. if (data.hasOwnProperty('nextUri')) {
  56. obj['nextUri'] = ApiClient.convertToType(data['nextUri'], 'String');
  57. }
  58. if (data.hasOwnProperty('previousUri')) {
  59. obj['previousUri'] = ApiClient.convertToType(data['previousUri'], 'String');
  60. }
  61. if (data.hasOwnProperty('resultSetSize')) {
  62. obj['resultSetSize'] = ApiClient.convertToType(data['resultSetSize'], 'String');
  63. }
  64. if (data.hasOwnProperty('startPosition')) {
  65. obj['startPosition'] = ApiClient.convertToType(data['startPosition'], 'String');
  66. }
  67. if (data.hasOwnProperty('totalSetSize')) {
  68. obj['totalSetSize'] = ApiClient.convertToType(data['totalSetSize'], 'String');
  69. }
  70. }
  71. return obj;
  72. }
  73. /**
  74. *
  75. * @member {Array.<module:model/UserAuthorization>} authorizations
  76. */
  77. exports.prototype['authorizations'] = undefined;
  78. /**
  79. * The last position in the result set.
  80. * @member {String} endPosition
  81. */
  82. exports.prototype['endPosition'] = undefined;
  83. /**
  84. * The URI to the next chunk of records based on the search request. If the endPosition is the entire results of the search, this is null.
  85. * @member {String} nextUri
  86. */
  87. exports.prototype['nextUri'] = undefined;
  88. /**
  89. * The postal code for the billing address.
  90. * @member {String} previousUri
  91. */
  92. exports.prototype['previousUri'] = undefined;
  93. /**
  94. * The number of results returned in this response.
  95. * @member {String} resultSetSize
  96. */
  97. exports.prototype['resultSetSize'] = undefined;
  98. /**
  99. * Starting position of the current result set.
  100. * @member {String} startPosition
  101. */
  102. exports.prototype['startPosition'] = undefined;
  103. /**
  104. * The total number of items available in the result set. This will always be greater than or equal to the value of the property returning the results in the in the response.
  105. * @member {String} totalSetSize
  106. */
  107. exports.prototype['totalSetSize'] = undefined;
  108. return exports;
  109. }));