text: /*
   * Hydrogen Proton API
   * Financial engineering module of Hydrogen Atom
   *
   * OpenAPI spec version: 1.7.18
   * 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.14
   *
   * 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.AccumulationGoalDepositConfig = factory(root.HydrogenProtonApi.ApiClient);
    }
  }(this, function(ApiClient) {
    'use strict';
  
    /**
     * The AccumulationGoalDepositConfig model module.
     * @module model/AccumulationGoalDepositConfig
     * @version 1.7.18
     */
  
    /**
     * Constructs a new <code>AccumulationGoalDepositConfig</code>.
     * @alias module:model/AccumulationGoalDepositConfig
     * @class
     */
    var exports = function() {
    };
  
    /**
     * Constructs a <code>AccumulationGoalDepositConfig</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/AccumulationGoalDepositConfig} obj Optional instance to populate.
     * @return {module:model/AccumulationGoalDepositConfig} The populated <code>AccumulationGoalDepositConfig</code> instance.
     */
    exports.constructFromObject = function(data, obj) {
      if (data) {
        obj = obj || new exports();
        if (data.hasOwnProperty('dep_inflation'))
          obj.depInflation = ApiClient.convertToType(data['dep_inflation'], 'Number');
        if (data.hasOwnProperty('dep_amount'))
          obj.depAmount = ApiClient.convertToType(data['dep_amount'], 'Number');
        if (data.hasOwnProperty('dep_frequency'))
          obj.depFrequency = ApiClient.convertToType(data['dep_frequency'], 'String');
        if (data.hasOwnProperty('dep_start_reference'))
          obj.depStartReference = ApiClient.convertToType(data['dep_start_reference'], 'String');
        if (data.hasOwnProperty('dep_end_period'))
          obj.depEndPeriod = ApiClient.convertToType(data['dep_end_period'], 'Number');
        if (data.hasOwnProperty('dep_start_period'))
          obj.depStartPeriod = ApiClient.convertToType(data['dep_start_period'], 'Number');
        if (data.hasOwnProperty('dep_end_reference'))
          obj.depEndReference = ApiClient.convertToType(data['dep_end_reference'], 'String');
      }
      return obj;
    }
  
    /**
     * @member {Number} depInflation
     * @default 0.0
     */
    exports.prototype.depInflation = 0.0;
  
    /**
     * @member {Number} depAmount
     */
    exports.prototype.depAmount = undefined;
  
    /**
     * @member {module:model/AccumulationGoalDepositConfig.DepFrequencyEnum} depFrequency
     * @default 'year'
     */
    exports.prototype.depFrequency = 'year';
  
    /**
     * @member {module:model/AccumulationGoalDepositConfig.DepStartReferenceEnum} depStartReference
     * @default 'a_start'
     */
    exports.prototype.depStartReference = 'a_start';
  
    /**
     * @member {Number} depEndPeriod
     * @default 0
     */
    exports.prototype.depEndPeriod = 0;
  
    /**
     * @member {Number} depStartPeriod
     * @default 0
     */
    exports.prototype.depStartPeriod = 0;
  
    /**
     * @member {module:model/AccumulationGoalDepositConfig.DepEndReferenceEnum} depEndReference
     * @default 'a_end'
     */
    exports.prototype.depEndReference = 'a_end';
  
  
    /**
     * Allowed values for the <code>depFrequency</code> property.
     * @enum {String}
     * @readonly
     */
    exports.DepFrequencyEnum = {
      /**
       * value: "year"
       * @const
       */
      year: "year",
  
      /**
       * value: "six_months"
       * @const
       */
      sixMonths: "six_months",
  
      /**
       * value: "quarter"
       * @const
       */
      quarter: "quarter",
  
      /**
       * value: "month"
       * @const
       */
      month: "month",
  
      /**
       * value: "two_weeks"
       * @const
       */
      twoWeeks: "two_weeks",
  
      /**
       * value: "week"
       * @const
       */
      week: "week",
  
      /**
       * value: "day"
       * @const
       */
      day: "day"
    };
  
  
    /**
     * Allowed values for the <code>depStartReference</code> property.
     * @enum {String}
     * @readonly
     */
    exports.DepStartReferenceEnum = {
      /**
       * value: "a_start"
       * @const
       */
      start: "a_start",
  
      /**
       * value: "a_end"
       * @const
       */
      end: "a_end"
    };
  
  
    /**
     * Allowed values for the <code>depEndReference</code> property.
     * @enum {String}
     * @readonly
     */
    exports.DepEndReferenceEnum = {
      /**
       * value: "a_start"
       * @const
       */
      start: "a_start",
  
      /**
       * value: "a_end"
       * @const
       */
      end: "a_end"
    };
  
    return exports;
  
  }));
  