Source: remotemessage/VaultCardResponseMessage.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_VaultedCard = require("../payments/VaultedCard");
  10. /**
  11. * @constructor
  12. * @augments remotemessage.Message
  13. * @memberof remotemessage
  14. */
  15. var VaultCardResponseMessage = function() {
  16. remotemessage_Message.call(this);
  17. this._superClass_ = remotemessage_Message;
  18. this._class_ = VaultCardResponseMessage;
  19. this.setMethod(remotemessage_Method["VAULT_CARD_RESPONSE"]);
  20. this.reason = undefined;
  21. this.status = undefined;
  22. this.tokenType = undefined;
  23. this.card = undefined;
  24. };
  25. VaultCardResponseMessage.prototype = Object.create(remotemessage_Message.prototype);
  26. VaultCardResponseMessage.prototype.constructor = VaultCardResponseMessage;
  27. /**
  28. * Set the field value
  29. * May be populated when the operation fails.
  30. *
  31. * @memberof remotemessage.VaultCardResponseMessage
  32. * @param {String} reason
  33. */
  34. VaultCardResponseMessage.prototype.setReason = function(reason) {
  35. this.reason = reason;
  36. };
  37. /**
  38. * Get the field value
  39. * May be populated when the operation fails.
  40. * @memberof remotemessage.VaultCardResponseMessage
  41. * @return {String}
  42. */
  43. VaultCardResponseMessage.prototype.getReason = function() {
  44. return this.reason;
  45. };
  46. /**
  47. * Set the field value
  48. * @memberof remotemessage.VaultCardResponseMessage
  49. * @param {remotemessage.ResultStatus} status
  50. */
  51. VaultCardResponseMessage.prototype.setStatus = function(status) {
  52. this.status = status;
  53. };
  54. /**
  55. * Get the field value
  56. * @memberof remotemessage.VaultCardResponseMessage
  57. * @return {remotemessage.ResultStatus}
  58. */
  59. VaultCardResponseMessage.prototype.getStatus = function() {
  60. return this.status;
  61. };
  62. /**
  63. * Set the field value
  64. * If set, this indicates the token type. If unset or unrecognized, the default legacy type of tokenization was used
  65. *
  66. * @memberof remotemessage.VaultCardResponseMessage
  67. * @param {String} tokenType
  68. */
  69. VaultCardResponseMessage.prototype.setTokenType = function(tokenType) {
  70. this.tokenType = tokenType;
  71. };
  72. /**
  73. * Get the field value
  74. * If set, this indicates the token type. If unset or unrecognized, the default legacy type of tokenization was used
  75. * @memberof remotemessage.VaultCardResponseMessage
  76. * @return {String}
  77. */
  78. VaultCardResponseMessage.prototype.getTokenType = function() {
  79. return this.tokenType;
  80. };
  81. /**
  82. * Set the field value
  83. * The card that was vaulted.
  84. *
  85. * @memberof remotemessage.VaultCardResponseMessage
  86. * @param {payments.VaultedCard} card
  87. */
  88. VaultCardResponseMessage.prototype.setCard = function(card) {
  89. this.card = card;
  90. };
  91. /**
  92. * Get the field value
  93. * The card that was vaulted.
  94. * @memberof remotemessage.VaultCardResponseMessage
  95. * @return {payments.VaultedCard}
  96. */
  97. VaultCardResponseMessage.prototype.getCard = function() {
  98. return this.card;
  99. };
  100. VaultCardResponseMessage._meta_ = {fields: {}};
  101. VaultCardResponseMessage._meta_._class_ = VaultCardResponseMessage;
  102. VaultCardResponseMessage._meta_._superMeta_ = remotemessage_Message._meta_;
  103. VaultCardResponseMessage._meta_.fields["reason"] = {};
  104. VaultCardResponseMessage._meta_.fields["reason"].type = String;
  105. VaultCardResponseMessage._meta_.fields["status"] = {};
  106. VaultCardResponseMessage._meta_.fields["status"].type = remotemessage_ResultStatus;
  107. VaultCardResponseMessage._meta_.fields["tokenType"] = {};
  108. VaultCardResponseMessage._meta_.fields["tokenType"].type = String;
  109. VaultCardResponseMessage._meta_.fields["card"] = {};
  110. VaultCardResponseMessage._meta_.fields["card"].type = payments_VaultedCard;
  111. //
  112. // Expose the module.
  113. //
  114. if ('undefined' !== typeof module) {
  115. module.exports = VaultCardResponseMessage;
  116. }