ultracart_api 3.0.76 → 3.1.4
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 +80 -211
- 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 +15 -2
- 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/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
|
+
|
data/docs/EmailPlanAdditional.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
+
**active** | **BOOLEAN** | | [optional]
|
6
7
|
**can_downgrade** | **BOOLEAN** | | [optional]
|
7
8
|
**can_upgrade** | **BOOLEAN** | | [optional]
|
8
9
|
**cost** | **Float** | | [optional]
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# UltracartClient::EmailVerifyTokenResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**error** | [**Error**](Error.md) | | [optional]
|
7
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
8
|
+
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
9
|
+
**token** | **String** | token | [optional]
|
10
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
11
|
+
|
12
|
+
|