Source: remotepay/RetrievePaymentRequest.js

/**
 * Autogenerated by Avro
 * 
 * DO NOT EDIT DIRECTLY
 */

var remotepay_BaseRequest = require("../remotepay/BaseRequest");

/** Request to retrieve a payment made to a specific device. */
/**
* @constructor
* @augments remotepay.BaseRequest
* @memberof remotepay
*/
var RetrievePaymentRequest = function() {
  remotepay_BaseRequest.call(this);
  this._superClass_ = remotepay_BaseRequest;
  this._class_ = RetrievePaymentRequest;
  this.externalPaymentId = undefined;
};

RetrievePaymentRequest.prototype = Object.create(remotepay_BaseRequest.prototype);
RetrievePaymentRequest.prototype.constructor = RetrievePaymentRequest;

/**
* Set the field value
* The externalPaymentId used when a payment was created
*
* @memberof remotepay.RetrievePaymentRequest
* @param {String} externalPaymentId 
*/
RetrievePaymentRequest.prototype.setExternalPaymentId = function(externalPaymentId) {
  this.externalPaymentId = externalPaymentId;
};

/**
* Get the field value
* The externalPaymentId used when a payment was created
* @memberof remotepay.RetrievePaymentRequest
* @return {String} 
*/
RetrievePaymentRequest.prototype.getExternalPaymentId = function() {
  return this.externalPaymentId;
};

RetrievePaymentRequest._meta_ =  {fields:  {}};
RetrievePaymentRequest._meta_._class_ =  RetrievePaymentRequest;
RetrievePaymentRequest._meta_._superMeta_ = remotepay_BaseRequest._meta_;
RetrievePaymentRequest._meta_.fields["externalPaymentId"] = {};
RetrievePaymentRequest._meta_.fields["externalPaymentId"].type = String;

//
// Expose the module.
//
if ('undefined' !== typeof module) {
module.exports = RetrievePaymentRequest;
}