Source: payments/VasDataType.js

  1. /**
  2. * Autogenerated by Avro
  3. *
  4. * DO NOT EDIT DIRECTLY
  5. */
  6. var payments_VasDataTypeType = require("../payments/VasDataTypeType");
  7. /** Service types supported by the vas provider. */
  8. /**
  9. * @constructor
  10. * @memberof payments
  11. */
  12. var VasDataType = function() {
  13. this._class_ = VasDataType;
  14. this.dataType = undefined;
  15. };
  16. /**
  17. * Set the field value
  18. * @memberof payments.VasDataType
  19. * @param {payments.VasDataTypeType} dataType
  20. */
  21. VasDataType.prototype.setDataType = function(dataType) {
  22. this.dataType = dataType;
  23. };
  24. /**
  25. * Get the field value
  26. * @memberof payments.VasDataType
  27. * @return {payments.VasDataTypeType}
  28. */
  29. VasDataType.prototype.getDataType = function() {
  30. return this.dataType;
  31. };
  32. /**
  33. * @memberof payments.VasDataType
  34. * @private
  35. */
  36. VasDataType.prototype.getMetaInfo = function(fieldName) {
  37. var curclass = this._class_;
  38. do {
  39. var fieldMetaInfo = curclass._meta_.fields[fieldName];
  40. if(fieldMetaInfo) {
  41. return fieldMetaInfo;
  42. }
  43. if(curclass._meta_._superMeta_) {
  44. curclass = curclass._meta_._superMeta_._class_;
  45. } else {
  46. curclass = null;
  47. }
  48. } while(curclass);
  49. return null;
  50. };
  51. VasDataType.prototype.toString = function() {
  52. return JSON.stringify(this);
  53. };
  54. VasDataType._meta_ = {fields: {}};
  55. VasDataType._meta_._class_ = VasDataType;
  56. VasDataType._meta_.fields["dataType"] = {};
  57. VasDataType._meta_.fields["dataType"].type = payments_VasDataTypeType;
  58. //
  59. // Expose the module.
  60. //
  61. if ('undefined' !== typeof module) {
  62. module.exports = VasDataType;
  63. }