Source: remotemessage/RetrievePaymentResponseMessage.js

  1. /**
  2. * Autogenerated by Avro
  3. *
  4. * DO NOT EDIT DIRECTLY
  5. */
  6. var remotemessage_Method = require("../remotemessage/Method");
  7. var remotemessage_ResultStatus = require("../remotemessage/ResultStatus");
  8. var remotemessage_Message = require("../remotemessage/Message");
  9. var payments_Payment = require("../payments/Payment");
  10. var remotemessage_QueryStatus = require("../remotemessage/QueryStatus");
  11. /**
  12. * @constructor
  13. * @augments remotemessage.Message
  14. * @memberof remotemessage
  15. */
  16. var RetrievePaymentResponseMessage = function() {
  17. remotemessage_Message.call(this);
  18. this._superClass_ = remotemessage_Message;
  19. this._class_ = RetrievePaymentResponseMessage;
  20. this.setMethod(remotemessage_Method["RETRIEVE_PAYMENT_RESPONSE"]);
  21. this.status = undefined;
  22. this.reason = undefined;
  23. this.externalPaymentId = undefined;
  24. this.queryStatus = undefined;
  25. this.message = undefined;
  26. this.payment = undefined;
  27. };
  28. RetrievePaymentResponseMessage.prototype = Object.create(remotemessage_Message.prototype);
  29. RetrievePaymentResponseMessage.prototype.constructor = RetrievePaymentResponseMessage;
  30. /**
  31. * Set the field value
  32. * The status of the request.
  33. *
  34. * @memberof remotemessage.RetrievePaymentResponseMessage
  35. * @param {remotemessage.ResultStatus} status
  36. */
  37. RetrievePaymentResponseMessage.prototype.setStatus = function(status) {
  38. this.status = status;
  39. };
  40. /**
  41. * Get the field value
  42. * The status of the request.
  43. * @memberof remotemessage.RetrievePaymentResponseMessage
  44. * @return {remotemessage.ResultStatus}
  45. */
  46. RetrievePaymentResponseMessage.prototype.getStatus = function() {
  47. return this.status;
  48. };
  49. /**
  50. * Set the field value
  51. * May be populated when the operation fails.
  52. *
  53. * @memberof remotemessage.RetrievePaymentResponseMessage
  54. * @param {String} reason
  55. */
  56. RetrievePaymentResponseMessage.prototype.setReason = function(reason) {
  57. this.reason = reason;
  58. };
  59. /**
  60. * Get the field value
  61. * May be populated when the operation fails.
  62. * @memberof remotemessage.RetrievePaymentResponseMessage
  63. * @return {String}
  64. */
  65. RetrievePaymentResponseMessage.prototype.getReason = function() {
  66. return this.reason;
  67. };
  68. /**
  69. * Set the field value
  70. * The externalPaymentId used when a payment was created
  71. *
  72. * @memberof remotemessage.RetrievePaymentResponseMessage
  73. * @param {String} externalPaymentId
  74. */
  75. RetrievePaymentResponseMessage.prototype.setExternalPaymentId = function(externalPaymentId) {
  76. this.externalPaymentId = externalPaymentId;
  77. };
  78. /**
  79. * Get the field value
  80. * The externalPaymentId used when a payment was created
  81. * @memberof remotemessage.RetrievePaymentResponseMessage
  82. * @return {String}
  83. */
  84. RetrievePaymentResponseMessage.prototype.getExternalPaymentId = function() {
  85. return this.externalPaymentId;
  86. };
  87. /**
  88. * Set the field value
  89. * The status of the query
  90. *
  91. * @memberof remotemessage.RetrievePaymentResponseMessage
  92. * @param {remotemessage.QueryStatus} queryStatus
  93. */
  94. RetrievePaymentResponseMessage.prototype.setQueryStatus = function(queryStatus) {
  95. this.queryStatus = queryStatus;
  96. };
  97. /**
  98. * Get the field value
  99. * The status of the query
  100. * @memberof remotemessage.RetrievePaymentResponseMessage
  101. * @return {remotemessage.QueryStatus}
  102. */
  103. RetrievePaymentResponseMessage.prototype.getQueryStatus = function() {
  104. return this.queryStatus;
  105. };
  106. /**
  107. * Set the field value
  108. * @memberof remotemessage.RetrievePaymentResponseMessage
  109. * @param {String} message
  110. */
  111. RetrievePaymentResponseMessage.prototype.setMessage = function(message) {
  112. this.message = message;
  113. };
  114. /**
  115. * Get the field value
  116. * @memberof remotemessage.RetrievePaymentResponseMessage
  117. * @return {String}
  118. */
  119. RetrievePaymentResponseMessage.prototype.getMessage = function() {
  120. return this.message;
  121. };
  122. /**
  123. * Set the field value
  124. * Payment information
  125. *
  126. * @memberof remotemessage.RetrievePaymentResponseMessage
  127. * @param {payments.Payment} payment
  128. */
  129. RetrievePaymentResponseMessage.prototype.setPayment = function(payment) {
  130. this.payment = payment;
  131. };
  132. /**
  133. * Get the field value
  134. * Payment information
  135. * @memberof remotemessage.RetrievePaymentResponseMessage
  136. * @return {payments.Payment}
  137. */
  138. RetrievePaymentResponseMessage.prototype.getPayment = function() {
  139. return this.payment;
  140. };
  141. RetrievePaymentResponseMessage._meta_ = {fields: {}};
  142. RetrievePaymentResponseMessage._meta_._class_ = RetrievePaymentResponseMessage;
  143. RetrievePaymentResponseMessage._meta_._superMeta_ = remotemessage_Message._meta_;
  144. RetrievePaymentResponseMessage._meta_.fields["status"] = {};
  145. RetrievePaymentResponseMessage._meta_.fields["status"].type = remotemessage_ResultStatus;
  146. RetrievePaymentResponseMessage._meta_.fields["reason"] = {};
  147. RetrievePaymentResponseMessage._meta_.fields["reason"].type = String;
  148. RetrievePaymentResponseMessage._meta_.fields["externalPaymentId"] = {};
  149. RetrievePaymentResponseMessage._meta_.fields["externalPaymentId"].type = String;
  150. RetrievePaymentResponseMessage._meta_.fields["queryStatus"] = {};
  151. RetrievePaymentResponseMessage._meta_.fields["queryStatus"].type = remotemessage_QueryStatus;
  152. RetrievePaymentResponseMessage._meta_.fields["message"] = {};
  153. RetrievePaymentResponseMessage._meta_.fields["message"].type = String;
  154. RetrievePaymentResponseMessage._meta_.fields["payment"] = {};
  155. RetrievePaymentResponseMessage._meta_.fields["payment"].type = payments_Payment;
  156. //
  157. // Expose the module.
  158. //
  159. if ('undefined' !== typeof module) {
  160. module.exports = RetrievePaymentResponseMessage;
  161. }