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.
- checksums.yaml +4 -4
- data/README.md +25 -4
- data/docs/Activity.md +4 -0
- data/docs/AffiliateApi.md +16 -22
- data/docs/AutoOrderApi.md +64 -88
- data/docs/ChannelPartnerApi.md +40 -55
- data/docs/ChargebackApi.md +40 -55
- data/docs/CheckoutApi.md +152 -294
- data/docs/Conversation.md +26 -0
- data/docs/ConversationAgentAuthResponse.md +22 -0
- data/docs/ConversationApi.md +438 -0
- data/docs/ConversationMessage.md +26 -0
- data/docs/ConversationParticipant.md +30 -0
- data/docs/ConversationStartRequest.md +20 -0
- data/docs/ConversationStartResponse.md +20 -0
- data/docs/ConversationSummary.md +34 -0
- data/docs/ConversationsResponse.md +26 -0
- data/docs/CouponApi.md +152 -209
- data/docs/CustomerActivity.md +9 -1
- data/docs/CustomerApi.md +213 -192
- data/docs/CustomerMergeRequest.md +20 -0
- data/docs/FulfillmentApi.md +48 -66
- data/docs/GiftCertificateApi.md +64 -88
- data/docs/IntegrationLogApi.md +40 -55
- data/docs/ItemApi.md +72 -99
- data/docs/OauthApi.md +16 -32
- data/docs/OrderApi.md +184 -253
- data/docs/SsoApi.md +32 -44
- data/docs/StorefrontApi.md +1134 -2345
- data/docs/TaxApi.md +224 -308
- data/docs/UserApi.md +88 -121
- data/docs/WebhookApi.md +64 -88
- data/lib/ultracart_api/api/conversation_api.rb +418 -0
- data/lib/ultracart_api/api/customer_api.rb +78 -0
- data/lib/ultracart_api/models/activity.rb +19 -1
- data/lib/ultracart_api/models/conversation.rb +259 -0
- data/lib/ultracart_api/models/conversation_agent_auth_response.rb +237 -0
- data/lib/ultracart_api/models/conversation_message.rb +258 -0
- data/lib/ultracart_api/models/conversation_participant.rb +276 -0
- data/lib/ultracart_api/models/conversation_start_request.rb +230 -0
- data/lib/ultracart_api/models/conversation_start_response.rb +228 -0
- data/lib/ultracart_api/models/conversation_summary.rb +292 -0
- data/lib/ultracart_api/models/conversations_response.rb +258 -0
- data/lib/ultracart_api/models/customer_activity.rb +40 -4
- data/lib/ultracart_api/models/customer_merge_request.rb +230 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +10 -0
- 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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
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
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
|
|
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
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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
|
-
|
|
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
|
-
|
|
355
|
-
|
|
356
|
-
|
|
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
|
-
|
|
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
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
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
|
-
|
|
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
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
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
|
-
|
|
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
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
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
|
-
|
|
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
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
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
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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
|
-
|
|
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
|
|