- 1 :
(function(root, factory) {
- 2 :
if (typeof define === 'function' && define.amd) {
- 3 :
// AMD. Register as an anonymous module.
- 4 :
define(['ApiClient', 'models/ErrorVo'], factory);
- 5 :
} else if (typeof module === 'object' && module.exports) {
- 6 :
// CommonJS-like environments that support module.exports, like Node.
- 7 :
module.exports = factory(require('../ApiClient'), require('./ErrorVo'));
- 8 :
} else {
- 9 :
// Browser globals (root is window)
- 10 :
if (!root.OrbipayPaymentsapiClient) {
- 11 :
root.OrbipayPaymentsapiClient = {};
- 12 :
}
- 13 :
root.OrbipayPaymentsapiClient.ErrorResponseVo = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.ErrorVo);
- 14 :
}
- 15 :
}(this, function(ApiClient, ErrorVo) {
- 16 :
'use strict';
- 17 :
- 18 :
- 19 :
- 20 :
- 21 :
/**
- 22 :
* The ErrorResponseVo model module.
- 23 :
* @module models/ErrorResponseVo
- 24 :
*/
- 25 :
- 26 :
/**
- 27 :
* <h3 style="color:red"> This class subject to change without prior notice, Please dont use this class directly. </h3>
- 28 :
- 29 :
* Constructs a new <code>ErrorResponseVo</code>.
- 30 :
* @alias module:models/ErrorResponseVo
- 31 :
* @class
- 32 :
*/
- 33 :
var exports = function() {
- 34 :
var _this = this;
- 35 :
- 36 :
- 37 :
};
- 38 :
- 39 :
/**
- 40 :
* Constructs a <code>ErrorResponseVo</code> from a plain JavaScript object, optionally creating a new instance.
- 41 :
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
- 42 :
* @param {Object} data The plain JavaScript object bearing properties of interest.
- 43 :
* @param {module:models/ErrorResponseVo} obj Optional instance to populate.
- 44 :
* @return {module:models/ErrorResponseVo} The populated <code>ErrorResponseVo</code> instance.
- 45 :
*/
- 46 :
exports.constructFromObject = function(data, obj) {
- 47 :
if (data) {
- 48 :
obj = obj || new exports();
- 49 :
- 50 :
if (data.hasOwnProperty('errors')) {
- 51 :
obj['errors'] = ApiClient.convertToType(data['errors'], [ErrorVo]);
- 52 :
}
- 53 :
}
- 54 :
return obj;
- 55 :
};
- 56 :
- 57 :
/**
- 58 :
* @member {Array.<module:models/ErrorVo>} errors
- 59 :
*/
- 60 :
exports.prototype['errors'] = undefined;
- 61 :
- 62 :
- 63 :
- 64 :
return exports;
- 65 :
}));
- 66 :
- 67 :