ultracart_api 4.1.163 → 4.1.166

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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +201 -201
  3. data/README.md +611 -602
  4. data/docs/AffiliateApi.md +455 -455
  5. data/docs/AutoOrderApi.md +1694 -1694
  6. data/docs/BulkApi.md +335 -335
  7. data/docs/ChannelPartnerApi.md +1678 -1678
  8. data/docs/CheckoutApi.md +1622 -1622
  9. data/docs/ConversationApi.md +7867 -7867
  10. data/docs/ConversationEmbedApi.md +226 -226
  11. data/docs/CouponApi.md +1522 -1522
  12. data/docs/CustomerApi.md +2849 -2849
  13. data/docs/DatawarehouseApi.md +1637 -1637
  14. data/docs/EmailCommseqEmailReviewStatus.md +32 -0
  15. data/docs/EmailCommseqEmailReviewStatusResponse.md +26 -0
  16. data/docs/EmailCommseqEmailReviewStatusesRequest.md +18 -0
  17. data/docs/EmailCommseqEmailReviewStatusesResponse.md +26 -0
  18. data/docs/FraudApi.md +332 -332
  19. data/docs/FulfillmentApi.md +567 -567
  20. data/docs/GiftCertificateApi.md +617 -617
  21. data/docs/IntegrationLogApi.md +290 -290
  22. data/docs/ItemApi.md +2502 -2502
  23. data/docs/OauthApi.md +311 -311
  24. data/docs/OrderApi.md +3396 -3396
  25. data/docs/SfvbApi.md +3883 -3883
  26. data/docs/SsoApi.md +223 -223
  27. data/docs/StorefrontApi.md +10143 -10035
  28. data/docs/TaxApi.md +1699 -1699
  29. data/docs/UserApi.md +606 -606
  30. data/docs/WebhookApi.md +840 -840
  31. data/docs/WorkflowApi.md +666 -666
  32. data/lib/ultracart_api/api/storefront_api.rb +143 -0
  33. data/lib/ultracart_api/models/email_commseq_email_review_status.rb +324 -0
  34. data/lib/ultracart_api/models/email_commseq_email_review_status_response.rb +256 -0
  35. data/lib/ultracart_api/models/email_commseq_email_review_statuses_request.rb +222 -0
  36. data/lib/ultracart_api/models/email_commseq_email_review_statuses_response.rb +258 -0
  37. data/lib/ultracart_api/version.rb +1 -1
  38. data/lib/ultracart_api.rb +4 -0
  39. metadata +11 -3
data/docs/UserApi.md CHANGED
@@ -1,606 +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
- ### 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
-
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&#39;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
+