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