@flexprice/sdk 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,190 @@
1
+ /**
2
+ * FlexPrice API
3
+ * FlexPrice API Service
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import ApiClient from '../ApiClient';
15
+ import DtoUsageAnalyticPoint from './DtoUsageAnalyticPoint';
16
+ import TypesAggregationType from './TypesAggregationType';
17
+
18
+ /**
19
+ * The DtoUsageAnalyticItem model module.
20
+ * @module model/DtoUsageAnalyticItem
21
+ * @version 1.0
22
+ */
23
+ class DtoUsageAnalyticItem {
24
+ /**
25
+ * Constructs a new <code>DtoUsageAnalyticItem</code>.
26
+ * @alias module:model/DtoUsageAnalyticItem
27
+ */
28
+ constructor() {
29
+ DtoUsageAnalyticItem.initialize(this);
30
+ }
31
+
32
+ /**
33
+ * Initializes the fields of this object.
34
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35
+ * Only for internal use.
36
+ */
37
+ static initialize(obj) {}
38
+
39
+ /**
40
+ * Constructs a <code>DtoUsageAnalyticItem</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:model/DtoUsageAnalyticItem} obj Optional instance to populate.
44
+ * @return {module:model/DtoUsageAnalyticItem} The populated <code>DtoUsageAnalyticItem</code> instance.
45
+ */
46
+ static constructFromObject(data, obj) {
47
+ if (data) {
48
+ obj = obj || new DtoUsageAnalyticItem();
49
+ if (data.hasOwnProperty('aggregation_type')) {
50
+ obj['aggregation_type'] = TypesAggregationType.constructFromObject(data['aggregation_type']);
51
+ }
52
+ if (data.hasOwnProperty('currency')) {
53
+ obj['currency'] = ApiClient.convertToType(data['currency'], 'String');
54
+ }
55
+ if (data.hasOwnProperty('event_name')) {
56
+ obj['event_name'] = ApiClient.convertToType(data['event_name'], 'String');
57
+ }
58
+ if (data.hasOwnProperty('feature_id')) {
59
+ obj['feature_id'] = ApiClient.convertToType(data['feature_id'], 'String');
60
+ }
61
+ if (data.hasOwnProperty('name')) {
62
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
63
+ }
64
+ if (data.hasOwnProperty('points')) {
65
+ obj['points'] = ApiClient.convertToType(data['points'], [DtoUsageAnalyticPoint]);
66
+ }
67
+ if (data.hasOwnProperty('source')) {
68
+ obj['source'] = ApiClient.convertToType(data['source'], 'String');
69
+ }
70
+ if (data.hasOwnProperty('total_cost')) {
71
+ obj['total_cost'] = ApiClient.convertToType(data['total_cost'], 'Number');
72
+ }
73
+ if (data.hasOwnProperty('total_usage')) {
74
+ obj['total_usage'] = ApiClient.convertToType(data['total_usage'], 'Number');
75
+ }
76
+ if (data.hasOwnProperty('unit')) {
77
+ obj['unit'] = ApiClient.convertToType(data['unit'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('unit_plural')) {
80
+ obj['unit_plural'] = ApiClient.convertToType(data['unit_plural'], 'String');
81
+ }
82
+ }
83
+ return obj;
84
+ }
85
+
86
+ /**
87
+ * Validates the JSON data with respect to <code>DtoUsageAnalyticItem</code>.
88
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
89
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoUsageAnalyticItem</code>.
90
+ */
91
+ static validateJSON(data) {
92
+ // ensure the json data is a string
93
+ if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
94
+ throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
95
+ }
96
+ // ensure the json data is a string
97
+ if (data['event_name'] && !(typeof data['event_name'] === 'string' || data['event_name'] instanceof String)) {
98
+ throw new Error("Expected the field `event_name` to be a primitive type in the JSON string but got " + data['event_name']);
99
+ }
100
+ // ensure the json data is a string
101
+ if (data['feature_id'] && !(typeof data['feature_id'] === 'string' || data['feature_id'] instanceof String)) {
102
+ throw new Error("Expected the field `feature_id` to be a primitive type in the JSON string but got " + data['feature_id']);
103
+ }
104
+ // ensure the json data is a string
105
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
106
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
107
+ }
108
+ if (data['points']) {
109
+ // data not null
110
+ // ensure the json data is an array
111
+ if (!Array.isArray(data['points'])) {
112
+ throw new Error("Expected the field `points` to be an array in the JSON data but got " + data['points']);
113
+ }
114
+ // validate the optional field `points` (array)
115
+ for (const item of data['points']) {
116
+ DtoUsageAnalyticPoint.validateJSON(item);
117
+ }
118
+ ;
119
+ }
120
+ // ensure the json data is a string
121
+ if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
122
+ throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
123
+ }
124
+ // ensure the json data is a string
125
+ if (data['unit'] && !(typeof data['unit'] === 'string' || data['unit'] instanceof String)) {
126
+ throw new Error("Expected the field `unit` to be a primitive type in the JSON string but got " + data['unit']);
127
+ }
128
+ // ensure the json data is a string
129
+ if (data['unit_plural'] && !(typeof data['unit_plural'] === 'string' || data['unit_plural'] instanceof String)) {
130
+ throw new Error("Expected the field `unit_plural` to be a primitive type in the JSON string but got " + data['unit_plural']);
131
+ }
132
+ return true;
133
+ }
134
+ }
135
+
136
+ /**
137
+ * @member {module:model/TypesAggregationType} aggregation_type
138
+ */
139
+ DtoUsageAnalyticItem.prototype['aggregation_type'] = undefined;
140
+
141
+ /**
142
+ * @member {String} currency
143
+ */
144
+ DtoUsageAnalyticItem.prototype['currency'] = undefined;
145
+
146
+ /**
147
+ * @member {String} event_name
148
+ */
149
+ DtoUsageAnalyticItem.prototype['event_name'] = undefined;
150
+
151
+ /**
152
+ * @member {String} feature_id
153
+ */
154
+ DtoUsageAnalyticItem.prototype['feature_id'] = undefined;
155
+
156
+ /**
157
+ * @member {String} name
158
+ */
159
+ DtoUsageAnalyticItem.prototype['name'] = undefined;
160
+
161
+ /**
162
+ * @member {Array.<module:model/DtoUsageAnalyticPoint>} points
163
+ */
164
+ DtoUsageAnalyticItem.prototype['points'] = undefined;
165
+
166
+ /**
167
+ * @member {String} source
168
+ */
169
+ DtoUsageAnalyticItem.prototype['source'] = undefined;
170
+
171
+ /**
172
+ * @member {Number} total_cost
173
+ */
174
+ DtoUsageAnalyticItem.prototype['total_cost'] = undefined;
175
+
176
+ /**
177
+ * @member {Number} total_usage
178
+ */
179
+ DtoUsageAnalyticItem.prototype['total_usage'] = undefined;
180
+
181
+ /**
182
+ * @member {String} unit
183
+ */
184
+ DtoUsageAnalyticItem.prototype['unit'] = undefined;
185
+
186
+ /**
187
+ * @member {String} unit_plural
188
+ */
189
+ DtoUsageAnalyticItem.prototype['unit_plural'] = undefined;
190
+ export default DtoUsageAnalyticItem;
@@ -0,0 +1,88 @@
1
+ /**
2
+ * FlexPrice API
3
+ * FlexPrice API Service
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import ApiClient from '../ApiClient';
15
+
16
+ /**
17
+ * The DtoUsageAnalyticPoint model module.
18
+ * @module model/DtoUsageAnalyticPoint
19
+ * @version 1.0
20
+ */
21
+ class DtoUsageAnalyticPoint {
22
+ /**
23
+ * Constructs a new <code>DtoUsageAnalyticPoint</code>.
24
+ * @alias module:model/DtoUsageAnalyticPoint
25
+ */
26
+ constructor() {
27
+ DtoUsageAnalyticPoint.initialize(this);
28
+ }
29
+
30
+ /**
31
+ * Initializes the fields of this object.
32
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
33
+ * Only for internal use.
34
+ */
35
+ static initialize(obj) {}
36
+
37
+ /**
38
+ * Constructs a <code>DtoUsageAnalyticPoint</code> from a plain JavaScript object, optionally creating a new instance.
39
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
40
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
41
+ * @param {module:model/DtoUsageAnalyticPoint} obj Optional instance to populate.
42
+ * @return {module:model/DtoUsageAnalyticPoint} The populated <code>DtoUsageAnalyticPoint</code> instance.
43
+ */
44
+ static constructFromObject(data, obj) {
45
+ if (data) {
46
+ obj = obj || new DtoUsageAnalyticPoint();
47
+ if (data.hasOwnProperty('cost')) {
48
+ obj['cost'] = ApiClient.convertToType(data['cost'], 'Number');
49
+ }
50
+ if (data.hasOwnProperty('timestamp')) {
51
+ obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String');
52
+ }
53
+ if (data.hasOwnProperty('usage')) {
54
+ obj['usage'] = ApiClient.convertToType(data['usage'], 'Number');
55
+ }
56
+ }
57
+ return obj;
58
+ }
59
+
60
+ /**
61
+ * Validates the JSON data with respect to <code>DtoUsageAnalyticPoint</code>.
62
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
63
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoUsageAnalyticPoint</code>.
64
+ */
65
+ static validateJSON(data) {
66
+ // ensure the json data is a string
67
+ if (data['timestamp'] && !(typeof data['timestamp'] === 'string' || data['timestamp'] instanceof String)) {
68
+ throw new Error("Expected the field `timestamp` to be a primitive type in the JSON string but got " + data['timestamp']);
69
+ }
70
+ return true;
71
+ }
72
+ }
73
+
74
+ /**
75
+ * @member {Number} cost
76
+ */
77
+ DtoUsageAnalyticPoint.prototype['cost'] = undefined;
78
+
79
+ /**
80
+ * @member {String} timestamp
81
+ */
82
+ DtoUsageAnalyticPoint.prototype['timestamp'] = undefined;
83
+
84
+ /**
85
+ * @member {Number} usage
86
+ */
87
+ DtoUsageAnalyticPoint.prototype['usage'] = undefined;
88
+ export default DtoUsageAnalyticPoint;
@@ -0,0 +1,112 @@
1
+ /**
2
+ * FlexPrice API
3
+ * FlexPrice API Service
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import ApiClient from '../ApiClient';
15
+
16
+ /**
17
+ * The GithubComFlexpriceFlexpriceInternalTypesValue model module.
18
+ * @module model/GithubComFlexpriceFlexpriceInternalTypesValue
19
+ * @version 1.0
20
+ */
21
+ class GithubComFlexpriceFlexpriceInternalTypesValue {
22
+ /**
23
+ * Constructs a new <code>GithubComFlexpriceFlexpriceInternalTypesValue</code>.
24
+ * @alias module:model/GithubComFlexpriceFlexpriceInternalTypesValue
25
+ */
26
+ constructor() {
27
+ GithubComFlexpriceFlexpriceInternalTypesValue.initialize(this);
28
+ }
29
+
30
+ /**
31
+ * Initializes the fields of this object.
32
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
33
+ * Only for internal use.
34
+ */
35
+ static initialize(obj) {}
36
+
37
+ /**
38
+ * Constructs a <code>GithubComFlexpriceFlexpriceInternalTypesValue</code> from a plain JavaScript object, optionally creating a new instance.
39
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
40
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
41
+ * @param {module:model/GithubComFlexpriceFlexpriceInternalTypesValue} obj Optional instance to populate.
42
+ * @return {module:model/GithubComFlexpriceFlexpriceInternalTypesValue} The populated <code>GithubComFlexpriceFlexpriceInternalTypesValue</code> instance.
43
+ */
44
+ static constructFromObject(data, obj) {
45
+ if (data) {
46
+ obj = obj || new GithubComFlexpriceFlexpriceInternalTypesValue();
47
+ if (data.hasOwnProperty('array')) {
48
+ obj['array'] = ApiClient.convertToType(data['array'], ['String']);
49
+ }
50
+ if (data.hasOwnProperty('boolean')) {
51
+ obj['boolean'] = ApiClient.convertToType(data['boolean'], 'Boolean');
52
+ }
53
+ if (data.hasOwnProperty('date')) {
54
+ obj['date'] = ApiClient.convertToType(data['date'], 'String');
55
+ }
56
+ if (data.hasOwnProperty('number')) {
57
+ obj['number'] = ApiClient.convertToType(data['number'], 'Number');
58
+ }
59
+ if (data.hasOwnProperty('string')) {
60
+ obj['string'] = ApiClient.convertToType(data['string'], 'String');
61
+ }
62
+ }
63
+ return obj;
64
+ }
65
+
66
+ /**
67
+ * Validates the JSON data with respect to <code>GithubComFlexpriceFlexpriceInternalTypesValue</code>.
68
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
69
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GithubComFlexpriceFlexpriceInternalTypesValue</code>.
70
+ */
71
+ static validateJSON(data) {
72
+ // ensure the json data is an array
73
+ if (!Array.isArray(data['array'])) {
74
+ throw new Error("Expected the field `array` to be an array in the JSON data but got " + data['array']);
75
+ }
76
+ // ensure the json data is a string
77
+ if (data['date'] && !(typeof data['date'] === 'string' || data['date'] instanceof String)) {
78
+ throw new Error("Expected the field `date` to be a primitive type in the JSON string but got " + data['date']);
79
+ }
80
+ // ensure the json data is a string
81
+ if (data['string'] && !(typeof data['string'] === 'string' || data['string'] instanceof String)) {
82
+ throw new Error("Expected the field `string` to be a primitive type in the JSON string but got " + data['string']);
83
+ }
84
+ return true;
85
+ }
86
+ }
87
+
88
+ /**
89
+ * @member {Array.<String>} array
90
+ */
91
+ GithubComFlexpriceFlexpriceInternalTypesValue.prototype['array'] = undefined;
92
+
93
+ /**
94
+ * @member {Boolean} boolean
95
+ */
96
+ GithubComFlexpriceFlexpriceInternalTypesValue.prototype['boolean'] = undefined;
97
+
98
+ /**
99
+ * @member {String} date
100
+ */
101
+ GithubComFlexpriceFlexpriceInternalTypesValue.prototype['date'] = undefined;
102
+
103
+ /**
104
+ * @member {Number} number
105
+ */
106
+ GithubComFlexpriceFlexpriceInternalTypesValue.prototype['number'] = undefined;
107
+
108
+ /**
109
+ * @member {String} string
110
+ */
111
+ GithubComFlexpriceFlexpriceInternalTypesValue.prototype['string'] = undefined;
112
+ export default GithubComFlexpriceFlexpriceInternalTypesValue;
@@ -0,0 +1,230 @@
1
+ /**
2
+ * FlexPrice API
3
+ * FlexPrice API Service
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import ApiClient from '../ApiClient';
15
+ import TypesFilterCondition from './TypesFilterCondition';
16
+ import TypesSortCondition from './TypesSortCondition';
17
+ import TypesStatus from './TypesStatus';
18
+
19
+ /**
20
+ * The TypesCustomerFilter model module.
21
+ * @module model/TypesCustomerFilter
22
+ * @version 1.0
23
+ */
24
+ class TypesCustomerFilter {
25
+ /**
26
+ * Constructs a new <code>TypesCustomerFilter</code>.
27
+ * @alias module:model/TypesCustomerFilter
28
+ */
29
+ constructor() {
30
+ TypesCustomerFilter.initialize(this);
31
+ }
32
+
33
+ /**
34
+ * Initializes the fields of this object.
35
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
36
+ * Only for internal use.
37
+ */
38
+ static initialize(obj) {}
39
+
40
+ /**
41
+ * Constructs a <code>TypesCustomerFilter</code> from a plain JavaScript object, optionally creating a new instance.
42
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
43
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
44
+ * @param {module:model/TypesCustomerFilter} obj Optional instance to populate.
45
+ * @return {module:model/TypesCustomerFilter} The populated <code>TypesCustomerFilter</code> instance.
46
+ */
47
+ static constructFromObject(data, obj) {
48
+ if (data) {
49
+ obj = obj || new TypesCustomerFilter();
50
+ if (data.hasOwnProperty('customer_ids')) {
51
+ obj['customer_ids'] = ApiClient.convertToType(data['customer_ids'], ['String']);
52
+ }
53
+ if (data.hasOwnProperty('email')) {
54
+ obj['email'] = ApiClient.convertToType(data['email'], 'String');
55
+ }
56
+ if (data.hasOwnProperty('end_time')) {
57
+ obj['end_time'] = ApiClient.convertToType(data['end_time'], 'String');
58
+ }
59
+ if (data.hasOwnProperty('expand')) {
60
+ obj['expand'] = ApiClient.convertToType(data['expand'], 'String');
61
+ }
62
+ if (data.hasOwnProperty('external_id')) {
63
+ obj['external_id'] = ApiClient.convertToType(data['external_id'], 'String');
64
+ }
65
+ if (data.hasOwnProperty('filters')) {
66
+ obj['filters'] = ApiClient.convertToType(data['filters'], [TypesFilterCondition]);
67
+ }
68
+ if (data.hasOwnProperty('limit')) {
69
+ obj['limit'] = ApiClient.convertToType(data['limit'], 'Number');
70
+ }
71
+ if (data.hasOwnProperty('offset')) {
72
+ obj['offset'] = ApiClient.convertToType(data['offset'], 'Number');
73
+ }
74
+ if (data.hasOwnProperty('order')) {
75
+ obj['order'] = ApiClient.convertToType(data['order'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('sort')) {
78
+ obj['sort'] = ApiClient.convertToType(data['sort'], [TypesSortCondition]);
79
+ }
80
+ if (data.hasOwnProperty('start_time')) {
81
+ obj['start_time'] = ApiClient.convertToType(data['start_time'], 'String');
82
+ }
83
+ if (data.hasOwnProperty('status')) {
84
+ obj['status'] = TypesStatus.constructFromObject(data['status']);
85
+ }
86
+ }
87
+ return obj;
88
+ }
89
+
90
+ /**
91
+ * Validates the JSON data with respect to <code>TypesCustomerFilter</code>.
92
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
93
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TypesCustomerFilter</code>.
94
+ */
95
+ static validateJSON(data) {
96
+ // ensure the json data is an array
97
+ if (!Array.isArray(data['customer_ids'])) {
98
+ throw new Error("Expected the field `customer_ids` to be an array in the JSON data but got " + data['customer_ids']);
99
+ }
100
+ // ensure the json data is a string
101
+ if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
102
+ throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
103
+ }
104
+ // ensure the json data is a string
105
+ if (data['end_time'] && !(typeof data['end_time'] === 'string' || data['end_time'] instanceof String)) {
106
+ throw new Error("Expected the field `end_time` to be a primitive type in the JSON string but got " + data['end_time']);
107
+ }
108
+ // ensure the json data is a string
109
+ if (data['expand'] && !(typeof data['expand'] === 'string' || data['expand'] instanceof String)) {
110
+ throw new Error("Expected the field `expand` to be a primitive type in the JSON string but got " + data['expand']);
111
+ }
112
+ // ensure the json data is a string
113
+ if (data['external_id'] && !(typeof data['external_id'] === 'string' || data['external_id'] instanceof String)) {
114
+ throw new Error("Expected the field `external_id` to be a primitive type in the JSON string but got " + data['external_id']);
115
+ }
116
+ if (data['filters']) {
117
+ // data not null
118
+ // ensure the json data is an array
119
+ if (!Array.isArray(data['filters'])) {
120
+ throw new Error("Expected the field `filters` to be an array in the JSON data but got " + data['filters']);
121
+ }
122
+ // validate the optional field `filters` (array)
123
+ for (const item of data['filters']) {
124
+ TypesFilterCondition.validateJSON(item);
125
+ }
126
+ ;
127
+ }
128
+ // ensure the json data is a string
129
+ if (data['order'] && !(typeof data['order'] === 'string' || data['order'] instanceof String)) {
130
+ throw new Error("Expected the field `order` to be a primitive type in the JSON string but got " + data['order']);
131
+ }
132
+ if (data['sort']) {
133
+ // data not null
134
+ // ensure the json data is an array
135
+ if (!Array.isArray(data['sort'])) {
136
+ throw new Error("Expected the field `sort` to be an array in the JSON data but got " + data['sort']);
137
+ }
138
+ // validate the optional field `sort` (array)
139
+ for (const item of data['sort']) {
140
+ TypesSortCondition.validateJSON(item);
141
+ }
142
+ ;
143
+ }
144
+ // ensure the json data is a string
145
+ if (data['start_time'] && !(typeof data['start_time'] === 'string' || data['start_time'] instanceof String)) {
146
+ throw new Error("Expected the field `start_time` to be a primitive type in the JSON string but got " + data['start_time']);
147
+ }
148
+ return true;
149
+ }
150
+ }
151
+
152
+ /**
153
+ * @member {Array.<String>} customer_ids
154
+ */
155
+ TypesCustomerFilter.prototype['customer_ids'] = undefined;
156
+
157
+ /**
158
+ * @member {String} email
159
+ */
160
+ TypesCustomerFilter.prototype['email'] = undefined;
161
+
162
+ /**
163
+ * @member {String} end_time
164
+ */
165
+ TypesCustomerFilter.prototype['end_time'] = undefined;
166
+
167
+ /**
168
+ * @member {String} expand
169
+ */
170
+ TypesCustomerFilter.prototype['expand'] = undefined;
171
+
172
+ /**
173
+ * @member {String} external_id
174
+ */
175
+ TypesCustomerFilter.prototype['external_id'] = undefined;
176
+
177
+ /**
178
+ * filters allows complex filtering based on multiple fields
179
+ * @member {Array.<module:model/TypesFilterCondition>} filters
180
+ */
181
+ TypesCustomerFilter.prototype['filters'] = undefined;
182
+
183
+ /**
184
+ * @member {Number} limit
185
+ */
186
+ TypesCustomerFilter.prototype['limit'] = undefined;
187
+
188
+ /**
189
+ * @member {Number} offset
190
+ */
191
+ TypesCustomerFilter.prototype['offset'] = undefined;
192
+
193
+ /**
194
+ * @member {module:model/TypesCustomerFilter.OrderEnum} order
195
+ */
196
+ TypesCustomerFilter.prototype['order'] = undefined;
197
+
198
+ /**
199
+ * @member {Array.<module:model/TypesSortCondition>} sort
200
+ */
201
+ TypesCustomerFilter.prototype['sort'] = undefined;
202
+
203
+ /**
204
+ * @member {String} start_time
205
+ */
206
+ TypesCustomerFilter.prototype['start_time'] = undefined;
207
+
208
+ /**
209
+ * @member {module:model/TypesStatus} status
210
+ */
211
+ TypesCustomerFilter.prototype['status'] = undefined;
212
+
213
+ /**
214
+ * Allowed values for the <code>order</code> property.
215
+ * @enum {String}
216
+ * @readonly
217
+ */
218
+ TypesCustomerFilter['OrderEnum'] = {
219
+ /**
220
+ * value: "asc"
221
+ * @const
222
+ */
223
+ "asc": "asc",
224
+ /**
225
+ * value: "desc"
226
+ * @const
227
+ */
228
+ "desc": "desc"
229
+ };
230
+ export default TypesCustomerFilter;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * FlexPrice API
3
+ * FlexPrice API Service
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import ApiClient from '../ApiClient';
15
+ /**
16
+ * Enum class TypesDataType.
17
+ * @enum {}
18
+ * @readonly
19
+ */
20
+ export default class TypesDataType {
21
+ /**
22
+ * value: "string"
23
+ * @const
24
+ */
25
+ "DataTypeString" = "string";
26
+
27
+ /**
28
+ * value: "number"
29
+ * @const
30
+ */
31
+ "DataTypeNumber" = "number";
32
+
33
+ /**
34
+ * value: "date"
35
+ * @const
36
+ */
37
+ "DataTypeDate" = "date";
38
+
39
+ /**
40
+ * value: "array"
41
+ * @const
42
+ */
43
+ "DataTypeArray" = "array";
44
+
45
+ /**
46
+ * Returns a <code>TypesDataType</code> enum value from a Javascript object name.
47
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
48
+ * @return {module:model/TypesDataType} The enum <code>TypesDataType</code> value.
49
+ */
50
+ static constructFromObject(object) {
51
+ return object;
52
+ }
53
+ }