ultracart_api 4.1.19 → 4.1.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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -10
  3. data/docs/CustomDashboardSchedule.md +26 -0
  4. data/docs/{ChargebackDisputesResponse.md → CustomDashboardScheduleResponse.md} +4 -4
  5. data/docs/CustomDashboardSchedulesResponse.md +26 -0
  6. data/docs/CustomReport.md +2 -0
  7. data/docs/CustomReportAccountConfig.md +2 -0
  8. data/docs/CustomReportAnalysisRequest.md +20 -0
  9. data/docs/{ChargebackDisputeResponse.md → CustomReportAnalysisResponse.md} +4 -4
  10. data/docs/CustomReportChartPngUploadResponse.md +28 -0
  11. data/docs/DatawarehouseApi.md +329 -0
  12. data/docs/EmailCampaign.md +4 -0
  13. data/docs/ItemTag.md +1 -1
  14. data/docs/OrderApi.md +56 -0
  15. data/docs/ReplaceOrderItemIdRequest.md +24 -0
  16. data/lib/ultracart_api/api/datawarehouse_api.rb +429 -0
  17. data/lib/ultracart_api/api/order_api.rb +78 -0
  18. data/lib/ultracart_api/models/custom_dashboard_schedule.rb +258 -0
  19. data/lib/ultracart_api/models/{chargeback_disputes_response.rb → custom_dashboard_schedule_response.rb} +13 -15
  20. data/lib/ultracart_api/models/custom_dashboard_schedules_response.rb +259 -0
  21. data/lib/ultracart_api/models/custom_report.rb +10 -1
  22. data/lib/ultracart_api/models/custom_report_account_config.rb +10 -1
  23. data/lib/ultracart_api/models/custom_report_analysis_request.rb +228 -0
  24. data/lib/ultracart_api/models/{chargeback_dispute_response.rb → custom_report_analysis_response.rb} +13 -13
  25. data/lib/ultracart_api/models/custom_report_chart_png_upload_response.rb +265 -0
  26. data/lib/ultracart_api/models/email_campaign.rb +21 -1
  27. data/lib/ultracart_api/models/item_tag.rb +1 -1
  28. data/lib/ultracart_api/models/order_payment.rb +2 -2
  29. data/lib/ultracart_api/models/replace_order_item_id_request.rb +280 -0
  30. data/lib/ultracart_api/version.rb +1 -1
  31. data/lib/ultracart_api.rb +7 -4
  32. metadata +16 -10
  33. data/docs/ChargebackApi.md +0 -297
  34. data/docs/ChargebackDispute.md +0 -62
  35. data/lib/ultracart_api/api/chargeback_api.rb +0 -410
  36. data/lib/ultracart_api/models/chargeback_dispute.rb +0 -649
@@ -4,7 +4,9 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**analyze_custom_report**](DatawarehouseApi.md#analyze_custom_report) | **PUT** /datawarehouse/custom_reports/{custom_report_oid}/analysis | Analyze a custom report |
7
8
  | [**delete_custom_dashboard**](DatawarehouseApi.md#delete_custom_dashboard) | **DELETE** /datawarehouse/custom_dashboards/{custom_dashboard_oid} | Delete a custom dashboard |
9
+ | [**delete_custom_dashboard_schedule**](DatawarehouseApi.md#delete_custom_dashboard_schedule) | **DELETE** /datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules/{custom_dashboard_schedule_oid} | Delete a custom dashboard schedule |
8
10
  | [**delete_custom_report**](DatawarehouseApi.md#delete_custom_report) | **DELETE** /datawarehouse/custom_reports/{custom_report_oid} | Delete a custom report |
9
11
  | [**delete_report**](DatawarehouseApi.md#delete_report) | **DELETE** /datawarehouse/reports/{report_oid} | Delete a report |
10
12
  | [**dry_run_report_queries**](DatawarehouseApi.md#dry_run_report_queries) | **PUT** /datawarehouse/reports/dryrun | Dry run the report queries |
@@ -12,9 +14,11 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
12
14
  | [**execute_custom_reports**](DatawarehouseApi.md#execute_custom_reports) | **PUT** /datawarehouse/custom_reports/execute | Execute a custom reports |
13
15
  | [**execute_report_queries**](DatawarehouseApi.md#execute_report_queries) | **PUT** /datawarehouse/reports/execute | Execute the report queries |
14
16
  | [**get_custom_dashboard**](DatawarehouseApi.md#get_custom_dashboard) | **GET** /datawarehouse/custom_dashboards/{custom_dashboard_oid} | Get a custom dashboard |
17
+ | [**get_custom_dashboard_schedules**](DatawarehouseApi.md#get_custom_dashboard_schedules) | **GET** /datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules | Get custom dashboards |
15
18
  | [**get_custom_dashboards**](DatawarehouseApi.md#get_custom_dashboards) | **GET** /datawarehouse/custom_dashboards | Get custom dashboards |
16
19
  | [**get_custom_report**](DatawarehouseApi.md#get_custom_report) | **GET** /datawarehouse/custom_reports/{custom_report_oid} | Get a custom report |
17
20
  | [**get_custom_report_account_config**](DatawarehouseApi.md#get_custom_report_account_config) | **GET** /datawarehouse/custom_reports/account_config | Get custom report account configuration |
21
+ | [**get_custom_report_chart_png_upload_url**](DatawarehouseApi.md#get_custom_report_chart_png_upload_url) | **GET** /datawarehouse/custom_reports/{custom_report_oid}/chart_png | Upload a PNG of a custom report chart |
18
22
  | [**get_custom_reports**](DatawarehouseApi.md#get_custom_reports) | **GET** /datawarehouse/custom_reports | Get custom reports |
19
23
  | [**get_report**](DatawarehouseApi.md#get_report) | **GET** /datawarehouse/reports/{report_oid} | Get a report |
20
24
  | [**get_report_data_set**](DatawarehouseApi.md#get_report_data_set) | **GET** /datawarehouse/reports/dataset/{dataset_uuid} | Get a report data set |
@@ -22,14 +26,70 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
22
26
  | [**get_report_websocket_authorization**](DatawarehouseApi.md#get_report_websocket_authorization) | **PUT** /datawarehouse/reports/auth | Get report websocket authorization |
23
27
  | [**get_reports**](DatawarehouseApi.md#get_reports) | **GET** /datawarehouse/reports | Get list of reports available |
24
28
  | [**insert_custom_dashboard**](DatawarehouseApi.md#insert_custom_dashboard) | **POST** /datawarehouse/custom_dashboards | Create a custom dashboard |
29
+ | [**insert_custom_dashboard_schedule**](DatawarehouseApi.md#insert_custom_dashboard_schedule) | **POST** /datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules | Create a custom dashboard schedule |
25
30
  | [**insert_custom_report**](DatawarehouseApi.md#insert_custom_report) | **POST** /datawarehouse/custom_reports | Create a custom report |
26
31
  | [**insert_report**](DatawarehouseApi.md#insert_report) | **POST** /datawarehouse/reports | Create a report |
27
32
  | [**update_custom_dashboard**](DatawarehouseApi.md#update_custom_dashboard) | **PUT** /datawarehouse/custom_dashboards/{custom_dashboard_oid} | Update a custom dashboard |
33
+ | [**update_custom_dashboard_schedule**](DatawarehouseApi.md#update_custom_dashboard_schedule) | **PUT** /datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules/{custom_dashboard_schedule_oid} | Update a custom dashboard schedule |
28
34
  | [**update_custom_report**](DatawarehouseApi.md#update_custom_report) | **PUT** /datawarehouse/custom_reports/{custom_report_oid} | Update a custom report |
29
35
  | [**update_custom_report_account_config**](DatawarehouseApi.md#update_custom_report_account_config) | **PUT** /datawarehouse/custom_reports/account_config | Update custom report account config |
30
36
  | [**update_report**](DatawarehouseApi.md#update_report) | **PUT** /datawarehouse/reports/{report_oid} | Update a report |
31
37
 
32
38
 
39
+ ## analyze_custom_report
40
+
41
+ > <CustomReportAnalysisResponse> analyze_custom_report(custom_report_oid, analyze_request)
42
+
43
+ Analyze a custom report
44
+
45
+ Analyze a custom report on the UltraCart account.
46
+
47
+
48
+ ### Examples
49
+
50
+
51
+ (No example for this operation).
52
+
53
+
54
+ #### Using the analyze_custom_report_with_http_info variant
55
+
56
+ This returns an Array which contains the response data, status code and headers.
57
+
58
+ > <Array(<CustomReportAnalysisResponse>, Integer, Hash)> analyze_custom_report_with_http_info(custom_report_oid, analyze_request)
59
+
60
+ ```ruby
61
+ begin
62
+ # Analyze a custom report
63
+ data, status_code, headers = api_instance.analyze_custom_report_with_http_info(custom_report_oid, analyze_request)
64
+ p status_code # => 2xx
65
+ p headers # => { ... }
66
+ p data # => <CustomReportAnalysisResponse>
67
+ rescue UltracartClient::ApiError => e
68
+ puts "Error when calling DatawarehouseApi->analyze_custom_report_with_http_info: #{e}"
69
+ end
70
+ ```
71
+
72
+ ### Parameters
73
+
74
+ | Name | Type | Description | Notes |
75
+ | ---- | ---- | ----------- | ----- |
76
+ | **custom_report_oid** | **Integer** | The report oid to analyze. | |
77
+ | **analyze_request** | [**CustomReportAnalysisRequest**](CustomReportAnalysisRequest.md) | Request to analyze custom report | |
78
+
79
+ ### Return type
80
+
81
+ [**CustomReportAnalysisResponse**](CustomReportAnalysisResponse.md)
82
+
83
+ ### Authorization
84
+
85
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
86
+
87
+ ### HTTP request headers
88
+
89
+ - **Content-Type**: application/json; charset=UTF-8
90
+ - **Accept**: application/json
91
+
92
+
33
93
  ## delete_custom_dashboard
34
94
 
35
95
  > delete_custom_dashboard(custom_dashboard_oid)
@@ -83,6 +143,60 @@ nil (empty response body)
83
143
  - **Accept**: application/json
84
144
 
85
145
 
146
+ ## delete_custom_dashboard_schedule
147
+
148
+ > delete_custom_dashboard_schedule(custom_dashboard_schedule_oid, custom_dashboard_oid)
149
+
150
+ Delete a custom dashboard schedule
151
+
152
+ delete a custom dashboard schedule on the UltraCart account.
153
+
154
+
155
+ ### Examples
156
+
157
+
158
+ (No example for this operation).
159
+
160
+
161
+ #### Using the delete_custom_dashboard_schedule_with_http_info variant
162
+
163
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
164
+
165
+ > <Array(nil, Integer, Hash)> delete_custom_dashboard_schedule_with_http_info(custom_dashboard_schedule_oid, custom_dashboard_oid)
166
+
167
+ ```ruby
168
+ begin
169
+ # Delete a custom dashboard schedule
170
+ data, status_code, headers = api_instance.delete_custom_dashboard_schedule_with_http_info(custom_dashboard_schedule_oid, custom_dashboard_oid)
171
+ p status_code # => 2xx
172
+ p headers # => { ... }
173
+ p data # => nil
174
+ rescue UltracartClient::ApiError => e
175
+ puts "Error when calling DatawarehouseApi->delete_custom_dashboard_schedule_with_http_info: #{e}"
176
+ end
177
+ ```
178
+
179
+ ### Parameters
180
+
181
+ | Name | Type | Description | Notes |
182
+ | ---- | ---- | ----------- | ----- |
183
+ | **custom_dashboard_schedule_oid** | **Integer** | The dashboard schedule oid to delete. | |
184
+ | **custom_dashboard_oid** | **Integer** | The dashboard oid that owns the schedule. | |
185
+
186
+ ### Return type
187
+
188
+ nil (empty response body)
189
+
190
+ ### Authorization
191
+
192
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
193
+
194
+ ### HTTP request headers
195
+
196
+ - **Content-Type**: Not defined
197
+ - **Accept**: application/json
198
+
199
+
86
200
  ## delete_custom_report
87
201
 
88
202
  > delete_custom_report(custom_report_oid)
@@ -458,6 +572,59 @@ end
458
572
  - **Accept**: application/json
459
573
 
460
574
 
575
+ ## get_custom_dashboard_schedules
576
+
577
+ > <CustomDashboardSchedulesResponse> get_custom_dashboard_schedules(custom_dashboard_oid)
578
+
579
+ Get custom dashboards
580
+
581
+ Retrieve a custom dashboards
582
+
583
+
584
+ ### Examples
585
+
586
+
587
+ (No example for this operation).
588
+
589
+
590
+ #### Using the get_custom_dashboard_schedules_with_http_info variant
591
+
592
+ This returns an Array which contains the response data, status code and headers.
593
+
594
+ > <Array(<CustomDashboardSchedulesResponse>, Integer, Hash)> get_custom_dashboard_schedules_with_http_info(custom_dashboard_oid)
595
+
596
+ ```ruby
597
+ begin
598
+ # Get custom dashboards
599
+ data, status_code, headers = api_instance.get_custom_dashboard_schedules_with_http_info(custom_dashboard_oid)
600
+ p status_code # => 2xx
601
+ p headers # => { ... }
602
+ p data # => <CustomDashboardSchedulesResponse>
603
+ rescue UltracartClient::ApiError => e
604
+ puts "Error when calling DatawarehouseApi->get_custom_dashboard_schedules_with_http_info: #{e}"
605
+ end
606
+ ```
607
+
608
+ ### Parameters
609
+
610
+ | Name | Type | Description | Notes |
611
+ | ---- | ---- | ----------- | ----- |
612
+ | **custom_dashboard_oid** | **Integer** | | |
613
+
614
+ ### Return type
615
+
616
+ [**CustomDashboardSchedulesResponse**](CustomDashboardSchedulesResponse.md)
617
+
618
+ ### Authorization
619
+
620
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
621
+
622
+ ### HTTP request headers
623
+
624
+ - **Content-Type**: Not defined
625
+ - **Accept**: application/json
626
+
627
+
461
628
  ## get_custom_dashboards
462
629
 
463
630
  > <CustomDashboardsResponse> get_custom_dashboards
@@ -613,6 +780,59 @@ This endpoint does not need any parameter.
613
780
  - **Accept**: application/json
614
781
 
615
782
 
783
+ ## get_custom_report_chart_png_upload_url
784
+
785
+ > <CustomReportChartPngUploadResponse> get_custom_report_chart_png_upload_url(custom_report_oid)
786
+
787
+ Upload a PNG of a custom report chart
788
+
789
+ Upload a PNG of a custom report chart
790
+
791
+
792
+ ### Examples
793
+
794
+
795
+ (No example for this operation).
796
+
797
+
798
+ #### Using the get_custom_report_chart_png_upload_url_with_http_info variant
799
+
800
+ This returns an Array which contains the response data, status code and headers.
801
+
802
+ > <Array(<CustomReportChartPngUploadResponse>, Integer, Hash)> get_custom_report_chart_png_upload_url_with_http_info(custom_report_oid)
803
+
804
+ ```ruby
805
+ begin
806
+ # Upload a PNG of a custom report chart
807
+ data, status_code, headers = api_instance.get_custom_report_chart_png_upload_url_with_http_info(custom_report_oid)
808
+ p status_code # => 2xx
809
+ p headers # => { ... }
810
+ p data # => <CustomReportChartPngUploadResponse>
811
+ rescue UltracartClient::ApiError => e
812
+ puts "Error when calling DatawarehouseApi->get_custom_report_chart_png_upload_url_with_http_info: #{e}"
813
+ end
814
+ ```
815
+
816
+ ### Parameters
817
+
818
+ | Name | Type | Description | Notes |
819
+ | ---- | ---- | ----------- | ----- |
820
+ | **custom_report_oid** | **Integer** | The report oid to upload a chart PNG for. | |
821
+
822
+ ### Return type
823
+
824
+ [**CustomReportChartPngUploadResponse**](CustomReportChartPngUploadResponse.md)
825
+
826
+ ### Authorization
827
+
828
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
829
+
830
+ ### HTTP request headers
831
+
832
+ - **Content-Type**: Not defined
833
+ - **Accept**: application/json
834
+
835
+
616
836
  ## get_custom_reports
617
837
 
618
838
  > <CustomReportsResponse> get_custom_reports
@@ -984,6 +1204,60 @@ end
984
1204
  - **Accept**: application/json
985
1205
 
986
1206
 
1207
+ ## insert_custom_dashboard_schedule
1208
+
1209
+ > <CustomDashboardScheduleResponse> insert_custom_dashboard_schedule(custom_dashboard_oid, dashboard_schedule)
1210
+
1211
+ Create a custom dashboard schedule
1212
+
1213
+ Create a new custom dashboard schedule on the UltraCart account.
1214
+
1215
+
1216
+ ### Examples
1217
+
1218
+
1219
+ (No example for this operation).
1220
+
1221
+
1222
+ #### Using the insert_custom_dashboard_schedule_with_http_info variant
1223
+
1224
+ This returns an Array which contains the response data, status code and headers.
1225
+
1226
+ > <Array(<CustomDashboardScheduleResponse>, Integer, Hash)> insert_custom_dashboard_schedule_with_http_info(custom_dashboard_oid, dashboard_schedule)
1227
+
1228
+ ```ruby
1229
+ begin
1230
+ # Create a custom dashboard schedule
1231
+ data, status_code, headers = api_instance.insert_custom_dashboard_schedule_with_http_info(custom_dashboard_oid, dashboard_schedule)
1232
+ p status_code # => 2xx
1233
+ p headers # => { ... }
1234
+ p data # => <CustomDashboardScheduleResponse>
1235
+ rescue UltracartClient::ApiError => e
1236
+ puts "Error when calling DatawarehouseApi->insert_custom_dashboard_schedule_with_http_info: #{e}"
1237
+ end
1238
+ ```
1239
+
1240
+ ### Parameters
1241
+
1242
+ | Name | Type | Description | Notes |
1243
+ | ---- | ---- | ----------- | ----- |
1244
+ | **custom_dashboard_oid** | **Integer** | | |
1245
+ | **dashboard_schedule** | [**CustomDashboardSchedule**](CustomDashboardSchedule.md) | Dashboard schedule to create | |
1246
+
1247
+ ### Return type
1248
+
1249
+ [**CustomDashboardScheduleResponse**](CustomDashboardScheduleResponse.md)
1250
+
1251
+ ### Authorization
1252
+
1253
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1254
+
1255
+ ### HTTP request headers
1256
+
1257
+ - **Content-Type**: application/json; charset=UTF-8
1258
+ - **Accept**: application/json
1259
+
1260
+
987
1261
  ## insert_custom_report
988
1262
 
989
1263
  > <CustomReportResponse> insert_custom_report(report)
@@ -1145,6 +1419,61 @@ end
1145
1419
  - **Accept**: application/json
1146
1420
 
1147
1421
 
1422
+ ## update_custom_dashboard_schedule
1423
+
1424
+ > <CustomDashboardResponse> update_custom_dashboard_schedule(custom_dashboard_schedule_oid, custom_dashboard_oid, dashboard_schedule)
1425
+
1426
+ Update a custom dashboard schedule
1427
+
1428
+ Update a custom dashboard schedule on the UltraCart account.
1429
+
1430
+
1431
+ ### Examples
1432
+
1433
+
1434
+ (No example for this operation).
1435
+
1436
+
1437
+ #### Using the update_custom_dashboard_schedule_with_http_info variant
1438
+
1439
+ This returns an Array which contains the response data, status code and headers.
1440
+
1441
+ > <Array(<CustomDashboardResponse>, Integer, Hash)> update_custom_dashboard_schedule_with_http_info(custom_dashboard_schedule_oid, custom_dashboard_oid, dashboard_schedule)
1442
+
1443
+ ```ruby
1444
+ begin
1445
+ # Update a custom dashboard schedule
1446
+ data, status_code, headers = api_instance.update_custom_dashboard_schedule_with_http_info(custom_dashboard_schedule_oid, custom_dashboard_oid, dashboard_schedule)
1447
+ p status_code # => 2xx
1448
+ p headers # => { ... }
1449
+ p data # => <CustomDashboardResponse>
1450
+ rescue UltracartClient::ApiError => e
1451
+ puts "Error when calling DatawarehouseApi->update_custom_dashboard_schedule_with_http_info: #{e}"
1452
+ end
1453
+ ```
1454
+
1455
+ ### Parameters
1456
+
1457
+ | Name | Type | Description | Notes |
1458
+ | ---- | ---- | ----------- | ----- |
1459
+ | **custom_dashboard_schedule_oid** | **Integer** | The dashboard schedule oid to update. | |
1460
+ | **custom_dashboard_oid** | **Integer** | The dashboard oid to update. | |
1461
+ | **dashboard_schedule** | [**CustomDashboardSchedule**](CustomDashboardSchedule.md) | Dashboard schedule to update | |
1462
+
1463
+ ### Return type
1464
+
1465
+ [**CustomDashboardResponse**](CustomDashboardResponse.md)
1466
+
1467
+ ### Authorization
1468
+
1469
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1470
+
1471
+ ### HTTP request headers
1472
+
1473
+ - **Content-Type**: application/json; charset=UTF-8
1474
+ - **Accept**: application/json
1475
+
1476
+
1148
1477
  ## update_custom_report
1149
1478
 
1150
1479
  > <CustomReportResponse> update_custom_report(custom_report_oid, report)
@@ -21,6 +21,8 @@
21
21
  | **name** | **String** | Name of email campaign | [optional] |
22
22
  | **open_rate_formatted** | **String** | Open rate of emails | [optional] |
23
23
  | **prevent_sending_due_to_spam** | **Boolean** | True if this campaign is prevented from sending at this time due to spam complaints. | [optional] |
24
+ | **repeat_monthly** | **Boolean** | True if the campaign should repeat on a monthly basis | [optional] |
25
+ | **repeat_weekly** | **Boolean** | True if the campaign should repeat on a weekly basis | [optional] |
24
26
  | **revenue_formatted** | **String** | Revenue associated with campaign | [optional] |
25
27
  | **revenue_per_customer_formatted** | **String** | Revenue per customer associated with campaign | [optional] |
26
28
  | **scheduled_dts** | **String** | Scheduled date | [optional] |
@@ -54,6 +56,8 @@ instance = UltracartClient::EmailCampaign.new(
54
56
  name: null,
55
57
  open_rate_formatted: null,
56
58
  prevent_sending_due_to_spam: null,
59
+ repeat_monthly: null,
60
+ repeat_weekly: null,
57
61
  revenue_formatted: null,
58
62
  revenue_per_customer_formatted: null,
59
63
  scheduled_dts: null,
data/docs/ItemTag.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **tag_type** | **String** | tag_tpe | [optional] |
7
+ | **tag_type** | **String** | tag_type | [optional] |
8
8
  | **tag_value** | **String** | tag_value | [optional] |
9
9
 
10
10
  ## Example
data/docs/OrderApi.md CHANGED
@@ -26,6 +26,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
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 |
@@ -2280,6 +2281,61 @@ end
2280
2281
  - **Accept**: application/json
2281
2282
 
2282
2283
 
2284
+ ## replace_order_item_merchant_item_id
2285
+
2286
+ > <OrderResponse> replace_order_item_merchant_item_id(order_id, replace_order_item_id_request, opts)
2287
+
2288
+ Replaces an order item id
2289
+
2290
+ 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.
2291
+
2292
+
2293
+ ### Examples
2294
+
2295
+
2296
+ (No example for this operation).
2297
+
2298
+
2299
+ #### Using the replace_order_item_merchant_item_id_with_http_info variant
2300
+
2301
+ This returns an Array which contains the response data, status code and headers.
2302
+
2303
+ > <Array(<OrderResponse>, Integer, Hash)> replace_order_item_merchant_item_id_with_http_info(order_id, replace_order_item_id_request, opts)
2304
+
2305
+ ```ruby
2306
+ begin
2307
+ # Replaces an order item id
2308
+ data, status_code, headers = api_instance.replace_order_item_merchant_item_id_with_http_info(order_id, replace_order_item_id_request, opts)
2309
+ p status_code # => 2xx
2310
+ p headers # => { ... }
2311
+ p data # => <OrderResponse>
2312
+ rescue UltracartClient::ApiError => e
2313
+ puts "Error when calling OrderApi->replace_order_item_merchant_item_id_with_http_info: #{e}"
2314
+ end
2315
+ ```
2316
+
2317
+ ### Parameters
2318
+
2319
+ | Name | Type | Description | Notes |
2320
+ | ---- | ---- | ----------- | ----- |
2321
+ | **order_id** | **String** | The order id to update. | |
2322
+ | **replace_order_item_id_request** | [**ReplaceOrderItemIdRequest**](ReplaceOrderItemIdRequest.md) | Replacement Request | |
2323
+ | **_expand** | **String** | The object expansion to perform on the result. See documentation for examples | [optional] |
2324
+
2325
+ ### Return type
2326
+
2327
+ [**OrderResponse**](OrderResponse.md)
2328
+
2329
+ ### Authorization
2330
+
2331
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
2332
+
2333
+ ### HTTP request headers
2334
+
2335
+ - **Content-Type**: application/json; charset=UTF-8
2336
+ - **Accept**: application/json
2337
+
2338
+
2283
2339
  ## replacement
2284
2340
 
2285
2341
  > <OrderReplacementResponse> replacement(order_id, replacement)
@@ -0,0 +1,24 @@
1
+ # UltracartClient::ReplaceOrderItemIdRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **item_index** | **Integer** | Index of the item on the order (one based index) | [optional] |
8
+ | **merchant_item_id** | **String** | Item ID | [optional] |
9
+ | **order_id** | **String** | Order ID | [optional] |
10
+ | **replacement_merchant_item_id** | **String** | Replacement Item ID | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ultracart_api'
16
+
17
+ instance = UltracartClient::ReplaceOrderItemIdRequest.new(
18
+ item_index: null,
19
+ merchant_item_id: null,
20
+ order_id: null,
21
+ replacement_merchant_item_id: null
22
+ )
23
+ ```
24
+