Source: base/CountryInfo.js

  1. /**
  2. * Autogenerated by Avro
  3. *
  4. * DO NOT EDIT DIRECTLY
  5. */
  6. /**
  7. * @constructor
  8. * @memberof base
  9. */
  10. var CountryInfo = function() {
  11. this._class_ = CountryInfo;
  12. this.countryCode = undefined;
  13. this.displayName = undefined;
  14. this.localDisplayName = undefined;
  15. this.defaultCurrency = undefined;
  16. this.defaultTimezone = undefined;
  17. this.stateProvinceRequired = undefined;
  18. this.zipPostalRequired = undefined;
  19. this.countyRequired = undefined;
  20. this.defaultLocale = undefined;
  21. this.appMarketBillingEnabled = undefined;
  22. };
  23. /**
  24. * Set the field value
  25. * ISO 3166-1-alpha-2 code
  26. *
  27. * @memberof base.CountryInfo
  28. * @param {String} countryCode
  29. */
  30. CountryInfo.prototype.setCountryCode = function(countryCode) {
  31. this.countryCode = countryCode;
  32. };
  33. /**
  34. * Get the field value
  35. * ISO 3166-1-alpha-2 code
  36. * @memberof base.CountryInfo
  37. * @return {String}
  38. */
  39. CountryInfo.prototype.getCountryCode = function() {
  40. return this.countryCode;
  41. };
  42. /**
  43. * Set the field value
  44. * @memberof base.CountryInfo
  45. * @param {String} displayName
  46. */
  47. CountryInfo.prototype.setDisplayName = function(displayName) {
  48. this.displayName = displayName;
  49. };
  50. /**
  51. * Get the field value
  52. * @memberof base.CountryInfo
  53. * @return {String}
  54. */
  55. CountryInfo.prototype.getDisplayName = function() {
  56. return this.displayName;
  57. };
  58. /**
  59. * Set the field value
  60. * @memberof base.CountryInfo
  61. * @param {Null|String} localDisplayName
  62. */
  63. CountryInfo.prototype.setLocalDisplayName = function(localDisplayName) {
  64. this.localDisplayName = localDisplayName;
  65. };
  66. /**
  67. * Get the field value
  68. * @memberof base.CountryInfo
  69. * @return {Null|String}
  70. */
  71. CountryInfo.prototype.getLocalDisplayName = function() {
  72. return this.localDisplayName;
  73. };
  74. /**
  75. * Set the field value
  76. * @memberof base.CountryInfo
  77. * @param {String} defaultCurrency
  78. */
  79. CountryInfo.prototype.setDefaultCurrency = function(defaultCurrency) {
  80. this.defaultCurrency = defaultCurrency;
  81. };
  82. /**
  83. * Get the field value
  84. * @memberof base.CountryInfo
  85. * @return {String}
  86. */
  87. CountryInfo.prototype.getDefaultCurrency = function() {
  88. return this.defaultCurrency;
  89. };
  90. /**
  91. * Set the field value
  92. * @memberof base.CountryInfo
  93. * @param {String} defaultTimezone
  94. */
  95. CountryInfo.prototype.setDefaultTimezone = function(defaultTimezone) {
  96. this.defaultTimezone = defaultTimezone;
  97. };
  98. /**
  99. * Get the field value
  100. * @memberof base.CountryInfo
  101. * @return {String}
  102. */
  103. CountryInfo.prototype.getDefaultTimezone = function() {
  104. return this.defaultTimezone;
  105. };
  106. /**
  107. * Set the field value
  108. * Indicates whether the state/province field is required when creating the address
  109. *
  110. * @memberof base.CountryInfo
  111. * @param {Boolean} stateProvinceRequired
  112. */
  113. CountryInfo.prototype.setStateProvinceRequired = function(stateProvinceRequired) {
  114. this.stateProvinceRequired = stateProvinceRequired;
  115. };
  116. /**
  117. * Get the field value
  118. * Indicates whether the state/province field is required when creating the address
  119. * @memberof base.CountryInfo
  120. * @return {Boolean}
  121. */
  122. CountryInfo.prototype.getStateProvinceRequired = function() {
  123. return this.stateProvinceRequired;
  124. };
  125. /**
  126. * Set the field value
  127. * Indicates whether the ZIP/Postal code field is required when creating the address
  128. *
  129. * @memberof base.CountryInfo
  130. * @param {Boolean} zipPostalRequired
  131. */
  132. CountryInfo.prototype.setZipPostalRequired = function(zipPostalRequired) {
  133. this.zipPostalRequired = zipPostalRequired;
  134. };
  135. /**
  136. * Get the field value
  137. * Indicates whether the ZIP/Postal code field is required when creating the address
  138. * @memberof base.CountryInfo
  139. * @return {Boolean}
  140. */
  141. CountryInfo.prototype.getZipPostalRequired = function() {
  142. return this.zipPostalRequired;
  143. };
  144. /**
  145. * Set the field value
  146. * Indicates whether the county field is required when creating the address
  147. *
  148. * @memberof base.CountryInfo
  149. * @param {Boolean} countyRequired
  150. */
  151. CountryInfo.prototype.setCountyRequired = function(countyRequired) {
  152. this.countyRequired = countyRequired;
  153. };
  154. /**
  155. * Get the field value
  156. * Indicates whether the county field is required when creating the address
  157. * @memberof base.CountryInfo
  158. * @return {Boolean}
  159. */
  160. CountryInfo.prototype.getCountyRequired = function() {
  161. return this.countyRequired;
  162. };
  163. /**
  164. * Set the field value
  165. * @memberof base.CountryInfo
  166. * @param {String} defaultLocale
  167. */
  168. CountryInfo.prototype.setDefaultLocale = function(defaultLocale) {
  169. this.defaultLocale = defaultLocale;
  170. };
  171. /**
  172. * Get the field value
  173. * @memberof base.CountryInfo
  174. * @return {String}
  175. */
  176. CountryInfo.prototype.getDefaultLocale = function() {
  177. return this.defaultLocale;
  178. };
  179. /**
  180. * Set the field value
  181. * Indicates whether the country is enabled for app market billing
  182. *
  183. * @memberof base.CountryInfo
  184. * @param {Boolean} appMarketBillingEnabled
  185. */
  186. CountryInfo.prototype.setAppMarketBillingEnabled = function(appMarketBillingEnabled) {
  187. this.appMarketBillingEnabled = appMarketBillingEnabled;
  188. };
  189. /**
  190. * Get the field value
  191. * Indicates whether the country is enabled for app market billing
  192. * @memberof base.CountryInfo
  193. * @return {Boolean}
  194. */
  195. CountryInfo.prototype.getAppMarketBillingEnabled = function() {
  196. return this.appMarketBillingEnabled;
  197. };
  198. /**
  199. * @memberof base.CountryInfo
  200. * @private
  201. */
  202. CountryInfo.prototype.getMetaInfo = function(fieldName) {
  203. var curclass = this._class_;
  204. do {
  205. var fieldMetaInfo = curclass._meta_.fields[fieldName];
  206. if(fieldMetaInfo) {
  207. return fieldMetaInfo;
  208. }
  209. if(curclass._meta_._superMeta_) {
  210. curclass = curclass._meta_._superMeta_._class_;
  211. } else {
  212. curclass = null;
  213. }
  214. } while(curclass);
  215. return null;
  216. };
  217. CountryInfo.prototype.toString = function() {
  218. return JSON.stringify(this);
  219. };
  220. CountryInfo._meta_ = {fields: {}};
  221. CountryInfo._meta_._class_ = CountryInfo;
  222. CountryInfo._meta_.fields["countryCode"] = {};
  223. CountryInfo._meta_.fields["countryCode"].type = String;
  224. CountryInfo._meta_.fields["displayName"] = {};
  225. CountryInfo._meta_.fields["displayName"].type = String;
  226. CountryInfo._meta_.fields["localDisplayName"] = {};
  227. CountryInfo._meta_.fields["localDisplayName"].type = String;
  228. CountryInfo._meta_.fields["defaultCurrency"] = {};
  229. CountryInfo._meta_.fields["defaultCurrency"].type = String;
  230. CountryInfo._meta_.fields["defaultTimezone"] = {};
  231. CountryInfo._meta_.fields["defaultTimezone"].type = String;
  232. CountryInfo._meta_.fields["stateProvinceRequired"] = {};
  233. CountryInfo._meta_.fields["stateProvinceRequired"].type = Boolean;
  234. CountryInfo._meta_.fields["zipPostalRequired"] = {};
  235. CountryInfo._meta_.fields["zipPostalRequired"].type = Boolean;
  236. CountryInfo._meta_.fields["countyRequired"] = {};
  237. CountryInfo._meta_.fields["countyRequired"].type = Boolean;
  238. CountryInfo._meta_.fields["defaultLocale"] = {};
  239. CountryInfo._meta_.fields["defaultLocale"].type = String;
  240. CountryInfo._meta_.fields["appMarketBillingEnabled"] = {};
  241. CountryInfo._meta_.fields["appMarketBillingEnabled"].type = Boolean;
  242. //
  243. // Expose the module.
  244. //
  245. if ('undefined' !== typeof module) {
  246. module.exports = CountryInfo;
  247. }