model/LocalePolicyTab.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.LocalePolicyTab = factory(root.Docusign.ApiClient);
  24. }
  25. }(this, function(ApiClient) {
  26. 'use strict';
  27. /**
  28. * The LocalePolicyTab model module.
  29. * @module model/LocalePolicyTab
  30. */
  31. /**
  32. * Constructs a new <code>LocalePolicyTab</code>.
  33. * @alias module:model/LocalePolicyTab
  34. * @class
  35. */
  36. var exports = function() {
  37. var _this = this;
  38. };
  39. /**
  40. * Constructs a <code>LocalePolicyTab</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/LocalePolicyTab} obj Optional instance to populate.
  44. * @return {module:model/LocalePolicyTab} The populated <code>LocalePolicyTab</code> instance.
  45. */
  46. exports.constructFromObject = function(data, obj) {
  47. if (data) {
  48. obj = obj || new exports();
  49. if (data.hasOwnProperty('addressFormat')) {
  50. obj['addressFormat'] = ApiClient.convertToType(data['addressFormat'], 'String');
  51. }
  52. if (data.hasOwnProperty('calendarType')) {
  53. obj['calendarType'] = ApiClient.convertToType(data['calendarType'], 'String');
  54. }
  55. if (data.hasOwnProperty('cultureName')) {
  56. obj['cultureName'] = ApiClient.convertToType(data['cultureName'], 'String');
  57. }
  58. if (data.hasOwnProperty('currencyCode')) {
  59. obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String');
  60. }
  61. if (data.hasOwnProperty('currencyNegativeFormat')) {
  62. obj['currencyNegativeFormat'] = ApiClient.convertToType(data['currencyNegativeFormat'], 'String');
  63. }
  64. if (data.hasOwnProperty('currencyPositiveFormat')) {
  65. obj['currencyPositiveFormat'] = ApiClient.convertToType(data['currencyPositiveFormat'], 'String');
  66. }
  67. if (data.hasOwnProperty('customDateFormat')) {
  68. obj['customDateFormat'] = ApiClient.convertToType(data['customDateFormat'], 'String');
  69. }
  70. if (data.hasOwnProperty('customTimeFormat')) {
  71. obj['customTimeFormat'] = ApiClient.convertToType(data['customTimeFormat'], 'String');
  72. }
  73. if (data.hasOwnProperty('dateFormat')) {
  74. obj['dateFormat'] = ApiClient.convertToType(data['dateFormat'], 'String');
  75. }
  76. if (data.hasOwnProperty('initialFormat')) {
  77. obj['initialFormat'] = ApiClient.convertToType(data['initialFormat'], 'String');
  78. }
  79. if (data.hasOwnProperty('nameFormat')) {
  80. obj['nameFormat'] = ApiClient.convertToType(data['nameFormat'], 'String');
  81. }
  82. if (data.hasOwnProperty('timeFormat')) {
  83. obj['timeFormat'] = ApiClient.convertToType(data['timeFormat'], 'String');
  84. }
  85. if (data.hasOwnProperty('timeZone')) {
  86. obj['timeZone'] = ApiClient.convertToType(data['timeZone'], 'String');
  87. }
  88. if (data.hasOwnProperty('useLongCurrencyFormat')) {
  89. obj['useLongCurrencyFormat'] = ApiClient.convertToType(data['useLongCurrencyFormat'], 'String');
  90. }
  91. }
  92. return obj;
  93. }
  94. /**
  95. *
  96. * @member {String} addressFormat
  97. */
  98. exports.prototype['addressFormat'] = undefined;
  99. /**
  100. *
  101. * @member {String} calendarType
  102. */
  103. exports.prototype['calendarType'] = undefined;
  104. /**
  105. *
  106. * @member {String} cultureName
  107. */
  108. exports.prototype['cultureName'] = undefined;
  109. /**
  110. *
  111. * @member {String} currencyCode
  112. */
  113. exports.prototype['currencyCode'] = undefined;
  114. /**
  115. *
  116. * @member {String} currencyNegativeFormat
  117. */
  118. exports.prototype['currencyNegativeFormat'] = undefined;
  119. /**
  120. *
  121. * @member {String} currencyPositiveFormat
  122. */
  123. exports.prototype['currencyPositiveFormat'] = undefined;
  124. /**
  125. *
  126. * @member {String} customDateFormat
  127. */
  128. exports.prototype['customDateFormat'] = undefined;
  129. /**
  130. *
  131. * @member {String} customTimeFormat
  132. */
  133. exports.prototype['customTimeFormat'] = undefined;
  134. /**
  135. *
  136. * @member {String} dateFormat
  137. */
  138. exports.prototype['dateFormat'] = undefined;
  139. /**
  140. *
  141. * @member {String} initialFormat
  142. */
  143. exports.prototype['initialFormat'] = undefined;
  144. /**
  145. *
  146. * @member {String} nameFormat
  147. */
  148. exports.prototype['nameFormat'] = undefined;
  149. /**
  150. *
  151. * @member {String} timeFormat
  152. */
  153. exports.prototype['timeFormat'] = undefined;
  154. /**
  155. *
  156. * @member {String} timeZone
  157. */
  158. exports.prototype['timeZone'] = undefined;
  159. /**
  160. *
  161. * @member {String} useLongCurrencyFormat
  162. */
  163. exports.prototype['useLongCurrencyFormat'] = undefined;
  164. return exports;
  165. }));