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/UserApi.md
CHANGED
@@ -1,790 +1,606 @@
|
|
1
|
-
# UltracartClient::UserApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**delete_group**](UserApi.md#delete_group) | **DELETE** /user/groups/{group_oid} | Delete a group |
|
8
|
-
| [**delete_user**](UserApi.md#delete_user) | **DELETE** /user/users/{user_id} | Delete a user |
|
9
|
-
| [**get_group**](UserApi.md#get_group) | **GET** /user/groups/{group_oid} | Retrieve a group |
|
10
|
-
| [**get_groups**](UserApi.md#get_groups) | **GET** /user/groups | Get groups |
|
11
|
-
| [**get_user**](UserApi.md#get_user) | **GET** /user/users/{user_id} | Retrieve a user |
|
12
|
-
| [**get_user_logins**](UserApi.md#get_user_logins) | **GET** /user/users/{user_id}/logins | Retrieve a user's login history |
|
13
|
-
| [**get_users**](UserApi.md#get_users) | **GET** /user/users | Get users |
|
14
|
-
| [**insert_group**](UserApi.md#insert_group) | **POST** /user/groups | Insert a group |
|
15
|
-
| [**insert_user**](UserApi.md#insert_user) | **POST** /user/users | Insert a user |
|
16
|
-
| [**update_group**](UserApi.md#update_group) | **PUT** /user/groups/{group_oid} | Update a group |
|
17
|
-
| [**update_user**](UserApi.md#update_user) | **PUT** /user/users/{user_id} | Update a user |
|
18
|
-
|
19
|
-
|
20
|
-
## delete_group
|
21
|
-
|
22
|
-
> delete_group(group_oid)
|
23
|
-
|
24
|
-
Delete a group
|
25
|
-
|
26
|
-
Delete a group on the UltraCart account.
|
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
|
-
|
112
|
-
user_id
|
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
|
-
|
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
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
```
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
#### Using the insert_user_with_http_info variant
|
609
|
-
|
610
|
-
This returns an Array which contains the response data, status code and headers.
|
611
|
-
|
612
|
-
> <Array(<UserResponse>, Integer, Hash)> insert_user_with_http_info(user)
|
613
|
-
|
614
|
-
```ruby
|
615
|
-
begin
|
616
|
-
# Insert a user
|
617
|
-
data, status_code, headers = api_instance.insert_user_with_http_info(user)
|
618
|
-
p status_code # => 2xx
|
619
|
-
p headers # => { ... }
|
620
|
-
p data # => <UserResponse>
|
621
|
-
rescue UltracartClient::ApiError => e
|
622
|
-
puts "Error when calling UserApi->insert_user_with_http_info: #{e}"
|
623
|
-
end
|
624
|
-
```
|
625
|
-
|
626
|
-
### Parameters
|
627
|
-
|
628
|
-
| Name | Type | Description | Notes |
|
629
|
-
| ---- | ---- | ----------- | ----- |
|
630
|
-
| **user** | [**User**](User.md) | User to insert | |
|
631
|
-
|
632
|
-
### Return type
|
633
|
-
|
634
|
-
[**UserResponse**](UserResponse.md)
|
635
|
-
|
636
|
-
### Authorization
|
637
|
-
|
638
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
639
|
-
|
640
|
-
### HTTP request headers
|
641
|
-
|
642
|
-
- **Content-Type**: application/json; charset=UTF-8
|
643
|
-
- **Accept**: application/json
|
644
|
-
|
645
|
-
|
646
|
-
## update_group
|
647
|
-
|
648
|
-
> <GroupResponse> update_group(group_oid, group)
|
649
|
-
|
650
|
-
Update a group
|
651
|
-
|
652
|
-
Update a group on the UltraCart account.
|
653
|
-
|
654
|
-
### Examples
|
655
|
-
|
656
|
-
```ruby
|
657
|
-
require 'time'
|
658
|
-
require 'ultracart_api'
|
659
|
-
require 'json'
|
660
|
-
require 'yaml'
|
661
|
-
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
662
|
-
|
663
|
-
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
664
|
-
# As such, this might not be the best way to use this object.
|
665
|
-
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
666
|
-
|
667
|
-
api = UltracartClient::UserApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
668
|
-
group_oid = 56 # Integer | The group_oid to update.
|
669
|
-
group = UltracartClient::Group.new # Group | Group to update
|
670
|
-
|
671
|
-
begin
|
672
|
-
# Update a group
|
673
|
-
result = api_instance.update_group(group_oid, group)
|
674
|
-
p result
|
675
|
-
rescue UltracartClient::ApiError => e
|
676
|
-
puts "Error when calling UserApi->update_group: #{e}"
|
677
|
-
end
|
678
|
-
```
|
679
|
-
|
680
|
-
#### Using the update_group_with_http_info variant
|
681
|
-
|
682
|
-
This returns an Array which contains the response data, status code and headers.
|
683
|
-
|
684
|
-
> <Array(<GroupResponse>, Integer, Hash)> update_group_with_http_info(group_oid, group)
|
685
|
-
|
686
|
-
```ruby
|
687
|
-
begin
|
688
|
-
# Update a group
|
689
|
-
data, status_code, headers = api_instance.update_group_with_http_info(group_oid, group)
|
690
|
-
p status_code # => 2xx
|
691
|
-
p headers # => { ... }
|
692
|
-
p data # => <GroupResponse>
|
693
|
-
rescue UltracartClient::ApiError => e
|
694
|
-
puts "Error when calling UserApi->update_group_with_http_info: #{e}"
|
695
|
-
end
|
696
|
-
```
|
697
|
-
|
698
|
-
### Parameters
|
699
|
-
|
700
|
-
| Name | Type | Description | Notes |
|
701
|
-
| ---- | ---- | ----------- | ----- |
|
702
|
-
| **group_oid** | **Integer** | The group_oid to update. | |
|
703
|
-
| **group** | [**Group**](Group.md) | Group to update | |
|
704
|
-
|
705
|
-
### Return type
|
706
|
-
|
707
|
-
[**GroupResponse**](GroupResponse.md)
|
708
|
-
|
709
|
-
### Authorization
|
710
|
-
|
711
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
712
|
-
|
713
|
-
### HTTP request headers
|
714
|
-
|
715
|
-
- **Content-Type**: application/json; charset=UTF-8
|
716
|
-
- **Accept**: application/json
|
717
|
-
|
718
|
-
|
719
|
-
## update_user
|
720
|
-
|
721
|
-
> <UserResponse> update_user(user_id, user)
|
722
|
-
|
723
|
-
Update a user
|
724
|
-
|
725
|
-
Update a user on the UltraCart account.
|
726
|
-
|
727
|
-
### Examples
|
728
|
-
|
729
|
-
```ruby
|
730
|
-
require 'time'
|
731
|
-
require 'ultracart_api'
|
732
|
-
require 'json'
|
733
|
-
require 'yaml'
|
734
|
-
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
735
|
-
|
736
|
-
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
737
|
-
# As such, this might not be the best way to use this object.
|
738
|
-
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
739
|
-
|
740
|
-
api = UltracartClient::UserApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
741
|
-
user_id = 56 # Integer | The user_id to update.
|
742
|
-
user = UltracartClient::User.new # User | User to update
|
743
|
-
|
744
|
-
begin
|
745
|
-
# Update a user
|
746
|
-
result = api_instance.update_user(user_id, user)
|
747
|
-
p result
|
748
|
-
rescue UltracartClient::ApiError => e
|
749
|
-
puts "Error when calling UserApi->update_user: #{e}"
|
750
|
-
end
|
751
|
-
```
|
752
|
-
|
753
|
-
#### Using the update_user_with_http_info variant
|
754
|
-
|
755
|
-
This returns an Array which contains the response data, status code and headers.
|
756
|
-
|
757
|
-
> <Array(<UserResponse>, Integer, Hash)> update_user_with_http_info(user_id, user)
|
758
|
-
|
759
|
-
```ruby
|
760
|
-
begin
|
761
|
-
# Update a user
|
762
|
-
data, status_code, headers = api_instance.update_user_with_http_info(user_id, user)
|
763
|
-
p status_code # => 2xx
|
764
|
-
p headers # => { ... }
|
765
|
-
p data # => <UserResponse>
|
766
|
-
rescue UltracartClient::ApiError => e
|
767
|
-
puts "Error when calling UserApi->update_user_with_http_info: #{e}"
|
768
|
-
end
|
769
|
-
```
|
770
|
-
|
771
|
-
### Parameters
|
772
|
-
|
773
|
-
| Name | Type | Description | Notes |
|
774
|
-
| ---- | ---- | ----------- | ----- |
|
775
|
-
| **user_id** | **Integer** | The user_id to update. | |
|
776
|
-
| **user** | [**User**](User.md) | User to update | |
|
777
|
-
|
778
|
-
### Return type
|
779
|
-
|
780
|
-
[**UserResponse**](UserResponse.md)
|
781
|
-
|
782
|
-
### Authorization
|
783
|
-
|
784
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
785
|
-
|
786
|
-
### HTTP request headers
|
787
|
-
|
788
|
-
- **Content-Type**: application/json; charset=UTF-8
|
789
|
-
- **Accept**: application/json
|
790
|
-
|
1
|
+
# UltracartClient::UserApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_group**](UserApi.md#delete_group) | **DELETE** /user/groups/{group_oid} | Delete a group |
|
8
|
+
| [**delete_user**](UserApi.md#delete_user) | **DELETE** /user/users/{user_id} | Delete a user |
|
9
|
+
| [**get_group**](UserApi.md#get_group) | **GET** /user/groups/{group_oid} | Retrieve a group |
|
10
|
+
| [**get_groups**](UserApi.md#get_groups) | **GET** /user/groups | Get groups |
|
11
|
+
| [**get_user**](UserApi.md#get_user) | **GET** /user/users/{user_id} | Retrieve a user |
|
12
|
+
| [**get_user_logins**](UserApi.md#get_user_logins) | **GET** /user/users/{user_id}/logins | Retrieve a user's login history |
|
13
|
+
| [**get_users**](UserApi.md#get_users) | **GET** /user/users | Get users |
|
14
|
+
| [**insert_group**](UserApi.md#insert_group) | **POST** /user/groups | Insert a group |
|
15
|
+
| [**insert_user**](UserApi.md#insert_user) | **POST** /user/users | Insert a user |
|
16
|
+
| [**update_group**](UserApi.md#update_group) | **PUT** /user/groups/{group_oid} | Update a group |
|
17
|
+
| [**update_user**](UserApi.md#update_user) | **PUT** /user/users/{user_id} | Update a user |
|
18
|
+
|
19
|
+
|
20
|
+
## delete_group
|
21
|
+
|
22
|
+
> delete_group(group_oid)
|
23
|
+
|
24
|
+
Delete a group
|
25
|
+
|
26
|
+
Delete a group on the UltraCart account.
|
27
|
+
|
28
|
+
|
29
|
+
### Examples
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
33
|
+
```
|
34
|
+
|
35
|
+
|
36
|
+
#### Using the delete_group_with_http_info variant
|
37
|
+
|
38
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
39
|
+
|
40
|
+
> <Array(nil, Integer, Hash)> delete_group_with_http_info(group_oid)
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
begin
|
44
|
+
# Delete a group
|
45
|
+
data, status_code, headers = api_instance.delete_group_with_http_info(group_oid)
|
46
|
+
p status_code # => 2xx
|
47
|
+
p headers # => { ... }
|
48
|
+
p data # => nil
|
49
|
+
rescue UltracartClient::ApiError => e
|
50
|
+
puts "Error when calling UserApi->delete_group_with_http_info: #{e}"
|
51
|
+
end
|
52
|
+
```
|
53
|
+
|
54
|
+
### Parameters
|
55
|
+
|
56
|
+
| Name | Type | Description | Notes |
|
57
|
+
| ---- | ---- | ----------- | ----- |
|
58
|
+
| **group_oid** | **Integer** | The group_oid to delete. | |
|
59
|
+
|
60
|
+
### Return type
|
61
|
+
|
62
|
+
nil (empty response body)
|
63
|
+
|
64
|
+
### Authorization
|
65
|
+
|
66
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
67
|
+
|
68
|
+
### HTTP request headers
|
69
|
+
|
70
|
+
- **Content-Type**: Not defined
|
71
|
+
- **Accept**: application/json
|
72
|
+
|
73
|
+
|
74
|
+
## delete_user
|
75
|
+
|
76
|
+
> delete_user(user_id)
|
77
|
+
|
78
|
+
Delete a user
|
79
|
+
|
80
|
+
Delete a user on the UltraCart account.
|
81
|
+
|
82
|
+
|
83
|
+
### Examples
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
87
|
+
```
|
88
|
+
|
89
|
+
|
90
|
+
#### Using the delete_user_with_http_info variant
|
91
|
+
|
92
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
93
|
+
|
94
|
+
> <Array(nil, Integer, Hash)> delete_user_with_http_info(user_id)
|
95
|
+
|
96
|
+
```ruby
|
97
|
+
begin
|
98
|
+
# Delete a user
|
99
|
+
data, status_code, headers = api_instance.delete_user_with_http_info(user_id)
|
100
|
+
p status_code # => 2xx
|
101
|
+
p headers # => { ... }
|
102
|
+
p data # => nil
|
103
|
+
rescue UltracartClient::ApiError => e
|
104
|
+
puts "Error when calling UserApi->delete_user_with_http_info: #{e}"
|
105
|
+
end
|
106
|
+
```
|
107
|
+
|
108
|
+
### Parameters
|
109
|
+
|
110
|
+
| Name | Type | Description | Notes |
|
111
|
+
| ---- | ---- | ----------- | ----- |
|
112
|
+
| **user_id** | **Integer** | The user_id to delete. | |
|
113
|
+
|
114
|
+
### Return type
|
115
|
+
|
116
|
+
nil (empty response body)
|
117
|
+
|
118
|
+
### Authorization
|
119
|
+
|
120
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
121
|
+
|
122
|
+
### HTTP request headers
|
123
|
+
|
124
|
+
- **Content-Type**: Not defined
|
125
|
+
- **Accept**: application/json
|
126
|
+
|
127
|
+
|
128
|
+
## get_group
|
129
|
+
|
130
|
+
> get_group(group_oid)
|
131
|
+
|
132
|
+
Retrieve a group
|
133
|
+
|
134
|
+
Retrieves a single group using the specified group id.
|
135
|
+
|
136
|
+
|
137
|
+
### Examples
|
138
|
+
|
139
|
+
```ruby
|
140
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
141
|
+
```
|
142
|
+
|
143
|
+
|
144
|
+
#### Using the get_group_with_http_info variant
|
145
|
+
|
146
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
147
|
+
|
148
|
+
> <Array(nil, Integer, Hash)> get_group_with_http_info(group_oid)
|
149
|
+
|
150
|
+
```ruby
|
151
|
+
begin
|
152
|
+
# Retrieve a group
|
153
|
+
data, status_code, headers = api_instance.get_group_with_http_info(group_oid)
|
154
|
+
p status_code # => 2xx
|
155
|
+
p headers # => { ... }
|
156
|
+
p data # => nil
|
157
|
+
rescue UltracartClient::ApiError => e
|
158
|
+
puts "Error when calling UserApi->get_group_with_http_info: #{e}"
|
159
|
+
end
|
160
|
+
```
|
161
|
+
|
162
|
+
### Parameters
|
163
|
+
|
164
|
+
| Name | Type | Description | Notes |
|
165
|
+
| ---- | ---- | ----------- | ----- |
|
166
|
+
| **group_oid** | **Integer** | The group id to retrieve. | |
|
167
|
+
|
168
|
+
### Return type
|
169
|
+
|
170
|
+
nil (empty response body)
|
171
|
+
|
172
|
+
### Authorization
|
173
|
+
|
174
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
175
|
+
|
176
|
+
### HTTP request headers
|
177
|
+
|
178
|
+
- **Content-Type**: Not defined
|
179
|
+
- **Accept**: application/json
|
180
|
+
|
181
|
+
|
182
|
+
## get_groups
|
183
|
+
|
184
|
+
> <GroupsResponse> get_groups
|
185
|
+
|
186
|
+
Get groups
|
187
|
+
|
188
|
+
|
189
|
+
### Examples
|
190
|
+
|
191
|
+
```ruby
|
192
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
193
|
+
```
|
194
|
+
|
195
|
+
|
196
|
+
#### Using the get_groups_with_http_info variant
|
197
|
+
|
198
|
+
This returns an Array which contains the response data, status code and headers.
|
199
|
+
|
200
|
+
> <Array(<GroupsResponse>, Integer, Hash)> get_groups_with_http_info
|
201
|
+
|
202
|
+
```ruby
|
203
|
+
begin
|
204
|
+
# Get groups
|
205
|
+
data, status_code, headers = api_instance.get_groups_with_http_info
|
206
|
+
p status_code # => 2xx
|
207
|
+
p headers # => { ... }
|
208
|
+
p data # => <GroupsResponse>
|
209
|
+
rescue UltracartClient::ApiError => e
|
210
|
+
puts "Error when calling UserApi->get_groups_with_http_info: #{e}"
|
211
|
+
end
|
212
|
+
```
|
213
|
+
|
214
|
+
### Parameters
|
215
|
+
|
216
|
+
This endpoint does not need any parameter.
|
217
|
+
|
218
|
+
### Return type
|
219
|
+
|
220
|
+
[**GroupsResponse**](GroupsResponse.md)
|
221
|
+
|
222
|
+
### Authorization
|
223
|
+
|
224
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
225
|
+
|
226
|
+
### HTTP request headers
|
227
|
+
|
228
|
+
- **Content-Type**: Not defined
|
229
|
+
- **Accept**: application/json
|
230
|
+
|
231
|
+
|
232
|
+
## get_user
|
233
|
+
|
234
|
+
> <UserResponse> get_user(user_id)
|
235
|
+
|
236
|
+
Retrieve a user
|
237
|
+
|
238
|
+
Retrieves a single user using the specified user id.
|
239
|
+
|
240
|
+
|
241
|
+
### Examples
|
242
|
+
|
243
|
+
```ruby
|
244
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
245
|
+
```
|
246
|
+
|
247
|
+
|
248
|
+
#### Using the get_user_with_http_info variant
|
249
|
+
|
250
|
+
This returns an Array which contains the response data, status code and headers.
|
251
|
+
|
252
|
+
> <Array(<UserResponse>, Integer, Hash)> get_user_with_http_info(user_id)
|
253
|
+
|
254
|
+
```ruby
|
255
|
+
begin
|
256
|
+
# Retrieve a user
|
257
|
+
data, status_code, headers = api_instance.get_user_with_http_info(user_id)
|
258
|
+
p status_code # => 2xx
|
259
|
+
p headers # => { ... }
|
260
|
+
p data # => <UserResponse>
|
261
|
+
rescue UltracartClient::ApiError => e
|
262
|
+
puts "Error when calling UserApi->get_user_with_http_info: #{e}"
|
263
|
+
end
|
264
|
+
```
|
265
|
+
|
266
|
+
### Parameters
|
267
|
+
|
268
|
+
| Name | Type | Description | Notes |
|
269
|
+
| ---- | ---- | ----------- | ----- |
|
270
|
+
| **user_id** | **Integer** | The user id to retrieve. | |
|
271
|
+
|
272
|
+
### Return type
|
273
|
+
|
274
|
+
[**UserResponse**](UserResponse.md)
|
275
|
+
|
276
|
+
### Authorization
|
277
|
+
|
278
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
279
|
+
|
280
|
+
### HTTP request headers
|
281
|
+
|
282
|
+
- **Content-Type**: Not defined
|
283
|
+
- **Accept**: application/json
|
284
|
+
|
285
|
+
|
286
|
+
## get_user_logins
|
287
|
+
|
288
|
+
> <UserLoginsResponse> get_user_logins(user_id)
|
289
|
+
|
290
|
+
Retrieve a user's login history
|
291
|
+
|
292
|
+
Retrieves logins for a single user using the specified user id.
|
293
|
+
|
294
|
+
|
295
|
+
### Examples
|
296
|
+
|
297
|
+
```ruby
|
298
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
299
|
+
```
|
300
|
+
|
301
|
+
|
302
|
+
#### Using the get_user_logins_with_http_info variant
|
303
|
+
|
304
|
+
This returns an Array which contains the response data, status code and headers.
|
305
|
+
|
306
|
+
> <Array(<UserLoginsResponse>, Integer, Hash)> get_user_logins_with_http_info(user_id)
|
307
|
+
|
308
|
+
```ruby
|
309
|
+
begin
|
310
|
+
# Retrieve a user's login history
|
311
|
+
data, status_code, headers = api_instance.get_user_logins_with_http_info(user_id)
|
312
|
+
p status_code # => 2xx
|
313
|
+
p headers # => { ... }
|
314
|
+
p data # => <UserLoginsResponse>
|
315
|
+
rescue UltracartClient::ApiError => e
|
316
|
+
puts "Error when calling UserApi->get_user_logins_with_http_info: #{e}"
|
317
|
+
end
|
318
|
+
```
|
319
|
+
|
320
|
+
### Parameters
|
321
|
+
|
322
|
+
| Name | Type | Description | Notes |
|
323
|
+
| ---- | ---- | ----------- | ----- |
|
324
|
+
| **user_id** | **Integer** | The user id to retrieve. | |
|
325
|
+
|
326
|
+
### Return type
|
327
|
+
|
328
|
+
[**UserLoginsResponse**](UserLoginsResponse.md)
|
329
|
+
|
330
|
+
### Authorization
|
331
|
+
|
332
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
333
|
+
|
334
|
+
### HTTP request headers
|
335
|
+
|
336
|
+
- **Content-Type**: Not defined
|
337
|
+
- **Accept**: application/json
|
338
|
+
|
339
|
+
|
340
|
+
## get_users
|
341
|
+
|
342
|
+
> <UsersResponse> get_users
|
343
|
+
|
344
|
+
Get users
|
345
|
+
|
346
|
+
|
347
|
+
### Examples
|
348
|
+
|
349
|
+
```ruby
|
350
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
351
|
+
```
|
352
|
+
|
353
|
+
|
354
|
+
#### Using the get_users_with_http_info variant
|
355
|
+
|
356
|
+
This returns an Array which contains the response data, status code and headers.
|
357
|
+
|
358
|
+
> <Array(<UsersResponse>, Integer, Hash)> get_users_with_http_info
|
359
|
+
|
360
|
+
```ruby
|
361
|
+
begin
|
362
|
+
# Get users
|
363
|
+
data, status_code, headers = api_instance.get_users_with_http_info
|
364
|
+
p status_code # => 2xx
|
365
|
+
p headers # => { ... }
|
366
|
+
p data # => <UsersResponse>
|
367
|
+
rescue UltracartClient::ApiError => e
|
368
|
+
puts "Error when calling UserApi->get_users_with_http_info: #{e}"
|
369
|
+
end
|
370
|
+
```
|
371
|
+
|
372
|
+
### Parameters
|
373
|
+
|
374
|
+
This endpoint does not need any parameter.
|
375
|
+
|
376
|
+
### Return type
|
377
|
+
|
378
|
+
[**UsersResponse**](UsersResponse.md)
|
379
|
+
|
380
|
+
### Authorization
|
381
|
+
|
382
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
383
|
+
|
384
|
+
### HTTP request headers
|
385
|
+
|
386
|
+
- **Content-Type**: Not defined
|
387
|
+
- **Accept**: application/json
|
388
|
+
|
389
|
+
|
390
|
+
## insert_group
|
391
|
+
|
392
|
+
> <GroupResponse> insert_group(group)
|
393
|
+
|
394
|
+
Insert a group
|
395
|
+
|
396
|
+
Insert a group on the UltraCart account.
|
397
|
+
|
398
|
+
|
399
|
+
### Examples
|
400
|
+
|
401
|
+
```ruby
|
402
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
403
|
+
```
|
404
|
+
|
405
|
+
|
406
|
+
#### Using the insert_group_with_http_info variant
|
407
|
+
|
408
|
+
This returns an Array which contains the response data, status code and headers.
|
409
|
+
|
410
|
+
> <Array(<GroupResponse>, Integer, Hash)> insert_group_with_http_info(group)
|
411
|
+
|
412
|
+
```ruby
|
413
|
+
begin
|
414
|
+
# Insert a group
|
415
|
+
data, status_code, headers = api_instance.insert_group_with_http_info(group)
|
416
|
+
p status_code # => 2xx
|
417
|
+
p headers # => { ... }
|
418
|
+
p data # => <GroupResponse>
|
419
|
+
rescue UltracartClient::ApiError => e
|
420
|
+
puts "Error when calling UserApi->insert_group_with_http_info: #{e}"
|
421
|
+
end
|
422
|
+
```
|
423
|
+
|
424
|
+
### Parameters
|
425
|
+
|
426
|
+
| Name | Type | Description | Notes |
|
427
|
+
| ---- | ---- | ----------- | ----- |
|
428
|
+
| **group** | [**Group**](Group.md) | Group to insert | |
|
429
|
+
|
430
|
+
### Return type
|
431
|
+
|
432
|
+
[**GroupResponse**](GroupResponse.md)
|
433
|
+
|
434
|
+
### Authorization
|
435
|
+
|
436
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
437
|
+
|
438
|
+
### HTTP request headers
|
439
|
+
|
440
|
+
- **Content-Type**: application/json; charset=UTF-8
|
441
|
+
- **Accept**: application/json
|
442
|
+
|
443
|
+
|
444
|
+
## insert_user
|
445
|
+
|
446
|
+
> <UserResponse> insert_user(user)
|
447
|
+
|
448
|
+
Insert a user
|
449
|
+
|
450
|
+
Insert a user on the UltraCart account.
|
451
|
+
|
452
|
+
|
453
|
+
### Examples
|
454
|
+
|
455
|
+
```ruby
|
456
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
457
|
+
```
|
458
|
+
|
459
|
+
|
460
|
+
#### Using the insert_user_with_http_info variant
|
461
|
+
|
462
|
+
This returns an Array which contains the response data, status code and headers.
|
463
|
+
|
464
|
+
> <Array(<UserResponse>, Integer, Hash)> insert_user_with_http_info(user)
|
465
|
+
|
466
|
+
```ruby
|
467
|
+
begin
|
468
|
+
# Insert a user
|
469
|
+
data, status_code, headers = api_instance.insert_user_with_http_info(user)
|
470
|
+
p status_code # => 2xx
|
471
|
+
p headers # => { ... }
|
472
|
+
p data # => <UserResponse>
|
473
|
+
rescue UltracartClient::ApiError => e
|
474
|
+
puts "Error when calling UserApi->insert_user_with_http_info: #{e}"
|
475
|
+
end
|
476
|
+
```
|
477
|
+
|
478
|
+
### Parameters
|
479
|
+
|
480
|
+
| Name | Type | Description | Notes |
|
481
|
+
| ---- | ---- | ----------- | ----- |
|
482
|
+
| **user** | [**User**](User.md) | User to insert | |
|
483
|
+
|
484
|
+
### Return type
|
485
|
+
|
486
|
+
[**UserResponse**](UserResponse.md)
|
487
|
+
|
488
|
+
### Authorization
|
489
|
+
|
490
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
491
|
+
|
492
|
+
### HTTP request headers
|
493
|
+
|
494
|
+
- **Content-Type**: application/json; charset=UTF-8
|
495
|
+
- **Accept**: application/json
|
496
|
+
|
497
|
+
|
498
|
+
## update_group
|
499
|
+
|
500
|
+
> <GroupResponse> update_group(group_oid, group)
|
501
|
+
|
502
|
+
Update a group
|
503
|
+
|
504
|
+
Update a group on the UltraCart account.
|
505
|
+
|
506
|
+
|
507
|
+
### Examples
|
508
|
+
|
509
|
+
```ruby
|
510
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
511
|
+
```
|
512
|
+
|
513
|
+
|
514
|
+
#### Using the update_group_with_http_info variant
|
515
|
+
|
516
|
+
This returns an Array which contains the response data, status code and headers.
|
517
|
+
|
518
|
+
> <Array(<GroupResponse>, Integer, Hash)> update_group_with_http_info(group_oid, group)
|
519
|
+
|
520
|
+
```ruby
|
521
|
+
begin
|
522
|
+
# Update a group
|
523
|
+
data, status_code, headers = api_instance.update_group_with_http_info(group_oid, group)
|
524
|
+
p status_code # => 2xx
|
525
|
+
p headers # => { ... }
|
526
|
+
p data # => <GroupResponse>
|
527
|
+
rescue UltracartClient::ApiError => e
|
528
|
+
puts "Error when calling UserApi->update_group_with_http_info: #{e}"
|
529
|
+
end
|
530
|
+
```
|
531
|
+
|
532
|
+
### Parameters
|
533
|
+
|
534
|
+
| Name | Type | Description | Notes |
|
535
|
+
| ---- | ---- | ----------- | ----- |
|
536
|
+
| **group_oid** | **Integer** | The group_oid to update. | |
|
537
|
+
| **group** | [**Group**](Group.md) | Group to update | |
|
538
|
+
|
539
|
+
### Return type
|
540
|
+
|
541
|
+
[**GroupResponse**](GroupResponse.md)
|
542
|
+
|
543
|
+
### Authorization
|
544
|
+
|
545
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
546
|
+
|
547
|
+
### HTTP request headers
|
548
|
+
|
549
|
+
- **Content-Type**: application/json; charset=UTF-8
|
550
|
+
- **Accept**: application/json
|
551
|
+
|
552
|
+
|
553
|
+
## update_user
|
554
|
+
|
555
|
+
> <UserResponse> update_user(user_id, user)
|
556
|
+
|
557
|
+
Update a user
|
558
|
+
|
559
|
+
Update a user on the UltraCart account.
|
560
|
+
|
561
|
+
|
562
|
+
### Examples
|
563
|
+
|
564
|
+
```ruby
|
565
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
566
|
+
```
|
567
|
+
|
568
|
+
|
569
|
+
#### Using the update_user_with_http_info variant
|
570
|
+
|
571
|
+
This returns an Array which contains the response data, status code and headers.
|
572
|
+
|
573
|
+
> <Array(<UserResponse>, Integer, Hash)> update_user_with_http_info(user_id, user)
|
574
|
+
|
575
|
+
```ruby
|
576
|
+
begin
|
577
|
+
# Update a user
|
578
|
+
data, status_code, headers = api_instance.update_user_with_http_info(user_id, user)
|
579
|
+
p status_code # => 2xx
|
580
|
+
p headers # => { ... }
|
581
|
+
p data # => <UserResponse>
|
582
|
+
rescue UltracartClient::ApiError => e
|
583
|
+
puts "Error when calling UserApi->update_user_with_http_info: #{e}"
|
584
|
+
end
|
585
|
+
```
|
586
|
+
|
587
|
+
### Parameters
|
588
|
+
|
589
|
+
| Name | Type | Description | Notes |
|
590
|
+
| ---- | ---- | ----------- | ----- |
|
591
|
+
| **user_id** | **Integer** | The user_id to update. | |
|
592
|
+
| **user** | [**User**](User.md) | User to update | |
|
593
|
+
|
594
|
+
### Return type
|
595
|
+
|
596
|
+
[**UserResponse**](UserResponse.md)
|
597
|
+
|
598
|
+
### Authorization
|
599
|
+
|
600
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
601
|
+
|
602
|
+
### HTTP request headers
|
603
|
+
|
604
|
+
- **Content-Type**: application/json; charset=UTF-8
|
605
|
+
- **Accept**: application/json
|
606
|
+
|