ultracart_api 3.11.14 → 3.11.15
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 +24 -4
- data/docs/CartUpsellAfter.md +3 -1
- data/docs/ConversationVirtualAgentCapabilities.md +2 -0
- data/docs/CustomReport.md +17 -0
- data/docs/CustomReportAccountConfig.md +16 -0
- data/docs/CustomReportAccountConfigResponse.md +12 -0
- data/docs/CustomReportExecutionParameter.md +10 -0
- data/docs/CustomReportExecutionRequest.md +8 -0
- data/docs/CustomReportParameter.md +13 -0
- data/docs/CustomReportParameterOption.md +9 -0
- data/docs/CustomReportQuery.md +13 -0
- data/docs/CustomReportResponse.md +12 -0
- data/docs/CustomReportTooltip.md +9 -0
- data/docs/DatawarehouseApi.md +357 -0
- data/docs/Item.md +1 -1
- data/docs/OrderApi.md +104 -0
- data/lib/ultracart_api/api/datawarehouse_api.rb +390 -0
- data/lib/ultracart_api/api/order_api.rb +111 -0
- 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 +271 -0
- data/lib/ultracart_api/models/custom_report_account_config.rb +261 -0
- data/lib/ultracart_api/models/custom_report_account_config_response.rb +221 -0
- data/lib/ultracart_api/models/custom_report_execution_parameter.rb +202 -0
- data/lib/ultracart_api/models/custom_report_execution_request.rb +186 -0
- data/lib/ultracart_api/models/custom_report_parameter.rb +231 -0
- data/lib/ultracart_api/models/custom_report_parameter_option.rb +193 -0
- data/lib/ultracart_api/models/custom_report_query.rb +231 -0
- data/lib/ultracart_api/models/custom_report_response.rb +221 -0
- data/lib/ultracart_api/models/custom_report_tooltip.rb +193 -0
- data/lib/ultracart_api/models/item.rb +1 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +10 -0
- metadata +22 -2
data/docs/Item.md
CHANGED
@@ -34,7 +34,7 @@ Name | Type | Description | Notes
|
|
34
34
|
**merchant_item_oid** | **Integer** | Unique object identifier for this item | [optional]
|
35
35
|
**options** | [**Array<ItemOption>**](ItemOption.md) | Options | [optional]
|
36
36
|
**parent_category_id** | **Integer** | Parent category of the item. Zero indicates the root folder. | [optional]
|
37
|
-
**parent_category_path** | **String** | Parent category path. / indicates the root folder. | [optional]
|
37
|
+
**parent_category_path** | **String** | Parent category path. / indicates the root folder. This is the folder structure within item management. | [optional]
|
38
38
|
**payment_processing** | [**ItemPaymentProcessing**](ItemPaymentProcessing.md) | | [optional]
|
39
39
|
**physical** | [**ItemPhysical**](ItemPhysical.md) | | [optional]
|
40
40
|
**pricing** | [**ItemPricing**](ItemPricing.md) | | [optional]
|
data/docs/OrderApi.md
CHANGED
@@ -5,6 +5,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**adjust_order_total**](OrderApi.md#adjust_order_total) | **POST** /order/orders/{order_id}/adjust_order_total/{desired_total} | Adjusts an order total
|
8
|
+
[**block_refund_on_order**](OrderApi.md#block_refund_on_order) | **POST** /order/orders/{order_id}/refund_block | Set a refund block on an order
|
8
9
|
[**cancel_order**](OrderApi.md#cancel_order) | **POST** /order/orders/{order_id}/cancel | Cancel an order
|
9
10
|
[**delete_order**](OrderApi.md#delete_order) | **DELETE** /order/orders/{order_id} | Delete an order
|
10
11
|
[**duplicate_order**](OrderApi.md#duplicate_order) | **POST** /order/orders/{order_id}/duplicate | Duplicate an order
|
@@ -29,6 +30,7 @@ Method | HTTP request | Description
|
|
29
30
|
[**replacement**](OrderApi.md#replacement) | **POST** /order/orders/{order_id}/replacement | Replacement order
|
30
31
|
[**resend_receipt**](OrderApi.md#resend_receipt) | **POST** /order/orders/{order_id}/resend_receipt | Resend receipt
|
31
32
|
[**resend_shipment_confirmation**](OrderApi.md#resend_shipment_confirmation) | **POST** /order/orders/{order_id}/resend_shipment_confirmation | Resend shipment confirmation
|
33
|
+
[**unblock_refund_on_order**](OrderApi.md#unblock_refund_on_order) | **POST** /order/orders/{order_id}/refund_unblock | Remove a refund block on an order
|
32
34
|
[**update_accounts_receivable_retry_config**](OrderApi.md#update_accounts_receivable_retry_config) | **POST** /order/accountsReceivableRetryConfig | Update A/R Retry Configuration
|
33
35
|
[**update_order**](OrderApi.md#update_order) | **PUT** /order/orders/{order_id} | Update an order
|
34
36
|
[**validate_order**](OrderApi.md#validate_order) | **POST** /order/validate | Validate
|
@@ -87,6 +89,59 @@ Name | Type | Description | Notes
|
|
87
89
|
|
88
90
|
|
89
91
|
|
92
|
+
# **block_refund_on_order**
|
93
|
+
> block_refund_on_order(order_id, opts)
|
94
|
+
|
95
|
+
Set a refund block on an order
|
96
|
+
|
97
|
+
Sets a refund block on an order to prevent a user from performing a refund. Commonly used when a chargeback has been received.
|
98
|
+
|
99
|
+
### Example
|
100
|
+
```ruby
|
101
|
+
# load the gem
|
102
|
+
require 'ultracart_api'
|
103
|
+
|
104
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
105
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
106
|
+
api_instance = UltracartClient::OrderApi.new_using_api_key(simple_key, false, false)
|
107
|
+
|
108
|
+
|
109
|
+
order_id = 'order_id_example' # String | The order id to block a refund on.
|
110
|
+
|
111
|
+
opts = {
|
112
|
+
block_reason: 'block_reason_example' # String | Block reason code (optional)
|
113
|
+
}
|
114
|
+
|
115
|
+
begin
|
116
|
+
#Set a refund block on an order
|
117
|
+
api_instance.block_refund_on_order(order_id, opts)
|
118
|
+
rescue UltracartClient::ApiError => e
|
119
|
+
puts "Exception when calling OrderApi->block_refund_on_order: #{e}"
|
120
|
+
end
|
121
|
+
```
|
122
|
+
|
123
|
+
### Parameters
|
124
|
+
|
125
|
+
Name | Type | Description | Notes
|
126
|
+
------------- | ------------- | ------------- | -------------
|
127
|
+
**order_id** | **String**| The order id to block a refund on. |
|
128
|
+
**block_reason** | **String**| Block reason code (optional) | [optional]
|
129
|
+
|
130
|
+
### Return type
|
131
|
+
|
132
|
+
nil (empty response body)
|
133
|
+
|
134
|
+
### Authorization
|
135
|
+
|
136
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
137
|
+
|
138
|
+
### HTTP request headers
|
139
|
+
|
140
|
+
- **Content-Type**: application/json; charset=UTF-8
|
141
|
+
- **Accept**: application/json
|
142
|
+
|
143
|
+
|
144
|
+
|
90
145
|
# **cancel_order**
|
91
146
|
> BaseResponse cancel_order(order_id, opts)
|
92
147
|
|
@@ -1434,6 +1489,55 @@ Name | Type | Description | Notes
|
|
1434
1489
|
|
1435
1490
|
|
1436
1491
|
|
1492
|
+
# **unblock_refund_on_order**
|
1493
|
+
> unblock_refund_on_order(order_id)
|
1494
|
+
|
1495
|
+
Remove a refund block on an order
|
1496
|
+
|
1497
|
+
Removes a refund block on an order to prevent a user from performing a refund.
|
1498
|
+
|
1499
|
+
### Example
|
1500
|
+
```ruby
|
1501
|
+
# load the gem
|
1502
|
+
require 'ultracart_api'
|
1503
|
+
|
1504
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
1505
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
1506
|
+
api_instance = UltracartClient::OrderApi.new_using_api_key(simple_key, false, false)
|
1507
|
+
|
1508
|
+
|
1509
|
+
order_id = 'order_id_example' # String | The order id to unblock a refund on.
|
1510
|
+
|
1511
|
+
|
1512
|
+
begin
|
1513
|
+
#Remove a refund block on an order
|
1514
|
+
api_instance.unblock_refund_on_order(order_id)
|
1515
|
+
rescue UltracartClient::ApiError => e
|
1516
|
+
puts "Exception when calling OrderApi->unblock_refund_on_order: #{e}"
|
1517
|
+
end
|
1518
|
+
```
|
1519
|
+
|
1520
|
+
### Parameters
|
1521
|
+
|
1522
|
+
Name | Type | Description | Notes
|
1523
|
+
------------- | ------------- | ------------- | -------------
|
1524
|
+
**order_id** | **String**| The order id to unblock a refund on. |
|
1525
|
+
|
1526
|
+
### Return type
|
1527
|
+
|
1528
|
+
nil (empty response body)
|
1529
|
+
|
1530
|
+
### Authorization
|
1531
|
+
|
1532
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
1533
|
+
|
1534
|
+
### HTTP request headers
|
1535
|
+
|
1536
|
+
- **Content-Type**: application/json; charset=UTF-8
|
1537
|
+
- **Accept**: application/json
|
1538
|
+
|
1539
|
+
|
1540
|
+
|
1437
1541
|
# **update_accounts_receivable_retry_config**
|
1438
1542
|
> BaseResponse update_accounts_receivable_retry_config(retry_config)
|
1439
1543
|
|
@@ -32,6 +32,60 @@ 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 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 The report oid to delete.
|
48
|
+
# @param [Hash] opts the optional parameters
|
49
|
+
# @return [Array<(nil, Fixnum, 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' + '}', custom_report_oid.to_s)
|
60
|
+
|
61
|
+
# query parameters
|
62
|
+
query_params = {}
|
63
|
+
|
64
|
+
# header parameters
|
65
|
+
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
|
+
# HTTP header 'Content-Type'
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
|
75
|
+
# http body (model)
|
76
|
+
post_body = nil
|
77
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
78
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names)
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#delete_custom_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
35
89
|
# Delete a report
|
36
90
|
# Delete a report on the UltraCart account.
|
37
91
|
# @param report_oid The report oid to delete.
|
@@ -141,6 +195,67 @@ module UltracartClient
|
|
141
195
|
end
|
142
196
|
return data, status_code, headers
|
143
197
|
end
|
198
|
+
# Execute a custom report
|
199
|
+
# Execute a custom report on the UltraCart account.
|
200
|
+
# @param execution_request Request to execute custom report
|
201
|
+
# @param custom_report_oid The report oid to execute.
|
202
|
+
# @param [Hash] opts the optional parameters
|
203
|
+
# @return [CustomReportResponse]
|
204
|
+
def execute_custom_report(execution_request, custom_report_oid, opts = {})
|
205
|
+
data, _status_code, _headers = execute_custom_report_with_http_info(execution_request, custom_report_oid, opts)
|
206
|
+
data
|
207
|
+
end
|
208
|
+
|
209
|
+
# Execute a custom report
|
210
|
+
# Execute a custom report on the UltraCart account.
|
211
|
+
# @param execution_request Request to execute custom report
|
212
|
+
# @param custom_report_oid The report oid to execute.
|
213
|
+
# @param [Hash] opts the optional parameters
|
214
|
+
# @return [Array<(CustomReportResponse, Fixnum, Hash)>] CustomReportResponse data, response status code and response headers
|
215
|
+
def execute_custom_report_with_http_info(execution_request, custom_report_oid, opts = {})
|
216
|
+
if @api_client.config.debugging
|
217
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.execute_custom_report ...'
|
218
|
+
end
|
219
|
+
# verify the required parameter 'execution_request' is set
|
220
|
+
if @api_client.config.client_side_validation && execution_request.nil?
|
221
|
+
fail ArgumentError, "Missing the required parameter 'execution_request' when calling DatawarehouseApi.execute_custom_report"
|
222
|
+
end
|
223
|
+
# verify the required parameter 'custom_report_oid' is set
|
224
|
+
if @api_client.config.client_side_validation && custom_report_oid.nil?
|
225
|
+
fail ArgumentError, "Missing the required parameter 'custom_report_oid' when calling DatawarehouseApi.execute_custom_report"
|
226
|
+
end
|
227
|
+
# resource path
|
228
|
+
local_var_path = '/datawarehouse/custom_reports/{custom_report_oid}/execute'.sub('{' + 'custom_report_oid' + '}', custom_report_oid.to_s)
|
229
|
+
|
230
|
+
# query parameters
|
231
|
+
query_params = {}
|
232
|
+
|
233
|
+
# header parameters
|
234
|
+
header_params = {}
|
235
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
236
|
+
# HTTP header 'Accept' (if needed)
|
237
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
238
|
+
# HTTP header 'Content-Type'
|
239
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
240
|
+
|
241
|
+
# form parameters
|
242
|
+
form_params = {}
|
243
|
+
|
244
|
+
# http body (model)
|
245
|
+
post_body = @api_client.object_to_http_body(execution_request)
|
246
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
247
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
248
|
+
:header_params => header_params,
|
249
|
+
:query_params => query_params,
|
250
|
+
:form_params => form_params,
|
251
|
+
:body => post_body,
|
252
|
+
:auth_names => auth_names,
|
253
|
+
:return_type => 'CustomReportResponse')
|
254
|
+
if @api_client.config.debugging
|
255
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#execute_custom_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
256
|
+
end
|
257
|
+
return data, status_code, headers
|
258
|
+
end
|
144
259
|
# Execute the report queries
|
145
260
|
# Execute the report queries
|
146
261
|
# @param query_request Query request
|
@@ -195,6 +310,110 @@ module UltracartClient
|
|
195
310
|
end
|
196
311
|
return data, status_code, headers
|
197
312
|
end
|
313
|
+
# Get a custom report
|
314
|
+
# Retrieve a custom report
|
315
|
+
# @param custom_report_oid
|
316
|
+
# @param [Hash] opts the optional parameters
|
317
|
+
# @return [CustomReportResponse]
|
318
|
+
def get_custom_report(custom_report_oid, opts = {})
|
319
|
+
data, _status_code, _headers = get_custom_report_with_http_info(custom_report_oid, opts)
|
320
|
+
data
|
321
|
+
end
|
322
|
+
|
323
|
+
# Get a custom report
|
324
|
+
# Retrieve a custom report
|
325
|
+
# @param custom_report_oid
|
326
|
+
# @param [Hash] opts the optional parameters
|
327
|
+
# @return [Array<(CustomReportResponse, Fixnum, Hash)>] CustomReportResponse data, response status code and response headers
|
328
|
+
def get_custom_report_with_http_info(custom_report_oid, opts = {})
|
329
|
+
if @api_client.config.debugging
|
330
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.get_custom_report ...'
|
331
|
+
end
|
332
|
+
# verify the required parameter 'custom_report_oid' is set
|
333
|
+
if @api_client.config.client_side_validation && custom_report_oid.nil?
|
334
|
+
fail ArgumentError, "Missing the required parameter 'custom_report_oid' when calling DatawarehouseApi.get_custom_report"
|
335
|
+
end
|
336
|
+
# resource path
|
337
|
+
local_var_path = '/datawarehouse/custom_reports/{custom_report_oid}'.sub('{' + 'custom_report_oid' + '}', custom_report_oid.to_s)
|
338
|
+
|
339
|
+
# query parameters
|
340
|
+
query_params = {}
|
341
|
+
|
342
|
+
# header parameters
|
343
|
+
header_params = {}
|
344
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
345
|
+
# HTTP header 'Accept' (if needed)
|
346
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
347
|
+
# HTTP header 'Content-Type'
|
348
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
349
|
+
|
350
|
+
# form parameters
|
351
|
+
form_params = {}
|
352
|
+
|
353
|
+
# http body (model)
|
354
|
+
post_body = nil
|
355
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
356
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
357
|
+
:header_params => header_params,
|
358
|
+
:query_params => query_params,
|
359
|
+
:form_params => form_params,
|
360
|
+
:body => post_body,
|
361
|
+
:auth_names => auth_names,
|
362
|
+
:return_type => 'CustomReportResponse')
|
363
|
+
if @api_client.config.debugging
|
364
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#get_custom_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
365
|
+
end
|
366
|
+
return data, status_code, headers
|
367
|
+
end
|
368
|
+
# Get custom report account configuration
|
369
|
+
# Retrieve a custom report account configuration
|
370
|
+
# @param [Hash] opts the optional parameters
|
371
|
+
# @return [CustomReportAccountConfigResponse]
|
372
|
+
def get_custom_report_account_config(opts = {})
|
373
|
+
data, _status_code, _headers = get_custom_report_account_config_with_http_info(opts)
|
374
|
+
data
|
375
|
+
end
|
376
|
+
|
377
|
+
# Get custom report account configuration
|
378
|
+
# Retrieve a custom report account configuration
|
379
|
+
# @param [Hash] opts the optional parameters
|
380
|
+
# @return [Array<(CustomReportAccountConfigResponse, Fixnum, Hash)>] CustomReportAccountConfigResponse data, response status code and response headers
|
381
|
+
def get_custom_report_account_config_with_http_info(opts = {})
|
382
|
+
if @api_client.config.debugging
|
383
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.get_custom_report_account_config ...'
|
384
|
+
end
|
385
|
+
# resource path
|
386
|
+
local_var_path = '/datawarehouse/custom_reports/account_config'
|
387
|
+
|
388
|
+
# query parameters
|
389
|
+
query_params = {}
|
390
|
+
|
391
|
+
# header parameters
|
392
|
+
header_params = {}
|
393
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
394
|
+
# HTTP header 'Accept' (if needed)
|
395
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
396
|
+
# HTTP header 'Content-Type'
|
397
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
398
|
+
|
399
|
+
# form parameters
|
400
|
+
form_params = {}
|
401
|
+
|
402
|
+
# http body (model)
|
403
|
+
post_body = nil
|
404
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
405
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
406
|
+
:header_params => header_params,
|
407
|
+
:query_params => query_params,
|
408
|
+
:form_params => form_params,
|
409
|
+
:body => post_body,
|
410
|
+
:auth_names => auth_names,
|
411
|
+
:return_type => 'CustomReportAccountConfigResponse')
|
412
|
+
if @api_client.config.debugging
|
413
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#get_custom_report_account_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
414
|
+
end
|
415
|
+
return data, status_code, headers
|
416
|
+
end
|
198
417
|
# Get a report
|
199
418
|
# Retrieve a report
|
200
419
|
# @param report_oid
|
@@ -464,6 +683,61 @@ module UltracartClient
|
|
464
683
|
end
|
465
684
|
return data, status_code, headers
|
466
685
|
end
|
686
|
+
# Create a custom report
|
687
|
+
# Create a new custom report on the UltraCart account.
|
688
|
+
# @param report Report to create
|
689
|
+
# @param [Hash] opts the optional parameters
|
690
|
+
# @return [CustomReportResponse]
|
691
|
+
def insert_custom_report(report, opts = {})
|
692
|
+
data, _status_code, _headers = insert_custom_report_with_http_info(report, opts)
|
693
|
+
data
|
694
|
+
end
|
695
|
+
|
696
|
+
# Create a custom report
|
697
|
+
# Create a new custom report on the UltraCart account.
|
698
|
+
# @param report Report to create
|
699
|
+
# @param [Hash] opts the optional parameters
|
700
|
+
# @return [Array<(CustomReportResponse, Fixnum, Hash)>] CustomReportResponse data, response status code and response headers
|
701
|
+
def insert_custom_report_with_http_info(report, opts = {})
|
702
|
+
if @api_client.config.debugging
|
703
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.insert_custom_report ...'
|
704
|
+
end
|
705
|
+
# verify the required parameter 'report' is set
|
706
|
+
if @api_client.config.client_side_validation && report.nil?
|
707
|
+
fail ArgumentError, "Missing the required parameter 'report' when calling DatawarehouseApi.insert_custom_report"
|
708
|
+
end
|
709
|
+
# resource path
|
710
|
+
local_var_path = '/datawarehouse/custom_reports'
|
711
|
+
|
712
|
+
# query parameters
|
713
|
+
query_params = {}
|
714
|
+
|
715
|
+
# header parameters
|
716
|
+
header_params = {}
|
717
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
718
|
+
# HTTP header 'Accept' (if needed)
|
719
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
720
|
+
# HTTP header 'Content-Type'
|
721
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
722
|
+
|
723
|
+
# form parameters
|
724
|
+
form_params = {}
|
725
|
+
|
726
|
+
# http body (model)
|
727
|
+
post_body = @api_client.object_to_http_body(report)
|
728
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
729
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
730
|
+
:header_params => header_params,
|
731
|
+
:query_params => query_params,
|
732
|
+
:form_params => form_params,
|
733
|
+
:body => post_body,
|
734
|
+
:auth_names => auth_names,
|
735
|
+
:return_type => 'CustomReportResponse')
|
736
|
+
if @api_client.config.debugging
|
737
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#insert_custom_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
738
|
+
end
|
739
|
+
return data, status_code, headers
|
740
|
+
end
|
467
741
|
# Create a report
|
468
742
|
# Create a new report on the UltraCart account.
|
469
743
|
# @param report Report to create
|
@@ -519,6 +793,122 @@ module UltracartClient
|
|
519
793
|
end
|
520
794
|
return data, status_code, headers
|
521
795
|
end
|
796
|
+
# Update a custom report
|
797
|
+
# Update a custom report on the UltraCart account.
|
798
|
+
# @param report Report to custom update
|
799
|
+
# @param custom_report_oid The report oid to custom update.
|
800
|
+
# @param [Hash] opts the optional parameters
|
801
|
+
# @return [CustomReportResponse]
|
802
|
+
def update_custom_report(report, custom_report_oid, opts = {})
|
803
|
+
data, _status_code, _headers = update_custom_report_with_http_info(report, custom_report_oid, opts)
|
804
|
+
data
|
805
|
+
end
|
806
|
+
|
807
|
+
# Update a custom report
|
808
|
+
# Update a custom report on the UltraCart account.
|
809
|
+
# @param report Report to custom update
|
810
|
+
# @param custom_report_oid The report oid to custom update.
|
811
|
+
# @param [Hash] opts the optional parameters
|
812
|
+
# @return [Array<(CustomReportResponse, Fixnum, Hash)>] CustomReportResponse data, response status code and response headers
|
813
|
+
def update_custom_report_with_http_info(report, custom_report_oid, opts = {})
|
814
|
+
if @api_client.config.debugging
|
815
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.update_custom_report ...'
|
816
|
+
end
|
817
|
+
# verify the required parameter 'report' is set
|
818
|
+
if @api_client.config.client_side_validation && report.nil?
|
819
|
+
fail ArgumentError, "Missing the required parameter 'report' when calling DatawarehouseApi.update_custom_report"
|
820
|
+
end
|
821
|
+
# verify the required parameter 'custom_report_oid' is set
|
822
|
+
if @api_client.config.client_side_validation && custom_report_oid.nil?
|
823
|
+
fail ArgumentError, "Missing the required parameter 'custom_report_oid' when calling DatawarehouseApi.update_custom_report"
|
824
|
+
end
|
825
|
+
# resource path
|
826
|
+
local_var_path = '/datawarehouse/custom_reports/{custom_report_oid}'.sub('{' + 'custom_report_oid' + '}', custom_report_oid.to_s)
|
827
|
+
|
828
|
+
# query parameters
|
829
|
+
query_params = {}
|
830
|
+
|
831
|
+
# header parameters
|
832
|
+
header_params = {}
|
833
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
834
|
+
# HTTP header 'Accept' (if needed)
|
835
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
836
|
+
# HTTP header 'Content-Type'
|
837
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
838
|
+
|
839
|
+
# form parameters
|
840
|
+
form_params = {}
|
841
|
+
|
842
|
+
# http body (model)
|
843
|
+
post_body = @api_client.object_to_http_body(report)
|
844
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
845
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
846
|
+
:header_params => header_params,
|
847
|
+
:query_params => query_params,
|
848
|
+
:form_params => form_params,
|
849
|
+
:body => post_body,
|
850
|
+
:auth_names => auth_names,
|
851
|
+
:return_type => 'CustomReportResponse')
|
852
|
+
if @api_client.config.debugging
|
853
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#update_custom_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
854
|
+
end
|
855
|
+
return data, status_code, headers
|
856
|
+
end
|
857
|
+
# Update custom report account config
|
858
|
+
# Update custom report account config.
|
859
|
+
# @param account_config Account config to update
|
860
|
+
# @param [Hash] opts the optional parameters
|
861
|
+
# @return [CustomReportAccountConfigResponse]
|
862
|
+
def update_custom_report_account_config(account_config, opts = {})
|
863
|
+
data, _status_code, _headers = update_custom_report_account_config_with_http_info(account_config, opts)
|
864
|
+
data
|
865
|
+
end
|
866
|
+
|
867
|
+
# Update custom report account config
|
868
|
+
# Update custom report account config.
|
869
|
+
# @param account_config Account config to update
|
870
|
+
# @param [Hash] opts the optional parameters
|
871
|
+
# @return [Array<(CustomReportAccountConfigResponse, Fixnum, Hash)>] CustomReportAccountConfigResponse data, response status code and response headers
|
872
|
+
def update_custom_report_account_config_with_http_info(account_config, opts = {})
|
873
|
+
if @api_client.config.debugging
|
874
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.update_custom_report_account_config ...'
|
875
|
+
end
|
876
|
+
# verify the required parameter 'account_config' is set
|
877
|
+
if @api_client.config.client_side_validation && account_config.nil?
|
878
|
+
fail ArgumentError, "Missing the required parameter 'account_config' when calling DatawarehouseApi.update_custom_report_account_config"
|
879
|
+
end
|
880
|
+
# resource path
|
881
|
+
local_var_path = '/datawarehouse/custom_reports/account_config'
|
882
|
+
|
883
|
+
# query parameters
|
884
|
+
query_params = {}
|
885
|
+
|
886
|
+
# header parameters
|
887
|
+
header_params = {}
|
888
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
889
|
+
# HTTP header 'Accept' (if needed)
|
890
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
891
|
+
# HTTP header 'Content-Type'
|
892
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
893
|
+
|
894
|
+
# form parameters
|
895
|
+
form_params = {}
|
896
|
+
|
897
|
+
# http body (model)
|
898
|
+
post_body = @api_client.object_to_http_body(account_config)
|
899
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
900
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
901
|
+
:header_params => header_params,
|
902
|
+
:query_params => query_params,
|
903
|
+
:form_params => form_params,
|
904
|
+
:body => post_body,
|
905
|
+
:auth_names => auth_names,
|
906
|
+
:return_type => 'CustomReportAccountConfigResponse')
|
907
|
+
if @api_client.config.debugging
|
908
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#update_custom_report_account_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
909
|
+
end
|
910
|
+
return data, status_code, headers
|
911
|
+
end
|
522
912
|
# Update a report
|
523
913
|
# Update a report on the UltraCart account.
|
524
914
|
# @param report Report to update
|