Source: remotepay/VoidCreditRequest.js

  1. /**
  2. * Autogenerated by Avro
  3. *
  4. * DO NOT EDIT DIRECTLY
  5. */
  6. /**
  7. * @constructor
  8. * @memberof remotepay
  9. */
  10. var VoidCreditRequest = function() {
  11. this._class_ = VoidCreditRequest;
  12. this.requestId = undefined;
  13. this.orderId = undefined;
  14. this.creditId = undefined;
  15. this.extras = undefined;
  16. };
  17. /**
  18. * Set the field value
  19. * Identifier for the request
  20. *
  21. * @memberof remotepay.VoidCreditRequest
  22. * @param {String} requestId
  23. */
  24. VoidCreditRequest.prototype.setRequestId = function(requestId) {
  25. this.requestId = requestId;
  26. };
  27. /**
  28. * Get the field value
  29. * Identifier for the request
  30. * @memberof remotepay.VoidCreditRequest
  31. * @return {String}
  32. */
  33. VoidCreditRequest.prototype.getRequestId = function() {
  34. return this.requestId;
  35. };
  36. /**
  37. * Set the field value
  38. * Unique identifier
  39. *
  40. * @memberof remotepay.VoidCreditRequest
  41. * @param {String} orderId
  42. */
  43. VoidCreditRequest.prototype.setOrderId = function(orderId) {
  44. this.orderId = orderId;
  45. };
  46. /**
  47. * Get the field value
  48. * Unique identifier
  49. * @memberof remotepay.VoidCreditRequest
  50. * @return {String}
  51. */
  52. VoidCreditRequest.prototype.getOrderId = function() {
  53. return this.orderId;
  54. };
  55. /**
  56. * Set the field value
  57. * Unique identifier
  58. *
  59. * @memberof remotepay.VoidCreditRequest
  60. * @param {String} creditId
  61. */
  62. VoidCreditRequest.prototype.setCreditId = function(creditId) {
  63. this.creditId = creditId;
  64. };
  65. /**
  66. * Get the field value
  67. * Unique identifier
  68. * @memberof remotepay.VoidCreditRequest
  69. * @return {String}
  70. */
  71. VoidCreditRequest.prototype.getCreditId = function() {
  72. return this.creditId;
  73. };
  74. /**
  75. * Set the field value
  76. * Extra pass-through data used by external systems.
  77. *
  78. * @memberof remotepay.VoidCreditRequest
  79. * @param {Object.<String,String>} extras A map of <String> to <>
  80. */
  81. VoidCreditRequest.prototype.setExtras = function(extras) {
  82. this.extras = extras;
  83. };
  84. /**
  85. * Get the field value
  86. * Extra pass-through data used by external systems.
  87. * @memberof remotepay.VoidCreditRequest
  88. * @return {Object.<String,String>} A map of <String> to <>
  89. */
  90. VoidCreditRequest.prototype.getExtras = function() {
  91. return this.extras;
  92. };
  93. /**
  94. * @memberof remotepay.VoidCreditRequest
  95. * @private
  96. */
  97. VoidCreditRequest.prototype.getMetaInfo = function(fieldName) {
  98. var curclass = this._class_;
  99. do {
  100. var fieldMetaInfo = curclass._meta_.fields[fieldName];
  101. if(fieldMetaInfo) {
  102. return fieldMetaInfo;
  103. }
  104. if(curclass._meta_._superMeta_) {
  105. curclass = curclass._meta_._superMeta_._class_;
  106. } else {
  107. curclass = null;
  108. }
  109. } while(curclass);
  110. return null;
  111. };
  112. VoidCreditRequest.prototype.toString = function() {
  113. return JSON.stringify(this);
  114. };
  115. VoidCreditRequest._meta_ = {fields: {}};
  116. VoidCreditRequest._meta_._class_ = VoidCreditRequest;
  117. VoidCreditRequest._meta_.fields["requestId"] = {};
  118. VoidCreditRequest._meta_.fields["requestId"].type = String;
  119. VoidCreditRequest._meta_.fields["orderId"] = {};
  120. VoidCreditRequest._meta_.fields["orderId"].type = String;
  121. VoidCreditRequest._meta_.fields["creditId"] = {};
  122. VoidCreditRequest._meta_.fields["creditId"].type = String;
  123. VoidCreditRequest._meta_.fields["extras"] = {};
  124. VoidCreditRequest._meta_.fields["extras"].type = Object;
  125. //
  126. // Expose the module.
  127. //
  128. if ('undefined' !== typeof module) {
  129. module.exports = VoidCreditRequest;
  130. }