ultracart_api 3.1.49 → 3.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +201 -201
- data/README.md +17 -7
- data/docs/AutoOrderQuery.md +3 -1
- data/docs/CustomerApi.md +92 -92
- data/docs/IntegrationLog.md +4 -1
- data/docs/IntegrationLogApi.md +57 -0
- data/docs/IntegrationLogFile.md +1 -0
- data/docs/IntegrationLogQueryFilterValues.md +3 -0
- data/docs/IntegrationLogQueryRequest.md +1 -0
- data/docs/LibraryItemAttribute.md +0 -1
- data/docs/ScreenRecordingSettings.md +2 -0
- data/docs/StorefrontApi.md +52 -52
- data/lib/ultracart_api/api/customer_api.rb +98 -98
- data/lib/ultracart_api/api/integration_log_api.rb +67 -0
- data/lib/ultracart_api/api/storefront_api.rb +52 -52
- data/lib/ultracart_api/models/auto_order_query.rb +22 -2
- data/lib/ultracart_api/models/integration_log.rb +32 -4
- data/lib/ultracart_api/models/integration_log_file.rb +10 -1
- data/lib/ultracart_api/models/integration_log_query_filter_values.rb +32 -1
- data/lib/ultracart_api/models/integration_log_query_request.rb +10 -1
- data/lib/ultracart_api/models/library_item_attribute.rb +1 -10
- data/lib/ultracart_api/models/screen_recording_settings.rb +21 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
@@ -203,6 +203,104 @@ module UltracartClient
|
|
203
203
|
end
|
204
204
|
return data, status_code, headers
|
205
205
|
end
|
206
|
+
# Retrieve values needed for a customer profile editor
|
207
|
+
# Retrieve values needed for a customer profile editor.
|
208
|
+
# @param [Hash] opts the optional parameters
|
209
|
+
# @return [CustomerEditorValues]
|
210
|
+
def get_customer_editor_values(opts = {})
|
211
|
+
data, _status_code, _headers = get_customer_editor_values_with_http_info(opts)
|
212
|
+
data
|
213
|
+
end
|
214
|
+
|
215
|
+
# Retrieve values needed for a customer profile editor
|
216
|
+
# Retrieve values needed for a customer profile editor.
|
217
|
+
# @param [Hash] opts the optional parameters
|
218
|
+
# @return [Array<(CustomerEditorValues, Fixnum, Hash)>] CustomerEditorValues data, response status code and response headers
|
219
|
+
def get_customer_editor_values_with_http_info(opts = {})
|
220
|
+
if @api_client.config.debugging
|
221
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.get_customer_editor_values ...'
|
222
|
+
end
|
223
|
+
# resource path
|
224
|
+
local_var_path = '/customer/editor_values'
|
225
|
+
|
226
|
+
# query parameters
|
227
|
+
query_params = {}
|
228
|
+
|
229
|
+
# header parameters
|
230
|
+
header_params = {}
|
231
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
232
|
+
# HTTP header 'Accept' (if needed)
|
233
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
234
|
+
# HTTP header 'Content-Type'
|
235
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
236
|
+
|
237
|
+
# form parameters
|
238
|
+
form_params = {}
|
239
|
+
|
240
|
+
# http body (model)
|
241
|
+
post_body = nil
|
242
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
243
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
244
|
+
:header_params => header_params,
|
245
|
+
:query_params => query_params,
|
246
|
+
:form_params => form_params,
|
247
|
+
:body => post_body,
|
248
|
+
:auth_names => auth_names,
|
249
|
+
:return_type => 'CustomerEditorValues')
|
250
|
+
if @api_client.config.debugging
|
251
|
+
@api_client.config.logger.debug "API called: CustomerApi#get_customer_editor_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
252
|
+
end
|
253
|
+
return data, status_code, headers
|
254
|
+
end
|
255
|
+
# Retrieve all email lists across all storefronts
|
256
|
+
# Retrieve all email lists across all storefronts
|
257
|
+
# @param [Hash] opts the optional parameters
|
258
|
+
# @return [EmailListsResponse]
|
259
|
+
def get_customer_email_lists(opts = {})
|
260
|
+
data, _status_code, _headers = get_customer_email_lists_with_http_info(opts)
|
261
|
+
data
|
262
|
+
end
|
263
|
+
|
264
|
+
# Retrieve all email lists across all storefronts
|
265
|
+
# Retrieve all email lists across all storefronts
|
266
|
+
# @param [Hash] opts the optional parameters
|
267
|
+
# @return [Array<(EmailListsResponse, Fixnum, Hash)>] EmailListsResponse data, response status code and response headers
|
268
|
+
def get_customer_email_lists_with_http_info(opts = {})
|
269
|
+
if @api_client.config.debugging
|
270
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.get_customer_email_lists ...'
|
271
|
+
end
|
272
|
+
# resource path
|
273
|
+
local_var_path = '/customer/email_lists'
|
274
|
+
|
275
|
+
# query parameters
|
276
|
+
query_params = {}
|
277
|
+
|
278
|
+
# header parameters
|
279
|
+
header_params = {}
|
280
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
281
|
+
# HTTP header 'Accept' (if needed)
|
282
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
283
|
+
# HTTP header 'Content-Type'
|
284
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
285
|
+
|
286
|
+
# form parameters
|
287
|
+
form_params = {}
|
288
|
+
|
289
|
+
# http body (model)
|
290
|
+
post_body = nil
|
291
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
292
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
293
|
+
:header_params => header_params,
|
294
|
+
:query_params => query_params,
|
295
|
+
:form_params => form_params,
|
296
|
+
:body => post_body,
|
297
|
+
:auth_names => auth_names,
|
298
|
+
:return_type => 'EmailListsResponse')
|
299
|
+
if @api_client.config.debugging
|
300
|
+
@api_client.config.logger.debug "API called: CustomerApi#get_customer_email_lists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
301
|
+
end
|
302
|
+
return data, status_code, headers
|
303
|
+
end
|
206
304
|
# Retrieve customers
|
207
305
|
# 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.
|
208
306
|
# @param [Hash] opts the optional parameters
|
@@ -470,104 +568,6 @@ module UltracartClient
|
|
470
568
|
end
|
471
569
|
return data, status_code, headers
|
472
570
|
end
|
473
|
-
# Retrieve values needed for a customer profile editor
|
474
|
-
# Retrieve values needed for a customer profile editor.
|
475
|
-
# @param [Hash] opts the optional parameters
|
476
|
-
# @return [CustomerEditorValues]
|
477
|
-
def get_editor_values(opts = {})
|
478
|
-
data, _status_code, _headers = get_editor_values_with_http_info(opts)
|
479
|
-
data
|
480
|
-
end
|
481
|
-
|
482
|
-
# Retrieve values needed for a customer profile editor
|
483
|
-
# Retrieve values needed for a customer profile editor.
|
484
|
-
# @param [Hash] opts the optional parameters
|
485
|
-
# @return [Array<(CustomerEditorValues, Fixnum, Hash)>] CustomerEditorValues data, response status code and response headers
|
486
|
-
def get_editor_values_with_http_info(opts = {})
|
487
|
-
if @api_client.config.debugging
|
488
|
-
@api_client.config.logger.debug 'Calling API: CustomerApi.get_editor_values ...'
|
489
|
-
end
|
490
|
-
# resource path
|
491
|
-
local_var_path = '/customer/editor_values'
|
492
|
-
|
493
|
-
# query parameters
|
494
|
-
query_params = {}
|
495
|
-
|
496
|
-
# header parameters
|
497
|
-
header_params = {}
|
498
|
-
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
499
|
-
# HTTP header 'Accept' (if needed)
|
500
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
501
|
-
# HTTP header 'Content-Type'
|
502
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
503
|
-
|
504
|
-
# form parameters
|
505
|
-
form_params = {}
|
506
|
-
|
507
|
-
# http body (model)
|
508
|
-
post_body = nil
|
509
|
-
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
510
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
511
|
-
:header_params => header_params,
|
512
|
-
:query_params => query_params,
|
513
|
-
:form_params => form_params,
|
514
|
-
:body => post_body,
|
515
|
-
:auth_names => auth_names,
|
516
|
-
:return_type => 'CustomerEditorValues')
|
517
|
-
if @api_client.config.debugging
|
518
|
-
@api_client.config.logger.debug "API called: CustomerApi#get_editor_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
519
|
-
end
|
520
|
-
return data, status_code, headers
|
521
|
-
end
|
522
|
-
# Retrieve all email lists across all storefronts
|
523
|
-
# Retrieve all email lists across all storefronts
|
524
|
-
# @param [Hash] opts the optional parameters
|
525
|
-
# @return [EmailListsResponse]
|
526
|
-
def get_email_lists(opts = {})
|
527
|
-
data, _status_code, _headers = get_email_lists_with_http_info(opts)
|
528
|
-
data
|
529
|
-
end
|
530
|
-
|
531
|
-
# Retrieve all email lists across all storefronts
|
532
|
-
# Retrieve all email lists across all storefronts
|
533
|
-
# @param [Hash] opts the optional parameters
|
534
|
-
# @return [Array<(EmailListsResponse, Fixnum, Hash)>] EmailListsResponse data, response status code and response headers
|
535
|
-
def get_email_lists_with_http_info(opts = {})
|
536
|
-
if @api_client.config.debugging
|
537
|
-
@api_client.config.logger.debug 'Calling API: CustomerApi.get_email_lists ...'
|
538
|
-
end
|
539
|
-
# resource path
|
540
|
-
local_var_path = '/customer/email_lists'
|
541
|
-
|
542
|
-
# query parameters
|
543
|
-
query_params = {}
|
544
|
-
|
545
|
-
# header parameters
|
546
|
-
header_params = {}
|
547
|
-
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
548
|
-
# HTTP header 'Accept' (if needed)
|
549
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
550
|
-
# HTTP header 'Content-Type'
|
551
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
552
|
-
|
553
|
-
# form parameters
|
554
|
-
form_params = {}
|
555
|
-
|
556
|
-
# http body (model)
|
557
|
-
post_body = nil
|
558
|
-
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
559
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
560
|
-
:header_params => header_params,
|
561
|
-
:query_params => query_params,
|
562
|
-
:form_params => form_params,
|
563
|
-
:body => post_body,
|
564
|
-
:auth_names => auth_names,
|
565
|
-
:return_type => 'EmailListsResponse')
|
566
|
-
if @api_client.config.debugging
|
567
|
-
@api_client.config.logger.debug "API called: CustomerApi#get_email_lists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
568
|
-
end
|
569
|
-
return data, status_code, headers
|
570
|
-
end
|
571
571
|
# Create a token that can be used to verify a customer email address
|
572
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
573
|
# @param token_request Token request
|
@@ -93,6 +93,73 @@ module UltracartClient
|
|
93
93
|
end
|
94
94
|
return data, status_code, headers
|
95
95
|
end
|
96
|
+
# Retrieve an integration log file
|
97
|
+
# Retrieve an integration log file from the account based identifiers
|
98
|
+
# @param pk
|
99
|
+
# @param sk
|
100
|
+
# @param uuid
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [File]
|
103
|
+
def get_integration_log_file(pk, sk, uuid, opts = {})
|
104
|
+
data, _status_code, _headers = get_integration_log_file_with_http_info(pk, sk, uuid, opts)
|
105
|
+
data
|
106
|
+
end
|
107
|
+
|
108
|
+
# Retrieve an integration log file
|
109
|
+
# Retrieve an integration log file from the account based identifiers
|
110
|
+
# @param pk
|
111
|
+
# @param sk
|
112
|
+
# @param uuid
|
113
|
+
# @param [Hash] opts the optional parameters
|
114
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
115
|
+
def get_integration_log_file_with_http_info(pk, sk, uuid, opts = {})
|
116
|
+
if @api_client.config.debugging
|
117
|
+
@api_client.config.logger.debug 'Calling API: IntegrationLogApi.get_integration_log_file ...'
|
118
|
+
end
|
119
|
+
# verify the required parameter 'pk' is set
|
120
|
+
if @api_client.config.client_side_validation && pk.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling IntegrationLogApi.get_integration_log_file"
|
122
|
+
end
|
123
|
+
# verify the required parameter 'sk' is set
|
124
|
+
if @api_client.config.client_side_validation && sk.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'sk' when calling IntegrationLogApi.get_integration_log_file"
|
126
|
+
end
|
127
|
+
# verify the required parameter 'uuid' is set
|
128
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
129
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling IntegrationLogApi.get_integration_log_file"
|
130
|
+
end
|
131
|
+
# resource path
|
132
|
+
local_var_path = '/integration_log/query/{pk}/{sk}/{uuid}'.sub('{' + 'pk' + '}', pk.to_s).sub('{' + 'sk' + '}', sk.to_s).sub('{' + 'uuid' + '}', uuid.to_s)
|
133
|
+
|
134
|
+
# query parameters
|
135
|
+
query_params = {}
|
136
|
+
|
137
|
+
# header parameters
|
138
|
+
header_params = {}
|
139
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
140
|
+
# HTTP header 'Accept' (if needed)
|
141
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
142
|
+
# HTTP header 'Content-Type'
|
143
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
144
|
+
|
145
|
+
# form parameters
|
146
|
+
form_params = {}
|
147
|
+
|
148
|
+
# http body (model)
|
149
|
+
post_body = nil
|
150
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
151
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
152
|
+
:header_params => header_params,
|
153
|
+
:query_params => query_params,
|
154
|
+
:form_params => form_params,
|
155
|
+
:body => post_body,
|
156
|
+
:auth_names => auth_names,
|
157
|
+
:return_type => 'File')
|
158
|
+
if @api_client.config.debugging
|
159
|
+
@api_client.config.logger.debug "API called: IntegrationLogApi#get_integration_log_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
160
|
+
end
|
161
|
+
return data, status_code, headers
|
162
|
+
end
|
96
163
|
# Retrieve integration logs
|
97
164
|
# Retrieves a set of integration logs from the account based on a query object.
|
98
165
|
# @param integration_log_query Integration log query
|
@@ -4904,58 +4904,6 @@ module UltracartClient
|
|
4904
4904
|
end
|
4905
4905
|
return data, status_code, headers
|
4906
4906
|
end
|
4907
|
-
# Retrieve pricing tiers
|
4908
|
-
# Retrieves the pricing tiers
|
4909
|
-
# @param [Hash] opts the optional parameters
|
4910
|
-
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
4911
|
-
# @return [PricingTiersResponse]
|
4912
|
-
def get_pricing_tiers(opts = {})
|
4913
|
-
data, _status_code, _headers = get_pricing_tiers_with_http_info(opts)
|
4914
|
-
data
|
4915
|
-
end
|
4916
|
-
|
4917
|
-
# Retrieve pricing tiers
|
4918
|
-
# Retrieves the pricing tiers
|
4919
|
-
# @param [Hash] opts the optional parameters
|
4920
|
-
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
4921
|
-
# @return [Array<(PricingTiersResponse, Fixnum, Hash)>] PricingTiersResponse data, response status code and response headers
|
4922
|
-
def get_pricing_tiers_with_http_info(opts = {})
|
4923
|
-
if @api_client.config.debugging
|
4924
|
-
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_pricing_tiers ...'
|
4925
|
-
end
|
4926
|
-
# resource path
|
4927
|
-
local_var_path = '/storefront/pricing_tiers'
|
4928
|
-
|
4929
|
-
# query parameters
|
4930
|
-
query_params = {}
|
4931
|
-
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
4932
|
-
|
4933
|
-
# header parameters
|
4934
|
-
header_params = {}
|
4935
|
-
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
4936
|
-
# HTTP header 'Accept' (if needed)
|
4937
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4938
|
-
# HTTP header 'Content-Type'
|
4939
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
4940
|
-
|
4941
|
-
# form parameters
|
4942
|
-
form_params = {}
|
4943
|
-
|
4944
|
-
# http body (model)
|
4945
|
-
post_body = nil
|
4946
|
-
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
4947
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
4948
|
-
:header_params => header_params,
|
4949
|
-
:query_params => query_params,
|
4950
|
-
:form_params => form_params,
|
4951
|
-
:body => post_body,
|
4952
|
-
:auth_names => auth_names,
|
4953
|
-
:return_type => 'PricingTiersResponse')
|
4954
|
-
if @api_client.config.debugging
|
4955
|
-
@api_client.config.logger.debug "API called: StorefrontApi#get_pricing_tiers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4956
|
-
end
|
4957
|
-
return data, status_code, headers
|
4958
|
-
end
|
4959
4907
|
# Get screen recording
|
4960
4908
|
# Get screen recording
|
4961
4909
|
# @param storefront_oid
|
@@ -5444,6 +5392,58 @@ module UltracartClient
|
|
5444
5392
|
end
|
5445
5393
|
return data, status_code, headers
|
5446
5394
|
end
|
5395
|
+
# Retrieve pricing tiers
|
5396
|
+
# Retrieves the pricing tiers
|
5397
|
+
# @param [Hash] opts the optional parameters
|
5398
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
5399
|
+
# @return [PricingTiersResponse]
|
5400
|
+
def get_store_front_pricing_tiers(opts = {})
|
5401
|
+
data, _status_code, _headers = get_store_front_pricing_tiers_with_http_info(opts)
|
5402
|
+
data
|
5403
|
+
end
|
5404
|
+
|
5405
|
+
# Retrieve pricing tiers
|
5406
|
+
# Retrieves the pricing tiers
|
5407
|
+
# @param [Hash] opts the optional parameters
|
5408
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
5409
|
+
# @return [Array<(PricingTiersResponse, Fixnum, Hash)>] PricingTiersResponse data, response status code and response headers
|
5410
|
+
def get_store_front_pricing_tiers_with_http_info(opts = {})
|
5411
|
+
if @api_client.config.debugging
|
5412
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_store_front_pricing_tiers ...'
|
5413
|
+
end
|
5414
|
+
# resource path
|
5415
|
+
local_var_path = '/storefront/pricing_tiers'
|
5416
|
+
|
5417
|
+
# query parameters
|
5418
|
+
query_params = {}
|
5419
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
5420
|
+
|
5421
|
+
# header parameters
|
5422
|
+
header_params = {}
|
5423
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
5424
|
+
# HTTP header 'Accept' (if needed)
|
5425
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
5426
|
+
# HTTP header 'Content-Type'
|
5427
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5428
|
+
|
5429
|
+
# form parameters
|
5430
|
+
form_params = {}
|
5431
|
+
|
5432
|
+
# http body (model)
|
5433
|
+
post_body = nil
|
5434
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
5435
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
5436
|
+
:header_params => header_params,
|
5437
|
+
:query_params => query_params,
|
5438
|
+
:form_params => form_params,
|
5439
|
+
:body => post_body,
|
5440
|
+
:auth_names => auth_names,
|
5441
|
+
:return_type => 'PricingTiersResponse')
|
5442
|
+
if @api_client.config.debugging
|
5443
|
+
@api_client.config.logger.debug "API called: StorefrontApi#get_store_front_pricing_tiers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5444
|
+
end
|
5445
|
+
return data, status_code, headers
|
5446
|
+
end
|
5447
5447
|
# Get thumbnail parameters
|
5448
5448
|
# @param thumbnail_parameters Thumbnail Parameters
|
5449
5449
|
# @param [Hash] opts the optional parameters
|
@@ -38,18 +38,24 @@ module UltracartClient
|
|
38
38
|
# First name
|
39
39
|
attr_accessor :first_name
|
40
40
|
|
41
|
-
# Item ID
|
41
|
+
# Item ID. Deprecated query field. This incorrectly meant the original order contained this item id.
|
42
42
|
attr_accessor :item_id
|
43
43
|
|
44
44
|
# Last name
|
45
45
|
attr_accessor :last_name
|
46
46
|
|
47
|
+
# Next Item ID that is supposed to ship. This is calculated based upon the schedule associated with the original item id.
|
48
|
+
attr_accessor :next_item_id
|
49
|
+
|
47
50
|
# Next shipment date begin
|
48
51
|
attr_accessor :next_shipment_date_begin
|
49
52
|
|
50
53
|
# Next shipment date end
|
51
54
|
attr_accessor :next_shipment_date_end
|
52
55
|
|
56
|
+
# Original Item ID purchased on auto order.
|
57
|
+
attr_accessor :original_item_id
|
58
|
+
|
53
59
|
# Original order date begin
|
54
60
|
attr_accessor :original_order_date_begin
|
55
61
|
|
@@ -84,8 +90,10 @@ module UltracartClient
|
|
84
90
|
:'first_name' => :'first_name',
|
85
91
|
:'item_id' => :'item_id',
|
86
92
|
:'last_name' => :'last_name',
|
93
|
+
:'next_item_id' => :'next_item_id',
|
87
94
|
:'next_shipment_date_begin' => :'next_shipment_date_begin',
|
88
95
|
:'next_shipment_date_end' => :'next_shipment_date_end',
|
96
|
+
:'original_item_id' => :'original_item_id',
|
89
97
|
:'original_order_date_begin' => :'original_order_date_begin',
|
90
98
|
:'original_order_date_end' => :'original_order_date_end',
|
91
99
|
:'original_order_id' => :'original_order_id',
|
@@ -109,8 +117,10 @@ module UltracartClient
|
|
109
117
|
:'first_name' => :'String',
|
110
118
|
:'item_id' => :'String',
|
111
119
|
:'last_name' => :'String',
|
120
|
+
:'next_item_id' => :'String',
|
112
121
|
:'next_shipment_date_begin' => :'String',
|
113
122
|
:'next_shipment_date_end' => :'String',
|
123
|
+
:'original_item_id' => :'String',
|
114
124
|
:'original_order_date_begin' => :'String',
|
115
125
|
:'original_order_date_end' => :'String',
|
116
126
|
:'original_order_id' => :'String',
|
@@ -169,6 +179,10 @@ module UltracartClient
|
|
169
179
|
self.last_name = attributes[:'last_name']
|
170
180
|
end
|
171
181
|
|
182
|
+
if attributes.has_key?(:'next_item_id')
|
183
|
+
self.next_item_id = attributes[:'next_item_id']
|
184
|
+
end
|
185
|
+
|
172
186
|
if attributes.has_key?(:'next_shipment_date_begin')
|
173
187
|
self.next_shipment_date_begin = attributes[:'next_shipment_date_begin']
|
174
188
|
end
|
@@ -177,6 +191,10 @@ module UltracartClient
|
|
177
191
|
self.next_shipment_date_end = attributes[:'next_shipment_date_end']
|
178
192
|
end
|
179
193
|
|
194
|
+
if attributes.has_key?(:'original_item_id')
|
195
|
+
self.original_item_id = attributes[:'original_item_id']
|
196
|
+
end
|
197
|
+
|
180
198
|
if attributes.has_key?(:'original_order_date_begin')
|
181
199
|
self.original_order_date_begin = attributes[:'original_order_date_begin']
|
182
200
|
end
|
@@ -294,8 +312,10 @@ module UltracartClient
|
|
294
312
|
first_name == o.first_name &&
|
295
313
|
item_id == o.item_id &&
|
296
314
|
last_name == o.last_name &&
|
315
|
+
next_item_id == o.next_item_id &&
|
297
316
|
next_shipment_date_begin == o.next_shipment_date_begin &&
|
298
317
|
next_shipment_date_end == o.next_shipment_date_end &&
|
318
|
+
original_item_id == o.original_item_id &&
|
299
319
|
original_order_date_begin == o.original_order_date_begin &&
|
300
320
|
original_order_date_end == o.original_order_date_end &&
|
301
321
|
original_order_id == o.original_order_id &&
|
@@ -314,7 +334,7 @@ module UltracartClient
|
|
314
334
|
# Calculates hash code according to all attributes.
|
315
335
|
# @return [Fixnum] Hash code
|
316
336
|
def hash
|
317
|
-
[auto_order_code, card_type, city, company, country_code, customer_profile_oid, email, first_name, item_id, last_name, next_shipment_date_begin, next_shipment_date_end, original_order_date_begin, original_order_date_end, original_order_id, phone, postal_code, state, status].hash
|
337
|
+
[auto_order_code, card_type, city, company, country_code, customer_profile_oid, email, first_name, item_id, last_name, next_item_id, next_shipment_date_begin, next_shipment_date_end, original_item_id, original_order_date_begin, original_order_date_end, original_order_id, phone, postal_code, state, status].hash
|
318
338
|
end
|
319
339
|
|
320
340
|
# Builds the object from hash
|