ultracart_api 4.0.32.rc → 4.0.35.rc

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -4
  3. data/docs/Activity.md +4 -0
  4. data/docs/AffiliateApi.md +16 -22
  5. data/docs/AutoOrderApi.md +64 -88
  6. data/docs/ChannelPartnerApi.md +40 -55
  7. data/docs/ChargebackApi.md +40 -55
  8. data/docs/CheckoutApi.md +152 -294
  9. data/docs/Conversation.md +26 -0
  10. data/docs/ConversationAgentAuthResponse.md +22 -0
  11. data/docs/ConversationApi.md +438 -0
  12. data/docs/ConversationMessage.md +26 -0
  13. data/docs/ConversationParticipant.md +30 -0
  14. data/docs/ConversationStartRequest.md +20 -0
  15. data/docs/ConversationStartResponse.md +20 -0
  16. data/docs/ConversationSummary.md +34 -0
  17. data/docs/ConversationsResponse.md +26 -0
  18. data/docs/CouponApi.md +152 -209
  19. data/docs/CustomerActivity.md +9 -1
  20. data/docs/CustomerApi.md +213 -192
  21. data/docs/CustomerMergeRequest.md +20 -0
  22. data/docs/FulfillmentApi.md +48 -66
  23. data/docs/GiftCertificateApi.md +64 -88
  24. data/docs/IntegrationLogApi.md +40 -55
  25. data/docs/ItemApi.md +72 -99
  26. data/docs/OauthApi.md +16 -32
  27. data/docs/OrderApi.md +184 -253
  28. data/docs/SsoApi.md +32 -44
  29. data/docs/StorefrontApi.md +1134 -2345
  30. data/docs/TaxApi.md +224 -308
  31. data/docs/UserApi.md +88 -121
  32. data/docs/WebhookApi.md +64 -88
  33. data/lib/ultracart_api/api/conversation_api.rb +418 -0
  34. data/lib/ultracart_api/api/customer_api.rb +78 -0
  35. data/lib/ultracart_api/models/activity.rb +19 -1
  36. data/lib/ultracart_api/models/conversation.rb +259 -0
  37. data/lib/ultracart_api/models/conversation_agent_auth_response.rb +237 -0
  38. data/lib/ultracart_api/models/conversation_message.rb +258 -0
  39. data/lib/ultracart_api/models/conversation_participant.rb +276 -0
  40. data/lib/ultracart_api/models/conversation_start_request.rb +230 -0
  41. data/lib/ultracart_api/models/conversation_start_response.rb +228 -0
  42. data/lib/ultracart_api/models/conversation_summary.rb +292 -0
  43. data/lib/ultracart_api/models/conversations_response.rb +258 -0
  44. data/lib/ultracart_api/models/customer_activity.rb +40 -4
  45. data/lib/ultracart_api/models/customer_merge_request.rb +230 -0
  46. data/lib/ultracart_api/version.rb +1 -1
  47. data/lib/ultracart_api.rb +10 -0
  48. metadata +22 -2
data/docs/ItemApi.md CHANGED
@@ -28,18 +28,15 @@ Delete an item on the UltraCart account.
28
28
  ```ruby
29
29
  require 'time'
30
30
  require 'ultracart_api'
31
- # setup authorization
32
- UltracartClient.configure do |config|
33
- # Configure OAuth2 access token for authorization: ultraCartOauth
34
- config.access_token = 'YOUR ACCESS TOKEN'
35
-
36
- # Configure API key authorization: ultraCartSimpleApiKey
37
- config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
38
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
39
- # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
40
- end
31
+ require 'json'
32
+ require 'yaml'
33
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
34
+
35
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
36
+ # As such, this might not be the best way to use this object.
37
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
41
38
 
42
- api_instance = UltracartClient::ItemApi.new
39
+ api = UltracartClient::ItemApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
43
40
  merchant_item_oid = 56 # Integer | The item oid to delete.
44
41
 
45
42
  begin
@@ -101,18 +98,15 @@ Retrieves a single item using the specified item oid.
101
98
  ```ruby
102
99
  require 'time'
103
100
  require 'ultracart_api'
104
- # setup authorization
105
- UltracartClient.configure do |config|
106
- # Configure OAuth2 access token for authorization: ultraCartOauth
107
- config.access_token = 'YOUR ACCESS TOKEN'
108
-
109
- # Configure API key authorization: ultraCartSimpleApiKey
110
- config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
111
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
112
- # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
113
- end
101
+ require 'json'
102
+ require 'yaml'
103
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
114
104
 
115
- api_instance = UltracartClient::ItemApi.new
105
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
106
+ # As such, this might not be the best way to use this object.
107
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
108
+
109
+ api = UltracartClient::ItemApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
116
110
  merchant_item_oid = 56 # Integer | The item oid to retrieve.
117
111
  opts = {
118
112
  _expand: '_expand_example', # String | The object expansion to perform on the result. See documentation for examples
@@ -181,18 +175,15 @@ Retrieves a single item using the specified item id.
181
175
  ```ruby
182
176
  require 'time'
183
177
  require 'ultracart_api'
184
- # setup authorization
185
- UltracartClient.configure do |config|
186
- # Configure OAuth2 access token for authorization: ultraCartOauth
187
- config.access_token = 'YOUR ACCESS TOKEN'
188
-
189
- # Configure API key authorization: ultraCartSimpleApiKey
190
- config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
191
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
192
- # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
193
- end
178
+ require 'json'
179
+ require 'yaml'
180
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
194
181
 
195
- api_instance = UltracartClient::ItemApi.new
182
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
183
+ # As such, this might not be the best way to use this object.
184
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
185
+
186
+ api = UltracartClient::ItemApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
196
187
  merchant_item_id = 'merchant_item_id_example' # String | The item id to retrieve.
197
188
  opts = {
198
189
  _expand: '_expand_example', # String | The object expansion to perform on the result. See documentation for examples
@@ -261,18 +252,15 @@ Retrieves a group of items from the account. If no parameters are specified, al
261
252
  ```ruby
262
253
  require 'time'
263
254
  require 'ultracart_api'
264
- # setup authorization
265
- UltracartClient.configure do |config|
266
- # Configure OAuth2 access token for authorization: ultraCartOauth
267
- config.access_token = 'YOUR ACCESS TOKEN'
268
-
269
- # Configure API key authorization: ultraCartSimpleApiKey
270
- config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
271
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
272
- # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
273
- end
255
+ require 'json'
256
+ require 'yaml'
257
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
274
258
 
275
- api_instance = UltracartClient::ItemApi.new
259
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
260
+ # As such, this might not be the best way to use this object.
261
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
262
+
263
+ api = UltracartClient::ItemApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
276
264
  opts = {
277
265
  parent_category_id: 56, # Integer | The parent category object id to retrieve items for. Unspecified means all items on the account. 0 = root
278
266
  parent_category_path: 'parent_category_path_example', # String | The parent category path to retrieve items for. Unspecified means all items on the account. / = root
@@ -351,18 +339,15 @@ Retrieves the pricing tiers
351
339
  ```ruby
352
340
  require 'time'
353
341
  require 'ultracart_api'
354
- # setup authorization
355
- UltracartClient.configure do |config|
356
- # Configure OAuth2 access token for authorization: ultraCartOauth
357
- config.access_token = 'YOUR ACCESS TOKEN'
358
-
359
- # Configure API key authorization: ultraCartSimpleApiKey
360
- config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
361
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
362
- # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
363
- end
342
+ require 'json'
343
+ require 'yaml'
344
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
364
345
 
365
- api_instance = UltracartClient::ItemApi.new
346
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
347
+ # As such, this might not be the best way to use this object.
348
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
349
+
350
+ api = UltracartClient::ItemApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
366
351
  opts = {
367
352
  _expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
368
353
  }
@@ -427,18 +412,15 @@ Create a new item on the UltraCart account.
427
412
  ```ruby
428
413
  require 'time'
429
414
  require 'ultracart_api'
430
- # setup authorization
431
- UltracartClient.configure do |config|
432
- # Configure OAuth2 access token for authorization: ultraCartOauth
433
- config.access_token = 'YOUR ACCESS TOKEN'
434
-
435
- # Configure API key authorization: ultraCartSimpleApiKey
436
- config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
437
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
438
- # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
439
- end
415
+ require 'json'
416
+ require 'yaml'
417
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
418
+
419
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
420
+ # As such, this might not be the best way to use this object.
421
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
440
422
 
441
- api_instance = UltracartClient::ItemApi.new
423
+ api = UltracartClient::ItemApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
442
424
  item = UltracartClient::Item.new # Item | Item to create
443
425
  opts = {
444
426
  _expand: '_expand_example', # String | The object expansion to perform on the result. See documentation for examples
@@ -507,18 +489,15 @@ Update a new item on the UltraCart account.
507
489
  ```ruby
508
490
  require 'time'
509
491
  require 'ultracart_api'
510
- # setup authorization
511
- UltracartClient.configure do |config|
512
- # Configure OAuth2 access token for authorization: ultraCartOauth
513
- config.access_token = 'YOUR ACCESS TOKEN'
514
-
515
- # Configure API key authorization: ultraCartSimpleApiKey
516
- config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
517
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
518
- # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
519
- end
492
+ require 'json'
493
+ require 'yaml'
494
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
495
+
496
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
497
+ # As such, this might not be the best way to use this object.
498
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
520
499
 
521
- api_instance = UltracartClient::ItemApi.new
500
+ api = UltracartClient::ItemApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
522
501
  merchant_item_oid = 56 # Integer | The item oid to update.
523
502
  item = UltracartClient::Item.new # Item | Item to update
524
503
  opts = {
@@ -589,18 +568,15 @@ Update multiple item on the UltraCart account.
589
568
  ```ruby
590
569
  require 'time'
591
570
  require 'ultracart_api'
592
- # setup authorization
593
- UltracartClient.configure do |config|
594
- # Configure OAuth2 access token for authorization: ultraCartOauth
595
- config.access_token = 'YOUR ACCESS TOKEN'
596
-
597
- # Configure API key authorization: ultraCartSimpleApiKey
598
- config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
599
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
600
- # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
601
- end
571
+ require 'json'
572
+ require 'yaml'
573
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
574
+
575
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
576
+ # As such, this might not be the best way to use this object.
577
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
602
578
 
603
- api_instance = UltracartClient::ItemApi.new
579
+ api = UltracartClient::ItemApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
604
580
  items_request = UltracartClient::ItemsRequest.new # ItemsRequest | Items to update (synchronous maximum 20 / asynchronous maximum 100)
605
581
  opts = {
606
582
  _expand: '_expand_example', # String | The object expansion to perform on the result. See documentation for examples
@@ -671,18 +647,15 @@ Uploads an image and returns back meta information about the image as well as th
671
647
  ```ruby
672
648
  require 'time'
673
649
  require 'ultracart_api'
674
- # setup authorization
675
- UltracartClient.configure do |config|
676
- # Configure OAuth2 access token for authorization: ultraCartOauth
677
- config.access_token = 'YOUR ACCESS TOKEN'
678
-
679
- # Configure API key authorization: ultraCartSimpleApiKey
680
- config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
681
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
682
- # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
683
- end
650
+ require 'json'
651
+ require 'yaml'
652
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
653
+
654
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
655
+ # As such, this might not be the best way to use this object.
656
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
684
657
 
685
- api_instance = UltracartClient::ItemApi.new
658
+ api = UltracartClient::ItemApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
686
659
  file = File.new('/path/to/some/file') # File | File to upload
687
660
 
688
661
  begin
data/docs/OauthApi.md CHANGED
@@ -21,23 +21,15 @@ The final leg in the OAuth process which exchanges the specified access token fo
21
21
  ```ruby
22
22
  require 'time'
23
23
  require 'ultracart_api'
24
- # setup authorization
25
- UltracartClient.configure do |config|
26
- # Configure API key authorization: ultraCartBrowserApiKey
27
- config.api_key['ultraCartBrowserApiKey'] = 'YOUR API KEY'
28
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
- # config.api_key_prefix['ultraCartBrowserApiKey'] = 'Bearer'
30
-
31
- # Configure OAuth2 access token for authorization: ultraCartOauth
32
- config.access_token = 'YOUR ACCESS TOKEN'
33
-
34
- # Configure API key authorization: ultraCartSimpleApiKey
35
- config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
36
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
37
- # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
38
- end
24
+ require 'json'
25
+ require 'yaml'
26
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
27
+
28
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
29
+ # As such, this might not be the best way to use this object.
30
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
39
31
 
40
- api_instance = UltracartClient::OauthApi.new
32
+ api = UltracartClient::OauthApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
41
33
  client_id = 'client_id_example' # String | The OAuth application client_id.
42
34
  grant_type = 'grant_type_example' # String | Type of grant
43
35
  opts = {
@@ -110,23 +102,15 @@ Revokes the OAuth application associated with the specified client_id and token.
110
102
  ```ruby
111
103
  require 'time'
112
104
  require 'ultracart_api'
113
- # setup authorization
114
- UltracartClient.configure do |config|
115
- # Configure API key authorization: ultraCartBrowserApiKey
116
- config.api_key['ultraCartBrowserApiKey'] = 'YOUR API KEY'
117
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
118
- # config.api_key_prefix['ultraCartBrowserApiKey'] = 'Bearer'
119
-
120
- # Configure OAuth2 access token for authorization: ultraCartOauth
121
- config.access_token = 'YOUR ACCESS TOKEN'
122
-
123
- # Configure API key authorization: ultraCartSimpleApiKey
124
- config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
125
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
126
- # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
127
- end
105
+ require 'json'
106
+ require 'yaml'
107
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
108
+
109
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
110
+ # As such, this might not be the best way to use this object.
111
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
128
112
 
129
- api_instance = UltracartClient::OauthApi.new
113
+ api = UltracartClient::OauthApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
130
114
  client_id = 'client_id_example' # String | The OAuth application client_id.
131
115
  token = 'token_example' # String | The OAuth access token that is to be revoked..
132
116