ultracart_api 3.11.19 → 3.11.21
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 +20 -12
- data/docs/CustomDashboardSchedule.md +12 -0
- data/docs/{ChargebackDisputesResponse.md → CustomDashboardScheduleResponse.md} +2 -2
- data/docs/CustomDashboardSchedulesResponse.md +12 -0
- data/docs/CustomReport.md +1 -0
- data/docs/CustomReportAccountConfig.md +1 -0
- data/docs/CustomReportAnalysisRequest.md +9 -0
- data/docs/{ChargebackDisputeResponse.md → CustomReportAnalysisResponse.md} +2 -2
- data/docs/CustomReportChartPngUploadResponse.md +13 -0
- data/docs/DatawarehouseApi.md +320 -0
- data/docs/EmailCampaign.md +2 -0
- data/docs/ItemTag.md +1 -1
- data/docs/OrderApi.md +58 -0
- data/docs/ReplaceOrderItemIdRequest.md +11 -0
- data/lib/ultracart_api/api/datawarehouse_api.rb +359 -0
- data/lib/ultracart_api/api/order_api.rb +64 -0
- data/lib/ultracart_api/models/custom_dashboard_schedule.rb +223 -0
- data/lib/ultracart_api/models/{chargeback_dispute_response.rb → custom_dashboard_schedule_response.rb} +11 -11
- data/lib/ultracart_api/models/{chargeback_disputes_response.rb → custom_dashboard_schedules_response.rb} +14 -13
- data/lib/ultracart_api/models/custom_report.rb +10 -1
- data/lib/ultracart_api/models/custom_report_account_config.rb +10 -1
- data/lib/ultracart_api/models/custom_report_analysis_request.rb +193 -0
- data/lib/ultracart_api/models/custom_report_analysis_response.rb +221 -0
- data/lib/ultracart_api/models/custom_report_chart_png_upload_response.rb +230 -0
- data/lib/ultracart_api/models/email_campaign.rb +21 -1
- data/lib/ultracart_api/models/item_tag.rb +1 -1
- data/lib/ultracart_api/models/order_payment.rb +2 -2
- data/lib/ultracart_api/models/replace_order_item_id_request.rb +245 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +7 -4
- metadata +16 -10
- data/docs/ChargebackApi.md +0 -301
- data/docs/ChargebackDispute.md +0 -30
- data/lib/ultracart_api/api/chargeback_api.rb +0 -356
- data/lib/ultracart_api/models/chargeback_dispute.rb +0 -614
data/docs/OrderApi.md
CHANGED
@@ -26,6 +26,7 @@ Method | HTTP request | Description
|
|
26
26
|
[**is_refundable_order**](OrderApi.md#is_refundable_order) | **GET** /order/orders/{order_id}/refundable | Determine if an order can be refunded
|
27
27
|
[**process_payment**](OrderApi.md#process_payment) | **POST** /order/orders/{order_id}/process_payment | Process payment
|
28
28
|
[**refund_order**](OrderApi.md#refund_order) | **PUT** /order/orders/{order_id}/refund | Refund an order
|
29
|
+
[**replace_order_item_merchant_item_id**](OrderApi.md#replace_order_item_merchant_item_id) | **PUT** /order/orders/{order_id}/replace_item_id | Replaces an order item id
|
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
|
@@ -1265,6 +1266,63 @@ Name | Type | Description | Notes
|
|
1265
1266
|
|
1266
1267
|
|
1267
1268
|
|
1269
|
+
# **replace_order_item_merchant_item_id**
|
1270
|
+
> OrderResponse replace_order_item_merchant_item_id(replace_order_item_id_request, order_id, opts)
|
1271
|
+
|
1272
|
+
Replaces an order item id
|
1273
|
+
|
1274
|
+
Replaces a single order item id with another merchant_item_id, leaving all other attributes and properties unchanged. A custom method requested by a merchant to allow for item id updates due to shipping errors. It is doubtful you will ever need this method. The expansion variable affects the returned order object.
|
1275
|
+
|
1276
|
+
### Example
|
1277
|
+
```ruby
|
1278
|
+
# load the gem
|
1279
|
+
require 'ultracart_api'
|
1280
|
+
|
1281
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
1282
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
1283
|
+
api_instance = UltracartClient::OrderApi.new_using_api_key(simple_key, false, false)
|
1284
|
+
|
1285
|
+
|
1286
|
+
replace_order_item_id_request = UltracartClient::ReplaceOrderItemIdRequest.new # ReplaceOrderItemIdRequest | Replacement Request
|
1287
|
+
|
1288
|
+
order_id = 'order_id_example' # String | The order id to update.
|
1289
|
+
|
1290
|
+
opts = {
|
1291
|
+
_expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
|
1292
|
+
}
|
1293
|
+
|
1294
|
+
begin
|
1295
|
+
#Replaces an order item id
|
1296
|
+
result = api_instance.replace_order_item_merchant_item_id(replace_order_item_id_request, order_id, opts)
|
1297
|
+
p result
|
1298
|
+
rescue UltracartClient::ApiError => e
|
1299
|
+
puts "Exception when calling OrderApi->replace_order_item_merchant_item_id: #{e}"
|
1300
|
+
end
|
1301
|
+
```
|
1302
|
+
|
1303
|
+
### Parameters
|
1304
|
+
|
1305
|
+
Name | Type | Description | Notes
|
1306
|
+
------------- | ------------- | ------------- | -------------
|
1307
|
+
**replace_order_item_id_request** | [**ReplaceOrderItemIdRequest**](ReplaceOrderItemIdRequest.md)| Replacement Request |
|
1308
|
+
**order_id** | **String**| The order id to update. |
|
1309
|
+
**_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional]
|
1310
|
+
|
1311
|
+
### Return type
|
1312
|
+
|
1313
|
+
[**OrderResponse**](OrderResponse.md)
|
1314
|
+
|
1315
|
+
### Authorization
|
1316
|
+
|
1317
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
1318
|
+
|
1319
|
+
### HTTP request headers
|
1320
|
+
|
1321
|
+
- **Content-Type**: application/json; charset=UTF-8
|
1322
|
+
- **Accept**: application/json
|
1323
|
+
|
1324
|
+
|
1325
|
+
|
1268
1326
|
# **replacement**
|
1269
1327
|
> OrderReplacementResponse replacement(order_id, replacement)
|
1270
1328
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# UltracartClient::ReplaceOrderItemIdRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**item_index** | **Integer** | Index of the item on the order (one based index) | [optional]
|
7
|
+
**merchant_item_id** | **String** | Item ID | [optional]
|
8
|
+
**order_id** | **String** | Order ID | [optional]
|
9
|
+
**replacement_merchant_item_id** | **String** | Replacement Item ID | [optional]
|
10
|
+
|
11
|
+
|
@@ -32,6 +32,67 @@ module UltracartClient
|
|
32
32
|
UltracartClient::DatawarehouseApi.new(api_client)
|
33
33
|
end
|
34
34
|
|
35
|
+
# Analyze a custom report
|
36
|
+
# Analyze a custom report on the UltraCart account.
|
37
|
+
# @param analyze_request Request to analyze custom report
|
38
|
+
# @param custom_report_oid The report oid to analyze.
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [CustomReportAnalysisResponse]
|
41
|
+
def analyze_custom_report(analyze_request, custom_report_oid, opts = {})
|
42
|
+
data, _status_code, _headers = analyze_custom_report_with_http_info(analyze_request, custom_report_oid, opts)
|
43
|
+
data
|
44
|
+
end
|
45
|
+
|
46
|
+
# Analyze a custom report
|
47
|
+
# Analyze a custom report on the UltraCart account.
|
48
|
+
# @param analyze_request Request to analyze custom report
|
49
|
+
# @param custom_report_oid The report oid to analyze.
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [Array<(CustomReportAnalysisResponse, Fixnum, Hash)>] CustomReportAnalysisResponse data, response status code and response headers
|
52
|
+
def analyze_custom_report_with_http_info(analyze_request, custom_report_oid, opts = {})
|
53
|
+
if @api_client.config.debugging
|
54
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.analyze_custom_report ...'
|
55
|
+
end
|
56
|
+
# verify the required parameter 'analyze_request' is set
|
57
|
+
if @api_client.config.client_side_validation && analyze_request.nil?
|
58
|
+
fail ArgumentError, "Missing the required parameter 'analyze_request' when calling DatawarehouseApi.analyze_custom_report"
|
59
|
+
end
|
60
|
+
# verify the required parameter 'custom_report_oid' is set
|
61
|
+
if @api_client.config.client_side_validation && custom_report_oid.nil?
|
62
|
+
fail ArgumentError, "Missing the required parameter 'custom_report_oid' when calling DatawarehouseApi.analyze_custom_report"
|
63
|
+
end
|
64
|
+
# resource path
|
65
|
+
local_var_path = '/datawarehouse/custom_reports/{custom_report_oid}/analysis'.sub('{' + 'custom_report_oid' + '}', custom_report_oid.to_s)
|
66
|
+
|
67
|
+
# query parameters
|
68
|
+
query_params = {}
|
69
|
+
|
70
|
+
# header parameters
|
71
|
+
header_params = {}
|
72
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
73
|
+
# HTTP header 'Accept' (if needed)
|
74
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
75
|
+
# HTTP header 'Content-Type'
|
76
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
77
|
+
|
78
|
+
# form parameters
|
79
|
+
form_params = {}
|
80
|
+
|
81
|
+
# http body (model)
|
82
|
+
post_body = @api_client.object_to_http_body(analyze_request)
|
83
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
84
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
85
|
+
:header_params => header_params,
|
86
|
+
:query_params => query_params,
|
87
|
+
:form_params => form_params,
|
88
|
+
:body => post_body,
|
89
|
+
:auth_names => auth_names,
|
90
|
+
:return_type => 'CustomReportAnalysisResponse')
|
91
|
+
if @api_client.config.debugging
|
92
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#analyze_custom_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
93
|
+
end
|
94
|
+
return data, status_code, headers
|
95
|
+
end
|
35
96
|
# Delete a custom dashboard
|
36
97
|
# Delete a custom dashboard on the UltraCart account.
|
37
98
|
# @param custom_dashboard_oid The dashboard oid to delete.
|
@@ -86,6 +147,66 @@ module UltracartClient
|
|
86
147
|
end
|
87
148
|
return data, status_code, headers
|
88
149
|
end
|
150
|
+
# Delete a custom dashboard schedule
|
151
|
+
# delete a custom dashboard schedule on the UltraCart account.
|
152
|
+
# @param custom_dashboard_schedule_oid The dashboard schedule oid to delete.
|
153
|
+
# @param custom_dashboard_oid The dashboard oid that owns the schedule.
|
154
|
+
# @param [Hash] opts the optional parameters
|
155
|
+
# @return [nil]
|
156
|
+
def delete_custom_dashboard_schedule(custom_dashboard_schedule_oid, custom_dashboard_oid, opts = {})
|
157
|
+
delete_custom_dashboard_schedule_with_http_info(custom_dashboard_schedule_oid, custom_dashboard_oid, opts)
|
158
|
+
nil
|
159
|
+
end
|
160
|
+
|
161
|
+
# Delete a custom dashboard schedule
|
162
|
+
# delete a custom dashboard schedule on the UltraCart account.
|
163
|
+
# @param custom_dashboard_schedule_oid The dashboard schedule oid to delete.
|
164
|
+
# @param custom_dashboard_oid The dashboard oid that owns the schedule.
|
165
|
+
# @param [Hash] opts the optional parameters
|
166
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
167
|
+
def delete_custom_dashboard_schedule_with_http_info(custom_dashboard_schedule_oid, custom_dashboard_oid, opts = {})
|
168
|
+
if @api_client.config.debugging
|
169
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.delete_custom_dashboard_schedule ...'
|
170
|
+
end
|
171
|
+
# verify the required parameter 'custom_dashboard_schedule_oid' is set
|
172
|
+
if @api_client.config.client_side_validation && custom_dashboard_schedule_oid.nil?
|
173
|
+
fail ArgumentError, "Missing the required parameter 'custom_dashboard_schedule_oid' when calling DatawarehouseApi.delete_custom_dashboard_schedule"
|
174
|
+
end
|
175
|
+
# verify the required parameter 'custom_dashboard_oid' is set
|
176
|
+
if @api_client.config.client_side_validation && custom_dashboard_oid.nil?
|
177
|
+
fail ArgumentError, "Missing the required parameter 'custom_dashboard_oid' when calling DatawarehouseApi.delete_custom_dashboard_schedule"
|
178
|
+
end
|
179
|
+
# resource path
|
180
|
+
local_var_path = '/datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules/{custom_dashboard_schedule_oid}'.sub('{' + 'custom_dashboard_schedule_oid' + '}', custom_dashboard_schedule_oid.to_s).sub('{' + 'custom_dashboard_oid' + '}', custom_dashboard_oid.to_s)
|
181
|
+
|
182
|
+
# query parameters
|
183
|
+
query_params = {}
|
184
|
+
|
185
|
+
# header parameters
|
186
|
+
header_params = {}
|
187
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
188
|
+
# HTTP header 'Accept' (if needed)
|
189
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
190
|
+
# HTTP header 'Content-Type'
|
191
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
192
|
+
|
193
|
+
# form parameters
|
194
|
+
form_params = {}
|
195
|
+
|
196
|
+
# http body (model)
|
197
|
+
post_body = nil
|
198
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
199
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
200
|
+
:header_params => header_params,
|
201
|
+
:query_params => query_params,
|
202
|
+
:form_params => form_params,
|
203
|
+
:body => post_body,
|
204
|
+
:auth_names => auth_names)
|
205
|
+
if @api_client.config.debugging
|
206
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#delete_custom_dashboard_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
207
|
+
end
|
208
|
+
return data, status_code, headers
|
209
|
+
end
|
89
210
|
# Delete a custom report
|
90
211
|
# Delete a custom report on the UltraCart account.
|
91
212
|
# @param custom_report_oid The report oid to delete.
|
@@ -476,6 +597,61 @@ module UltracartClient
|
|
476
597
|
end
|
477
598
|
# Get custom dashboards
|
478
599
|
# Retrieve a custom dashboards
|
600
|
+
# @param custom_dashboard_oid
|
601
|
+
# @param [Hash] opts the optional parameters
|
602
|
+
# @return [CustomDashboardSchedulesResponse]
|
603
|
+
def get_custom_dashboard_schedules(custom_dashboard_oid, opts = {})
|
604
|
+
data, _status_code, _headers = get_custom_dashboard_schedules_with_http_info(custom_dashboard_oid, opts)
|
605
|
+
data
|
606
|
+
end
|
607
|
+
|
608
|
+
# Get custom dashboards
|
609
|
+
# Retrieve a custom dashboards
|
610
|
+
# @param custom_dashboard_oid
|
611
|
+
# @param [Hash] opts the optional parameters
|
612
|
+
# @return [Array<(CustomDashboardSchedulesResponse, Fixnum, Hash)>] CustomDashboardSchedulesResponse data, response status code and response headers
|
613
|
+
def get_custom_dashboard_schedules_with_http_info(custom_dashboard_oid, opts = {})
|
614
|
+
if @api_client.config.debugging
|
615
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.get_custom_dashboard_schedules ...'
|
616
|
+
end
|
617
|
+
# verify the required parameter 'custom_dashboard_oid' is set
|
618
|
+
if @api_client.config.client_side_validation && custom_dashboard_oid.nil?
|
619
|
+
fail ArgumentError, "Missing the required parameter 'custom_dashboard_oid' when calling DatawarehouseApi.get_custom_dashboard_schedules"
|
620
|
+
end
|
621
|
+
# resource path
|
622
|
+
local_var_path = '/datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules'.sub('{' + 'custom_dashboard_oid' + '}', custom_dashboard_oid.to_s)
|
623
|
+
|
624
|
+
# query parameters
|
625
|
+
query_params = {}
|
626
|
+
|
627
|
+
# header parameters
|
628
|
+
header_params = {}
|
629
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
630
|
+
# HTTP header 'Accept' (if needed)
|
631
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
632
|
+
# HTTP header 'Content-Type'
|
633
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
634
|
+
|
635
|
+
# form parameters
|
636
|
+
form_params = {}
|
637
|
+
|
638
|
+
# http body (model)
|
639
|
+
post_body = nil
|
640
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
641
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
642
|
+
:header_params => header_params,
|
643
|
+
:query_params => query_params,
|
644
|
+
:form_params => form_params,
|
645
|
+
:body => post_body,
|
646
|
+
:auth_names => auth_names,
|
647
|
+
:return_type => 'CustomDashboardSchedulesResponse')
|
648
|
+
if @api_client.config.debugging
|
649
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#get_custom_dashboard_schedules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
650
|
+
end
|
651
|
+
return data, status_code, headers
|
652
|
+
end
|
653
|
+
# Get custom dashboards
|
654
|
+
# Retrieve a custom dashboards
|
479
655
|
# @param [Hash] opts the optional parameters
|
480
656
|
# @return [CustomDashboardsResponse]
|
481
657
|
def get_custom_dashboards(opts = {})
|
@@ -627,6 +803,61 @@ module UltracartClient
|
|
627
803
|
end
|
628
804
|
return data, status_code, headers
|
629
805
|
end
|
806
|
+
# Upload a PNG of a custom report chart
|
807
|
+
# Upload a PNG of a custom report chart
|
808
|
+
# @param custom_report_oid The report oid to upload a chart PNG for.
|
809
|
+
# @param [Hash] opts the optional parameters
|
810
|
+
# @return [CustomReportChartPngUploadResponse]
|
811
|
+
def get_custom_report_chart_png_upload_url(custom_report_oid, opts = {})
|
812
|
+
data, _status_code, _headers = get_custom_report_chart_png_upload_url_with_http_info(custom_report_oid, opts)
|
813
|
+
data
|
814
|
+
end
|
815
|
+
|
816
|
+
# Upload a PNG of a custom report chart
|
817
|
+
# Upload a PNG of a custom report chart
|
818
|
+
# @param custom_report_oid The report oid to upload a chart PNG for.
|
819
|
+
# @param [Hash] opts the optional parameters
|
820
|
+
# @return [Array<(CustomReportChartPngUploadResponse, Fixnum, Hash)>] CustomReportChartPngUploadResponse data, response status code and response headers
|
821
|
+
def get_custom_report_chart_png_upload_url_with_http_info(custom_report_oid, opts = {})
|
822
|
+
if @api_client.config.debugging
|
823
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.get_custom_report_chart_png_upload_url ...'
|
824
|
+
end
|
825
|
+
# verify the required parameter 'custom_report_oid' is set
|
826
|
+
if @api_client.config.client_side_validation && custom_report_oid.nil?
|
827
|
+
fail ArgumentError, "Missing the required parameter 'custom_report_oid' when calling DatawarehouseApi.get_custom_report_chart_png_upload_url"
|
828
|
+
end
|
829
|
+
# resource path
|
830
|
+
local_var_path = '/datawarehouse/custom_reports/{custom_report_oid}/chart_png'.sub('{' + 'custom_report_oid' + '}', custom_report_oid.to_s)
|
831
|
+
|
832
|
+
# query parameters
|
833
|
+
query_params = {}
|
834
|
+
|
835
|
+
# header parameters
|
836
|
+
header_params = {}
|
837
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
838
|
+
# HTTP header 'Accept' (if needed)
|
839
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
840
|
+
# HTTP header 'Content-Type'
|
841
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
842
|
+
|
843
|
+
# form parameters
|
844
|
+
form_params = {}
|
845
|
+
|
846
|
+
# http body (model)
|
847
|
+
post_body = nil
|
848
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
849
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
850
|
+
:header_params => header_params,
|
851
|
+
:query_params => query_params,
|
852
|
+
:form_params => form_params,
|
853
|
+
:body => post_body,
|
854
|
+
:auth_names => auth_names,
|
855
|
+
:return_type => 'CustomReportChartPngUploadResponse')
|
856
|
+
if @api_client.config.debugging
|
857
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#get_custom_report_chart_png_upload_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
858
|
+
end
|
859
|
+
return data, status_code, headers
|
860
|
+
end
|
630
861
|
# Get custom reports
|
631
862
|
# Retrieve a custom reports
|
632
863
|
# @param [Hash] opts the optional parameters
|
@@ -1000,6 +1231,67 @@ module UltracartClient
|
|
1000
1231
|
end
|
1001
1232
|
return data, status_code, headers
|
1002
1233
|
end
|
1234
|
+
# Create a custom dashboard schedule
|
1235
|
+
# Create a new custom dashboard schedule on the UltraCart account.
|
1236
|
+
# @param custom_dashboard_oid
|
1237
|
+
# @param dashboard_schedule Dashboard schedule to create
|
1238
|
+
# @param [Hash] opts the optional parameters
|
1239
|
+
# @return [CustomDashboardScheduleResponse]
|
1240
|
+
def insert_custom_dashboard_schedule(custom_dashboard_oid, dashboard_schedule, opts = {})
|
1241
|
+
data, _status_code, _headers = insert_custom_dashboard_schedule_with_http_info(custom_dashboard_oid, dashboard_schedule, opts)
|
1242
|
+
data
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
# Create a custom dashboard schedule
|
1246
|
+
# Create a new custom dashboard schedule on the UltraCart account.
|
1247
|
+
# @param custom_dashboard_oid
|
1248
|
+
# @param dashboard_schedule Dashboard schedule to create
|
1249
|
+
# @param [Hash] opts the optional parameters
|
1250
|
+
# @return [Array<(CustomDashboardScheduleResponse, Fixnum, Hash)>] CustomDashboardScheduleResponse data, response status code and response headers
|
1251
|
+
def insert_custom_dashboard_schedule_with_http_info(custom_dashboard_oid, dashboard_schedule, opts = {})
|
1252
|
+
if @api_client.config.debugging
|
1253
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.insert_custom_dashboard_schedule ...'
|
1254
|
+
end
|
1255
|
+
# verify the required parameter 'custom_dashboard_oid' is set
|
1256
|
+
if @api_client.config.client_side_validation && custom_dashboard_oid.nil?
|
1257
|
+
fail ArgumentError, "Missing the required parameter 'custom_dashboard_oid' when calling DatawarehouseApi.insert_custom_dashboard_schedule"
|
1258
|
+
end
|
1259
|
+
# verify the required parameter 'dashboard_schedule' is set
|
1260
|
+
if @api_client.config.client_side_validation && dashboard_schedule.nil?
|
1261
|
+
fail ArgumentError, "Missing the required parameter 'dashboard_schedule' when calling DatawarehouseApi.insert_custom_dashboard_schedule"
|
1262
|
+
end
|
1263
|
+
# resource path
|
1264
|
+
local_var_path = '/datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules'.sub('{' + 'custom_dashboard_oid' + '}', custom_dashboard_oid.to_s)
|
1265
|
+
|
1266
|
+
# query parameters
|
1267
|
+
query_params = {}
|
1268
|
+
|
1269
|
+
# header parameters
|
1270
|
+
header_params = {}
|
1271
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1272
|
+
# HTTP header 'Accept' (if needed)
|
1273
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1274
|
+
# HTTP header 'Content-Type'
|
1275
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
1276
|
+
|
1277
|
+
# form parameters
|
1278
|
+
form_params = {}
|
1279
|
+
|
1280
|
+
# http body (model)
|
1281
|
+
post_body = @api_client.object_to_http_body(dashboard_schedule)
|
1282
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1283
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1284
|
+
:header_params => header_params,
|
1285
|
+
:query_params => query_params,
|
1286
|
+
:form_params => form_params,
|
1287
|
+
:body => post_body,
|
1288
|
+
:auth_names => auth_names,
|
1289
|
+
:return_type => 'CustomDashboardScheduleResponse')
|
1290
|
+
if @api_client.config.debugging
|
1291
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#insert_custom_dashboard_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1292
|
+
end
|
1293
|
+
return data, status_code, headers
|
1294
|
+
end
|
1003
1295
|
# Create a custom report
|
1004
1296
|
# Create a new custom report on the UltraCart account.
|
1005
1297
|
# @param report Report to create
|
@@ -1171,6 +1463,73 @@ module UltracartClient
|
|
1171
1463
|
end
|
1172
1464
|
return data, status_code, headers
|
1173
1465
|
end
|
1466
|
+
# Update a custom dashboard schedule
|
1467
|
+
# Update a custom dashboard schedule on the UltraCart account.
|
1468
|
+
# @param dashboard_schedule Dashboard schedule to update
|
1469
|
+
# @param custom_dashboard_schedule_oid The dashboard schedule oid to update.
|
1470
|
+
# @param custom_dashboard_oid The dashboard oid to update.
|
1471
|
+
# @param [Hash] opts the optional parameters
|
1472
|
+
# @return [CustomDashboardResponse]
|
1473
|
+
def update_custom_dashboard_schedule(dashboard_schedule, custom_dashboard_schedule_oid, custom_dashboard_oid, opts = {})
|
1474
|
+
data, _status_code, _headers = update_custom_dashboard_schedule_with_http_info(dashboard_schedule, custom_dashboard_schedule_oid, custom_dashboard_oid, opts)
|
1475
|
+
data
|
1476
|
+
end
|
1477
|
+
|
1478
|
+
# Update a custom dashboard schedule
|
1479
|
+
# Update a custom dashboard schedule on the UltraCart account.
|
1480
|
+
# @param dashboard_schedule Dashboard schedule to update
|
1481
|
+
# @param custom_dashboard_schedule_oid The dashboard schedule oid to update.
|
1482
|
+
# @param custom_dashboard_oid The dashboard oid to update.
|
1483
|
+
# @param [Hash] opts the optional parameters
|
1484
|
+
# @return [Array<(CustomDashboardResponse, Fixnum, Hash)>] CustomDashboardResponse data, response status code and response headers
|
1485
|
+
def update_custom_dashboard_schedule_with_http_info(dashboard_schedule, custom_dashboard_schedule_oid, custom_dashboard_oid, opts = {})
|
1486
|
+
if @api_client.config.debugging
|
1487
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.update_custom_dashboard_schedule ...'
|
1488
|
+
end
|
1489
|
+
# verify the required parameter 'dashboard_schedule' is set
|
1490
|
+
if @api_client.config.client_side_validation && dashboard_schedule.nil?
|
1491
|
+
fail ArgumentError, "Missing the required parameter 'dashboard_schedule' when calling DatawarehouseApi.update_custom_dashboard_schedule"
|
1492
|
+
end
|
1493
|
+
# verify the required parameter 'custom_dashboard_schedule_oid' is set
|
1494
|
+
if @api_client.config.client_side_validation && custom_dashboard_schedule_oid.nil?
|
1495
|
+
fail ArgumentError, "Missing the required parameter 'custom_dashboard_schedule_oid' when calling DatawarehouseApi.update_custom_dashboard_schedule"
|
1496
|
+
end
|
1497
|
+
# verify the required parameter 'custom_dashboard_oid' is set
|
1498
|
+
if @api_client.config.client_side_validation && custom_dashboard_oid.nil?
|
1499
|
+
fail ArgumentError, "Missing the required parameter 'custom_dashboard_oid' when calling DatawarehouseApi.update_custom_dashboard_schedule"
|
1500
|
+
end
|
1501
|
+
# resource path
|
1502
|
+
local_var_path = '/datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules/{custom_dashboard_schedule_oid}'.sub('{' + 'custom_dashboard_schedule_oid' + '}', custom_dashboard_schedule_oid.to_s).sub('{' + 'custom_dashboard_oid' + '}', custom_dashboard_oid.to_s)
|
1503
|
+
|
1504
|
+
# query parameters
|
1505
|
+
query_params = {}
|
1506
|
+
|
1507
|
+
# header parameters
|
1508
|
+
header_params = {}
|
1509
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1510
|
+
# HTTP header 'Accept' (if needed)
|
1511
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1512
|
+
# HTTP header 'Content-Type'
|
1513
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
1514
|
+
|
1515
|
+
# form parameters
|
1516
|
+
form_params = {}
|
1517
|
+
|
1518
|
+
# http body (model)
|
1519
|
+
post_body = @api_client.object_to_http_body(dashboard_schedule)
|
1520
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1521
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1522
|
+
:header_params => header_params,
|
1523
|
+
:query_params => query_params,
|
1524
|
+
:form_params => form_params,
|
1525
|
+
:body => post_body,
|
1526
|
+
:auth_names => auth_names,
|
1527
|
+
:return_type => 'CustomDashboardResponse')
|
1528
|
+
if @api_client.config.debugging
|
1529
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#update_custom_dashboard_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1530
|
+
end
|
1531
|
+
return data, status_code, headers
|
1532
|
+
end
|
1174
1533
|
# Update a custom report
|
1175
1534
|
# Update a custom report on the UltraCart account.
|
1176
1535
|
# @param report Report to custom update
|
@@ -1411,6 +1411,70 @@ module UltracartClient
|
|
1411
1411
|
end
|
1412
1412
|
return data, status_code, headers
|
1413
1413
|
end
|
1414
|
+
# Replaces an order item id
|
1415
|
+
# Replaces a single order item id with another merchant_item_id, leaving all other attributes and properties unchanged. A custom method requested by a merchant to allow for item id updates due to shipping errors. It is doubtful you will ever need this method. The expansion variable affects the returned order object.
|
1416
|
+
# @param replace_order_item_id_request Replacement Request
|
1417
|
+
# @param order_id The order id to update.
|
1418
|
+
# @param [Hash] opts the optional parameters
|
1419
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
1420
|
+
# @return [OrderResponse]
|
1421
|
+
def replace_order_item_merchant_item_id(replace_order_item_id_request, order_id, opts = {})
|
1422
|
+
data, _status_code, _headers = replace_order_item_merchant_item_id_with_http_info(replace_order_item_id_request, order_id, opts)
|
1423
|
+
data
|
1424
|
+
end
|
1425
|
+
|
1426
|
+
# Replaces an order item id
|
1427
|
+
# Replaces a single order item id with another merchant_item_id, leaving all other attributes and properties unchanged. A custom method requested by a merchant to allow for item id updates due to shipping errors. It is doubtful you will ever need this method. The expansion variable affects the returned order object.
|
1428
|
+
# @param replace_order_item_id_request Replacement Request
|
1429
|
+
# @param order_id The order id to update.
|
1430
|
+
# @param [Hash] opts the optional parameters
|
1431
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
1432
|
+
# @return [Array<(OrderResponse, Fixnum, Hash)>] OrderResponse data, response status code and response headers
|
1433
|
+
def replace_order_item_merchant_item_id_with_http_info(replace_order_item_id_request, order_id, opts = {})
|
1434
|
+
if @api_client.config.debugging
|
1435
|
+
@api_client.config.logger.debug 'Calling API: OrderApi.replace_order_item_merchant_item_id ...'
|
1436
|
+
end
|
1437
|
+
# verify the required parameter 'replace_order_item_id_request' is set
|
1438
|
+
if @api_client.config.client_side_validation && replace_order_item_id_request.nil?
|
1439
|
+
fail ArgumentError, "Missing the required parameter 'replace_order_item_id_request' when calling OrderApi.replace_order_item_merchant_item_id"
|
1440
|
+
end
|
1441
|
+
# verify the required parameter 'order_id' is set
|
1442
|
+
if @api_client.config.client_side_validation && order_id.nil?
|
1443
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling OrderApi.replace_order_item_merchant_item_id"
|
1444
|
+
end
|
1445
|
+
# resource path
|
1446
|
+
local_var_path = '/order/orders/{order_id}/replace_item_id'.sub('{' + 'order_id' + '}', order_id.to_s)
|
1447
|
+
|
1448
|
+
# query parameters
|
1449
|
+
query_params = {}
|
1450
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
1451
|
+
|
1452
|
+
# header parameters
|
1453
|
+
header_params = {}
|
1454
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1455
|
+
# HTTP header 'Accept' (if needed)
|
1456
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1457
|
+
# HTTP header 'Content-Type'
|
1458
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
1459
|
+
|
1460
|
+
# form parameters
|
1461
|
+
form_params = {}
|
1462
|
+
|
1463
|
+
# http body (model)
|
1464
|
+
post_body = @api_client.object_to_http_body(replace_order_item_id_request)
|
1465
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1466
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1467
|
+
:header_params => header_params,
|
1468
|
+
:query_params => query_params,
|
1469
|
+
:form_params => form_params,
|
1470
|
+
:body => post_body,
|
1471
|
+
:auth_names => auth_names,
|
1472
|
+
:return_type => 'OrderResponse')
|
1473
|
+
if @api_client.config.debugging
|
1474
|
+
@api_client.config.logger.debug "API called: OrderApi#replace_order_item_merchant_item_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1475
|
+
end
|
1476
|
+
return data, status_code, headers
|
1477
|
+
end
|
1414
1478
|
# Replacement order
|
1415
1479
|
# Create a replacement order based upon a previous order
|
1416
1480
|
# @param order_id The order id to generate a replacement for.
|