ultracart_api 3.0.75 → 3.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -18
- data/docs/AffiliateApi.md +8 -22
- data/docs/AutoOrderApi.md +44 -100
- data/docs/ChargebackApi.md +20 -55
- data/docs/CheckoutApi.md +78 -295
- data/docs/CouponApi.md +78 -209
- data/docs/CouponTieredAmountOffItem.md +1 -1
- data/docs/CouponTieredPercentOffItems.md +1 -1
- data/docs/CustomerApi.md +199 -110
- data/docs/EmailPlanAdditional.md +1 -0
- data/docs/EmailVerifyTokenRequest.md +9 -0
- data/docs/EmailVerifyTokenResponse.md +12 -0
- data/docs/EmailVerifyTokenValidateRequest.md +8 -0
- data/docs/EmailVerifyTokenValidateResponse.md +11 -0
- data/docs/FulfillmentApi.md +21 -55
- data/docs/ItemApi.md +36 -99
- data/docs/OauthApi.md +8 -32
- data/docs/OrderApi.md +84 -223
- data/docs/ScreenRecording.md +2 -1
- data/docs/StorefrontApi.md +429 -2077
- data/docs/TaxApi.md +121 -308
- data/docs/UserApi.md +46 -121
- data/docs/WebhookApi.md +32 -88
- data/lib/ultracart_api.rb +4 -0
- data/lib/ultracart_api/api/affiliate_api.rb +13 -0
- data/lib/ultracart_api/api/auto_order_api.rb +21 -8
- data/lib/ultracart_api/api/chargeback_api.rb +13 -0
- data/lib/ultracart_api/api/checkout_api.rb +15 -2
- data/lib/ultracart_api/api/coupon_api.rb +13 -0
- data/lib/ultracart_api/api/customer_api.rb +181 -0
- data/lib/ultracart_api/api/fulfillment_api.rb +13 -0
- data/lib/ultracart_api/api/item_api.rb +13 -0
- data/lib/ultracart_api/api/oauth_api.rb +13 -0
- data/lib/ultracart_api/api/order_api.rb +15 -2
- data/lib/ultracart_api/api/storefront_api.rb +13 -0
- data/lib/ultracart_api/api/tax_api.rb +13 -0
- data/lib/ultracart_api/api/user_api.rb +13 -0
- data/lib/ultracart_api/api/webhook_api.rb +13 -0
- data/lib/ultracart_api/models/coupon_tiered_amount_off_item.rb +1 -1
- data/lib/ultracart_api/models/coupon_tiered_percent_off_items.rb +1 -1
- data/lib/ultracart_api/models/email_plan_additional.rb +10 -1
- data/lib/ultracart_api/models/email_verify_token_request.rb +195 -0
- data/lib/ultracart_api/models/email_verify_token_response.rb +222 -0
- data/lib/ultracart_api/models/email_verify_token_validate_request.rb +185 -0
- data/lib/ultracart_api/models/email_verify_token_validate_response.rb +212 -0
- data/lib/ultracart_api/models/screen_recording.rb +12 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +10 -2
data/docs/CouponApi.md
CHANGED
@@ -36,18 +36,11 @@ Delete a coupon on the UltraCart account.
|
|
36
36
|
```ruby
|
37
37
|
# load the gem
|
38
38
|
require 'ultracart_api'
|
39
|
-
# setup authorization
|
40
|
-
UltracartClient.configure do |config|
|
41
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
42
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
43
|
-
|
44
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
45
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
46
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
47
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
48
|
-
end
|
49
39
|
|
50
|
-
|
40
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
41
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
42
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
43
|
+
|
51
44
|
|
52
45
|
coupon_oid = 56 # Integer | The coupon_oid to delete.
|
53
46
|
|
@@ -92,18 +85,11 @@ Delete coupons on the UltraCart account.
|
|
92
85
|
```ruby
|
93
86
|
# load the gem
|
94
87
|
require 'ultracart_api'
|
95
|
-
# setup authorization
|
96
|
-
UltracartClient.configure do |config|
|
97
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
98
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
99
|
-
|
100
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
101
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
102
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
103
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
104
|
-
end
|
105
88
|
|
106
|
-
|
89
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
90
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
91
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
92
|
+
|
107
93
|
|
108
94
|
coupon_delete_request = UltracartClient::CouponDeletesRequest.new # CouponDeletesRequest | Coupon oids to delete
|
109
95
|
|
@@ -148,18 +134,11 @@ Delete coupons on the UltraCart account.
|
|
148
134
|
```ruby
|
149
135
|
# load the gem
|
150
136
|
require 'ultracart_api'
|
151
|
-
# setup authorization
|
152
|
-
UltracartClient.configure do |config|
|
153
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
154
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
155
|
-
|
156
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
157
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
158
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
159
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
160
|
-
end
|
161
137
|
|
162
|
-
|
138
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
139
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
140
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
141
|
+
|
163
142
|
|
164
143
|
coupon_delete_request = UltracartClient::CouponDeletesRequest.new # CouponDeletesRequest | Coupon oids to delete
|
165
144
|
|
@@ -204,18 +183,11 @@ Determines if a coupon merchant code already exists.
|
|
204
183
|
```ruby
|
205
184
|
# load the gem
|
206
185
|
require 'ultracart_api'
|
207
|
-
# setup authorization
|
208
|
-
UltracartClient.configure do |config|
|
209
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
210
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
211
|
-
|
212
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
213
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
214
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
215
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
216
|
-
end
|
217
186
|
|
218
|
-
|
187
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
188
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
189
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
190
|
+
|
219
191
|
|
220
192
|
merchant_code = 'merchant_code_example' # String | The coupon merchant code to examine.
|
221
193
|
|
@@ -261,18 +233,11 @@ Generate one time codes for a coupon
|
|
261
233
|
```ruby
|
262
234
|
# load the gem
|
263
235
|
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['x-ultracart-simple-key'] = '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['x-ultracart-simple-key'] = 'Bearer'
|
273
|
-
end
|
274
236
|
|
275
|
-
|
237
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
238
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
239
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
240
|
+
|
276
241
|
|
277
242
|
coupon_oid = 56 # Integer | The coupon oid to generate codes.
|
278
243
|
|
@@ -321,18 +286,11 @@ Generate one time codes by merchant code
|
|
321
286
|
```ruby
|
322
287
|
# load the gem
|
323
288
|
require 'ultracart_api'
|
324
|
-
# setup authorization
|
325
|
-
UltracartClient.configure do |config|
|
326
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
327
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
328
|
-
|
329
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
330
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
331
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
332
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
333
|
-
end
|
334
289
|
|
335
|
-
|
290
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
291
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
292
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
293
|
+
|
336
294
|
|
337
295
|
merchant_code = 'merchant_code_example' # String | The merchant code to generate one time codes.
|
338
296
|
|
@@ -381,18 +339,12 @@ Retrieve auto apply rules and conditions
|
|
381
339
|
```ruby
|
382
340
|
# load the gem
|
383
341
|
require 'ultracart_api'
|
384
|
-
# setup authorization
|
385
|
-
UltracartClient.configure do |config|
|
386
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
387
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
388
|
-
|
389
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
390
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
391
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
392
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
393
|
-
end
|
394
342
|
|
395
|
-
|
343
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
344
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
345
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
346
|
+
|
347
|
+
|
396
348
|
|
397
349
|
begin
|
398
350
|
#Retrieve auto apply rules and conditions
|
@@ -432,18 +384,11 @@ Retrieves a single coupon using the specified coupon profile oid.
|
|
432
384
|
```ruby
|
433
385
|
# load the gem
|
434
386
|
require 'ultracart_api'
|
435
|
-
# setup authorization
|
436
|
-
UltracartClient.configure do |config|
|
437
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
438
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
439
|
-
|
440
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
441
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
442
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
443
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
444
|
-
end
|
445
387
|
|
446
|
-
|
388
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
389
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
390
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
391
|
+
|
447
392
|
|
448
393
|
coupon_oid = 56 # Integer | The coupon oid to retrieve.
|
449
394
|
|
@@ -493,18 +438,11 @@ Retrieves a single coupon using the specified merchant code.
|
|
493
438
|
```ruby
|
494
439
|
# load the gem
|
495
440
|
require 'ultracart_api'
|
496
|
-
# setup authorization
|
497
|
-
UltracartClient.configure do |config|
|
498
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
499
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
500
|
-
|
501
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
502
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
503
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
504
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
505
|
-
end
|
506
441
|
|
507
|
-
|
442
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
443
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
444
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
445
|
+
|
508
446
|
|
509
447
|
merchant_code = 'merchant_code_example' # String | The coupon merchant code to retrieve.
|
510
448
|
|
@@ -554,18 +492,11 @@ Retrieves coupons for this account. If no parameters are specified, all coupons
|
|
554
492
|
```ruby
|
555
493
|
# load the gem
|
556
494
|
require 'ultracart_api'
|
557
|
-
# setup authorization
|
558
|
-
UltracartClient.configure do |config|
|
559
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
560
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
561
|
-
|
562
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
563
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
564
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
565
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
566
|
-
end
|
567
495
|
|
568
|
-
|
496
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
497
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
498
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
499
|
+
|
569
500
|
|
570
501
|
opts = {
|
571
502
|
merchant_code: 'merchant_code_example', # String | Merchant code
|
@@ -636,18 +567,11 @@ Retrieves coupons from the account. If no parameters are specified, all coupons
|
|
636
567
|
```ruby
|
637
568
|
# load the gem
|
638
569
|
require 'ultracart_api'
|
639
|
-
# setup authorization
|
640
|
-
UltracartClient.configure do |config|
|
641
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
642
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
643
|
-
|
644
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
645
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
646
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
647
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
648
|
-
end
|
649
570
|
|
650
|
-
|
571
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
572
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
573
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
574
|
+
|
651
575
|
|
652
576
|
coupon_query = UltracartClient::CouponQuery.new # CouponQuery | Coupon query
|
653
577
|
|
@@ -703,18 +627,12 @@ Retrieve values needed for a coupon editor
|
|
703
627
|
```ruby
|
704
628
|
# load the gem
|
705
629
|
require 'ultracart_api'
|
706
|
-
# setup authorization
|
707
|
-
UltracartClient.configure do |config|
|
708
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
709
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
710
|
-
|
711
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
712
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
713
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
714
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
715
|
-
end
|
716
630
|
|
717
|
-
|
631
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
632
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
633
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
634
|
+
|
635
|
+
|
718
636
|
|
719
637
|
begin
|
720
638
|
#Retrieve values needed for a coupon editor
|
@@ -754,18 +672,11 @@ Insert a coupon on the UltraCart account.
|
|
754
672
|
```ruby
|
755
673
|
# load the gem
|
756
674
|
require 'ultracart_api'
|
757
|
-
# setup authorization
|
758
|
-
UltracartClient.configure do |config|
|
759
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
760
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
761
|
-
|
762
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
763
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
764
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
765
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
766
|
-
end
|
767
675
|
|
768
|
-
|
676
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
677
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
678
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
679
|
+
|
769
680
|
|
770
681
|
coupon = UltracartClient::Coupon.new # Coupon | Coupon to insert
|
771
682
|
|
@@ -815,18 +726,11 @@ Insert multiple coupon on the UltraCart account.
|
|
815
726
|
```ruby
|
816
727
|
# load the gem
|
817
728
|
require 'ultracart_api'
|
818
|
-
# setup authorization
|
819
|
-
UltracartClient.configure do |config|
|
820
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
821
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
822
|
-
|
823
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
824
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
825
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
826
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
827
|
-
end
|
828
729
|
|
829
|
-
|
730
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
731
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
732
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
733
|
+
|
830
734
|
|
831
735
|
coupons_request = UltracartClient::CouponsRequest.new # CouponsRequest | Coupons to insert (maximum 20)
|
832
736
|
|
@@ -878,18 +782,11 @@ Searches for items to display within a coupon editor and assign to coupons
|
|
878
782
|
```ruby
|
879
783
|
# load the gem
|
880
784
|
require 'ultracart_api'
|
881
|
-
# setup authorization
|
882
|
-
UltracartClient.configure do |config|
|
883
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
884
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
885
|
-
|
886
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
887
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
888
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
889
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
890
|
-
end
|
891
785
|
|
892
|
-
|
786
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
787
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
788
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
789
|
+
|
893
790
|
|
894
791
|
opts = {
|
895
792
|
s: 's_example', # String |
|
@@ -938,18 +835,11 @@ Update auto apply rules and conditions
|
|
938
835
|
```ruby
|
939
836
|
# load the gem
|
940
837
|
require 'ultracart_api'
|
941
|
-
# setup authorization
|
942
|
-
UltracartClient.configure do |config|
|
943
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
944
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
945
|
-
|
946
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
947
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
948
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
949
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
950
|
-
end
|
951
838
|
|
952
|
-
|
839
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
840
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
841
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
842
|
+
|
953
843
|
|
954
844
|
conditions = UltracartClient::CouponAutoApplyConditions.new # CouponAutoApplyConditions | Conditions
|
955
845
|
|
@@ -994,18 +884,11 @@ Update a coupon on the UltraCart account.
|
|
994
884
|
```ruby
|
995
885
|
# load the gem
|
996
886
|
require 'ultracart_api'
|
997
|
-
# setup authorization
|
998
|
-
UltracartClient.configure do |config|
|
999
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
1000
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
1001
|
-
|
1002
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
1003
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
1004
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1005
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
1006
|
-
end
|
1007
887
|
|
1008
|
-
|
888
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
889
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
890
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
891
|
+
|
1009
892
|
|
1010
893
|
coupon = UltracartClient::Coupon.new # Coupon | Coupon to update
|
1011
894
|
|
@@ -1058,18 +941,11 @@ Update multiple coupon on the UltraCart account.
|
|
1058
941
|
```ruby
|
1059
942
|
# load the gem
|
1060
943
|
require 'ultracart_api'
|
1061
|
-
# setup authorization
|
1062
|
-
UltracartClient.configure do |config|
|
1063
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
1064
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
1065
|
-
|
1066
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
1067
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
1068
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1069
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
1070
|
-
end
|
1071
944
|
|
1072
|
-
|
945
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
946
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
947
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
948
|
+
|
1073
949
|
|
1074
950
|
coupons_request = UltracartClient::CouponsRequest.new # CouponsRequest | Coupons to update (synchronous maximum 20 / asynchronous maximum 100)
|
1075
951
|
|
@@ -1123,18 +999,11 @@ Upload one-time codes for a coupon
|
|
1123
999
|
```ruby
|
1124
1000
|
# load the gem
|
1125
1001
|
require 'ultracart_api'
|
1126
|
-
# setup authorization
|
1127
|
-
UltracartClient.configure do |config|
|
1128
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
1129
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
1130
|
-
|
1131
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
1132
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
1133
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1134
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
1135
|
-
end
|
1136
1002
|
|
1137
|
-
|
1003
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
1004
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
1005
|
+
api_instance = UltracartClient::CouponApi.new_using_api_key(simple_key, false, false)
|
1006
|
+
|
1138
1007
|
|
1139
1008
|
coupon_oid = 56 # Integer | The coupon oid to associate with the provided one-time codes.
|
1140
1009
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**item** | **String** | The item being discounted by this coupon. | [optional]
|
7
|
-
**limit** | **Float** | The maximum
|
7
|
+
**limit** | **Float** | The maximum number of discounted items. | [optional]
|
8
8
|
**tiers** | [**Array<CouponTierQuantityAmount>**](CouponTierQuantityAmount.md) | A list of discount tiers. | [optional]
|
9
9
|
|
10
10
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**items** | **Array<String>** | A list of items of which at least one must be purchased for coupon to be valid. | [optional]
|
7
|
-
**limit** | **Float** | The maximum
|
7
|
+
**limit** | **Float** | The (optional) maximum quantity of discounted items. | [optional]
|
8
8
|
**tiers** | [**Array<CouponTierQuantityPercent>**](CouponTierQuantityPercent.md) | A list of discount tiers. | [optional]
|
9
9
|
|
10
10
|
|
data/docs/CustomerApi.md
CHANGED
@@ -6,14 +6,17 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**delete_customer**](CustomerApi.md#delete_customer) | **DELETE** /customer/customers/{customer_profile_oid} | Delete a customer
|
8
8
|
[**get_customer**](CustomerApi.md#get_customer) | **GET** /customer/customers/{customer_profile_oid} | Retrieve a customer
|
9
|
+
[**get_customer_by_email**](CustomerApi.md#get_customer_by_email) | **GET** /customer/customers/by_email/{email} | Retrieve a customer by Email
|
9
10
|
[**get_customers**](CustomerApi.md#get_customers) | **GET** /customer/customers | Retrieve customers
|
10
11
|
[**get_customers_by_query**](CustomerApi.md#get_customers_by_query) | **POST** /customer/customers/query | Retrieve customers by query
|
11
12
|
[**get_customers_for_data_tables**](CustomerApi.md#get_customers_for_data_tables) | **POST** /customer/customers/dataTables | Retrieve customers for DataTables plugin
|
12
13
|
[**get_editor_values**](CustomerApi.md#get_editor_values) | **GET** /customer/editor_values | Retrieve values needed for a customer profile editor
|
13
14
|
[**get_email_lists**](CustomerApi.md#get_email_lists) | **GET** /customer/email_lists | Retrieve all email lists across all storefronts
|
15
|
+
[**get_email_verification_token**](CustomerApi.md#get_email_verification_token) | **POST** /customer/customers/email_verify/get_token | Create a token that can be used to verify a customer email address
|
14
16
|
[**insert_customer**](CustomerApi.md#insert_customer) | **POST** /customer/customers | Insert a customer
|
15
17
|
[**update_customer**](CustomerApi.md#update_customer) | **PUT** /customer/customers/{customer_profile_oid} | Update a customer
|
16
18
|
[**update_customer_email_lists**](CustomerApi.md#update_customer_email_lists) | **POST** /customer/customers/{customer_profile_oid}/email_lists | Update email list subscriptions for a customer
|
19
|
+
[**validate_email_verification_token**](CustomerApi.md#validate_email_verification_token) | **POST** /customer/customers/email_verify/validate_token | Validate a token that can be used to verify a customer email address
|
17
20
|
|
18
21
|
|
19
22
|
# **delete_customer**
|
@@ -27,18 +30,11 @@ Delete a customer on the UltraCart account.
|
|
27
30
|
```ruby
|
28
31
|
# load the gem
|
29
32
|
require 'ultracart_api'
|
30
|
-
# setup authorization
|
31
|
-
UltracartClient.configure do |config|
|
32
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
33
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
34
|
-
|
35
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
36
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
37
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
38
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
39
|
-
end
|
40
33
|
|
41
|
-
|
34
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
35
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
36
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
37
|
+
|
42
38
|
|
43
39
|
customer_profile_oid = 56 # Integer | The customer_profile_oid to delete.
|
44
40
|
|
@@ -84,18 +80,11 @@ Retrieves a single customer using the specified customer profile oid.
|
|
84
80
|
```ruby
|
85
81
|
# load the gem
|
86
82
|
require 'ultracart_api'
|
87
|
-
# setup authorization
|
88
|
-
UltracartClient.configure do |config|
|
89
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
90
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
91
|
-
|
92
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
93
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
94
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
95
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
96
|
-
end
|
97
83
|
|
98
|
-
|
84
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
85
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
86
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
87
|
+
|
99
88
|
|
100
89
|
customer_profile_oid = 56 # Integer | The customer oid to retrieve.
|
101
90
|
|
@@ -134,6 +123,60 @@ Name | Type | Description | Notes
|
|
134
123
|
|
135
124
|
|
136
125
|
|
126
|
+
# **get_customer_by_email**
|
127
|
+
> CustomerResponse get_customer_by_email(email, opts)
|
128
|
+
|
129
|
+
Retrieve a customer by Email
|
130
|
+
|
131
|
+
Retrieves a single customer using the specified customer email address.
|
132
|
+
|
133
|
+
### Example
|
134
|
+
```ruby
|
135
|
+
# load the gem
|
136
|
+
require 'ultracart_api'
|
137
|
+
|
138
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
139
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
140
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
141
|
+
|
142
|
+
|
143
|
+
email = 'email_example' # String | The email address of the customer to retrieve.
|
144
|
+
|
145
|
+
opts = {
|
146
|
+
_expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
|
147
|
+
}
|
148
|
+
|
149
|
+
begin
|
150
|
+
#Retrieve a customer by Email
|
151
|
+
result = api_instance.get_customer_by_email(email, opts)
|
152
|
+
p result
|
153
|
+
rescue UltracartClient::ApiError => e
|
154
|
+
puts "Exception when calling CustomerApi->get_customer_by_email: #{e}"
|
155
|
+
end
|
156
|
+
```
|
157
|
+
|
158
|
+
### Parameters
|
159
|
+
|
160
|
+
Name | Type | Description | Notes
|
161
|
+
------------- | ------------- | ------------- | -------------
|
162
|
+
**email** | **String**| The email address of the customer to retrieve. |
|
163
|
+
**_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional]
|
164
|
+
|
165
|
+
### Return type
|
166
|
+
|
167
|
+
[**CustomerResponse**](CustomerResponse.md)
|
168
|
+
|
169
|
+
### Authorization
|
170
|
+
|
171
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
172
|
+
|
173
|
+
### HTTP request headers
|
174
|
+
|
175
|
+
- **Content-Type**: application/json
|
176
|
+
- **Accept**: application/json
|
177
|
+
|
178
|
+
|
179
|
+
|
137
180
|
# **get_customers**
|
138
181
|
> CustomersResponse get_customers(opts)
|
139
182
|
|
@@ -145,18 +188,11 @@ Retrieves customers from the account. If no parameters are specified, all custo
|
|
145
188
|
```ruby
|
146
189
|
# load the gem
|
147
190
|
require 'ultracart_api'
|
148
|
-
# setup authorization
|
149
|
-
UltracartClient.configure do |config|
|
150
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
151
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
152
|
-
|
153
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
154
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
155
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
156
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
157
|
-
end
|
158
191
|
|
159
|
-
|
192
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
193
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
194
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
195
|
+
|
160
196
|
|
161
197
|
opts = {
|
162
198
|
email: 'email_example', # String | Email
|
@@ -265,18 +301,11 @@ Retrieves customers from the account. If no parameters are specified, all custo
|
|
265
301
|
```ruby
|
266
302
|
# load the gem
|
267
303
|
require 'ultracart_api'
|
268
|
-
# setup authorization
|
269
|
-
UltracartClient.configure do |config|
|
270
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
271
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
272
|
-
|
273
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
274
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
275
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
276
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
277
|
-
end
|
278
304
|
|
279
|
-
|
305
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
306
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
307
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
308
|
+
|
280
309
|
|
281
310
|
customer_query = UltracartClient::CustomerQuery.new # CustomerQuery | Customer query
|
282
311
|
|
@@ -334,18 +363,11 @@ Retrieves customers from the account. If no searches are specified, all custome
|
|
334
363
|
```ruby
|
335
364
|
# load the gem
|
336
365
|
require 'ultracart_api'
|
337
|
-
# setup authorization
|
338
|
-
UltracartClient.configure do |config|
|
339
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
340
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
341
|
-
|
342
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
343
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
344
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
345
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
346
|
-
end
|
347
366
|
|
348
|
-
|
367
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
368
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
369
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
370
|
+
|
349
371
|
|
350
372
|
opts = {
|
351
373
|
_expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
|
@@ -392,18 +414,12 @@ Retrieve values needed for a customer profile editor.
|
|
392
414
|
```ruby
|
393
415
|
# load the gem
|
394
416
|
require 'ultracart_api'
|
395
|
-
# setup authorization
|
396
|
-
UltracartClient.configure do |config|
|
397
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
398
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
399
|
-
|
400
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
401
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
402
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
403
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
404
|
-
end
|
405
417
|
|
406
|
-
|
418
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
419
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
420
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
421
|
+
|
422
|
+
|
407
423
|
|
408
424
|
begin
|
409
425
|
#Retrieve values needed for a customer profile editor
|
@@ -443,18 +459,12 @@ Retrieve all email lists across all storefronts
|
|
443
459
|
```ruby
|
444
460
|
# load the gem
|
445
461
|
require 'ultracart_api'
|
446
|
-
# setup authorization
|
447
|
-
UltracartClient.configure do |config|
|
448
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
449
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
450
|
-
|
451
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
452
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
453
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
454
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
455
|
-
end
|
456
462
|
|
457
|
-
|
463
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
464
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
465
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
466
|
+
|
467
|
+
|
458
468
|
|
459
469
|
begin
|
460
470
|
#Retrieve all email lists across all storefronts
|
@@ -483,6 +493,56 @@ This endpoint does not need any parameter.
|
|
483
493
|
|
484
494
|
|
485
495
|
|
496
|
+
# **get_email_verification_token**
|
497
|
+
> EmailVerifyTokenResponse get_email_verification_token(token_request)
|
498
|
+
|
499
|
+
Create a token that can be used to verify a customer email address
|
500
|
+
|
501
|
+
Create a token that can be used to verify a customer email address. The implementation of how a customer interacts with this token is left to the merchant.
|
502
|
+
|
503
|
+
### Example
|
504
|
+
```ruby
|
505
|
+
# load the gem
|
506
|
+
require 'ultracart_api'
|
507
|
+
|
508
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
509
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
510
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
511
|
+
|
512
|
+
|
513
|
+
token_request = UltracartClient::EmailVerifyTokenRequest.new # EmailVerifyTokenRequest | Token request
|
514
|
+
|
515
|
+
|
516
|
+
begin
|
517
|
+
#Create a token that can be used to verify a customer email address
|
518
|
+
result = api_instance.get_email_verification_token(token_request)
|
519
|
+
p result
|
520
|
+
rescue UltracartClient::ApiError => e
|
521
|
+
puts "Exception when calling CustomerApi->get_email_verification_token: #{e}"
|
522
|
+
end
|
523
|
+
```
|
524
|
+
|
525
|
+
### Parameters
|
526
|
+
|
527
|
+
Name | Type | Description | Notes
|
528
|
+
------------- | ------------- | ------------- | -------------
|
529
|
+
**token_request** | [**EmailVerifyTokenRequest**](EmailVerifyTokenRequest.md)| Token request |
|
530
|
+
|
531
|
+
### Return type
|
532
|
+
|
533
|
+
[**EmailVerifyTokenResponse**](EmailVerifyTokenResponse.md)
|
534
|
+
|
535
|
+
### Authorization
|
536
|
+
|
537
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
538
|
+
|
539
|
+
### HTTP request headers
|
540
|
+
|
541
|
+
- **Content-Type**: application/json
|
542
|
+
- **Accept**: application/json
|
543
|
+
|
544
|
+
|
545
|
+
|
486
546
|
# **insert_customer**
|
487
547
|
> CustomerResponse insert_customer(customer, opts)
|
488
548
|
|
@@ -494,18 +554,11 @@ Insert a customer on the UltraCart account.
|
|
494
554
|
```ruby
|
495
555
|
# load the gem
|
496
556
|
require 'ultracart_api'
|
497
|
-
# setup authorization
|
498
|
-
UltracartClient.configure do |config|
|
499
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
500
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
501
|
-
|
502
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
503
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
504
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
505
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
506
|
-
end
|
507
557
|
|
508
|
-
|
558
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
559
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
560
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
561
|
+
|
509
562
|
|
510
563
|
customer = UltracartClient::Customer.new # Customer | Customer to insert
|
511
564
|
|
@@ -555,18 +608,11 @@ Update a customer on the UltraCart account.
|
|
555
608
|
```ruby
|
556
609
|
# load the gem
|
557
610
|
require 'ultracart_api'
|
558
|
-
# setup authorization
|
559
|
-
UltracartClient.configure do |config|
|
560
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
561
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
562
|
-
|
563
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
564
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
565
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
566
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
567
|
-
end
|
568
611
|
|
569
|
-
|
612
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
613
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
614
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
615
|
+
|
570
616
|
|
571
617
|
customer = UltracartClient::Customer.new # Customer | Customer to update
|
572
618
|
|
@@ -619,18 +665,11 @@ Update email list subscriptions for a customer
|
|
619
665
|
```ruby
|
620
666
|
# load the gem
|
621
667
|
require 'ultracart_api'
|
622
|
-
# setup authorization
|
623
|
-
UltracartClient.configure do |config|
|
624
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
625
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
626
|
-
|
627
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
628
|
-
config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
|
629
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
630
|
-
#config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
|
631
|
-
end
|
632
668
|
|
633
|
-
|
669
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
670
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
671
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
672
|
+
|
634
673
|
|
635
674
|
customer_profile_oid = 56 # Integer | The customer profile oid
|
636
675
|
|
@@ -668,3 +707,53 @@ Name | Type | Description | Notes
|
|
668
707
|
|
669
708
|
|
670
709
|
|
710
|
+
# **validate_email_verification_token**
|
711
|
+
> EmailVerifyTokenValidateResponse validate_email_verification_token(validation_request)
|
712
|
+
|
713
|
+
Validate a token that can be used to verify a customer email address
|
714
|
+
|
715
|
+
Validate a token that can be used to verify a customer email address. The implementation of how a customer interacts with this token is left to the merchant.
|
716
|
+
|
717
|
+
### Example
|
718
|
+
```ruby
|
719
|
+
# load the gem
|
720
|
+
require 'ultracart_api'
|
721
|
+
|
722
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
723
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
724
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
725
|
+
|
726
|
+
|
727
|
+
validation_request = UltracartClient::EmailVerifyTokenValidateRequest.new # EmailVerifyTokenValidateRequest | Token validation request
|
728
|
+
|
729
|
+
|
730
|
+
begin
|
731
|
+
#Validate a token that can be used to verify a customer email address
|
732
|
+
result = api_instance.validate_email_verification_token(validation_request)
|
733
|
+
p result
|
734
|
+
rescue UltracartClient::ApiError => e
|
735
|
+
puts "Exception when calling CustomerApi->validate_email_verification_token: #{e}"
|
736
|
+
end
|
737
|
+
```
|
738
|
+
|
739
|
+
### Parameters
|
740
|
+
|
741
|
+
Name | Type | Description | Notes
|
742
|
+
------------- | ------------- | ------------- | -------------
|
743
|
+
**validation_request** | [**EmailVerifyTokenValidateRequest**](EmailVerifyTokenValidateRequest.md)| Token validation request |
|
744
|
+
|
745
|
+
### Return type
|
746
|
+
|
747
|
+
[**EmailVerifyTokenValidateResponse**](EmailVerifyTokenValidateResponse.md)
|
748
|
+
|
749
|
+
### Authorization
|
750
|
+
|
751
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
752
|
+
|
753
|
+
### HTTP request headers
|
754
|
+
|
755
|
+
- **Content-Type**: application/json
|
756
|
+
- **Accept**: application/json
|
757
|
+
|
758
|
+
|
759
|
+
|