text: /*
   * Hydrogen Proton API
   * Financial engineering module of Hydrogen Atom
   *
   * OpenAPI spec version: 1.9.2
   * Contact: info@hydrogenplatform.com
   *
   * NOTE: This class is auto generated by the swagger code generator program.
   * https://github.com/swagger-api/swagger-codegen.git
   *
   * Swagger Codegen version: 2.4.19
   *
   * 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.HydrogenProtonApi) {
        root.HydrogenProtonApi = {};
      }
      root.HydrogenProtonApi.MortgageCalculatorDownPaymentRequest = factory(root.HydrogenProtonApi.ApiClient);
    }
  }(this, function(ApiClient) {
    'use strict';
  
    /**
     * The MortgageCalculatorDownPaymentRequest model module.
     * @module model/MortgageCalculatorDownPaymentRequest
     * @version 1.9.2
     */
  
    /**
     * Constructs a new <code>MortgageCalculatorDownPaymentRequest</code>.
     * @alias module:model/MortgageCalculatorDownPaymentRequest
     * @class
     * @param periodicPayment {Number} 
     * @param homePrice {Number} 
     */
    var exports = function(periodicPayment, homePrice) {
      this.periodicPayment = periodicPayment;
      this.homePrice = homePrice;
    };
  
    /**
     * Constructs a <code>MortgageCalculatorDownPaymentRequest</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/MortgageCalculatorDownPaymentRequest} obj Optional instance to populate.
     * @return {module:model/MortgageCalculatorDownPaymentRequest} The populated <code>MortgageCalculatorDownPaymentRequest</code> instance.
     */
    exports.constructFromObject = function(data, obj) {
      if (data) {
        obj = obj || new exports();
        if (data.hasOwnProperty('periodic_payment'))
          obj.periodicPayment = ApiClient.convertToType(data['periodic_payment'], 'Number');
        if (data.hasOwnProperty('home_price'))
          obj.homePrice = ApiClient.convertToType(data['home_price'], 'Number');
        if (data.hasOwnProperty('interest_rate'))
          obj.interestRate = ApiClient.convertToType(data['interest_rate'], 'Number');
        if (data.hasOwnProperty('mortgage_term'))
          obj.mortgageTerm = ApiClient.convertToType(data['mortgage_term'], 'Number');
      }
      return obj;
    }
  
    /**
     * @member {Number} periodicPayment
     */
    exports.prototype.periodicPayment = undefined;
  
    /**
     * @member {Number} homePrice
     */
    exports.prototype.homePrice = undefined;
  
    /**
     * @member {Number} interestRate
     * @default 0.04
     */
    exports.prototype.interestRate = 0.04;
  
    /**
     * @member {Number} mortgageTerm
     * @default 360
     */
    exports.prototype.mortgageTerm = 360;
  
  
    return exports;
  
  }));
  