Source: remotepay/CapturePreAuthResponse.js

  1. /**
  2. * Autogenerated by Avro
  3. *
  4. * DO NOT EDIT DIRECTLY
  5. */
  6. var remotepay_BaseResponse = require("../remotepay/BaseResponse");
  7. /** The result of an attempt to capture a previously made pre auth */
  8. /**
  9. * @constructor
  10. * @augments remotepay.BaseResponse
  11. * @memberof remotepay
  12. */
  13. var CapturePreAuthResponse = function() {
  14. remotepay_BaseResponse.call(this);
  15. this._superClass_ = remotepay_BaseResponse;
  16. this._class_ = CapturePreAuthResponse;
  17. this.paymentId = undefined;
  18. this.amount = undefined;
  19. this.tipAmount = undefined;
  20. };
  21. CapturePreAuthResponse.prototype = Object.create(remotepay_BaseResponse.prototype);
  22. CapturePreAuthResponse.prototype.constructor = CapturePreAuthResponse;
  23. /**
  24. * Set the field value
  25. * Unique identifier for a payment
  26. *
  27. * @memberof remotepay.CapturePreAuthResponse
  28. * @param {String} paymentId
  29. */
  30. CapturePreAuthResponse.prototype.setPaymentId = function(paymentId) {
  31. this.paymentId = paymentId;
  32. };
  33. /**
  34. * Get the field value
  35. * Unique identifier for a payment
  36. * @memberof remotepay.CapturePreAuthResponse
  37. * @return {String}
  38. */
  39. CapturePreAuthResponse.prototype.getPaymentId = function() {
  40. return this.paymentId;
  41. };
  42. /**
  43. * Set the field value
  44. * Total amount paid
  45. *
  46. * @memberof remotepay.CapturePreAuthResponse
  47. * @param {Number} amount must be a long integer
  48. */
  49. CapturePreAuthResponse.prototype.setAmount = function(amount) {
  50. this.amount = amount;
  51. };
  52. /**
  53. * Get the field value
  54. * Total amount paid
  55. * @memberof remotepay.CapturePreAuthResponse
  56. * @return {Number} must be a long integer
  57. */
  58. CapturePreAuthResponse.prototype.getAmount = function() {
  59. return this.amount;
  60. };
  61. /**
  62. * Set the field value
  63. * Included tip
  64. *
  65. * @memberof remotepay.CapturePreAuthResponse
  66. * @param {Number} tipAmount must be a long integer
  67. */
  68. CapturePreAuthResponse.prototype.setTipAmount = function(tipAmount) {
  69. this.tipAmount = tipAmount;
  70. };
  71. /**
  72. * Get the field value
  73. * Included tip
  74. * @memberof remotepay.CapturePreAuthResponse
  75. * @return {Number} must be a long integer
  76. */
  77. CapturePreAuthResponse.prototype.getTipAmount = function() {
  78. return this.tipAmount;
  79. };
  80. CapturePreAuthResponse._meta_ = {fields: {}};
  81. CapturePreAuthResponse._meta_._class_ = CapturePreAuthResponse;
  82. CapturePreAuthResponse._meta_._superMeta_ = remotepay_BaseResponse._meta_;
  83. CapturePreAuthResponse._meta_.fields["paymentId"] = {};
  84. CapturePreAuthResponse._meta_.fields["paymentId"].type = String;
  85. CapturePreAuthResponse._meta_.fields["amount"] = {};
  86. CapturePreAuthResponse._meta_.fields["amount"].type = Number;
  87. CapturePreAuthResponse._meta_.fields["tipAmount"] = {};
  88. CapturePreAuthResponse._meta_.fields["tipAmount"].type = Number;
  89. //
  90. // Expose the module.
  91. //
  92. if ('undefined' !== typeof module) {
  93. module.exports = CapturePreAuthResponse;
  94. }