model/GroupBrands.js

  1. /**
  2. * DocuSign REST API
  3. * The DocuSign 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/Brand'], 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('./Brand'));
  18. } else {
  19. // Browser globals (root is window)
  20. if (!root.Docusign) {
  21. root.Docusign = {};
  22. }
  23. root.Docusign.GroupBrands = factory(root.Docusign.ApiClient, root.Docusign.Brand);
  24. }
  25. }(this, function(ApiClient, Brand) {
  26. 'use strict';
  27. /**
  28. * The GroupBrands model module.
  29. * @module model/GroupBrands
  30. */
  31. /**
  32. * Constructs a new <code>GroupBrands</code>.
  33. *
  34. * @alias module:model/GroupBrands
  35. * @class
  36. */
  37. var exports = function() {
  38. var _this = this;
  39. };
  40. /**
  41. * Constructs a <code>GroupBrands</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/GroupBrands} obj Optional instance to populate.
  45. * @return {module:model/GroupBrands} The populated <code>GroupBrands</code> instance.
  46. */
  47. exports.constructFromObject = function(data, obj) {
  48. if (data) {
  49. obj = obj || new exports();
  50. if (data.hasOwnProperty('recipientBrandIdDefault')) {
  51. obj['recipientBrandIdDefault'] = ApiClient.convertToType(data['recipientBrandIdDefault'], 'String');
  52. }
  53. if (data.hasOwnProperty('senderBrandIdDefault')) {
  54. obj['senderBrandIdDefault'] = ApiClient.convertToType(data['senderBrandIdDefault'], 'String');
  55. }
  56. if (data.hasOwnProperty('brandOptions')) {
  57. obj['brandOptions'] = ApiClient.convertToType(data['brandOptions'], [Brand]);
  58. }
  59. }
  60. return obj;
  61. }
  62. /**
  63. * The brand seen by envelope recipients when a brand is not explicitly set.
  64. * @member {String} recipientBrandIdDefault
  65. */
  66. exports.prototype['recipientBrandIdDefault'] = undefined;
  67. /**
  68. * The brand seen by envelope senders when a brand is not explicitly set.
  69. * @member {String} senderBrandIdDefault
  70. */
  71. exports.prototype['senderBrandIdDefault'] = undefined;
  72. /**
  73. * The list of brands.
  74. * @member {Array.<module:model/Brand>} brandOptions
  75. */
  76. exports.prototype['brandOptions'] = undefined;
  77. return exports;
  78. }));