- 1 :
(function(root, factory) {
- 2 :
if (typeof define === 'function' && define.amd) {
- 3 :
// AMD. Register as an anonymous module.
- 4 :
define(['ApiClient'], 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'));
- 8 :
} else {
- 9 :
// Browser globals (root is window)
- 10 :
if (!root.OrbipayPaymentsapiClient) {
- 11 :
root.OrbipayPaymentsapiClient = {};
- 12 :
}
- 13 :
root.OrbipayPaymentsapiClient.ErrorVo = factory(root.OrbipayPaymentsapiClient.ApiClient);
- 14 :
}
- 15 :
}(this, function(ApiClient) {
- 16 :
'use strict';
- 17 :
- 18 :
- 19 :
- 20 :
- 21 :
/**
- 22 :
* The ErrorVo model module.
- 23 :
* @module models/ErrorVo
- 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>ErrorVo</code>.
- 30 :
* @alias module:models/ErrorVo
- 31 :
* @class
- 32 :
* @param code {String} A string indicating error
- 33 :
* @param message {String} A human-readable message providing more details about the error.
- 34 :
*/
- 35 :
var exports = function(code, message) {
- 36 :
var _this = this;
- 37 :
- 38 :
_this['code'] = code;
- 39 :
_this['message'] = message;
- 40 :
- 41 :
};
- 42 :
- 43 :
/**
- 44 :
* Constructs a <code>ErrorVo</code> from a plain JavaScript object, optionally creating a new instance.
- 45 :
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
- 46 :
* @param {Object} data The plain JavaScript object bearing properties of interest.
- 47 :
* @param {module:models/ErrorVo} obj Optional instance to populate.
- 48 :
* @return {module:models/ErrorVo} The populated <code>ErrorVo</code> instance.
- 49 :
*/
- 50 :
exports.constructFromObject = function(data, obj) {
- 51 :
if (data) {
- 52 :
obj = obj || new exports();
- 53 :
- 54 :
if (data.hasOwnProperty('code')) {
- 55 :
obj['code'] = ApiClient.convertToType(data['code'], 'String');
- 56 :
}
- 57 :
if (data.hasOwnProperty('message')) {
- 58 :
obj['message'] = ApiClient.convertToType(data['message'], 'String');
- 59 :
}
- 60 :
if (data.hasOwnProperty('field')) {
- 61 :
obj['field'] = ApiClient.convertToType(data['field'], 'String');
- 62 :
}
- 63 :
}
- 64 :
return obj;
- 65 :
};
- 66 :
- 67 :
/**
- 68 :
* A string indicating error
- 69 :
* @member {String} code
- 70 :
*/
- 71 :
exports.prototype['code'] = undefined;
- 72 :
/**
- 73 :
* A human-readable message providing more details about the error.
- 74 :
* @member {String} message
- 75 :
*/
- 76 :
exports.prototype['message'] = undefined;
- 77 :
/**
- 78 :
* Refers to the field in the request, if the error is specific to it.
- 79 :
* @member {String} field
- 80 :
*/
- 81 :
exports.prototype['field'] = undefined;
- 82 :
- 83 :
- 84 :
- 85 :
return exports;
- 86 :
}));
- 87 :
- 88 :