ultracart_api 4.1.12 → 4.1.14
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.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/docs/AffiliateApi.md +123 -167
- data/docs/AutoOrderApi.md +1250 -903
- data/docs/ChannelPartnerApi.md +1678 -1121
- data/docs/ChargebackApi.md +297 -405
- data/docs/CheckoutApi.md +1622 -1424
- data/docs/Conversation.md +4 -0
- data/docs/ConversationApi.md +4820 -6315
- data/docs/CouponApi.md +1522 -1443
- data/docs/CustomerApi.md +2570 -1845
- data/docs/DatawarehouseApi.md +555 -723
- data/docs/FulfillmentApi.md +567 -441
- data/docs/GiftCertificateApi.md +617 -598
- data/docs/IntegrationLogApi.md +290 -385
- data/docs/ItemApi.md +2174 -1746
- data/docs/ItemRestriction.md +2 -0
- data/docs/OauthApi.md +203 -163
- data/docs/OrderApi.md +2774 -2177
- data/docs/SsoApi.md +223 -288
- data/docs/StorefrontApi.md +9692 -12967
- data/docs/TaxApi.md +1541 -2017
- data/docs/UserApi.md +606 -790
- data/docs/WebhookApi.md +787 -628
- data/docs/WorkflowApi.md +666 -879
- data/lib/ultracart_api/models/conversation.rb +21 -1
- data/lib/ultracart_api/models/item_restriction.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
data/docs/DatawarehouseApi.md
CHANGED
@@ -1,723 +1,555 @@
|
|
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
|
-
| [**dry_run_report_queries**](DatawarehouseApi.md#dry_run_report_queries) | **PUT** /datawarehouse/reports/dryrun | Dry run the report queries |
|
9
|
-
| [**execute_report_queries**](DatawarehouseApi.md#execute_report_queries) | **PUT** /datawarehouse/reports/execute | Execute the report queries |
|
10
|
-
| [**get_report**](DatawarehouseApi.md#get_report) | **GET** /datawarehouse/reports/{report_oid} | Get a report |
|
11
|
-
| [**get_report_data_set**](DatawarehouseApi.md#get_report_data_set) | **GET** /datawarehouse/reports/dataset/{dataset_uuid} | Get a report data set |
|
12
|
-
| [**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 |
|
13
|
-
| [**get_report_websocket_authorization**](DatawarehouseApi.md#get_report_websocket_authorization) | **PUT** /datawarehouse/reports/auth | Get report websocket authorization |
|
14
|
-
| [**get_reports**](DatawarehouseApi.md#get_reports) | **GET** /datawarehouse/reports | Get list of reports available |
|
15
|
-
| [**insert_report**](DatawarehouseApi.md#insert_report) | **POST** /datawarehouse/reports | Create a report |
|
16
|
-
| [**update_report**](DatawarehouseApi.md#update_report) | **PUT** /datawarehouse/reports/{report_oid} | Update a report |
|
17
|
-
|
18
|
-
|
19
|
-
## delete_report
|
20
|
-
|
21
|
-
> delete_report(report_oid)
|
22
|
-
|
23
|
-
Delete a report
|
24
|
-
|
25
|
-
Delete a report on the UltraCart account.
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
query_request
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
```
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
#
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
```ruby
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
p headers # => { ... }
|
557
|
-
p data # => <ReportsResponse>
|
558
|
-
rescue UltracartClient::ApiError => e
|
559
|
-
puts "Error when calling DatawarehouseApi->get_reports_with_http_info: #{e}"
|
560
|
-
end
|
561
|
-
```
|
562
|
-
|
563
|
-
### Parameters
|
564
|
-
|
565
|
-
This endpoint does not need any parameter.
|
566
|
-
|
567
|
-
### Return type
|
568
|
-
|
569
|
-
[**ReportsResponse**](ReportsResponse.md)
|
570
|
-
|
571
|
-
### Authorization
|
572
|
-
|
573
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
574
|
-
|
575
|
-
### HTTP request headers
|
576
|
-
|
577
|
-
- **Content-Type**: Not defined
|
578
|
-
- **Accept**: application/json
|
579
|
-
|
580
|
-
|
581
|
-
## insert_report
|
582
|
-
|
583
|
-
> <ReportResponse> insert_report(report)
|
584
|
-
|
585
|
-
Create a report
|
586
|
-
|
587
|
-
Create a new report on the UltraCart account.
|
588
|
-
|
589
|
-
### Examples
|
590
|
-
|
591
|
-
```ruby
|
592
|
-
require 'time'
|
593
|
-
require 'ultracart_api'
|
594
|
-
require 'json'
|
595
|
-
require 'yaml'
|
596
|
-
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
597
|
-
|
598
|
-
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
599
|
-
# As such, this might not be the best way to use this object.
|
600
|
-
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
601
|
-
|
602
|
-
api = UltracartClient::DatawarehouseApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
603
|
-
report = UltracartClient::Report.new # Report | Report to create
|
604
|
-
|
605
|
-
begin
|
606
|
-
# Create a report
|
607
|
-
result = api_instance.insert_report(report)
|
608
|
-
p result
|
609
|
-
rescue UltracartClient::ApiError => e
|
610
|
-
puts "Error when calling DatawarehouseApi->insert_report: #{e}"
|
611
|
-
end
|
612
|
-
```
|
613
|
-
|
614
|
-
#### Using the insert_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)> insert_report_with_http_info(report)
|
619
|
-
|
620
|
-
```ruby
|
621
|
-
begin
|
622
|
-
# Create a report
|
623
|
-
data, status_code, headers = api_instance.insert_report_with_http_info(report)
|
624
|
-
p status_code # => 2xx
|
625
|
-
p headers # => { ... }
|
626
|
-
p data # => <ReportResponse>
|
627
|
-
rescue UltracartClient::ApiError => e
|
628
|
-
puts "Error when calling DatawarehouseApi->insert_report_with_http_info: #{e}"
|
629
|
-
end
|
630
|
-
```
|
631
|
-
|
632
|
-
### Parameters
|
633
|
-
|
634
|
-
| Name | Type | Description | Notes |
|
635
|
-
| ---- | ---- | ----------- | ----- |
|
636
|
-
| **report** | [**Report**](Report.md) | Report to create | |
|
637
|
-
|
638
|
-
### Return type
|
639
|
-
|
640
|
-
[**ReportResponse**](ReportResponse.md)
|
641
|
-
|
642
|
-
### Authorization
|
643
|
-
|
644
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
645
|
-
|
646
|
-
### HTTP request headers
|
647
|
-
|
648
|
-
- **Content-Type**: application/json; charset=UTF-8
|
649
|
-
- **Accept**: application/json
|
650
|
-
|
651
|
-
|
652
|
-
## update_report
|
653
|
-
|
654
|
-
> <ReportResponse> update_report(report_oid, report)
|
655
|
-
|
656
|
-
Update a report
|
657
|
-
|
658
|
-
Update a report on the UltraCart account.
|
659
|
-
|
660
|
-
### Examples
|
661
|
-
|
662
|
-
```ruby
|
663
|
-
require 'time'
|
664
|
-
require 'ultracart_api'
|
665
|
-
require 'json'
|
666
|
-
require 'yaml'
|
667
|
-
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
668
|
-
|
669
|
-
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
670
|
-
# As such, this might not be the best way to use this object.
|
671
|
-
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
672
|
-
|
673
|
-
api = UltracartClient::DatawarehouseApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
674
|
-
report_oid = 56 # Integer | The report oid to update.
|
675
|
-
report = UltracartClient::Report.new # Report | Report to update
|
676
|
-
|
677
|
-
begin
|
678
|
-
# Update a report
|
679
|
-
result = api_instance.update_report(report_oid, report)
|
680
|
-
p result
|
681
|
-
rescue UltracartClient::ApiError => e
|
682
|
-
puts "Error when calling DatawarehouseApi->update_report: #{e}"
|
683
|
-
end
|
684
|
-
```
|
685
|
-
|
686
|
-
#### Using the update_report_with_http_info variant
|
687
|
-
|
688
|
-
This returns an Array which contains the response data, status code and headers.
|
689
|
-
|
690
|
-
> <Array(<ReportResponse>, Integer, Hash)> update_report_with_http_info(report_oid, report)
|
691
|
-
|
692
|
-
```ruby
|
693
|
-
begin
|
694
|
-
# Update a report
|
695
|
-
data, status_code, headers = api_instance.update_report_with_http_info(report_oid, report)
|
696
|
-
p status_code # => 2xx
|
697
|
-
p headers # => { ... }
|
698
|
-
p data # => <ReportResponse>
|
699
|
-
rescue UltracartClient::ApiError => e
|
700
|
-
puts "Error when calling DatawarehouseApi->update_report_with_http_info: #{e}"
|
701
|
-
end
|
702
|
-
```
|
703
|
-
|
704
|
-
### Parameters
|
705
|
-
|
706
|
-
| Name | Type | Description | Notes |
|
707
|
-
| ---- | ---- | ----------- | ----- |
|
708
|
-
| **report_oid** | **Integer** | The report oid to update. | |
|
709
|
-
| **report** | [**Report**](Report.md) | Report to update | |
|
710
|
-
|
711
|
-
### Return type
|
712
|
-
|
713
|
-
[**ReportResponse**](ReportResponse.md)
|
714
|
-
|
715
|
-
### Authorization
|
716
|
-
|
717
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
718
|
-
|
719
|
-
### HTTP request headers
|
720
|
-
|
721
|
-
- **Content-Type**: application/json; charset=UTF-8
|
722
|
-
- **Accept**: application/json
|
723
|
-
|
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
|
+
| [**dry_run_report_queries**](DatawarehouseApi.md#dry_run_report_queries) | **PUT** /datawarehouse/reports/dryrun | Dry run the report queries |
|
9
|
+
| [**execute_report_queries**](DatawarehouseApi.md#execute_report_queries) | **PUT** /datawarehouse/reports/execute | Execute the report queries |
|
10
|
+
| [**get_report**](DatawarehouseApi.md#get_report) | **GET** /datawarehouse/reports/{report_oid} | Get a report |
|
11
|
+
| [**get_report_data_set**](DatawarehouseApi.md#get_report_data_set) | **GET** /datawarehouse/reports/dataset/{dataset_uuid} | Get a report data set |
|
12
|
+
| [**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 |
|
13
|
+
| [**get_report_websocket_authorization**](DatawarehouseApi.md#get_report_websocket_authorization) | **PUT** /datawarehouse/reports/auth | Get report websocket authorization |
|
14
|
+
| [**get_reports**](DatawarehouseApi.md#get_reports) | **GET** /datawarehouse/reports | Get list of reports available |
|
15
|
+
| [**insert_report**](DatawarehouseApi.md#insert_report) | **POST** /datawarehouse/reports | Create a report |
|
16
|
+
| [**update_report**](DatawarehouseApi.md#update_report) | **PUT** /datawarehouse/reports/{report_oid} | Update a report |
|
17
|
+
|
18
|
+
|
19
|
+
## delete_report
|
20
|
+
|
21
|
+
> delete_report(report_oid)
|
22
|
+
|
23
|
+
Delete a report
|
24
|
+
|
25
|
+
Delete a report on the UltraCart account.
|
26
|
+
|
27
|
+
|
28
|
+
### Examples
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
32
|
+
```
|
33
|
+
|
34
|
+
|
35
|
+
#### Using the delete_report_with_http_info variant
|
36
|
+
|
37
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
38
|
+
|
39
|
+
> <Array(nil, Integer, Hash)> delete_report_with_http_info(report_oid)
|
40
|
+
|
41
|
+
```ruby
|
42
|
+
begin
|
43
|
+
# Delete a report
|
44
|
+
data, status_code, headers = api_instance.delete_report_with_http_info(report_oid)
|
45
|
+
p status_code # => 2xx
|
46
|
+
p headers # => { ... }
|
47
|
+
p data # => nil
|
48
|
+
rescue UltracartClient::ApiError => e
|
49
|
+
puts "Error when calling DatawarehouseApi->delete_report_with_http_info: #{e}"
|
50
|
+
end
|
51
|
+
```
|
52
|
+
|
53
|
+
### Parameters
|
54
|
+
|
55
|
+
| Name | Type | Description | Notes |
|
56
|
+
| ---- | ---- | ----------- | ----- |
|
57
|
+
| **report_oid** | **Integer** | The report oid to delete. | |
|
58
|
+
|
59
|
+
### Return type
|
60
|
+
|
61
|
+
nil (empty response body)
|
62
|
+
|
63
|
+
### Authorization
|
64
|
+
|
65
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
66
|
+
|
67
|
+
### HTTP request headers
|
68
|
+
|
69
|
+
- **Content-Type**: Not defined
|
70
|
+
- **Accept**: application/json
|
71
|
+
|
72
|
+
|
73
|
+
## dry_run_report_queries
|
74
|
+
|
75
|
+
> <ReportDryRunQueriesResponse> dry_run_report_queries(query_request)
|
76
|
+
|
77
|
+
Dry run the report queries
|
78
|
+
|
79
|
+
Dry run the report queries
|
80
|
+
|
81
|
+
|
82
|
+
### Examples
|
83
|
+
|
84
|
+
```ruby
|
85
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
86
|
+
```
|
87
|
+
|
88
|
+
|
89
|
+
#### Using the dry_run_report_queries_with_http_info variant
|
90
|
+
|
91
|
+
This returns an Array which contains the response data, status code and headers.
|
92
|
+
|
93
|
+
> <Array(<ReportDryRunQueriesResponse>, Integer, Hash)> dry_run_report_queries_with_http_info(query_request)
|
94
|
+
|
95
|
+
```ruby
|
96
|
+
begin
|
97
|
+
# Dry run the report queries
|
98
|
+
data, status_code, headers = api_instance.dry_run_report_queries_with_http_info(query_request)
|
99
|
+
p status_code # => 2xx
|
100
|
+
p headers # => { ... }
|
101
|
+
p data # => <ReportDryRunQueriesResponse>
|
102
|
+
rescue UltracartClient::ApiError => e
|
103
|
+
puts "Error when calling DatawarehouseApi->dry_run_report_queries_with_http_info: #{e}"
|
104
|
+
end
|
105
|
+
```
|
106
|
+
|
107
|
+
### Parameters
|
108
|
+
|
109
|
+
| Name | Type | Description | Notes |
|
110
|
+
| ---- | ---- | ----------- | ----- |
|
111
|
+
| **query_request** | [**ReportDryRunQueriesRequest**](ReportDryRunQueriesRequest.md) | Dry run request | |
|
112
|
+
|
113
|
+
### Return type
|
114
|
+
|
115
|
+
[**ReportDryRunQueriesResponse**](ReportDryRunQueriesResponse.md)
|
116
|
+
|
117
|
+
### Authorization
|
118
|
+
|
119
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
120
|
+
|
121
|
+
### HTTP request headers
|
122
|
+
|
123
|
+
- **Content-Type**: application/json
|
124
|
+
- **Accept**: application/json
|
125
|
+
|
126
|
+
|
127
|
+
## execute_report_queries
|
128
|
+
|
129
|
+
> execute_report_queries(query_request)
|
130
|
+
|
131
|
+
Execute the report queries
|
132
|
+
|
133
|
+
Execute the report queries
|
134
|
+
|
135
|
+
|
136
|
+
### Examples
|
137
|
+
|
138
|
+
```ruby
|
139
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
140
|
+
```
|
141
|
+
|
142
|
+
|
143
|
+
#### Using the execute_report_queries_with_http_info variant
|
144
|
+
|
145
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
146
|
+
|
147
|
+
> <Array(nil, Integer, Hash)> execute_report_queries_with_http_info(query_request)
|
148
|
+
|
149
|
+
```ruby
|
150
|
+
begin
|
151
|
+
# Execute the report queries
|
152
|
+
data, status_code, headers = api_instance.execute_report_queries_with_http_info(query_request)
|
153
|
+
p status_code # => 2xx
|
154
|
+
p headers # => { ... }
|
155
|
+
p data # => nil
|
156
|
+
rescue UltracartClient::ApiError => e
|
157
|
+
puts "Error when calling DatawarehouseApi->execute_report_queries_with_http_info: #{e}"
|
158
|
+
end
|
159
|
+
```
|
160
|
+
|
161
|
+
### Parameters
|
162
|
+
|
163
|
+
| Name | Type | Description | Notes |
|
164
|
+
| ---- | ---- | ----------- | ----- |
|
165
|
+
| **query_request** | [**ReportExecuteQueriesRequest**](ReportExecuteQueriesRequest.md) | Query request | |
|
166
|
+
|
167
|
+
### Return type
|
168
|
+
|
169
|
+
nil (empty response body)
|
170
|
+
|
171
|
+
### Authorization
|
172
|
+
|
173
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
174
|
+
|
175
|
+
### HTTP request headers
|
176
|
+
|
177
|
+
- **Content-Type**: application/json
|
178
|
+
- **Accept**: application/json
|
179
|
+
|
180
|
+
|
181
|
+
## get_report
|
182
|
+
|
183
|
+
> <ReportResponse> get_report(report_oid)
|
184
|
+
|
185
|
+
Get a report
|
186
|
+
|
187
|
+
Retrieve a report
|
188
|
+
|
189
|
+
|
190
|
+
### Examples
|
191
|
+
|
192
|
+
```ruby
|
193
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
194
|
+
```
|
195
|
+
|
196
|
+
|
197
|
+
#### Using the get_report_with_http_info variant
|
198
|
+
|
199
|
+
This returns an Array which contains the response data, status code and headers.
|
200
|
+
|
201
|
+
> <Array(<ReportResponse>, Integer, Hash)> get_report_with_http_info(report_oid)
|
202
|
+
|
203
|
+
```ruby
|
204
|
+
begin
|
205
|
+
# Get a report
|
206
|
+
data, status_code, headers = api_instance.get_report_with_http_info(report_oid)
|
207
|
+
p status_code # => 2xx
|
208
|
+
p headers # => { ... }
|
209
|
+
p data # => <ReportResponse>
|
210
|
+
rescue UltracartClient::ApiError => e
|
211
|
+
puts "Error when calling DatawarehouseApi->get_report_with_http_info: #{e}"
|
212
|
+
end
|
213
|
+
```
|
214
|
+
|
215
|
+
### Parameters
|
216
|
+
|
217
|
+
| Name | Type | Description | Notes |
|
218
|
+
| ---- | ---- | ----------- | ----- |
|
219
|
+
| **report_oid** | **Integer** | | |
|
220
|
+
|
221
|
+
### Return type
|
222
|
+
|
223
|
+
[**ReportResponse**](ReportResponse.md)
|
224
|
+
|
225
|
+
### Authorization
|
226
|
+
|
227
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
228
|
+
|
229
|
+
### HTTP request headers
|
230
|
+
|
231
|
+
- **Content-Type**: Not defined
|
232
|
+
- **Accept**: application/json
|
233
|
+
|
234
|
+
|
235
|
+
## get_report_data_set
|
236
|
+
|
237
|
+
> <ReportDataSetResponse> get_report_data_set(dataset_uuid)
|
238
|
+
|
239
|
+
Get a report data set
|
240
|
+
|
241
|
+
Retrieve a report data set
|
242
|
+
|
243
|
+
|
244
|
+
### Examples
|
245
|
+
|
246
|
+
```ruby
|
247
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
248
|
+
```
|
249
|
+
|
250
|
+
|
251
|
+
#### Using the get_report_data_set_with_http_info variant
|
252
|
+
|
253
|
+
This returns an Array which contains the response data, status code and headers.
|
254
|
+
|
255
|
+
> <Array(<ReportDataSetResponse>, Integer, Hash)> get_report_data_set_with_http_info(dataset_uuid)
|
256
|
+
|
257
|
+
```ruby
|
258
|
+
begin
|
259
|
+
# Get a report data set
|
260
|
+
data, status_code, headers = api_instance.get_report_data_set_with_http_info(dataset_uuid)
|
261
|
+
p status_code # => 2xx
|
262
|
+
p headers # => { ... }
|
263
|
+
p data # => <ReportDataSetResponse>
|
264
|
+
rescue UltracartClient::ApiError => e
|
265
|
+
puts "Error when calling DatawarehouseApi->get_report_data_set_with_http_info: #{e}"
|
266
|
+
end
|
267
|
+
```
|
268
|
+
|
269
|
+
### Parameters
|
270
|
+
|
271
|
+
| Name | Type | Description | Notes |
|
272
|
+
| ---- | ---- | ----------- | ----- |
|
273
|
+
| **dataset_uuid** | **String** | | |
|
274
|
+
|
275
|
+
### Return type
|
276
|
+
|
277
|
+
[**ReportDataSetResponse**](ReportDataSetResponse.md)
|
278
|
+
|
279
|
+
### Authorization
|
280
|
+
|
281
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
282
|
+
|
283
|
+
### HTTP request headers
|
284
|
+
|
285
|
+
- **Content-Type**: Not defined
|
286
|
+
- **Accept**: application/json
|
287
|
+
|
288
|
+
|
289
|
+
## get_report_data_set_page
|
290
|
+
|
291
|
+
> <ReportDataSetPageResponse> get_report_data_set_page(dataset_uuid, page_number)
|
292
|
+
|
293
|
+
Get a report data set page
|
294
|
+
|
295
|
+
Retrieve a report data set page
|
296
|
+
|
297
|
+
|
298
|
+
### Examples
|
299
|
+
|
300
|
+
```ruby
|
301
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
302
|
+
```
|
303
|
+
|
304
|
+
|
305
|
+
#### Using the get_report_data_set_page_with_http_info variant
|
306
|
+
|
307
|
+
This returns an Array which contains the response data, status code and headers.
|
308
|
+
|
309
|
+
> <Array(<ReportDataSetPageResponse>, Integer, Hash)> get_report_data_set_page_with_http_info(dataset_uuid, page_number)
|
310
|
+
|
311
|
+
```ruby
|
312
|
+
begin
|
313
|
+
# Get a report data set page
|
314
|
+
data, status_code, headers = api_instance.get_report_data_set_page_with_http_info(dataset_uuid, page_number)
|
315
|
+
p status_code # => 2xx
|
316
|
+
p headers # => { ... }
|
317
|
+
p data # => <ReportDataSetPageResponse>
|
318
|
+
rescue UltracartClient::ApiError => e
|
319
|
+
puts "Error when calling DatawarehouseApi->get_report_data_set_page_with_http_info: #{e}"
|
320
|
+
end
|
321
|
+
```
|
322
|
+
|
323
|
+
### Parameters
|
324
|
+
|
325
|
+
| Name | Type | Description | Notes |
|
326
|
+
| ---- | ---- | ----------- | ----- |
|
327
|
+
| **dataset_uuid** | **String** | | |
|
328
|
+
| **page_number** | **Integer** | | |
|
329
|
+
|
330
|
+
### Return type
|
331
|
+
|
332
|
+
[**ReportDataSetPageResponse**](ReportDataSetPageResponse.md)
|
333
|
+
|
334
|
+
### Authorization
|
335
|
+
|
336
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
337
|
+
|
338
|
+
### HTTP request headers
|
339
|
+
|
340
|
+
- **Content-Type**: Not defined
|
341
|
+
- **Accept**: application/json
|
342
|
+
|
343
|
+
|
344
|
+
## get_report_websocket_authorization
|
345
|
+
|
346
|
+
> <ReportAuthResponse> get_report_websocket_authorization
|
347
|
+
|
348
|
+
Get report websocket authorization
|
349
|
+
|
350
|
+
Retrieve a JWT to authorize a report to make a websocket connection.
|
351
|
+
|
352
|
+
|
353
|
+
### Examples
|
354
|
+
|
355
|
+
```ruby
|
356
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
357
|
+
```
|
358
|
+
|
359
|
+
|
360
|
+
#### Using the get_report_websocket_authorization_with_http_info variant
|
361
|
+
|
362
|
+
This returns an Array which contains the response data, status code and headers.
|
363
|
+
|
364
|
+
> <Array(<ReportAuthResponse>, Integer, Hash)> get_report_websocket_authorization_with_http_info
|
365
|
+
|
366
|
+
```ruby
|
367
|
+
begin
|
368
|
+
# Get report websocket authorization
|
369
|
+
data, status_code, headers = api_instance.get_report_websocket_authorization_with_http_info
|
370
|
+
p status_code # => 2xx
|
371
|
+
p headers # => { ... }
|
372
|
+
p data # => <ReportAuthResponse>
|
373
|
+
rescue UltracartClient::ApiError => e
|
374
|
+
puts "Error when calling DatawarehouseApi->get_report_websocket_authorization_with_http_info: #{e}"
|
375
|
+
end
|
376
|
+
```
|
377
|
+
|
378
|
+
### Parameters
|
379
|
+
|
380
|
+
This endpoint does not need any parameter.
|
381
|
+
|
382
|
+
### Return type
|
383
|
+
|
384
|
+
[**ReportAuthResponse**](ReportAuthResponse.md)
|
385
|
+
|
386
|
+
### Authorization
|
387
|
+
|
388
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
389
|
+
|
390
|
+
### HTTP request headers
|
391
|
+
|
392
|
+
- **Content-Type**: Not defined
|
393
|
+
- **Accept**: application/json
|
394
|
+
|
395
|
+
|
396
|
+
## get_reports
|
397
|
+
|
398
|
+
> <ReportsResponse> get_reports
|
399
|
+
|
400
|
+
Get list of reports available
|
401
|
+
|
402
|
+
Retrieve a list of reports available
|
403
|
+
|
404
|
+
|
405
|
+
### Examples
|
406
|
+
|
407
|
+
```ruby
|
408
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
409
|
+
```
|
410
|
+
|
411
|
+
|
412
|
+
#### Using the get_reports_with_http_info variant
|
413
|
+
|
414
|
+
This returns an Array which contains the response data, status code and headers.
|
415
|
+
|
416
|
+
> <Array(<ReportsResponse>, Integer, Hash)> get_reports_with_http_info
|
417
|
+
|
418
|
+
```ruby
|
419
|
+
begin
|
420
|
+
# Get list of reports available
|
421
|
+
data, status_code, headers = api_instance.get_reports_with_http_info
|
422
|
+
p status_code # => 2xx
|
423
|
+
p headers # => { ... }
|
424
|
+
p data # => <ReportsResponse>
|
425
|
+
rescue UltracartClient::ApiError => e
|
426
|
+
puts "Error when calling DatawarehouseApi->get_reports_with_http_info: #{e}"
|
427
|
+
end
|
428
|
+
```
|
429
|
+
|
430
|
+
### Parameters
|
431
|
+
|
432
|
+
This endpoint does not need any parameter.
|
433
|
+
|
434
|
+
### Return type
|
435
|
+
|
436
|
+
[**ReportsResponse**](ReportsResponse.md)
|
437
|
+
|
438
|
+
### Authorization
|
439
|
+
|
440
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
441
|
+
|
442
|
+
### HTTP request headers
|
443
|
+
|
444
|
+
- **Content-Type**: Not defined
|
445
|
+
- **Accept**: application/json
|
446
|
+
|
447
|
+
|
448
|
+
## insert_report
|
449
|
+
|
450
|
+
> <ReportResponse> insert_report(report)
|
451
|
+
|
452
|
+
Create a report
|
453
|
+
|
454
|
+
Create a new report on the UltraCart account.
|
455
|
+
|
456
|
+
|
457
|
+
### Examples
|
458
|
+
|
459
|
+
```ruby
|
460
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
461
|
+
```
|
462
|
+
|
463
|
+
|
464
|
+
#### Using the insert_report_with_http_info variant
|
465
|
+
|
466
|
+
This returns an Array which contains the response data, status code and headers.
|
467
|
+
|
468
|
+
> <Array(<ReportResponse>, Integer, Hash)> insert_report_with_http_info(report)
|
469
|
+
|
470
|
+
```ruby
|
471
|
+
begin
|
472
|
+
# Create a report
|
473
|
+
data, status_code, headers = api_instance.insert_report_with_http_info(report)
|
474
|
+
p status_code # => 2xx
|
475
|
+
p headers # => { ... }
|
476
|
+
p data # => <ReportResponse>
|
477
|
+
rescue UltracartClient::ApiError => e
|
478
|
+
puts "Error when calling DatawarehouseApi->insert_report_with_http_info: #{e}"
|
479
|
+
end
|
480
|
+
```
|
481
|
+
|
482
|
+
### Parameters
|
483
|
+
|
484
|
+
| Name | Type | Description | Notes |
|
485
|
+
| ---- | ---- | ----------- | ----- |
|
486
|
+
| **report** | [**Report**](Report.md) | Report to create | |
|
487
|
+
|
488
|
+
### Return type
|
489
|
+
|
490
|
+
[**ReportResponse**](ReportResponse.md)
|
491
|
+
|
492
|
+
### Authorization
|
493
|
+
|
494
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
495
|
+
|
496
|
+
### HTTP request headers
|
497
|
+
|
498
|
+
- **Content-Type**: application/json; charset=UTF-8
|
499
|
+
- **Accept**: application/json
|
500
|
+
|
501
|
+
|
502
|
+
## update_report
|
503
|
+
|
504
|
+
> <ReportResponse> update_report(report_oid, report)
|
505
|
+
|
506
|
+
Update a report
|
507
|
+
|
508
|
+
Update a report on the UltraCart account.
|
509
|
+
|
510
|
+
|
511
|
+
### Examples
|
512
|
+
|
513
|
+
```ruby
|
514
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
515
|
+
```
|
516
|
+
|
517
|
+
|
518
|
+
#### Using the update_report_with_http_info variant
|
519
|
+
|
520
|
+
This returns an Array which contains the response data, status code and headers.
|
521
|
+
|
522
|
+
> <Array(<ReportResponse>, Integer, Hash)> update_report_with_http_info(report_oid, report)
|
523
|
+
|
524
|
+
```ruby
|
525
|
+
begin
|
526
|
+
# Update a report
|
527
|
+
data, status_code, headers = api_instance.update_report_with_http_info(report_oid, report)
|
528
|
+
p status_code # => 2xx
|
529
|
+
p headers # => { ... }
|
530
|
+
p data # => <ReportResponse>
|
531
|
+
rescue UltracartClient::ApiError => e
|
532
|
+
puts "Error when calling DatawarehouseApi->update_report_with_http_info: #{e}"
|
533
|
+
end
|
534
|
+
```
|
535
|
+
|
536
|
+
### Parameters
|
537
|
+
|
538
|
+
| Name | Type | Description | Notes |
|
539
|
+
| ---- | ---- | ----------- | ----- |
|
540
|
+
| **report_oid** | **Integer** | The report oid to update. | |
|
541
|
+
| **report** | [**Report**](Report.md) | Report to update | |
|
542
|
+
|
543
|
+
### Return type
|
544
|
+
|
545
|
+
[**ReportResponse**](ReportResponse.md)
|
546
|
+
|
547
|
+
### Authorization
|
548
|
+
|
549
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
550
|
+
|
551
|
+
### HTTP request headers
|
552
|
+
|
553
|
+
- **Content-Type**: application/json; charset=UTF-8
|
554
|
+
- **Accept**: application/json
|
555
|
+
|