ultracart_api 4.1.14 → 4.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +25 -3
- data/docs/CartUpsellAfter.md +6 -2
- data/docs/ConversationVirtualAgentCapabilities.md +4 -0
- data/docs/CustomReport.md +36 -0
- data/docs/CustomReportAccountConfig.md +34 -0
- data/docs/CustomReportAccountConfigResponse.md +26 -0
- data/docs/CustomReportExecutionParameter.md +22 -0
- data/docs/CustomReportExecutionRequest.md +18 -0
- data/docs/CustomReportParameter.md +28 -0
- data/docs/CustomReportParameterOption.md +20 -0
- data/docs/CustomReportQuery.md +28 -0
- data/docs/CustomReportResponse.md +26 -0
- data/docs/CustomReportTooltip.md +20 -0
- data/docs/CustomReportsResponse.md +26 -0
- data/docs/DatawarehouseApi.md +430 -0
- data/docs/Item.md +1 -1
- data/docs/OrderApi.md +137 -63
- data/docs/WebhookApi.md +0 -8
- data/lib/ultracart_api/api/datawarehouse_api.rb +532 -0
- data/lib/ultracart_api/api/order_api.rb +131 -91
- data/lib/ultracart_api/api/webhook_api.rb +0 -24
- data/lib/ultracart_api/models/cart_upsell_after.rb +25 -5
- data/lib/ultracart_api/models/conversation_virtual_agent_capabilities.rb +55 -1
- data/lib/ultracart_api/models/custom_report.rb +306 -0
- data/lib/ultracart_api/models/custom_report_account_config.rb +296 -0
- data/lib/ultracart_api/models/custom_report_account_config_response.rb +256 -0
- data/lib/ultracart_api/models/custom_report_execution_parameter.rb +237 -0
- data/lib/ultracart_api/models/custom_report_execution_request.rb +221 -0
- data/lib/ultracart_api/models/custom_report_parameter.rb +266 -0
- data/lib/ultracart_api/models/custom_report_parameter_option.rb +228 -0
- data/lib/ultracart_api/models/custom_report_query.rb +266 -0
- data/lib/ultracart_api/models/custom_report_response.rb +256 -0
- data/lib/ultracart_api/models/custom_report_tooltip.rb +228 -0
- data/lib/ultracart_api/models/custom_reports_response.rb +259 -0
- data/lib/ultracart_api/models/item.rb +1 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +11 -0
- metadata +24 -2
@@ -32,6 +32,70 @@ module UltracartClient
|
|
32
32
|
UltracartClient::DatawarehouseApi.new(api_client)
|
33
33
|
end
|
34
34
|
|
35
|
+
# Delete a custom report
|
36
|
+
# Delete a custom report on the UltraCart account.
|
37
|
+
# @param custom_report_oid [Integer] The report oid to delete.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [nil]
|
40
|
+
def delete_custom_report(custom_report_oid, opts = {})
|
41
|
+
delete_custom_report_with_http_info(custom_report_oid, opts)
|
42
|
+
nil
|
43
|
+
end
|
44
|
+
|
45
|
+
# Delete a custom report
|
46
|
+
# Delete a custom report on the UltraCart account.
|
47
|
+
# @param custom_report_oid [Integer] The report oid to delete.
|
48
|
+
# @param [Hash] opts the optional parameters
|
49
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
50
|
+
def delete_custom_report_with_http_info(custom_report_oid, opts = {})
|
51
|
+
if @api_client.config.debugging
|
52
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.delete_custom_report ...'
|
53
|
+
end
|
54
|
+
# verify the required parameter 'custom_report_oid' is set
|
55
|
+
if @api_client.config.client_side_validation && custom_report_oid.nil?
|
56
|
+
fail ArgumentError, "Missing the required parameter 'custom_report_oid' when calling DatawarehouseApi.delete_custom_report"
|
57
|
+
end
|
58
|
+
# resource path
|
59
|
+
local_var_path = '/datawarehouse/custom_reports/{custom_report_oid}'.sub('{' + 'custom_report_oid' + '}', CGI.escape(custom_report_oid.to_s))
|
60
|
+
|
61
|
+
# query parameters
|
62
|
+
query_params = opts[:query_params] || {}
|
63
|
+
|
64
|
+
# header parameters
|
65
|
+
header_params = opts[:header_params] || {}
|
66
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
67
|
+
# HTTP header 'Accept' (if needed)
|
68
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
69
|
+
|
70
|
+
# form parameters
|
71
|
+
form_params = opts[:form_params] || {}
|
72
|
+
|
73
|
+
# http body (model)
|
74
|
+
post_body = opts[:debug_body]
|
75
|
+
|
76
|
+
# return_type
|
77
|
+
return_type = opts[:debug_return_type]
|
78
|
+
|
79
|
+
# auth_names
|
80
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
81
|
+
|
82
|
+
new_options = opts.merge(
|
83
|
+
:operation => :"DatawarehouseApi.delete_custom_report",
|
84
|
+
:header_params => header_params,
|
85
|
+
:query_params => query_params,
|
86
|
+
:form_params => form_params,
|
87
|
+
:body => post_body,
|
88
|
+
:auth_names => auth_names,
|
89
|
+
:return_type => return_type
|
90
|
+
)
|
91
|
+
|
92
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
93
|
+
if @api_client.config.debugging
|
94
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#delete_custom_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
95
|
+
end
|
96
|
+
return data, status_code, headers
|
97
|
+
end
|
98
|
+
|
35
99
|
# Delete a report
|
36
100
|
# Delete a report on the UltraCart account.
|
37
101
|
# @param report_oid [Integer] The report oid to delete.
|
@@ -165,6 +229,81 @@ module UltracartClient
|
|
165
229
|
return data, status_code, headers
|
166
230
|
end
|
167
231
|
|
232
|
+
# Execute a custom report
|
233
|
+
# Execute a custom report on the UltraCart account.
|
234
|
+
# @param custom_report_oid [Integer] The report oid to execute.
|
235
|
+
# @param execution_request [CustomReportExecutionRequest] Request to execute custom report
|
236
|
+
# @param [Hash] opts the optional parameters
|
237
|
+
# @return [CustomReportResponse]
|
238
|
+
def execute_custom_report(custom_report_oid, execution_request, opts = {})
|
239
|
+
data, _status_code, _headers = execute_custom_report_with_http_info(custom_report_oid, execution_request, opts)
|
240
|
+
data
|
241
|
+
end
|
242
|
+
|
243
|
+
# Execute a custom report
|
244
|
+
# Execute a custom report on the UltraCart account.
|
245
|
+
# @param custom_report_oid [Integer] The report oid to execute.
|
246
|
+
# @param execution_request [CustomReportExecutionRequest] Request to execute custom report
|
247
|
+
# @param [Hash] opts the optional parameters
|
248
|
+
# @return [Array<(CustomReportResponse, Integer, Hash)>] CustomReportResponse data, response status code and response headers
|
249
|
+
def execute_custom_report_with_http_info(custom_report_oid, execution_request, opts = {})
|
250
|
+
if @api_client.config.debugging
|
251
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.execute_custom_report ...'
|
252
|
+
end
|
253
|
+
# verify the required parameter 'custom_report_oid' is set
|
254
|
+
if @api_client.config.client_side_validation && custom_report_oid.nil?
|
255
|
+
fail ArgumentError, "Missing the required parameter 'custom_report_oid' when calling DatawarehouseApi.execute_custom_report"
|
256
|
+
end
|
257
|
+
# verify the required parameter 'execution_request' is set
|
258
|
+
if @api_client.config.client_side_validation && execution_request.nil?
|
259
|
+
fail ArgumentError, "Missing the required parameter 'execution_request' when calling DatawarehouseApi.execute_custom_report"
|
260
|
+
end
|
261
|
+
# resource path
|
262
|
+
local_var_path = '/datawarehouse/custom_reports/{custom_report_oid}/execute'.sub('{' + 'custom_report_oid' + '}', CGI.escape(custom_report_oid.to_s))
|
263
|
+
|
264
|
+
# query parameters
|
265
|
+
query_params = opts[:query_params] || {}
|
266
|
+
|
267
|
+
# header parameters
|
268
|
+
header_params = opts[:header_params] || {}
|
269
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
270
|
+
# HTTP header 'Accept' (if needed)
|
271
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
272
|
+
# HTTP header 'Content-Type'
|
273
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
274
|
+
if !content_type.nil?
|
275
|
+
header_params['Content-Type'] = content_type
|
276
|
+
end
|
277
|
+
|
278
|
+
# form parameters
|
279
|
+
form_params = opts[:form_params] || {}
|
280
|
+
|
281
|
+
# http body (model)
|
282
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(execution_request)
|
283
|
+
|
284
|
+
# return_type
|
285
|
+
return_type = opts[:debug_return_type] || 'CustomReportResponse'
|
286
|
+
|
287
|
+
# auth_names
|
288
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
289
|
+
|
290
|
+
new_options = opts.merge(
|
291
|
+
:operation => :"DatawarehouseApi.execute_custom_report",
|
292
|
+
:header_params => header_params,
|
293
|
+
:query_params => query_params,
|
294
|
+
:form_params => form_params,
|
295
|
+
:body => post_body,
|
296
|
+
:auth_names => auth_names,
|
297
|
+
:return_type => return_type
|
298
|
+
)
|
299
|
+
|
300
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
301
|
+
if @api_client.config.debugging
|
302
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#execute_custom_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
303
|
+
end
|
304
|
+
return data, status_code, headers
|
305
|
+
end
|
306
|
+
|
168
307
|
# Execute the report queries
|
169
308
|
# Execute the report queries
|
170
309
|
# @param query_request [ReportExecuteQueriesRequest] Query request
|
@@ -234,6 +373,186 @@ module UltracartClient
|
|
234
373
|
return data, status_code, headers
|
235
374
|
end
|
236
375
|
|
376
|
+
# Get a custom report
|
377
|
+
# Retrieve a custom report
|
378
|
+
# @param custom_report_oid [Integer]
|
379
|
+
# @param [Hash] opts the optional parameters
|
380
|
+
# @return [CustomReportResponse]
|
381
|
+
def get_custom_report(custom_report_oid, opts = {})
|
382
|
+
data, _status_code, _headers = get_custom_report_with_http_info(custom_report_oid, opts)
|
383
|
+
data
|
384
|
+
end
|
385
|
+
|
386
|
+
# Get a custom report
|
387
|
+
# Retrieve a custom report
|
388
|
+
# @param custom_report_oid [Integer]
|
389
|
+
# @param [Hash] opts the optional parameters
|
390
|
+
# @return [Array<(CustomReportResponse, Integer, Hash)>] CustomReportResponse data, response status code and response headers
|
391
|
+
def get_custom_report_with_http_info(custom_report_oid, opts = {})
|
392
|
+
if @api_client.config.debugging
|
393
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.get_custom_report ...'
|
394
|
+
end
|
395
|
+
# verify the required parameter 'custom_report_oid' is set
|
396
|
+
if @api_client.config.client_side_validation && custom_report_oid.nil?
|
397
|
+
fail ArgumentError, "Missing the required parameter 'custom_report_oid' when calling DatawarehouseApi.get_custom_report"
|
398
|
+
end
|
399
|
+
# resource path
|
400
|
+
local_var_path = '/datawarehouse/custom_reports/{custom_report_oid}'.sub('{' + 'custom_report_oid' + '}', CGI.escape(custom_report_oid.to_s))
|
401
|
+
|
402
|
+
# query parameters
|
403
|
+
query_params = opts[:query_params] || {}
|
404
|
+
|
405
|
+
# header parameters
|
406
|
+
header_params = opts[:header_params] || {}
|
407
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
408
|
+
# HTTP header 'Accept' (if needed)
|
409
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
410
|
+
|
411
|
+
# form parameters
|
412
|
+
form_params = opts[:form_params] || {}
|
413
|
+
|
414
|
+
# http body (model)
|
415
|
+
post_body = opts[:debug_body]
|
416
|
+
|
417
|
+
# return_type
|
418
|
+
return_type = opts[:debug_return_type] || 'CustomReportResponse'
|
419
|
+
|
420
|
+
# auth_names
|
421
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
422
|
+
|
423
|
+
new_options = opts.merge(
|
424
|
+
:operation => :"DatawarehouseApi.get_custom_report",
|
425
|
+
:header_params => header_params,
|
426
|
+
:query_params => query_params,
|
427
|
+
:form_params => form_params,
|
428
|
+
:body => post_body,
|
429
|
+
:auth_names => auth_names,
|
430
|
+
:return_type => return_type
|
431
|
+
)
|
432
|
+
|
433
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
434
|
+
if @api_client.config.debugging
|
435
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#get_custom_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
436
|
+
end
|
437
|
+
return data, status_code, headers
|
438
|
+
end
|
439
|
+
|
440
|
+
# Get custom report account configuration
|
441
|
+
# Retrieve a custom report account configuration
|
442
|
+
# @param [Hash] opts the optional parameters
|
443
|
+
# @return [CustomReportAccountConfigResponse]
|
444
|
+
def get_custom_report_account_config(opts = {})
|
445
|
+
data, _status_code, _headers = get_custom_report_account_config_with_http_info(opts)
|
446
|
+
data
|
447
|
+
end
|
448
|
+
|
449
|
+
# Get custom report account configuration
|
450
|
+
# Retrieve a custom report account configuration
|
451
|
+
# @param [Hash] opts the optional parameters
|
452
|
+
# @return [Array<(CustomReportAccountConfigResponse, Integer, Hash)>] CustomReportAccountConfigResponse data, response status code and response headers
|
453
|
+
def get_custom_report_account_config_with_http_info(opts = {})
|
454
|
+
if @api_client.config.debugging
|
455
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.get_custom_report_account_config ...'
|
456
|
+
end
|
457
|
+
# resource path
|
458
|
+
local_var_path = '/datawarehouse/custom_reports/account_config'
|
459
|
+
|
460
|
+
# query parameters
|
461
|
+
query_params = opts[:query_params] || {}
|
462
|
+
|
463
|
+
# header parameters
|
464
|
+
header_params = opts[:header_params] || {}
|
465
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
466
|
+
# HTTP header 'Accept' (if needed)
|
467
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
468
|
+
|
469
|
+
# form parameters
|
470
|
+
form_params = opts[:form_params] || {}
|
471
|
+
|
472
|
+
# http body (model)
|
473
|
+
post_body = opts[:debug_body]
|
474
|
+
|
475
|
+
# return_type
|
476
|
+
return_type = opts[:debug_return_type] || 'CustomReportAccountConfigResponse'
|
477
|
+
|
478
|
+
# auth_names
|
479
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
480
|
+
|
481
|
+
new_options = opts.merge(
|
482
|
+
:operation => :"DatawarehouseApi.get_custom_report_account_config",
|
483
|
+
:header_params => header_params,
|
484
|
+
:query_params => query_params,
|
485
|
+
:form_params => form_params,
|
486
|
+
:body => post_body,
|
487
|
+
:auth_names => auth_names,
|
488
|
+
:return_type => return_type
|
489
|
+
)
|
490
|
+
|
491
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
492
|
+
if @api_client.config.debugging
|
493
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#get_custom_report_account_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
494
|
+
end
|
495
|
+
return data, status_code, headers
|
496
|
+
end
|
497
|
+
|
498
|
+
# Get custom reports
|
499
|
+
# Retrieve a custom reports
|
500
|
+
# @param [Hash] opts the optional parameters
|
501
|
+
# @return [CustomReportsResponse]
|
502
|
+
def get_custom_reports(opts = {})
|
503
|
+
data, _status_code, _headers = get_custom_reports_with_http_info(opts)
|
504
|
+
data
|
505
|
+
end
|
506
|
+
|
507
|
+
# Get custom reports
|
508
|
+
# Retrieve a custom reports
|
509
|
+
# @param [Hash] opts the optional parameters
|
510
|
+
# @return [Array<(CustomReportsResponse, Integer, Hash)>] CustomReportsResponse data, response status code and response headers
|
511
|
+
def get_custom_reports_with_http_info(opts = {})
|
512
|
+
if @api_client.config.debugging
|
513
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.get_custom_reports ...'
|
514
|
+
end
|
515
|
+
# resource path
|
516
|
+
local_var_path = '/datawarehouse/custom_reports'
|
517
|
+
|
518
|
+
# query parameters
|
519
|
+
query_params = opts[:query_params] || {}
|
520
|
+
|
521
|
+
# header parameters
|
522
|
+
header_params = opts[:header_params] || {}
|
523
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
524
|
+
# HTTP header 'Accept' (if needed)
|
525
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
526
|
+
|
527
|
+
# form parameters
|
528
|
+
form_params = opts[:form_params] || {}
|
529
|
+
|
530
|
+
# http body (model)
|
531
|
+
post_body = opts[:debug_body]
|
532
|
+
|
533
|
+
# return_type
|
534
|
+
return_type = opts[:debug_return_type] || 'CustomReportsResponse'
|
535
|
+
|
536
|
+
# auth_names
|
537
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
538
|
+
|
539
|
+
new_options = opts.merge(
|
540
|
+
:operation => :"DatawarehouseApi.get_custom_reports",
|
541
|
+
:header_params => header_params,
|
542
|
+
:query_params => query_params,
|
543
|
+
:form_params => form_params,
|
544
|
+
:body => post_body,
|
545
|
+
:auth_names => auth_names,
|
546
|
+
:return_type => return_type
|
547
|
+
)
|
548
|
+
|
549
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
550
|
+
if @api_client.config.debugging
|
551
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#get_custom_reports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
552
|
+
end
|
553
|
+
return data, status_code, headers
|
554
|
+
end
|
555
|
+
|
237
556
|
# Get a report
|
238
557
|
# Retrieve a report
|
239
558
|
# @param report_oid [Integer]
|
@@ -548,6 +867,75 @@ module UltracartClient
|
|
548
867
|
return data, status_code, headers
|
549
868
|
end
|
550
869
|
|
870
|
+
# Create a custom report
|
871
|
+
# Create a new custom report on the UltraCart account.
|
872
|
+
# @param report [CustomReport] Report to create
|
873
|
+
# @param [Hash] opts the optional parameters
|
874
|
+
# @return [CustomReportResponse]
|
875
|
+
def insert_custom_report(report, opts = {})
|
876
|
+
data, _status_code, _headers = insert_custom_report_with_http_info(report, opts)
|
877
|
+
data
|
878
|
+
end
|
879
|
+
|
880
|
+
# Create a custom report
|
881
|
+
# Create a new custom report on the UltraCart account.
|
882
|
+
# @param report [CustomReport] Report to create
|
883
|
+
# @param [Hash] opts the optional parameters
|
884
|
+
# @return [Array<(CustomReportResponse, Integer, Hash)>] CustomReportResponse data, response status code and response headers
|
885
|
+
def insert_custom_report_with_http_info(report, opts = {})
|
886
|
+
if @api_client.config.debugging
|
887
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.insert_custom_report ...'
|
888
|
+
end
|
889
|
+
# verify the required parameter 'report' is set
|
890
|
+
if @api_client.config.client_side_validation && report.nil?
|
891
|
+
fail ArgumentError, "Missing the required parameter 'report' when calling DatawarehouseApi.insert_custom_report"
|
892
|
+
end
|
893
|
+
# resource path
|
894
|
+
local_var_path = '/datawarehouse/custom_reports'
|
895
|
+
|
896
|
+
# query parameters
|
897
|
+
query_params = opts[:query_params] || {}
|
898
|
+
|
899
|
+
# header parameters
|
900
|
+
header_params = opts[:header_params] || {}
|
901
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
902
|
+
# HTTP header 'Accept' (if needed)
|
903
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
904
|
+
# HTTP header 'Content-Type'
|
905
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
906
|
+
if !content_type.nil?
|
907
|
+
header_params['Content-Type'] = content_type
|
908
|
+
end
|
909
|
+
|
910
|
+
# form parameters
|
911
|
+
form_params = opts[:form_params] || {}
|
912
|
+
|
913
|
+
# http body (model)
|
914
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(report)
|
915
|
+
|
916
|
+
# return_type
|
917
|
+
return_type = opts[:debug_return_type] || 'CustomReportResponse'
|
918
|
+
|
919
|
+
# auth_names
|
920
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
921
|
+
|
922
|
+
new_options = opts.merge(
|
923
|
+
:operation => :"DatawarehouseApi.insert_custom_report",
|
924
|
+
:header_params => header_params,
|
925
|
+
:query_params => query_params,
|
926
|
+
:form_params => form_params,
|
927
|
+
:body => post_body,
|
928
|
+
:auth_names => auth_names,
|
929
|
+
:return_type => return_type
|
930
|
+
)
|
931
|
+
|
932
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
933
|
+
if @api_client.config.debugging
|
934
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#insert_custom_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
935
|
+
end
|
936
|
+
return data, status_code, headers
|
937
|
+
end
|
938
|
+
|
551
939
|
# Create a report
|
552
940
|
# Create a new report on the UltraCart account.
|
553
941
|
# @param report [Report] Report to create
|
@@ -617,6 +1005,150 @@ module UltracartClient
|
|
617
1005
|
return data, status_code, headers
|
618
1006
|
end
|
619
1007
|
|
1008
|
+
# Update a custom report
|
1009
|
+
# Update a custom report on the UltraCart account.
|
1010
|
+
# @param custom_report_oid [Integer] The report oid to custom update.
|
1011
|
+
# @param report [CustomReport] Report to custom update
|
1012
|
+
# @param [Hash] opts the optional parameters
|
1013
|
+
# @return [CustomReportResponse]
|
1014
|
+
def update_custom_report(custom_report_oid, report, opts = {})
|
1015
|
+
data, _status_code, _headers = update_custom_report_with_http_info(custom_report_oid, report, opts)
|
1016
|
+
data
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
# Update a custom report
|
1020
|
+
# Update a custom report on the UltraCart account.
|
1021
|
+
# @param custom_report_oid [Integer] The report oid to custom update.
|
1022
|
+
# @param report [CustomReport] Report to custom update
|
1023
|
+
# @param [Hash] opts the optional parameters
|
1024
|
+
# @return [Array<(CustomReportResponse, Integer, Hash)>] CustomReportResponse data, response status code and response headers
|
1025
|
+
def update_custom_report_with_http_info(custom_report_oid, report, opts = {})
|
1026
|
+
if @api_client.config.debugging
|
1027
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.update_custom_report ...'
|
1028
|
+
end
|
1029
|
+
# verify the required parameter 'custom_report_oid' is set
|
1030
|
+
if @api_client.config.client_side_validation && custom_report_oid.nil?
|
1031
|
+
fail ArgumentError, "Missing the required parameter 'custom_report_oid' when calling DatawarehouseApi.update_custom_report"
|
1032
|
+
end
|
1033
|
+
# verify the required parameter 'report' is set
|
1034
|
+
if @api_client.config.client_side_validation && report.nil?
|
1035
|
+
fail ArgumentError, "Missing the required parameter 'report' when calling DatawarehouseApi.update_custom_report"
|
1036
|
+
end
|
1037
|
+
# resource path
|
1038
|
+
local_var_path = '/datawarehouse/custom_reports/{custom_report_oid}'.sub('{' + 'custom_report_oid' + '}', CGI.escape(custom_report_oid.to_s))
|
1039
|
+
|
1040
|
+
# query parameters
|
1041
|
+
query_params = opts[:query_params] || {}
|
1042
|
+
|
1043
|
+
# header parameters
|
1044
|
+
header_params = opts[:header_params] || {}
|
1045
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1046
|
+
# HTTP header 'Accept' (if needed)
|
1047
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1048
|
+
# HTTP header 'Content-Type'
|
1049
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
1050
|
+
if !content_type.nil?
|
1051
|
+
header_params['Content-Type'] = content_type
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
# form parameters
|
1055
|
+
form_params = opts[:form_params] || {}
|
1056
|
+
|
1057
|
+
# http body (model)
|
1058
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(report)
|
1059
|
+
|
1060
|
+
# return_type
|
1061
|
+
return_type = opts[:debug_return_type] || 'CustomReportResponse'
|
1062
|
+
|
1063
|
+
# auth_names
|
1064
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1065
|
+
|
1066
|
+
new_options = opts.merge(
|
1067
|
+
:operation => :"DatawarehouseApi.update_custom_report",
|
1068
|
+
:header_params => header_params,
|
1069
|
+
:query_params => query_params,
|
1070
|
+
:form_params => form_params,
|
1071
|
+
:body => post_body,
|
1072
|
+
:auth_names => auth_names,
|
1073
|
+
:return_type => return_type
|
1074
|
+
)
|
1075
|
+
|
1076
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1077
|
+
if @api_client.config.debugging
|
1078
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#update_custom_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1079
|
+
end
|
1080
|
+
return data, status_code, headers
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
# Update custom report account config
|
1084
|
+
# Update custom report account config.
|
1085
|
+
# @param account_config [CustomReportAccountConfig] Account config to update
|
1086
|
+
# @param [Hash] opts the optional parameters
|
1087
|
+
# @return [CustomReportAccountConfigResponse]
|
1088
|
+
def update_custom_report_account_config(account_config, opts = {})
|
1089
|
+
data, _status_code, _headers = update_custom_report_account_config_with_http_info(account_config, opts)
|
1090
|
+
data
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
# Update custom report account config
|
1094
|
+
# Update custom report account config.
|
1095
|
+
# @param account_config [CustomReportAccountConfig] Account config to update
|
1096
|
+
# @param [Hash] opts the optional parameters
|
1097
|
+
# @return [Array<(CustomReportAccountConfigResponse, Integer, Hash)>] CustomReportAccountConfigResponse data, response status code and response headers
|
1098
|
+
def update_custom_report_account_config_with_http_info(account_config, opts = {})
|
1099
|
+
if @api_client.config.debugging
|
1100
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.update_custom_report_account_config ...'
|
1101
|
+
end
|
1102
|
+
# verify the required parameter 'account_config' is set
|
1103
|
+
if @api_client.config.client_side_validation && account_config.nil?
|
1104
|
+
fail ArgumentError, "Missing the required parameter 'account_config' when calling DatawarehouseApi.update_custom_report_account_config"
|
1105
|
+
end
|
1106
|
+
# resource path
|
1107
|
+
local_var_path = '/datawarehouse/custom_reports/account_config'
|
1108
|
+
|
1109
|
+
# query parameters
|
1110
|
+
query_params = opts[:query_params] || {}
|
1111
|
+
|
1112
|
+
# header parameters
|
1113
|
+
header_params = opts[:header_params] || {}
|
1114
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1115
|
+
# HTTP header 'Accept' (if needed)
|
1116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1117
|
+
# HTTP header 'Content-Type'
|
1118
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
1119
|
+
if !content_type.nil?
|
1120
|
+
header_params['Content-Type'] = content_type
|
1121
|
+
end
|
1122
|
+
|
1123
|
+
# form parameters
|
1124
|
+
form_params = opts[:form_params] || {}
|
1125
|
+
|
1126
|
+
# http body (model)
|
1127
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(account_config)
|
1128
|
+
|
1129
|
+
# return_type
|
1130
|
+
return_type = opts[:debug_return_type] || 'CustomReportAccountConfigResponse'
|
1131
|
+
|
1132
|
+
# auth_names
|
1133
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1134
|
+
|
1135
|
+
new_options = opts.merge(
|
1136
|
+
:operation => :"DatawarehouseApi.update_custom_report_account_config",
|
1137
|
+
:header_params => header_params,
|
1138
|
+
:query_params => query_params,
|
1139
|
+
:form_params => form_params,
|
1140
|
+
:body => post_body,
|
1141
|
+
:auth_names => auth_names,
|
1142
|
+
:return_type => return_type
|
1143
|
+
)
|
1144
|
+
|
1145
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1146
|
+
if @api_client.config.debugging
|
1147
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#update_custom_report_account_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1148
|
+
end
|
1149
|
+
return data, status_code, headers
|
1150
|
+
end
|
1151
|
+
|
620
1152
|
# Update a report
|
621
1153
|
# Update a report on the UltraCart account.
|
622
1154
|
# @param report_oid [Integer] The report oid to update.
|