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

{{#models}}
  {{#model}}
    {{#isEnum}}
{{>partial_model_enum_class}}
    {{/isEnum}}
    {{^isEnum}}
{{>partial_model_generic}}
    {{/isEnum}}
  {{/model}}
{{/models}}
}));
