/**
 * AvaTax Brazil
 * The Avatax-Brazil API exposes the most commonly services available for interacting with the AvaTax-Brazil services, allowing calculation of taxes, issuing electronic invoice documents and modifying existing transactions when allowed by tax authorities.  This API is exclusively for use by business with a physical presence in Brazil.
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 *
 */

(function(root, factory) {
  if (typeof define === 'function' && define.amd) {
    // AMD. Register as an anonymous module.
    define(['ApiClient'], factory);
  } else if (typeof module === 'object' && module.exports) {
    // CommonJS-like environments that support module.exports, like Node.
    module.exports = factory(require('../ApiClient'));
  } else {
    // Browser globals (root is window)
    if (!root.AvaTaxBrazil) {
      root.AvaTaxBrazil = {};
    }
    root.AvaTaxBrazil.Medicine = factory(root.AvaTaxBrazil.ApiClient);
  }
}(this, function(ApiClient) {
  'use strict';




  /**
   * The Medicine model module.
   * @module model/Medicine
   * @version 1.0
   */

  /**
   * Constructs a new <code>Medicine</code>.
   * @alias module:model/Medicine
   * @class
   * @param loteNumber {String} 
   * @param loteQuantity {Number} This is a decimal type with 11 digits including 3 decimal positions.
   * @param manufactotyDate {Date} 
   * @param expirationDate {Date} 
   * @param maxValueToEndUser {Number} This is a decimal type with 15 digits including 2 decimal positions.  Max value to end user.
   */
  var exports = function(loteNumber, loteQuantity, manufactotyDate, expirationDate, maxValueToEndUser) {
    var _this = this;

    _this['loteNumber'] = loteNumber;
    _this['loteQuantity'] = loteQuantity;
    _this['manufactotyDate'] = manufactotyDate;
    _this['expirationDate'] = expirationDate;
    _this['maxValueToEndUser'] = maxValueToEndUser;
  };

  /**
   * Constructs a <code>Medicine</code> from a plain JavaScript object, optionally creating a new instance.
   * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
   * @param {Object} data The plain JavaScript object bearing properties of interest.
   * @param {module:model/Medicine} obj Optional instance to populate.
   * @return {module:model/Medicine} The populated <code>Medicine</code> instance.
   */
  exports.constructFromObject = function(data, obj) {
    if (data) {
      obj = obj || new exports();

      if (data.hasOwnProperty('loteNumber')) {
        obj['loteNumber'] = ApiClient.convertToType(data['loteNumber'], 'String');
      }
      if (data.hasOwnProperty('loteQuantity')) {
        obj['loteQuantity'] = ApiClient.convertToType(data['loteQuantity'], 'Number');
      }
      if (data.hasOwnProperty('manufactotyDate')) {
        obj['manufactotyDate'] = ApiClient.convertToType(data['manufactotyDate'], 'Date');
      }
      if (data.hasOwnProperty('expirationDate')) {
        obj['expirationDate'] = ApiClient.convertToType(data['expirationDate'], 'Date');
      }
      if (data.hasOwnProperty('maxValueToEndUser')) {
        obj['maxValueToEndUser'] = ApiClient.convertToType(data['maxValueToEndUser'], 'Number');
      }
    }
    return obj;
  }

  /**
   * @member {String} loteNumber
   */
  exports.prototype['loteNumber'] = undefined;
  /**
   * This is a decimal type with 11 digits including 3 decimal positions.
   * @member {Number} loteQuantity
   */
  exports.prototype['loteQuantity'] = undefined;
  /**
   * @member {Date} manufactotyDate
   */
  exports.prototype['manufactotyDate'] = undefined;
  /**
   * @member {Date} expirationDate
   */
  exports.prototype['expirationDate'] = undefined;
  /**
   * This is a decimal type with 15 digits including 2 decimal positions.  Max value to end user.
   * @member {Number} maxValueToEndUser
   */
  exports.prototype['maxValueToEndUser'] = undefined;



  return exports;
}));


