ultracart_api 4.0.141 → 4.0.143
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +39 -4
- data/docs/DatawarehouseApi.md +651 -0
- data/docs/Report.md +36 -0
- data/docs/ReportAuth.md +24 -0
- data/docs/ReportAuthResponse.md +26 -0
- data/docs/ReportDataSet.md +46 -0
- data/docs/ReportDataSetColumn.md +18 -0
- data/docs/ReportDataSetPage.md +36 -0
- data/docs/ReportDataSetPageResponse.md +26 -0
- data/docs/ReportDataSetQuery.md +40 -0
- data/docs/ReportDataSetResponse.md +26 -0
- data/docs/ReportDataSetRow.md +18 -0
- data/docs/ReportDataSetSchema.md +20 -0
- data/docs/ReportDataSetSummary.md +30 -0
- data/docs/ReportDataSource.md +28 -0
- data/docs/ReportDataSourceSchema.md +22 -0
- data/docs/ReportExecuteQueriesRequest.md +30 -0
- data/docs/ReportFilter.md +28 -0
- data/docs/ReportFilterConnection.md +20 -0
- data/docs/ReportPage.md +24 -0
- data/docs/ReportPageVisualization.md +34 -0
- data/docs/ReportPageVisualizationDimension.md +30 -0
- data/docs/ReportPageVisualizationMetric.md +24 -0
- data/docs/ReportResponse.md +26 -0
- data/docs/ReportWebsocketEvent.md +20 -0
- data/docs/ReportsResponse.md +26 -0
- data/lib/ultracart_api/api/datawarehouse_api.rb +626 -0
- data/lib/ultracart_api/models/report.rb +342 -0
- data/lib/ultracart_api/models/report_auth.rb +247 -0
- data/lib/ultracart_api/models/report_auth_response.rb +256 -0
- data/lib/ultracart_api/models/report_data_set.rb +397 -0
- data/lib/ultracart_api/models/report_data_set_column.rb +219 -0
- data/lib/ultracart_api/models/report_data_set_page.rb +308 -0
- data/lib/ultracart_api/models/report_data_set_page_response.rb +256 -0
- data/lib/ultracart_api/models/report_data_set_query.rb +365 -0
- data/lib/ultracart_api/models/report_data_set_response.rb +256 -0
- data/lib/ultracart_api/models/report_data_set_row.rb +221 -0
- data/lib/ultracart_api/models/report_data_set_schema.rb +263 -0
- data/lib/ultracart_api/models/report_data_set_summary.rb +316 -0
- data/lib/ultracart_api/models/report_data_source.rb +267 -0
- data/lib/ultracart_api/models/report_data_source_schema.rb +273 -0
- data/lib/ultracart_api/models/report_execute_queries_request.rb +313 -0
- data/lib/ultracart_api/models/report_filter.rb +307 -0
- data/lib/ultracart_api/models/report_filter_connection.rb +228 -0
- data/lib/ultracart_api/models/report_page.rb +251 -0
- data/lib/ultracart_api/models/report_page_visualization.rb +334 -0
- data/lib/ultracart_api/models/report_page_visualization_dimension.rb +279 -0
- data/lib/ultracart_api/models/report_page_visualization_metric.rb +283 -0
- data/lib/ultracart_api/models/report_response.rb +256 -0
- data/lib/ultracart_api/models/report_websocket_event.rb +263 -0
- data/lib/ultracart_api/models/reports_response.rb +258 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +25 -0
- metadata +51 -1
@@ -0,0 +1,651 @@
|
|
1
|
+
# UltracartClient::DatawarehouseApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_report**](DatawarehouseApi.md#delete_report) | **DELETE** /datawarehouse/reports/{report_oid} | Delete a report |
|
8
|
+
| [**execute_report_queries**](DatawarehouseApi.md#execute_report_queries) | **PUT** /datawarehouse/reports/execute | Execute the report queries |
|
9
|
+
| [**get_report**](DatawarehouseApi.md#get_report) | **GET** /datawarehouse/reports/{report_oid} | Get a report |
|
10
|
+
| [**get_report_data_set**](DatawarehouseApi.md#get_report_data_set) | **GET** /datawarehouse/reports/dataset/{dataset_uuid} | Get a report data set |
|
11
|
+
| [**get_report_data_set_page**](DatawarehouseApi.md#get_report_data_set_page) | **GET** /datawarehouse/reports/dataset/{dataset_uuid}/pages/{page_number} | Get a report data set page |
|
12
|
+
| [**get_report_websocket_authorization**](DatawarehouseApi.md#get_report_websocket_authorization) | **PUT** /datawarehouse/reports/auth | Get report websocket authorization |
|
13
|
+
| [**get_reports**](DatawarehouseApi.md#get_reports) | **GET** /datawarehouse/reports | Get list of reports available |
|
14
|
+
| [**insert_report**](DatawarehouseApi.md#insert_report) | **POST** /datawarehouse/reports | Create a report |
|
15
|
+
| [**update_report**](DatawarehouseApi.md#update_report) | **PUT** /datawarehouse/reports/{report_oid} | Update a report |
|
16
|
+
|
17
|
+
|
18
|
+
## delete_report
|
19
|
+
|
20
|
+
> delete_report(report_oid)
|
21
|
+
|
22
|
+
Delete a report
|
23
|
+
|
24
|
+
Delete a report on the UltraCart account.
|
25
|
+
|
26
|
+
### Examples
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
require 'time'
|
30
|
+
require 'ultracart_api'
|
31
|
+
require 'json'
|
32
|
+
require 'yaml'
|
33
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
34
|
+
|
35
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
36
|
+
# As such, this might not be the best way to use this object.
|
37
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
38
|
+
|
39
|
+
api = UltracartClient::DatawarehouseApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
40
|
+
report_oid = 56 # Integer | The report oid to delete.
|
41
|
+
|
42
|
+
begin
|
43
|
+
# Delete a report
|
44
|
+
api_instance.delete_report(report_oid)
|
45
|
+
rescue UltracartClient::ApiError => e
|
46
|
+
puts "Error when calling DatawarehouseApi->delete_report: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
#### Using the delete_report_with_http_info variant
|
51
|
+
|
52
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
53
|
+
|
54
|
+
> <Array(nil, Integer, Hash)> delete_report_with_http_info(report_oid)
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
begin
|
58
|
+
# Delete a report
|
59
|
+
data, status_code, headers = api_instance.delete_report_with_http_info(report_oid)
|
60
|
+
p status_code # => 2xx
|
61
|
+
p headers # => { ... }
|
62
|
+
p data # => nil
|
63
|
+
rescue UltracartClient::ApiError => e
|
64
|
+
puts "Error when calling DatawarehouseApi->delete_report_with_http_info: #{e}"
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
68
|
+
### Parameters
|
69
|
+
|
70
|
+
| Name | Type | Description | Notes |
|
71
|
+
| ---- | ---- | ----------- | ----- |
|
72
|
+
| **report_oid** | **Integer** | The report oid to delete. | |
|
73
|
+
|
74
|
+
### Return type
|
75
|
+
|
76
|
+
nil (empty response body)
|
77
|
+
|
78
|
+
### Authorization
|
79
|
+
|
80
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
81
|
+
|
82
|
+
### HTTP request headers
|
83
|
+
|
84
|
+
- **Content-Type**: Not defined
|
85
|
+
- **Accept**: application/json
|
86
|
+
|
87
|
+
|
88
|
+
## execute_report_queries
|
89
|
+
|
90
|
+
> execute_report_queries(query_request)
|
91
|
+
|
92
|
+
Execute the report queries
|
93
|
+
|
94
|
+
Execute the report queries
|
95
|
+
|
96
|
+
### Examples
|
97
|
+
|
98
|
+
```ruby
|
99
|
+
require 'time'
|
100
|
+
require 'ultracart_api'
|
101
|
+
require 'json'
|
102
|
+
require 'yaml'
|
103
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
104
|
+
|
105
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
106
|
+
# As such, this might not be the best way to use this object.
|
107
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
108
|
+
|
109
|
+
api = UltracartClient::DatawarehouseApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
110
|
+
query_request = UltracartClient::ReportExecuteQueriesRequest.new # ReportExecuteQueriesRequest | Query request
|
111
|
+
|
112
|
+
begin
|
113
|
+
# Execute the report queries
|
114
|
+
api_instance.execute_report_queries(query_request)
|
115
|
+
rescue UltracartClient::ApiError => e
|
116
|
+
puts "Error when calling DatawarehouseApi->execute_report_queries: #{e}"
|
117
|
+
end
|
118
|
+
```
|
119
|
+
|
120
|
+
#### Using the execute_report_queries_with_http_info variant
|
121
|
+
|
122
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
123
|
+
|
124
|
+
> <Array(nil, Integer, Hash)> execute_report_queries_with_http_info(query_request)
|
125
|
+
|
126
|
+
```ruby
|
127
|
+
begin
|
128
|
+
# Execute the report queries
|
129
|
+
data, status_code, headers = api_instance.execute_report_queries_with_http_info(query_request)
|
130
|
+
p status_code # => 2xx
|
131
|
+
p headers # => { ... }
|
132
|
+
p data # => nil
|
133
|
+
rescue UltracartClient::ApiError => e
|
134
|
+
puts "Error when calling DatawarehouseApi->execute_report_queries_with_http_info: #{e}"
|
135
|
+
end
|
136
|
+
```
|
137
|
+
|
138
|
+
### Parameters
|
139
|
+
|
140
|
+
| Name | Type | Description | Notes |
|
141
|
+
| ---- | ---- | ----------- | ----- |
|
142
|
+
| **query_request** | [**ReportExecuteQueriesRequest**](ReportExecuteQueriesRequest.md) | Query request | |
|
143
|
+
|
144
|
+
### Return type
|
145
|
+
|
146
|
+
nil (empty response body)
|
147
|
+
|
148
|
+
### Authorization
|
149
|
+
|
150
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
151
|
+
|
152
|
+
### HTTP request headers
|
153
|
+
|
154
|
+
- **Content-Type**: application/json
|
155
|
+
- **Accept**: application/json
|
156
|
+
|
157
|
+
|
158
|
+
## get_report
|
159
|
+
|
160
|
+
> <ReportResponse> get_report(report_oid)
|
161
|
+
|
162
|
+
Get a report
|
163
|
+
|
164
|
+
Retrieve a report
|
165
|
+
|
166
|
+
### Examples
|
167
|
+
|
168
|
+
```ruby
|
169
|
+
require 'time'
|
170
|
+
require 'ultracart_api'
|
171
|
+
require 'json'
|
172
|
+
require 'yaml'
|
173
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
174
|
+
|
175
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
176
|
+
# As such, this might not be the best way to use this object.
|
177
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
178
|
+
|
179
|
+
api = UltracartClient::DatawarehouseApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
180
|
+
report_oid = 56 # Integer |
|
181
|
+
|
182
|
+
begin
|
183
|
+
# Get a report
|
184
|
+
result = api_instance.get_report(report_oid)
|
185
|
+
p result
|
186
|
+
rescue UltracartClient::ApiError => e
|
187
|
+
puts "Error when calling DatawarehouseApi->get_report: #{e}"
|
188
|
+
end
|
189
|
+
```
|
190
|
+
|
191
|
+
#### Using the get_report_with_http_info variant
|
192
|
+
|
193
|
+
This returns an Array which contains the response data, status code and headers.
|
194
|
+
|
195
|
+
> <Array(<ReportResponse>, Integer, Hash)> get_report_with_http_info(report_oid)
|
196
|
+
|
197
|
+
```ruby
|
198
|
+
begin
|
199
|
+
# Get a report
|
200
|
+
data, status_code, headers = api_instance.get_report_with_http_info(report_oid)
|
201
|
+
p status_code # => 2xx
|
202
|
+
p headers # => { ... }
|
203
|
+
p data # => <ReportResponse>
|
204
|
+
rescue UltracartClient::ApiError => e
|
205
|
+
puts "Error when calling DatawarehouseApi->get_report_with_http_info: #{e}"
|
206
|
+
end
|
207
|
+
```
|
208
|
+
|
209
|
+
### Parameters
|
210
|
+
|
211
|
+
| Name | Type | Description | Notes |
|
212
|
+
| ---- | ---- | ----------- | ----- |
|
213
|
+
| **report_oid** | **Integer** | | |
|
214
|
+
|
215
|
+
### Return type
|
216
|
+
|
217
|
+
[**ReportResponse**](ReportResponse.md)
|
218
|
+
|
219
|
+
### Authorization
|
220
|
+
|
221
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
222
|
+
|
223
|
+
### HTTP request headers
|
224
|
+
|
225
|
+
- **Content-Type**: Not defined
|
226
|
+
- **Accept**: application/json
|
227
|
+
|
228
|
+
|
229
|
+
## get_report_data_set
|
230
|
+
|
231
|
+
> <ReportDataSetResponse> get_report_data_set(dataset_uuid)
|
232
|
+
|
233
|
+
Get a report data set
|
234
|
+
|
235
|
+
Retrieve a report data set
|
236
|
+
|
237
|
+
### Examples
|
238
|
+
|
239
|
+
```ruby
|
240
|
+
require 'time'
|
241
|
+
require 'ultracart_api'
|
242
|
+
require 'json'
|
243
|
+
require 'yaml'
|
244
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
245
|
+
|
246
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
247
|
+
# As such, this might not be the best way to use this object.
|
248
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
249
|
+
|
250
|
+
api = UltracartClient::DatawarehouseApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
251
|
+
dataset_uuid = 'dataset_uuid_example' # String |
|
252
|
+
|
253
|
+
begin
|
254
|
+
# Get a report data set
|
255
|
+
result = api_instance.get_report_data_set(dataset_uuid)
|
256
|
+
p result
|
257
|
+
rescue UltracartClient::ApiError => e
|
258
|
+
puts "Error when calling DatawarehouseApi->get_report_data_set: #{e}"
|
259
|
+
end
|
260
|
+
```
|
261
|
+
|
262
|
+
#### Using the get_report_data_set_with_http_info variant
|
263
|
+
|
264
|
+
This returns an Array which contains the response data, status code and headers.
|
265
|
+
|
266
|
+
> <Array(<ReportDataSetResponse>, Integer, Hash)> get_report_data_set_with_http_info(dataset_uuid)
|
267
|
+
|
268
|
+
```ruby
|
269
|
+
begin
|
270
|
+
# Get a report data set
|
271
|
+
data, status_code, headers = api_instance.get_report_data_set_with_http_info(dataset_uuid)
|
272
|
+
p status_code # => 2xx
|
273
|
+
p headers # => { ... }
|
274
|
+
p data # => <ReportDataSetResponse>
|
275
|
+
rescue UltracartClient::ApiError => e
|
276
|
+
puts "Error when calling DatawarehouseApi->get_report_data_set_with_http_info: #{e}"
|
277
|
+
end
|
278
|
+
```
|
279
|
+
|
280
|
+
### Parameters
|
281
|
+
|
282
|
+
| Name | Type | Description | Notes |
|
283
|
+
| ---- | ---- | ----------- | ----- |
|
284
|
+
| **dataset_uuid** | **String** | | |
|
285
|
+
|
286
|
+
### Return type
|
287
|
+
|
288
|
+
[**ReportDataSetResponse**](ReportDataSetResponse.md)
|
289
|
+
|
290
|
+
### Authorization
|
291
|
+
|
292
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
293
|
+
|
294
|
+
### HTTP request headers
|
295
|
+
|
296
|
+
- **Content-Type**: Not defined
|
297
|
+
- **Accept**: application/json
|
298
|
+
|
299
|
+
|
300
|
+
## get_report_data_set_page
|
301
|
+
|
302
|
+
> <ReportDataSetPageResponse> get_report_data_set_page(dataset_uuid, page_number)
|
303
|
+
|
304
|
+
Get a report data set page
|
305
|
+
|
306
|
+
Retrieve a report data set page
|
307
|
+
|
308
|
+
### Examples
|
309
|
+
|
310
|
+
```ruby
|
311
|
+
require 'time'
|
312
|
+
require 'ultracart_api'
|
313
|
+
require 'json'
|
314
|
+
require 'yaml'
|
315
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
316
|
+
|
317
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
318
|
+
# As such, this might not be the best way to use this object.
|
319
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
320
|
+
|
321
|
+
api = UltracartClient::DatawarehouseApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
322
|
+
dataset_uuid = 'dataset_uuid_example' # String |
|
323
|
+
page_number = 56 # Integer |
|
324
|
+
|
325
|
+
begin
|
326
|
+
# Get a report data set page
|
327
|
+
result = api_instance.get_report_data_set_page(dataset_uuid, page_number)
|
328
|
+
p result
|
329
|
+
rescue UltracartClient::ApiError => e
|
330
|
+
puts "Error when calling DatawarehouseApi->get_report_data_set_page: #{e}"
|
331
|
+
end
|
332
|
+
```
|
333
|
+
|
334
|
+
#### Using the get_report_data_set_page_with_http_info variant
|
335
|
+
|
336
|
+
This returns an Array which contains the response data, status code and headers.
|
337
|
+
|
338
|
+
> <Array(<ReportDataSetPageResponse>, Integer, Hash)> get_report_data_set_page_with_http_info(dataset_uuid, page_number)
|
339
|
+
|
340
|
+
```ruby
|
341
|
+
begin
|
342
|
+
# Get a report data set page
|
343
|
+
data, status_code, headers = api_instance.get_report_data_set_page_with_http_info(dataset_uuid, page_number)
|
344
|
+
p status_code # => 2xx
|
345
|
+
p headers # => { ... }
|
346
|
+
p data # => <ReportDataSetPageResponse>
|
347
|
+
rescue UltracartClient::ApiError => e
|
348
|
+
puts "Error when calling DatawarehouseApi->get_report_data_set_page_with_http_info: #{e}"
|
349
|
+
end
|
350
|
+
```
|
351
|
+
|
352
|
+
### Parameters
|
353
|
+
|
354
|
+
| Name | Type | Description | Notes |
|
355
|
+
| ---- | ---- | ----------- | ----- |
|
356
|
+
| **dataset_uuid** | **String** | | |
|
357
|
+
| **page_number** | **Integer** | | |
|
358
|
+
|
359
|
+
### Return type
|
360
|
+
|
361
|
+
[**ReportDataSetPageResponse**](ReportDataSetPageResponse.md)
|
362
|
+
|
363
|
+
### Authorization
|
364
|
+
|
365
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
366
|
+
|
367
|
+
### HTTP request headers
|
368
|
+
|
369
|
+
- **Content-Type**: Not defined
|
370
|
+
- **Accept**: application/json
|
371
|
+
|
372
|
+
|
373
|
+
## get_report_websocket_authorization
|
374
|
+
|
375
|
+
> <ReportAuthResponse> get_report_websocket_authorization
|
376
|
+
|
377
|
+
Get report websocket authorization
|
378
|
+
|
379
|
+
Retrieve a JWT to authorize a report to make a websocket connection.
|
380
|
+
|
381
|
+
### Examples
|
382
|
+
|
383
|
+
```ruby
|
384
|
+
require 'time'
|
385
|
+
require 'ultracart_api'
|
386
|
+
require 'json'
|
387
|
+
require 'yaml'
|
388
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
389
|
+
|
390
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
391
|
+
# As such, this might not be the best way to use this object.
|
392
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
393
|
+
|
394
|
+
api = UltracartClient::DatawarehouseApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
395
|
+
|
396
|
+
begin
|
397
|
+
# Get report websocket authorization
|
398
|
+
result = api_instance.get_report_websocket_authorization
|
399
|
+
p result
|
400
|
+
rescue UltracartClient::ApiError => e
|
401
|
+
puts "Error when calling DatawarehouseApi->get_report_websocket_authorization: #{e}"
|
402
|
+
end
|
403
|
+
```
|
404
|
+
|
405
|
+
#### Using the get_report_websocket_authorization_with_http_info variant
|
406
|
+
|
407
|
+
This returns an Array which contains the response data, status code and headers.
|
408
|
+
|
409
|
+
> <Array(<ReportAuthResponse>, Integer, Hash)> get_report_websocket_authorization_with_http_info
|
410
|
+
|
411
|
+
```ruby
|
412
|
+
begin
|
413
|
+
# Get report websocket authorization
|
414
|
+
data, status_code, headers = api_instance.get_report_websocket_authorization_with_http_info
|
415
|
+
p status_code # => 2xx
|
416
|
+
p headers # => { ... }
|
417
|
+
p data # => <ReportAuthResponse>
|
418
|
+
rescue UltracartClient::ApiError => e
|
419
|
+
puts "Error when calling DatawarehouseApi->get_report_websocket_authorization_with_http_info: #{e}"
|
420
|
+
end
|
421
|
+
```
|
422
|
+
|
423
|
+
### Parameters
|
424
|
+
|
425
|
+
This endpoint does not need any parameter.
|
426
|
+
|
427
|
+
### Return type
|
428
|
+
|
429
|
+
[**ReportAuthResponse**](ReportAuthResponse.md)
|
430
|
+
|
431
|
+
### Authorization
|
432
|
+
|
433
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
434
|
+
|
435
|
+
### HTTP request headers
|
436
|
+
|
437
|
+
- **Content-Type**: Not defined
|
438
|
+
- **Accept**: application/json
|
439
|
+
|
440
|
+
|
441
|
+
## get_reports
|
442
|
+
|
443
|
+
> <ReportsResponse> get_reports
|
444
|
+
|
445
|
+
Get list of reports available
|
446
|
+
|
447
|
+
Retrieve a list of reports available
|
448
|
+
|
449
|
+
### Examples
|
450
|
+
|
451
|
+
```ruby
|
452
|
+
require 'time'
|
453
|
+
require 'ultracart_api'
|
454
|
+
require 'json'
|
455
|
+
require 'yaml'
|
456
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
457
|
+
|
458
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
459
|
+
# As such, this might not be the best way to use this object.
|
460
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
461
|
+
|
462
|
+
api = UltracartClient::DatawarehouseApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
463
|
+
|
464
|
+
begin
|
465
|
+
# Get list of reports available
|
466
|
+
result = api_instance.get_reports
|
467
|
+
p result
|
468
|
+
rescue UltracartClient::ApiError => e
|
469
|
+
puts "Error when calling DatawarehouseApi->get_reports: #{e}"
|
470
|
+
end
|
471
|
+
```
|
472
|
+
|
473
|
+
#### Using the get_reports_with_http_info variant
|
474
|
+
|
475
|
+
This returns an Array which contains the response data, status code and headers.
|
476
|
+
|
477
|
+
> <Array(<ReportsResponse>, Integer, Hash)> get_reports_with_http_info
|
478
|
+
|
479
|
+
```ruby
|
480
|
+
begin
|
481
|
+
# Get list of reports available
|
482
|
+
data, status_code, headers = api_instance.get_reports_with_http_info
|
483
|
+
p status_code # => 2xx
|
484
|
+
p headers # => { ... }
|
485
|
+
p data # => <ReportsResponse>
|
486
|
+
rescue UltracartClient::ApiError => e
|
487
|
+
puts "Error when calling DatawarehouseApi->get_reports_with_http_info: #{e}"
|
488
|
+
end
|
489
|
+
```
|
490
|
+
|
491
|
+
### Parameters
|
492
|
+
|
493
|
+
This endpoint does not need any parameter.
|
494
|
+
|
495
|
+
### Return type
|
496
|
+
|
497
|
+
[**ReportsResponse**](ReportsResponse.md)
|
498
|
+
|
499
|
+
### Authorization
|
500
|
+
|
501
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
502
|
+
|
503
|
+
### HTTP request headers
|
504
|
+
|
505
|
+
- **Content-Type**: Not defined
|
506
|
+
- **Accept**: application/json
|
507
|
+
|
508
|
+
|
509
|
+
## insert_report
|
510
|
+
|
511
|
+
> <ReportResponse> insert_report(report)
|
512
|
+
|
513
|
+
Create a report
|
514
|
+
|
515
|
+
Create a new report on the UltraCart account.
|
516
|
+
|
517
|
+
### Examples
|
518
|
+
|
519
|
+
```ruby
|
520
|
+
require 'time'
|
521
|
+
require 'ultracart_api'
|
522
|
+
require 'json'
|
523
|
+
require 'yaml'
|
524
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
525
|
+
|
526
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
527
|
+
# As such, this might not be the best way to use this object.
|
528
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
529
|
+
|
530
|
+
api = UltracartClient::DatawarehouseApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
531
|
+
report = UltracartClient::Report.new # Report | Report to create
|
532
|
+
|
533
|
+
begin
|
534
|
+
# Create a report
|
535
|
+
result = api_instance.insert_report(report)
|
536
|
+
p result
|
537
|
+
rescue UltracartClient::ApiError => e
|
538
|
+
puts "Error when calling DatawarehouseApi->insert_report: #{e}"
|
539
|
+
end
|
540
|
+
```
|
541
|
+
|
542
|
+
#### Using the insert_report_with_http_info variant
|
543
|
+
|
544
|
+
This returns an Array which contains the response data, status code and headers.
|
545
|
+
|
546
|
+
> <Array(<ReportResponse>, Integer, Hash)> insert_report_with_http_info(report)
|
547
|
+
|
548
|
+
```ruby
|
549
|
+
begin
|
550
|
+
# Create a report
|
551
|
+
data, status_code, headers = api_instance.insert_report_with_http_info(report)
|
552
|
+
p status_code # => 2xx
|
553
|
+
p headers # => { ... }
|
554
|
+
p data # => <ReportResponse>
|
555
|
+
rescue UltracartClient::ApiError => e
|
556
|
+
puts "Error when calling DatawarehouseApi->insert_report_with_http_info: #{e}"
|
557
|
+
end
|
558
|
+
```
|
559
|
+
|
560
|
+
### Parameters
|
561
|
+
|
562
|
+
| Name | Type | Description | Notes |
|
563
|
+
| ---- | ---- | ----------- | ----- |
|
564
|
+
| **report** | [**Report**](Report.md) | Report to create | |
|
565
|
+
|
566
|
+
### Return type
|
567
|
+
|
568
|
+
[**ReportResponse**](ReportResponse.md)
|
569
|
+
|
570
|
+
### Authorization
|
571
|
+
|
572
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
573
|
+
|
574
|
+
### HTTP request headers
|
575
|
+
|
576
|
+
- **Content-Type**: application/json; charset=UTF-8
|
577
|
+
- **Accept**: application/json
|
578
|
+
|
579
|
+
|
580
|
+
## update_report
|
581
|
+
|
582
|
+
> <ReportResponse> update_report(report_oid, report)
|
583
|
+
|
584
|
+
Update a report
|
585
|
+
|
586
|
+
Update a report on the UltraCart account.
|
587
|
+
|
588
|
+
### Examples
|
589
|
+
|
590
|
+
```ruby
|
591
|
+
require 'time'
|
592
|
+
require 'ultracart_api'
|
593
|
+
require 'json'
|
594
|
+
require 'yaml'
|
595
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
596
|
+
|
597
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
598
|
+
# As such, this might not be the best way to use this object.
|
599
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
600
|
+
|
601
|
+
api = UltracartClient::DatawarehouseApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
602
|
+
report_oid = 56 # Integer | The report oid to update.
|
603
|
+
report = UltracartClient::Report.new # Report | Report to update
|
604
|
+
|
605
|
+
begin
|
606
|
+
# Update a report
|
607
|
+
result = api_instance.update_report(report_oid, report)
|
608
|
+
p result
|
609
|
+
rescue UltracartClient::ApiError => e
|
610
|
+
puts "Error when calling DatawarehouseApi->update_report: #{e}"
|
611
|
+
end
|
612
|
+
```
|
613
|
+
|
614
|
+
#### Using the update_report_with_http_info variant
|
615
|
+
|
616
|
+
This returns an Array which contains the response data, status code and headers.
|
617
|
+
|
618
|
+
> <Array(<ReportResponse>, Integer, Hash)> update_report_with_http_info(report_oid, report)
|
619
|
+
|
620
|
+
```ruby
|
621
|
+
begin
|
622
|
+
# Update a report
|
623
|
+
data, status_code, headers = api_instance.update_report_with_http_info(report_oid, report)
|
624
|
+
p status_code # => 2xx
|
625
|
+
p headers # => { ... }
|
626
|
+
p data # => <ReportResponse>
|
627
|
+
rescue UltracartClient::ApiError => e
|
628
|
+
puts "Error when calling DatawarehouseApi->update_report_with_http_info: #{e}"
|
629
|
+
end
|
630
|
+
```
|
631
|
+
|
632
|
+
### Parameters
|
633
|
+
|
634
|
+
| Name | Type | Description | Notes |
|
635
|
+
| ---- | ---- | ----------- | ----- |
|
636
|
+
| **report_oid** | **Integer** | The report oid to update. | |
|
637
|
+
| **report** | [**Report**](Report.md) | Report to update | |
|
638
|
+
|
639
|
+
### Return type
|
640
|
+
|
641
|
+
[**ReportResponse**](ReportResponse.md)
|
642
|
+
|
643
|
+
### Authorization
|
644
|
+
|
645
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
646
|
+
|
647
|
+
### HTTP request headers
|
648
|
+
|
649
|
+
- **Content-Type**: application/json; charset=UTF-8
|
650
|
+
- **Accept**: application/json
|
651
|
+
|
data/docs/Report.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# UltracartClient::Report
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **active** | **Boolean** | | [optional] |
|
8
|
+
| **data_sources** | [**Array<ReportDataSource>**](ReportDataSource.md) | | [optional] |
|
9
|
+
| **default_dataset_id** | **String** | | [optional] |
|
10
|
+
| **default_project_id** | **String** | | [optional] |
|
11
|
+
| **filters** | [**Array<ReportFilter>**](ReportFilter.md) | | [optional] |
|
12
|
+
| **merchant_id** | **String** | | [optional] |
|
13
|
+
| **name** | **String** | | [optional] |
|
14
|
+
| **pages** | [**Array<ReportPage>**](ReportPage.md) | | [optional] |
|
15
|
+
| **report_oid** | **Integer** | Object identifier for this report. | [optional] |
|
16
|
+
| **security_level** | **String** | Security level to execute report under | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'ultracart_api'
|
22
|
+
|
23
|
+
instance = UltracartClient::Report.new(
|
24
|
+
active: null,
|
25
|
+
data_sources: null,
|
26
|
+
default_dataset_id: null,
|
27
|
+
default_project_id: null,
|
28
|
+
filters: null,
|
29
|
+
merchant_id: null,
|
30
|
+
name: null,
|
31
|
+
pages: null,
|
32
|
+
report_oid: null,
|
33
|
+
security_level: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
data/docs/ReportAuth.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# UltracartClient::ReportAuth
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **client_uuid** | **String** | Unique UUID assigned to this client | [optional] |
|
8
|
+
| **jwt** | **String** | | [optional] |
|
9
|
+
| **merchant_id** | **String** | | [optional] |
|
10
|
+
| **websocket_url** | **String** | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'ultracart_api'
|
16
|
+
|
17
|
+
instance = UltracartClient::ReportAuth.new(
|
18
|
+
client_uuid: null,
|
19
|
+
jwt: null,
|
20
|
+
merchant_id: null,
|
21
|
+
websocket_url: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|