ultracart_api 3.1.0 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -9
- data/docs/AutoOrderApi.md +12 -12
- data/docs/CheckoutApi.md +1 -1
- data/docs/CouponApi.md +2 -2
- data/docs/CouponTieredAmountOffItem.md +1 -1
- data/docs/CouponTieredPercentOffItems.md +1 -1
- data/docs/CustomerApi.md +157 -0
- 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/OrderApi.md +3 -3
- data/docs/ScreenRecording.md +2 -1
- data/lib/ultracart_api.rb +4 -0
- data/lib/ultracart_api/api/auto_order_api.rb +8 -8
- data/lib/ultracart_api/api/checkout_api.rb +2 -2
- data/lib/ultracart_api/api/coupon_api.rb +2 -2
- data/lib/ultracart_api/api/customer_api.rb +168 -0
- data/lib/ultracart_api/api/order_api.rb +2 -2
- 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
@@ -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
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# UltracartClient::EmailVerifyTokenValidateResponse
|
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
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/OrderApi.md
CHANGED
@@ -15,7 +15,7 @@ Method | HTTP request | Description
|
|
15
15
|
[**get_order_by_token**](OrderApi.md#get_order_by_token) | **POST** /order/orders/token | Retrieve an order using a token
|
16
16
|
[**get_orders**](OrderApi.md#get_orders) | **GET** /order/orders | Retrieve orders
|
17
17
|
[**get_orders_batch**](OrderApi.md#get_orders_batch) | **POST** /order/orders/batch | Retrieve order batch
|
18
|
-
[**get_orders_by_query**](OrderApi.md#get_orders_by_query) | **POST** /order/orders/query | Retrieve orders
|
18
|
+
[**get_orders_by_query**](OrderApi.md#get_orders_by_query) | **POST** /order/orders/query | Retrieve orders by query
|
19
19
|
[**insert_order**](OrderApi.md#insert_order) | **POST** /order/orders | Insert an order
|
20
20
|
[**process_payment**](OrderApi.md#process_payment) | **POST** /order/orders/{order_id}/process_payment | Process payment
|
21
21
|
[**refund_order**](OrderApi.md#refund_order) | **PUT** /order/orders/{order_id}/refund | Refund an order
|
@@ -661,7 +661,7 @@ Name | Type | Description | Notes
|
|
661
661
|
# **get_orders_by_query**
|
662
662
|
> OrdersResponse get_orders_by_query(order_query, opts)
|
663
663
|
|
664
|
-
Retrieve orders
|
664
|
+
Retrieve orders by query
|
665
665
|
|
666
666
|
Retrieves a group of orders from the account based on a query object. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
667
667
|
|
@@ -685,7 +685,7 @@ opts = {
|
|
685
685
|
}
|
686
686
|
|
687
687
|
begin
|
688
|
-
#Retrieve orders
|
688
|
+
#Retrieve orders by query
|
689
689
|
result = api_instance.get_orders_by_query(order_query, opts)
|
690
690
|
p result
|
691
691
|
rescue UltracartClient::ApiError => e
|
data/docs/ScreenRecording.md
CHANGED
@@ -11,7 +11,8 @@ Name | Type | Description | Notes
|
|
11
11
|
**esp_customer_uuid** | **String** | | [optional]
|
12
12
|
**events_gz_size** | **Integer** | | [optional]
|
13
13
|
**events_json_key** | **String** | | [optional]
|
14
|
-
**
|
14
|
+
**favorite** | **BOOLEAN** | True if the user calling the API has favorited this particular screen recording. | [optional]
|
15
|
+
**favorites** | **Array<Integer>** | Array of user ids that favorited this particular screen recording. | [optional]
|
15
16
|
**geolocation** | [**GeoPoint**](GeoPoint.md) | | [optional]
|
16
17
|
**geolocation_country** | **String** | | [optional]
|
17
18
|
**geolocation_state** | **String** | | [optional]
|
data/lib/ultracart_api.rb
CHANGED
@@ -303,6 +303,10 @@ require 'ultracart_api/models/email_third_party_list'
|
|
303
303
|
require 'ultracart_api/models/email_third_party_list_import_request'
|
304
304
|
require 'ultracart_api/models/email_third_party_provider'
|
305
305
|
require 'ultracart_api/models/email_third_party_providers_response'
|
306
|
+
require 'ultracart_api/models/email_verify_token_request'
|
307
|
+
require 'ultracart_api/models/email_verify_token_response'
|
308
|
+
require 'ultracart_api/models/email_verify_token_validate_request'
|
309
|
+
require 'ultracart_api/models/email_verify_token_validate_response'
|
306
310
|
require 'ultracart_api/models/error'
|
307
311
|
require 'ultracart_api/models/error_response'
|
308
312
|
require 'ultracart_api/models/experiment'
|
@@ -32,7 +32,7 @@ module UltracartClient
|
|
32
32
|
UltracartClient::AutoOrderApi.new(api_client)
|
33
33
|
end
|
34
34
|
|
35
|
-
# Retrieve an auto order
|
35
|
+
# Retrieve an auto order by oid
|
36
36
|
# Retrieves a single auto order using the specified auto order oid.
|
37
37
|
# @param auto_order_oid The auto order oid to retrieve.
|
38
38
|
# @param [Hash] opts the optional parameters
|
@@ -43,7 +43,7 @@ module UltracartClient
|
|
43
43
|
data
|
44
44
|
end
|
45
45
|
|
46
|
-
# Retrieve an auto order
|
46
|
+
# Retrieve an auto order by oid
|
47
47
|
# Retrieves a single auto order using the specified auto order oid.
|
48
48
|
# @param auto_order_oid The auto order oid to retrieve.
|
49
49
|
# @param [Hash] opts the optional parameters
|
@@ -90,7 +90,7 @@ module UltracartClient
|
|
90
90
|
end
|
91
91
|
return data, status_code, headers
|
92
92
|
end
|
93
|
-
# Retrieve an auto order
|
93
|
+
# Retrieve an auto order by code
|
94
94
|
# Retrieves a single auto order using the specified reference (original) order id.
|
95
95
|
# @param auto_order_code The auto order oid to retrieve.
|
96
96
|
# @param [Hash] opts the optional parameters
|
@@ -101,7 +101,7 @@ module UltracartClient
|
|
101
101
|
data
|
102
102
|
end
|
103
103
|
|
104
|
-
# Retrieve an auto order
|
104
|
+
# Retrieve an auto order by code
|
105
105
|
# Retrieves a single auto order using the specified reference (original) order id.
|
106
106
|
# @param auto_order_code The auto order oid to retrieve.
|
107
107
|
# @param [Hash] opts the optional parameters
|
@@ -148,7 +148,7 @@ module UltracartClient
|
|
148
148
|
end
|
149
149
|
return data, status_code, headers
|
150
150
|
end
|
151
|
-
# Retrieve an auto order
|
151
|
+
# Retrieve an auto order by order id
|
152
152
|
# Retrieves a single auto order using the specified reference (original) order id.
|
153
153
|
# @param reference_order_id The auto order oid to retrieve.
|
154
154
|
# @param [Hash] opts the optional parameters
|
@@ -159,7 +159,7 @@ module UltracartClient
|
|
159
159
|
data
|
160
160
|
end
|
161
161
|
|
162
|
-
# Retrieve an auto order
|
162
|
+
# Retrieve an auto order by order id
|
163
163
|
# Retrieves a single auto order using the specified reference (original) order id.
|
164
164
|
# @param reference_order_id The auto order oid to retrieve.
|
165
165
|
# @param [Hash] opts the optional parameters
|
@@ -382,7 +382,7 @@ module UltracartClient
|
|
382
382
|
end
|
383
383
|
return data, status_code, headers
|
384
384
|
end
|
385
|
-
# Retrieve auto orders
|
385
|
+
# Retrieve auto orders by query
|
386
386
|
# Retrieves a group of auto orders from the account based on a query object. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
387
387
|
# @param auto_order_query Auto order query
|
388
388
|
# @param [Hash] opts the optional parameters
|
@@ -396,7 +396,7 @@ module UltracartClient
|
|
396
396
|
data
|
397
397
|
end
|
398
398
|
|
399
|
-
# Retrieve auto orders
|
399
|
+
# Retrieve auto orders by query
|
400
400
|
# Retrieves a group of auto orders from the account based on a query object. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
401
401
|
# @param auto_order_query Auto order query
|
402
402
|
# @param [Hash] opts the optional parameters
|
@@ -937,7 +937,7 @@ module UltracartClient
|
|
937
937
|
return data, status_code, headers
|
938
938
|
end
|
939
939
|
# Setup Browser Application
|
940
|
-
# Setup a browser key authenticated application with checkout permissions. This REST call must be made with an authentication scheme that is not browser key. The new application will be linked to the application that makes this call. If this application is disabled / deleted, then so will the application setup by this call. The purpose of this call is to allow an OAuth
|
940
|
+
# Setup a browser key authenticated application with checkout permissions. This REST call must be made with an authentication scheme that is not browser key. The new application will be linked to the application that makes this call. If this application is disabled / deleted, then so will the application setup by this call. The purpose of this call is to allow an OAuth application, such as the Wordpress plugin, to setup the proper browser based authentication for the REST checkout API to use.
|
941
941
|
# @param browser_key_request Setup browser key request
|
942
942
|
# @param [Hash] opts the optional parameters
|
943
943
|
# @return [CheckoutSetupBrowserKeyResponse]
|
@@ -947,7 +947,7 @@ module UltracartClient
|
|
947
947
|
end
|
948
948
|
|
949
949
|
# Setup Browser Application
|
950
|
-
# Setup a browser key authenticated application with checkout permissions. This REST call must be made with an authentication scheme that is not browser key. The new application will be linked to the application that makes this call. If this application is disabled / deleted, then so will the application setup by this call. The purpose of this call is to allow an OAuth
|
950
|
+
# Setup a browser key authenticated application with checkout permissions. This REST call must be made with an authentication scheme that is not browser key. The new application will be linked to the application that makes this call. If this application is disabled / deleted, then so will the application setup by this call. The purpose of this call is to allow an OAuth application, such as the Wordpress plugin, to setup the proper browser based authentication for the REST checkout API to use.
|
951
951
|
# @param browser_key_request Setup browser key request
|
952
952
|
# @param [Hash] opts the optional parameters
|
953
953
|
# @return [Array<(CheckoutSetupBrowserKeyResponse, Fixnum, Hash)>] CheckoutSetupBrowserKeyResponse data, response status code and response headers
|
@@ -1034,7 +1034,7 @@ module UltracartClient
|
|
1034
1034
|
end
|
1035
1035
|
# Update multiple coupons
|
1036
1036
|
# Update multiple coupon on the UltraCart account.
|
1037
|
-
# @param coupons_request Coupons to update (synchronous maximum
|
1037
|
+
# @param coupons_request Coupons to update (synchronous maximum 50 / asynchronous maximum 100)
|
1038
1038
|
# @param [Hash] opts the optional parameters
|
1039
1039
|
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
1040
1040
|
# @option opts [BOOLEAN] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
|
@@ -1047,7 +1047,7 @@ module UltracartClient
|
|
1047
1047
|
|
1048
1048
|
# Update multiple coupons
|
1049
1049
|
# Update multiple coupon on the UltraCart account.
|
1050
|
-
# @param coupons_request Coupons to update (synchronous maximum
|
1050
|
+
# @param coupons_request Coupons to update (synchronous maximum 50 / asynchronous maximum 100)
|
1051
1051
|
# @param [Hash] opts the optional parameters
|
1052
1052
|
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
1053
1053
|
# @option opts [BOOLEAN] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
|
@@ -145,6 +145,64 @@ module UltracartClient
|
|
145
145
|
end
|
146
146
|
return data, status_code, headers
|
147
147
|
end
|
148
|
+
# Retrieve a customer by Email
|
149
|
+
# Retrieves a single customer using the specified customer email address.
|
150
|
+
# @param email The email address of the customer to retrieve.
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
153
|
+
# @return [CustomerResponse]
|
154
|
+
def get_customer_by_email(email, opts = {})
|
155
|
+
data, _status_code, _headers = get_customer_by_email_with_http_info(email, opts)
|
156
|
+
data
|
157
|
+
end
|
158
|
+
|
159
|
+
# Retrieve a customer by Email
|
160
|
+
# Retrieves a single customer using the specified customer email address.
|
161
|
+
# @param email The email address of the customer to retrieve.
|
162
|
+
# @param [Hash] opts the optional parameters
|
163
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
164
|
+
# @return [Array<(CustomerResponse, Fixnum, Hash)>] CustomerResponse data, response status code and response headers
|
165
|
+
def get_customer_by_email_with_http_info(email, opts = {})
|
166
|
+
if @api_client.config.debugging
|
167
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.get_customer_by_email ...'
|
168
|
+
end
|
169
|
+
# verify the required parameter 'email' is set
|
170
|
+
if @api_client.config.client_side_validation && email.nil?
|
171
|
+
fail ArgumentError, "Missing the required parameter 'email' when calling CustomerApi.get_customer_by_email"
|
172
|
+
end
|
173
|
+
# resource path
|
174
|
+
local_var_path = '/customer/customers/by_email/{email}'.sub('{' + 'email' + '}', email.to_s)
|
175
|
+
|
176
|
+
# query parameters
|
177
|
+
query_params = {}
|
178
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
179
|
+
|
180
|
+
# header parameters
|
181
|
+
header_params = {}
|
182
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
183
|
+
# HTTP header 'Accept' (if needed)
|
184
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
185
|
+
# HTTP header 'Content-Type'
|
186
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
187
|
+
|
188
|
+
# form parameters
|
189
|
+
form_params = {}
|
190
|
+
|
191
|
+
# http body (model)
|
192
|
+
post_body = nil
|
193
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
194
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
195
|
+
:header_params => header_params,
|
196
|
+
:query_params => query_params,
|
197
|
+
:form_params => form_params,
|
198
|
+
:body => post_body,
|
199
|
+
:auth_names => auth_names,
|
200
|
+
:return_type => 'CustomerResponse')
|
201
|
+
if @api_client.config.debugging
|
202
|
+
@api_client.config.logger.debug "API called: CustomerApi#get_customer_by_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
203
|
+
end
|
204
|
+
return data, status_code, headers
|
205
|
+
end
|
148
206
|
# Retrieve customers
|
149
207
|
# Retrieves customers from the account. If no parameters are specified, all customers will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
150
208
|
# @param [Hash] opts the optional parameters
|
@@ -510,6 +568,61 @@ module UltracartClient
|
|
510
568
|
end
|
511
569
|
return data, status_code, headers
|
512
570
|
end
|
571
|
+
# Create a token that can be used to verify a customer email address
|
572
|
+
# 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.
|
573
|
+
# @param token_request Token request
|
574
|
+
# @param [Hash] opts the optional parameters
|
575
|
+
# @return [EmailVerifyTokenResponse]
|
576
|
+
def get_email_verification_token(token_request, opts = {})
|
577
|
+
data, _status_code, _headers = get_email_verification_token_with_http_info(token_request, opts)
|
578
|
+
data
|
579
|
+
end
|
580
|
+
|
581
|
+
# Create a token that can be used to verify a customer email address
|
582
|
+
# 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.
|
583
|
+
# @param token_request Token request
|
584
|
+
# @param [Hash] opts the optional parameters
|
585
|
+
# @return [Array<(EmailVerifyTokenResponse, Fixnum, Hash)>] EmailVerifyTokenResponse data, response status code and response headers
|
586
|
+
def get_email_verification_token_with_http_info(token_request, opts = {})
|
587
|
+
if @api_client.config.debugging
|
588
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.get_email_verification_token ...'
|
589
|
+
end
|
590
|
+
# verify the required parameter 'token_request' is set
|
591
|
+
if @api_client.config.client_side_validation && token_request.nil?
|
592
|
+
fail ArgumentError, "Missing the required parameter 'token_request' when calling CustomerApi.get_email_verification_token"
|
593
|
+
end
|
594
|
+
# resource path
|
595
|
+
local_var_path = '/customer/customers/email_verify/get_token'
|
596
|
+
|
597
|
+
# query parameters
|
598
|
+
query_params = {}
|
599
|
+
|
600
|
+
# header parameters
|
601
|
+
header_params = {}
|
602
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
603
|
+
# HTTP header 'Accept' (if needed)
|
604
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
605
|
+
# HTTP header 'Content-Type'
|
606
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
607
|
+
|
608
|
+
# form parameters
|
609
|
+
form_params = {}
|
610
|
+
|
611
|
+
# http body (model)
|
612
|
+
post_body = @api_client.object_to_http_body(token_request)
|
613
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
614
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
615
|
+
:header_params => header_params,
|
616
|
+
:query_params => query_params,
|
617
|
+
:form_params => form_params,
|
618
|
+
:body => post_body,
|
619
|
+
:auth_names => auth_names,
|
620
|
+
:return_type => 'EmailVerifyTokenResponse')
|
621
|
+
if @api_client.config.debugging
|
622
|
+
@api_client.config.logger.debug "API called: CustomerApi#get_email_verification_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
623
|
+
end
|
624
|
+
return data, status_code, headers
|
625
|
+
end
|
513
626
|
# Insert a customer
|
514
627
|
# Insert a customer on the UltraCart account.
|
515
628
|
# @param customer Customer to insert
|
@@ -693,5 +806,60 @@ module UltracartClient
|
|
693
806
|
end
|
694
807
|
return data, status_code, headers
|
695
808
|
end
|
809
|
+
# Validate a token that can be used to verify a customer email address
|
810
|
+
# 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.
|
811
|
+
# @param validation_request Token validation request
|
812
|
+
# @param [Hash] opts the optional parameters
|
813
|
+
# @return [EmailVerifyTokenValidateResponse]
|
814
|
+
def validate_email_verification_token(validation_request, opts = {})
|
815
|
+
data, _status_code, _headers = validate_email_verification_token_with_http_info(validation_request, opts)
|
816
|
+
data
|
817
|
+
end
|
818
|
+
|
819
|
+
# Validate a token that can be used to verify a customer email address
|
820
|
+
# 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.
|
821
|
+
# @param validation_request Token validation request
|
822
|
+
# @param [Hash] opts the optional parameters
|
823
|
+
# @return [Array<(EmailVerifyTokenValidateResponse, Fixnum, Hash)>] EmailVerifyTokenValidateResponse data, response status code and response headers
|
824
|
+
def validate_email_verification_token_with_http_info(validation_request, opts = {})
|
825
|
+
if @api_client.config.debugging
|
826
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.validate_email_verification_token ...'
|
827
|
+
end
|
828
|
+
# verify the required parameter 'validation_request' is set
|
829
|
+
if @api_client.config.client_side_validation && validation_request.nil?
|
830
|
+
fail ArgumentError, "Missing the required parameter 'validation_request' when calling CustomerApi.validate_email_verification_token"
|
831
|
+
end
|
832
|
+
# resource path
|
833
|
+
local_var_path = '/customer/customers/email_verify/validate_token'
|
834
|
+
|
835
|
+
# query parameters
|
836
|
+
query_params = {}
|
837
|
+
|
838
|
+
# header parameters
|
839
|
+
header_params = {}
|
840
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
841
|
+
# HTTP header 'Accept' (if needed)
|
842
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
843
|
+
# HTTP header 'Content-Type'
|
844
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
845
|
+
|
846
|
+
# form parameters
|
847
|
+
form_params = {}
|
848
|
+
|
849
|
+
# http body (model)
|
850
|
+
post_body = @api_client.object_to_http_body(validation_request)
|
851
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
852
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
853
|
+
:header_params => header_params,
|
854
|
+
:query_params => query_params,
|
855
|
+
:form_params => form_params,
|
856
|
+
:body => post_body,
|
857
|
+
:auth_names => auth_names,
|
858
|
+
:return_type => 'EmailVerifyTokenValidateResponse')
|
859
|
+
if @api_client.config.debugging
|
860
|
+
@api_client.config.logger.debug "API called: CustomerApi#validate_email_verification_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
861
|
+
end
|
862
|
+
return data, status_code, headers
|
863
|
+
end
|
696
864
|
end
|
697
865
|
end
|
@@ -747,7 +747,7 @@ module UltracartClient
|
|
747
747
|
end
|
748
748
|
return data, status_code, headers
|
749
749
|
end
|
750
|
-
# Retrieve orders
|
750
|
+
# Retrieve orders by query
|
751
751
|
# Retrieves a group of orders from the account based on a query object. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
752
752
|
# @param order_query Order query
|
753
753
|
# @param [Hash] opts the optional parameters
|
@@ -761,7 +761,7 @@ module UltracartClient
|
|
761
761
|
data
|
762
762
|
end
|
763
763
|
|
764
|
-
# Retrieve orders
|
764
|
+
# Retrieve orders by query
|
765
765
|
# Retrieves a group of orders from the account based on a query object. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
766
766
|
# @param order_query Order query
|
767
767
|
# @param [Hash] opts the optional parameters
|
@@ -17,7 +17,7 @@ module UltracartClient
|
|
17
17
|
# A list of items of which at least one must be purchased for coupon to be valid.
|
18
18
|
attr_accessor :items
|
19
19
|
|
20
|
-
# The maximum
|
20
|
+
# The (optional) maximum quantity of discounted items.
|
21
21
|
attr_accessor :limit
|
22
22
|
|
23
23
|
# A list of discount tiers.
|
@@ -14,6 +14,8 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class EmailPlanAdditional
|
17
|
+
attr_accessor :active
|
18
|
+
|
17
19
|
attr_accessor :can_downgrade
|
18
20
|
|
19
21
|
attr_accessor :can_upgrade
|
@@ -33,6 +35,7 @@ module UltracartClient
|
|
33
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
36
|
def self.attribute_map
|
35
37
|
{
|
38
|
+
:'active' => :'active',
|
36
39
|
:'can_downgrade' => :'can_downgrade',
|
37
40
|
:'can_upgrade' => :'can_upgrade',
|
38
41
|
:'cost' => :'cost',
|
@@ -47,6 +50,7 @@ module UltracartClient
|
|
47
50
|
# Attribute type mapping.
|
48
51
|
def self.swagger_types
|
49
52
|
{
|
53
|
+
:'active' => :'BOOLEAN',
|
50
54
|
:'can_downgrade' => :'BOOLEAN',
|
51
55
|
:'can_upgrade' => :'BOOLEAN',
|
52
56
|
:'cost' => :'Float',
|
@@ -66,6 +70,10 @@ module UltracartClient
|
|
66
70
|
# convert string to symbol for hash key
|
67
71
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
72
|
|
73
|
+
if attributes.has_key?(:'active')
|
74
|
+
self.active = attributes[:'active']
|
75
|
+
end
|
76
|
+
|
69
77
|
if attributes.has_key?(:'can_downgrade')
|
70
78
|
self.can_downgrade = attributes[:'can_downgrade']
|
71
79
|
end
|
@@ -117,6 +125,7 @@ module UltracartClient
|
|
117
125
|
def ==(o)
|
118
126
|
return true if self.equal?(o)
|
119
127
|
self.class == o.class &&
|
128
|
+
active == o.active &&
|
120
129
|
can_downgrade == o.can_downgrade &&
|
121
130
|
can_upgrade == o.can_upgrade &&
|
122
131
|
cost == o.cost &&
|
@@ -136,7 +145,7 @@ module UltracartClient
|
|
136
145
|
# Calculates hash code according to all attributes.
|
137
146
|
# @return [Fixnum] Hash code
|
138
147
|
def hash
|
139
|
-
[can_downgrade, can_upgrade, cost, cost_change, cost_change_formatted, cost_formatted, customers, emails].hash
|
148
|
+
[active, can_downgrade, can_upgrade, cost, cost_change, cost_change_formatted, cost_formatted, customers, emails].hash
|
140
149
|
end
|
141
150
|
|
142
151
|
# Builds the object from hash
|