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', 'models/CustomerResponse'], 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'), require('./CustomerResponse'));
  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.CustomersResponse = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.CustomerResponse);
  14. 14 : }
  15. 15 : }(this, function(ApiClient, CustomerResponse) {
  16. 16 : 'use strict';
  17. 17 :
  18. 18 :
  19. 19 :
  20. 20 :
  21. 21 : /**
  22. 22 : * The CustomersResponse model module.
  23. 23 : * @module models/CustomersResponse
  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>CustomersResponse</code>.
  30. 30 : * @alias module:models/CustomersResponse
  31. 31 : * @class
  32. 32 : */
  33. 33 : var exports = function() {
  34. 34 : var _this = this;
  35. 35 :
  36. 36 :
  37. 37 :
  38. 38 :
  39. 39 :
  40. 40 :
  41. 41 :
  42. 42 :
  43. 43 : };
  44. 44 :
  45. 45 : /**
  46. 46 : * Constructs a <code>CustomersResponse</code> from a plain JavaScript object, optionally creating a new instance.
  47. 47 : * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  48. 48 : * @param {Object} data The plain JavaScript object bearing properties of interest.
  49. 49 : * @param {module:models/CustomersResponse} obj Optional instance to populate.
  50. 50 : * @return {module:models/CustomersResponse} The populated <code>CustomersResponse</code> instance.
  51. 51 : */
  52. 52 : exports.constructFromObject = function(data, obj) {
  53. 53 : if (data) {
  54. 54 : obj = obj || new exports();
  55. 55 :
  56. 56 : if (data.hasOwnProperty('list')) {
  57. 57 : obj['list'] = ApiClient.convertToType(data['list'], [CustomerResponse]);
  58. 58 : }
  59. 59 : if (data.hasOwnProperty('total_results_count')) {
  60. 60 : obj['total_results_count'] = ApiClient.convertToType(data['total_results_count'], 'String');
  61. 61 : }
  62. 62 : if (data.hasOwnProperty('has_more_results')) {
  63. 63 : obj['has_more_results'] = ApiClient.convertToType(data['has_more_results'], 'String');
  64. 64 : }
  65. 65 : if (data.hasOwnProperty('url')) {
  66. 66 : obj['url'] = ApiClient.convertToType(data['url'], 'String');
  67. 67 : }
  68. 68 : if (data.hasOwnProperty('from_index')) {
  69. 69 : obj['from_index'] = ApiClient.convertToType(data['from_index'], 'String');
  70. 70 : }
  71. 71 : if (data.hasOwnProperty('to_index')) {
  72. 72 : obj['to_index'] = ApiClient.convertToType(data['to_index'], 'String');
  73. 73 : }
  74. 74 : if (data.hasOwnProperty('query_id')) {
  75. 75 : obj['query_id'] = ApiClient.convertToType(data['query_id'], 'String');
  76. 76 : }
  77. 77 : }
  78. 78 : return obj;
  79. 79 : };
  80. 80 :
  81. 81 : /**
  82. 82 : * @member {Array.<module:models/CustomerResponse>} list
  83. 83 : */
  84. 84 : exports.prototype['list'] = undefined;
  85. 85 : /**
  86. 86 : * The total number of customers available matching the search criteria.
  87. 87 : * @member {String} total_results_count
  88. 88 : */
  89. 89 : exports.prototype['total_results_count'] = undefined;
  90. 90 : /**
  91. 91 : * true if there are more results or pages
  92. 92 : * @member {module:models/CustomersResponse.HasMoreResultsEnum} has_more_results
  93. 93 : */
  94. 94 : exports.prototype['has_more_results'] = undefined;
  95. 95 : /**
  96. 96 : * This URL fetches the next or previous set of payments, based on the presence of after_object or before_object parameter.
  97. 97 : * @member {String} url
  98. 98 : */
  99. 99 : exports.prototype['url'] = undefined;
  100. 100 : /**
  101. 101 : * The id of the object before which the previous set of objects are to be retrieved.
  102. 102 : * @member {String} from_index
  103. 103 : */
  104. 104 : exports.prototype['from_index'] = undefined;
  105. 105 : /**
  106. 106 : * The id of the object after which the next set of objects are to be retrieved.
  107. 107 : * @member {String} to_index
  108. 108 : */
  109. 109 : exports.prototype['to_index'] = undefined;
  110. 110 : /**
  111. 111 : * The query id of the object.
  112. 112 : * @member {String} query_id
  113. 113 : */
  114. 114 : exports.prototype['query_id'] = undefined;
  115. 115 :
  116. 116 :
  117. 117 : /**
  118. 118 : * Allowed values for the <code>has_more_results</code> property.
  119. 119 : * @enum {String}
  120. 120 : * @readonly
  121. 121 : */
  122. 122 : exports.HasMoreResultsEnum = {
  123. 123 : /**
  124. 124 : * value: "true"
  125. 125 : * @const
  126. 126 : */
  127. 127 : "true": "true",
  128. 128 : /**
  129. 129 : * value: "false"
  130. 130 : * @const
  131. 131 : */
  132. 132 : "false": "false" };
  133. 133 :
  134. 134 :
  135. 135 : return exports;
  136. 136 : }));
  137. 137 :
  138. 138 :