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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -3
  3. data/docs/CartUpsellAfter.md +6 -2
  4. data/docs/ConversationVirtualAgentCapabilities.md +4 -0
  5. data/docs/CustomReport.md +36 -0
  6. data/docs/CustomReportAccountConfig.md +34 -0
  7. data/docs/CustomReportAccountConfigResponse.md +26 -0
  8. data/docs/CustomReportExecutionParameter.md +22 -0
  9. data/docs/CustomReportExecutionRequest.md +18 -0
  10. data/docs/CustomReportParameter.md +28 -0
  11. data/docs/CustomReportParameterOption.md +20 -0
  12. data/docs/CustomReportQuery.md +28 -0
  13. data/docs/CustomReportResponse.md +26 -0
  14. data/docs/CustomReportTooltip.md +20 -0
  15. data/docs/CustomReportsResponse.md +26 -0
  16. data/docs/DatawarehouseApi.md +430 -0
  17. data/docs/Item.md +1 -1
  18. data/docs/OrderApi.md +137 -63
  19. data/docs/WebhookApi.md +0 -8
  20. data/lib/ultracart_api/api/datawarehouse_api.rb +532 -0
  21. data/lib/ultracart_api/api/order_api.rb +131 -91
  22. data/lib/ultracart_api/api/webhook_api.rb +0 -24
  23. data/lib/ultracart_api/models/cart_upsell_after.rb +25 -5
  24. data/lib/ultracart_api/models/conversation_virtual_agent_capabilities.rb +55 -1
  25. data/lib/ultracart_api/models/custom_report.rb +306 -0
  26. data/lib/ultracart_api/models/custom_report_account_config.rb +296 -0
  27. data/lib/ultracart_api/models/custom_report_account_config_response.rb +256 -0
  28. data/lib/ultracart_api/models/custom_report_execution_parameter.rb +237 -0
  29. data/lib/ultracart_api/models/custom_report_execution_request.rb +221 -0
  30. data/lib/ultracart_api/models/custom_report_parameter.rb +266 -0
  31. data/lib/ultracart_api/models/custom_report_parameter_option.rb +228 -0
  32. data/lib/ultracart_api/models/custom_report_query.rb +266 -0
  33. data/lib/ultracart_api/models/custom_report_response.rb +256 -0
  34. data/lib/ultracart_api/models/custom_report_tooltip.rb +228 -0
  35. data/lib/ultracart_api/models/custom_reports_response.rb +259 -0
  36. data/lib/ultracart_api/models/item.rb +1 -1
  37. data/lib/ultracart_api/version.rb +1 -1
  38. data/lib/ultracart_api.rb +11 -0
  39. metadata +24 -2
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) | **GET** /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 |
@@ -25,10 +26,10 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
25
26
  | [**is_refundable_order**](OrderApi.md#is_refundable_order) | **GET** /order/orders/{order_id}/refundable | Determine if an order can be refunded |
26
27
  | [**process_payment**](OrderApi.md#process_payment) | **POST** /order/orders/{order_id}/process_payment | Process payment |
27
28
  | [**refund_order**](OrderApi.md#refund_order) | **PUT** /order/orders/{order_id}/refund | Refund an order |
28
- | [**refund_order_completely**](OrderApi.md#refund_order_completely) | **PUT** /order/orders/{order_id}/refund_completely | Refund an order completely |
29
29
  | [**replacement**](OrderApi.md#replacement) | **POST** /order/orders/{order_id}/replacement | Replacement order |
30
30
  | [**resend_receipt**](OrderApi.md#resend_receipt) | **POST** /order/orders/{order_id}/resend_receipt | Resend receipt |
31
31
  | [**resend_shipment_confirmation**](OrderApi.md#resend_shipment_confirmation) | **POST** /order/orders/{order_id}/resend_shipment_confirmation | Resend shipment confirmation |
32
+ | [**unblock_refund_on_order**](OrderApi.md#unblock_refund_on_order) | **GET** /order/orders/{order_id}/refund_unblock | Remove a refund block on an order |
32
33
  | [**update_accounts_receivable_retry_config**](OrderApi.md#update_accounts_receivable_retry_config) | **POST** /order/accountsReceivableRetryConfig | Update A/R Retry Configuration |
33
34
  | [**update_order**](OrderApi.md#update_order) | **PUT** /order/orders/{order_id} | Update an order |
34
35
  | [**validate_order**](OrderApi.md#validate_order) | **POST** /order/validate | Validate |
@@ -114,6 +115,74 @@ end
114
115
  - **Accept**: application/json
115
116
 
116
117
 
118
+ ## block_refund_on_order
119
+
120
+ > block_refund_on_order(order_id, opts)
121
+
122
+ Set a refund block on an order
123
+
124
+ Sets a refund block on an order to prevent a user from performing a refund. Commonly used when a chargeback has been received.
125
+
126
+
127
+ ### Examples
128
+
129
+ ```ruby
130
+ require 'ultracart_api'
131
+ require_relative '../constants'
132
+
133
+ #
134
+ # blockRefundOnOrder sets an order property that is considered when a refund request is made.
135
+ # If the property is present, the refund is denied. Being an order property allows for querying
136
+ # upon it within BigQuery for audit purposes.
137
+ #
138
+ order_api = UltracartClient::OrderApi.new_using_api_key(Constants::API_KEY)
139
+
140
+ order_id = 'DEMO-0009105222'
141
+ order_api.block_refund_on_order(order_id, {block_reason: 'Chargeback'})
142
+
143
+ p 'Method executed successfully. Returns back 204 No Content'
144
+ ```
145
+
146
+
147
+ #### Using the block_refund_on_order_with_http_info variant
148
+
149
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
150
+
151
+ > <Array(nil, Integer, Hash)> block_refund_on_order_with_http_info(order_id, opts)
152
+
153
+ ```ruby
154
+ begin
155
+ # Set a refund block on an order
156
+ data, status_code, headers = api_instance.block_refund_on_order_with_http_info(order_id, opts)
157
+ p status_code # => 2xx
158
+ p headers # => { ... }
159
+ p data # => nil
160
+ rescue UltracartClient::ApiError => e
161
+ puts "Error when calling OrderApi->block_refund_on_order_with_http_info: #{e}"
162
+ end
163
+ ```
164
+
165
+ ### Parameters
166
+
167
+ | Name | Type | Description | Notes |
168
+ | ---- | ---- | ----------- | ----- |
169
+ | **order_id** | **String** | The order id to block a refund on. | |
170
+ | **block_reason** | **String** | Block reason code (optional) | [optional] |
171
+
172
+ ### Return type
173
+
174
+ nil (empty response body)
175
+
176
+ ### Authorization
177
+
178
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
179
+
180
+ ### HTTP request headers
181
+
182
+ - **Content-Type**: Not defined
183
+ - **Accept**: application/json
184
+
185
+
117
186
  ## cancel_order
118
187
 
119
188
  > <BaseResponse> cancel_order(order_id, opts)
@@ -2211,68 +2280,6 @@ end
2211
2280
  - **Accept**: application/json
2212
2281
 
2213
2282
 
2214
- ## refund_order_completely
2215
-
2216
- > <OrderResponse> refund_order_completely(order_id, opts)
2217
-
2218
- Refund an order completely
2219
-
2220
- Perform a refund operation on an order and then update the order if successful.
2221
-
2222
-
2223
- ### Examples
2224
-
2225
-
2226
- (No example for this operation).
2227
-
2228
-
2229
- #### Using the refund_order_completely_with_http_info variant
2230
-
2231
- This returns an Array which contains the response data, status code and headers.
2232
-
2233
- > <Array(<OrderResponse>, Integer, Hash)> refund_order_completely_with_http_info(order_id, opts)
2234
-
2235
- ```ruby
2236
- begin
2237
- # Refund an order completely
2238
- data, status_code, headers = api_instance.refund_order_completely_with_http_info(order_id, opts)
2239
- p status_code # => 2xx
2240
- p headers # => { ... }
2241
- p data # => <OrderResponse>
2242
- rescue UltracartClient::ApiError => e
2243
- puts "Error when calling OrderApi->refund_order_completely_with_http_info: #{e}"
2244
- end
2245
- ```
2246
-
2247
- ### Parameters
2248
-
2249
- | Name | Type | Description | Notes |
2250
- | ---- | ---- | ----------- | ----- |
2251
- | **order_id** | **String** | The order id to refund. | |
2252
- | **reject_after_refund** | **Boolean** | Reject order after refund | [optional][default to false] |
2253
- | **skip_customer_notification** | **Boolean** | Skip customer email notification | [optional][default to false] |
2254
- | **auto_order_cancel** | **Boolean** | Cancel associated auto orders | [optional][default to false] |
2255
- | **manual_refund** | **Boolean** | Consider a manual refund done externally | [optional][default to false] |
2256
- | **reverse_affiliate_transactions** | **Boolean** | Reverse affiliate transactions | [optional][default to true] |
2257
- | **issue_store_credit** | **Boolean** | Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account | [optional][default to false] |
2258
- | **auto_order_cancel_reason** | **String** | Reason for auto orders cancellation | [optional] |
2259
- | **refund_reason** | **String** | Reason for refund | [optional] |
2260
- | **reject_reason** | **String** | Reason for reject | [optional] |
2261
-
2262
- ### Return type
2263
-
2264
- [**OrderResponse**](OrderResponse.md)
2265
-
2266
- ### Authorization
2267
-
2268
- [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
2269
-
2270
- ### HTTP request headers
2271
-
2272
- - **Content-Type**: Not defined
2273
- - **Accept**: application/json
2274
-
2275
-
2276
2283
  ## replacement
2277
2284
 
2278
2285
  > <OrderReplacementResponse> replacement(order_id, replacement)
@@ -2524,6 +2531,73 @@ end
2524
2531
  - **Accept**: application/json
2525
2532
 
2526
2533
 
2534
+ ## unblock_refund_on_order
2535
+
2536
+ > unblock_refund_on_order(order_id)
2537
+
2538
+ Remove a refund block on an order
2539
+
2540
+ Removes a refund block on an order to prevent a user from performing a refund.
2541
+
2542
+
2543
+ ### Examples
2544
+
2545
+ ```ruby
2546
+ require 'ultracart_api'
2547
+ require_relative '../constants'
2548
+
2549
+ #
2550
+ # unblockRefundOnOrder removes an order property that is considered when a refund request is made.
2551
+ # If the property is present, the refund is denied. Being an order property allows for querying
2552
+ # upon it within BigQuery for audit purposes.#
2553
+ #
2554
+ order_api = UltracartClient::OrderApi.new_using_api_key(Constants::API_KEY)
2555
+
2556
+ order_id = 'DEMO-0009105222'
2557
+ order_api.unblock_refund_on_order(order_id)
2558
+
2559
+ p 'Method executed successfully. Returns back 204 No Content'
2560
+ ```
2561
+
2562
+
2563
+ #### Using the unblock_refund_on_order_with_http_info variant
2564
+
2565
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
2566
+
2567
+ > <Array(nil, Integer, Hash)> unblock_refund_on_order_with_http_info(order_id)
2568
+
2569
+ ```ruby
2570
+ begin
2571
+ # Remove a refund block on an order
2572
+ data, status_code, headers = api_instance.unblock_refund_on_order_with_http_info(order_id)
2573
+ p status_code # => 2xx
2574
+ p headers # => { ... }
2575
+ p data # => nil
2576
+ rescue UltracartClient::ApiError => e
2577
+ puts "Error when calling OrderApi->unblock_refund_on_order_with_http_info: #{e}"
2578
+ end
2579
+ ```
2580
+
2581
+ ### Parameters
2582
+
2583
+ | Name | Type | Description | Notes |
2584
+ | ---- | ---- | ----------- | ----- |
2585
+ | **order_id** | **String** | The order id to unblock a refund on. | |
2586
+
2587
+ ### Return type
2588
+
2589
+ nil (empty response body)
2590
+
2591
+ ### Authorization
2592
+
2593
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
2594
+
2595
+ ### HTTP request headers
2596
+
2597
+ - **Content-Type**: Not defined
2598
+ - **Accept**: application/json
2599
+
2600
+
2527
2601
  ## update_accounts_receivable_retry_config
2528
2602
 
2529
2603
  > <BaseResponse> update_accounts_receivable_retry_config(retry_config)
data/docs/WebhookApi.md CHANGED
@@ -310,14 +310,6 @@ end
310
310
  | Name | Type | Description | Notes |
311
311
  | ---- | ---- | ----------- | ----- |
312
312
  | **webhook_oid** | **Integer** | The webhook oid to retrieve log summaries for. | |
313
- | **request_id** | **String** | | [optional] |
314
- | **begin_date** | **String** | | [optional] |
315
- | **end_date** | **String** | | [optional] |
316
- | **status** | **String** | | [optional] |
317
- | **event** | **String** | | [optional] |
318
- | **order_id** | **String** | | [optional] |
319
- | **request** | **String** | | [optional] |
320
- | **duration** | **Integer** | | [optional] |
321
313
  | **_limit** | **Integer** | The maximum number of records to return on this one API call. | [optional][default to 100] |
322
314
  | **_offset** | **Integer** | Pagination of the record set. Offset is a zero based index. | [optional][default to 0] |
323
315
  | **_since** | **String** | Fetch log summaries that have been delivered since this date/time. | [optional] |