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