Source: order/LineItemTaxRates.js

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

var inventory_TaxRate = require("../inventory/TaxRate");

/**
* @constructor
* @memberof order
*/
var LineItemTaxRates = function() {
  this._class_ = LineItemTaxRates;
  this.rates = undefined;
};


/**
* Set the field value
* The new tax rates to assign to the line item with the corresponding line item id.
*
* @memberof order.LineItemTaxRates
* @param {Object.<String,Array.<inventory.TaxRate>>} rates A map of <String> to <An array of >
*/
LineItemTaxRates.prototype.setRates = function(rates) {
  this.rates = rates;
};

/**
* Get the field value
* The new tax rates to assign to the line item with the corresponding line item id.
* @memberof order.LineItemTaxRates
* @return {Object.<String,Array.<inventory.TaxRate>>} A map of <String> to <An array of >
*/
LineItemTaxRates.prototype.getRates = function() {
  return this.rates;
};

/**
* @memberof order.LineItemTaxRates
* @private
*/
LineItemTaxRates.prototype.getMetaInfo = function(fieldName) {
  var curclass = this._class_;
  do {
    var fieldMetaInfo = curclass._meta_.fields[fieldName];
    if(fieldMetaInfo) {
      return fieldMetaInfo;
    }
    if(curclass._meta_._superMeta_) {
      curclass = curclass._meta_._superMeta_._class_;
    } else {
      curclass = null;
    }
  } while(curclass);
  return null;
};

LineItemTaxRates.prototype.toString = function() {
  return JSON.stringify(this);
};

LineItemTaxRates._meta_ =  {fields:  {}};
LineItemTaxRates._meta_._class_ =  LineItemTaxRates;
LineItemTaxRates._meta_.fields["rates"] = {};
LineItemTaxRates._meta_.fields["rates"].type = Object;
LineItemTaxRates._meta_.fields["rates"].valueType = inventory_TaxRate;

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