ultracart_api 4.1.259 → 4.1.261
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 +19 -2
- data/docs/FraudApi.md +2 -2
- data/docs/OrderApi.md +191 -0
- data/docs/OrderCancelRequest.md +22 -0
- data/docs/OrderProcessPaymentRequest.md +3 -1
- data/docs/SfvbApi.md +224 -0
- data/docs/SfvbApprovalCreateRequest.md +2 -0
- data/docs/SfvbItemTranslation.md +28 -0
- data/docs/SfvbItemTranslationBatchRequest.md +20 -0
- data/docs/SfvbItemTranslationBatchResponse.md +46 -0
- data/docs/SfvbItemTranslationBatchRow.md +28 -0
- data/docs/SfvbItemTranslationBatchRowResult.md +34 -0
- data/docs/SfvbItemTranslationField.md +22 -0
- data/docs/SfvbItemTranslationWriteRequest.md +26 -0
- data/docs/SfvbItemTranslationsResponse.md +26 -0
- data/lib/ultracart_api/api/fraud_api.rb +4 -4
- data/lib/ultracart_api/api/order_api.rb +139 -0
- data/lib/ultracart_api/api/sfvb_api.rb +308 -0
- data/lib/ultracart_api/models/order_cancel_request.rb +240 -0
- data/lib/ultracart_api/models/order_process_payment_request.rb +14 -4
- data/lib/ultracart_api/models/sfvb_approval_create_request.rb +15 -3
- data/lib/ultracart_api/models/sfvb_item_translation.rb +316 -0
- data/lib/ultracart_api/models/sfvb_item_translation_batch_request.rb +232 -0
- data/lib/ultracart_api/models/sfvb_item_translation_batch_response.rb +366 -0
- data/lib/ultracart_api/models/sfvb_item_translation_batch_row.rb +304 -0
- data/lib/ultracart_api/models/sfvb_item_translation_batch_row_result.rb +346 -0
- data/lib/ultracart_api/models/sfvb_item_translation_field.rb +276 -0
- data/lib/ultracart_api/models/sfvb_item_translation_write_request.rb +294 -0
- data/lib/ultracart_api/models/sfvb_item_translations_response.rb +264 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +9 -0
- metadata +20 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce6242e056cf8c0a1d2db3a2d4df4c1acd47f8c1b3bc19e2422103276bc3e098
|
|
4
|
+
data.tar.gz: 69fa72b252751e9b5e7b4ad94a54bc419e79da6996543dc7b907f12f066e9bf7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fca92ab3fc4a55943fdab32059d8c9f3bc487565eadecc3981526ddedd72debdd58a0c9539fbf93c9f66fb039bab3bc5943e66fc223f3e90e3fa0af07e5644b
|
|
7
|
+
data.tar.gz: 7554936978c01ade5925edfe0d3a2fcaf03084d8820b13794ae7353cfa4aec2f62f45b91e36501dd2c972f4a2f5ed24ff588668d4926175691acdd22316b09a5
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Note: Every method has a sample for every language. See https://github.com/Ultr
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 2.0.0
|
|
10
|
-
- Package version: 4.1.
|
|
10
|
+
- Package version: 4.1.261
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
- For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
|
|
|
16
16
|
gemfile:
|
|
17
17
|
|
|
18
18
|
```shell
|
|
19
|
-
gem 'ultracart_api', '4.1.
|
|
19
|
+
gem 'ultracart_api', '4.1.261'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -439,6 +439,7 @@ Class | Method | HTTP request | Description
|
|
|
439
439
|
*UltracartClient::OrderApi* | [**assign_to_affiliate**](docs/OrderApi.md#assign_to_affiliate) | **POST** /order/orders/{order_id}/assignToAffiliate | Assigns an order to an affiliate
|
|
440
440
|
*UltracartClient::OrderApi* | [**block_refund_on_order**](docs/OrderApi.md#block_refund_on_order) | **GET** /order/orders/{order_id}/refund_block | Set a refund block on an order
|
|
441
441
|
*UltracartClient::OrderApi* | [**cancel_order**](docs/OrderApi.md#cancel_order) | **POST** /order/orders/{order_id}/cancel | Cancel an order
|
|
442
|
+
*UltracartClient::OrderApi* | [**cancel_order_with_options**](docs/OrderApi.md#cancel_order_with_options) | **POST** /order/orders/{order_id}/cancel_with_options | Cancel an order with options
|
|
442
443
|
*UltracartClient::OrderApi* | [**delete_order**](docs/OrderApi.md#delete_order) | **DELETE** /order/orders/{order_id} | Delete an order
|
|
443
444
|
*UltracartClient::OrderApi* | [**duplicate_order**](docs/OrderApi.md#duplicate_order) | **POST** /order/orders/{order_id}/duplicate | Duplicate an order
|
|
444
445
|
*UltracartClient::OrderApi* | [**format**](docs/OrderApi.md#format) | **POST** /order/orders/{order_id}/format | Format order
|
|
@@ -472,6 +473,7 @@ Class | Method | HTTP request | Description
|
|
|
472
473
|
*UltracartClient::OrderApi* | [**replacement**](docs/OrderApi.md#replacement) | **POST** /order/orders/{order_id}/replacement | Replacement order
|
|
473
474
|
*UltracartClient::OrderApi* | [**resend_receipt**](docs/OrderApi.md#resend_receipt) | **POST** /order/orders/{order_id}/resend_receipt | Resend receipt
|
|
474
475
|
*UltracartClient::OrderApi* | [**resend_shipment_confirmation**](docs/OrderApi.md#resend_shipment_confirmation) | **POST** /order/orders/{order_id}/resend_shipment_confirmation | Resend shipment confirmation
|
|
476
|
+
*UltracartClient::OrderApi* | [**send_update_billing_email**](docs/OrderApi.md#send_update_billing_email) | **POST** /order/orders/{order_id}/send_update_billing_email | Send update billing email
|
|
475
477
|
*UltracartClient::OrderApi* | [**unblock_refund_on_order**](docs/OrderApi.md#unblock_refund_on_order) | **GET** /order/orders/{order_id}/refund_unblock | Remove a refund block on an order
|
|
476
478
|
*UltracartClient::OrderApi* | [**update_accounts_receivable_retry_config**](docs/OrderApi.md#update_accounts_receivable_retry_config) | **POST** /order/accountsReceivableRetryConfig | Update A/R Retry Configuration
|
|
477
479
|
*UltracartClient::OrderApi* | [**update_order**](docs/OrderApi.md#update_order) | **PUT** /order/orders/{order_id} | Update an order
|
|
@@ -524,6 +526,7 @@ Class | Method | HTTP request | Description
|
|
|
524
526
|
*UltracartClient::SfvbApi* | [**download_sfvb_file**](docs/SfvbApi.md#download_sfvb_file) | **GET** /sfvb/storefronts/{storefront_oid}/files/download | Read a storefront file's raw bytes
|
|
525
527
|
*UltracartClient::SfvbApi* | [**dry_run_sfvb_item_attribute_batch**](docs/SfvbApi.md#dry_run_sfvb_item_attribute_batch) | **POST** /sfvb/storefronts/{storefront_oid}/items/attributes/batch/dry_run | Check attribute changes across many items without writing them
|
|
526
528
|
*UltracartClient::SfvbApi* | [**dry_run_sfvb_item_default_page**](docs/SfvbApi.md#dry_run_sfvb_item_default_page) | **POST** /sfvb/storefronts/{storefront_oid}/items/default_page/dry_run | Check moving items' default (canonical) pages
|
|
529
|
+
*UltracartClient::SfvbApi* | [**dry_run_sfvb_item_translation_batch**](docs/SfvbApi.md#dry_run_sfvb_item_translation_batch) | **POST** /sfvb/storefronts/{storefront_oid}/items/translations/batch/dry_run | Check hand translations across many items without storing them
|
|
527
530
|
*UltracartClient::SfvbApi* | [**dry_run_sfvb_redirect_delete**](docs/SfvbApi.md#dry_run_sfvb_redirect_delete) | **POST** /sfvb/storefronts/{storefront_oid}/redirects/delete/dry_run | Check a batch delete of redirect rules without writing it
|
|
528
531
|
*UltracartClient::SfvbApi* | [**dry_run_sfvb_redirect_import**](docs/SfvbApi.md#dry_run_sfvb_redirect_import) | **POST** /sfvb/storefronts/{storefront_oid}/redirects/import/dry_run | Check a redirect import without writing it
|
|
529
532
|
*UltracartClient::SfvbApi* | [**duplicate_sfvb_library_entry**](docs/SfvbApi.md#duplicate_sfvb_library_entry) | **POST** /sfvb/storefronts/{storefront_oid}/library/{library_oid}/duplicate | Copy a library entry into a new private entry
|
|
@@ -595,6 +598,7 @@ Class | Method | HTTP request | Description
|
|
|
595
598
|
*UltracartClient::SfvbApi* | [**get_sfvb_item_preorder_children**](docs/SfvbApi.md#get_sfvb_item_preorder_children) | **GET** /sfvb/storefronts/{storefront_oid}/items/preorder/children | Read the pre-order flag and ETA of a parent item's variations
|
|
596
599
|
*UltracartClient::SfvbApi* | [**get_sfvb_item_pricing**](docs/SfvbApi.md#get_sfvb_item_pricing) | **GET** /sfvb/storefronts/{storefront_oid}/items/pricing | Read what an item charges
|
|
597
600
|
*UltracartClient::SfvbApi* | [**get_sfvb_item_related**](docs/SfvbApi.md#get_sfvb_item_related) | **GET** /sfvb/storefronts/{storefront_oid}/items/related | Read an item's related items
|
|
601
|
+
*UltracartClient::SfvbApi* | [**get_sfvb_item_translations**](docs/SfvbApi.md#get_sfvb_item_translations) | **GET** /sfvb/storefronts/{storefront_oid}/items/translations | Read an item's title and extended description translations
|
|
598
602
|
*UltracartClient::SfvbApi* | [**get_sfvb_item_variations**](docs/SfvbApi.md#get_sfvb_item_variations) | **GET** /sfvb/storefronts/{storefront_oid}/items/variations | Read an item's variations
|
|
599
603
|
*UltracartClient::SfvbApi* | [**get_sfvb_library_entry**](docs/SfvbApi.md#get_sfvb_library_entry) | **GET** /sfvb/storefronts/{storefront_oid}/library/{library_oid} | Read one library entry including its CJSON
|
|
600
604
|
*UltracartClient::SfvbApi* | [**get_sfvb_library_history**](docs/SfvbApi.md#get_sfvb_library_history) | **GET** /sfvb/storefronts/{storefront_oid}/library/{library_oid}/history | List a library entry's published revisions
|
|
@@ -713,6 +717,7 @@ Class | Method | HTTP request | Description
|
|
|
713
717
|
*UltracartClient::SfvbApi* | [**put_sfvb_item_pricing**](docs/SfvbApi.md#put_sfvb_item_pricing) | **PUT** /sfvb/storefronts/{storefront_oid}/items/pricing | Change what an item charges
|
|
714
718
|
*UltracartClient::SfvbApi* | [**put_sfvb_item_related**](docs/SfvbApi.md#put_sfvb_item_related) | **PUT** /sfvb/storefronts/{storefront_oid}/items/related | Replace an item's related items
|
|
715
719
|
*UltracartClient::SfvbApi* | [**put_sfvb_item_seo**](docs/SfvbApi.md#put_sfvb_item_seo) | **PUT** /sfvb/storefronts/{storefront_oid}/items/seo | Change an item's search metadata
|
|
720
|
+
*UltracartClient::SfvbApi* | [**put_sfvb_item_translation**](docs/SfvbApi.md#put_sfvb_item_translation) | **PUT** /sfvb/storefronts/{storefront_oid}/items/translations | Set or remove one hand translation of an item's title or extended description
|
|
716
721
|
*UltracartClient::SfvbApi* | [**put_sfvb_item_variations**](docs/SfvbApi.md#put_sfvb_item_variations) | **PUT** /sfvb/storefronts/{storefront_oid}/items/variations | Change an item's variations
|
|
717
722
|
*UltracartClient::SfvbApi* | [**put_sfvb_menu**](docs/SfvbApi.md#put_sfvb_menu) | **PUT** /sfvb/storefronts/{storefront_oid}/menus/{code} | Replace a store menu's entries
|
|
718
723
|
*UltracartClient::SfvbApi* | [**put_sfvb_page_attributes**](docs/SfvbApi.md#put_sfvb_page_attributes) | **PUT** /sfvb/storefronts/{storefront_oid}/pages/attributes | Change a page's attributes
|
|
@@ -770,6 +775,7 @@ Class | Method | HTTP request | Description
|
|
|
770
775
|
*UltracartClient::SfvbApi* | [**update_sfvb_flow_status**](docs/SfvbApi.md#update_sfvb_flow_status) | **PUT** /sfvb/storefronts/{storefront_oid}/flows/{flow_uuid}/status | Turn a flow on or off
|
|
771
776
|
*UltracartClient::SfvbApi* | [**update_sfvb_item_attribute_batch**](docs/SfvbApi.md#update_sfvb_item_attribute_batch) | **POST** /sfvb/storefronts/{storefront_oid}/items/attributes/batch | Change attributes across many items in one call
|
|
772
777
|
*UltracartClient::SfvbApi* | [**update_sfvb_item_default_page**](docs/SfvbApi.md#update_sfvb_item_default_page) | **POST** /sfvb/storefronts/{storefront_oid}/items/default_page | Move items' default (canonical) pages
|
|
778
|
+
*UltracartClient::SfvbApi* | [**update_sfvb_item_translation_batch**](docs/SfvbApi.md#update_sfvb_item_translation_batch) | **POST** /sfvb/storefronts/{storefront_oid}/items/translations/batch | Store hand translations across many items in one call
|
|
773
779
|
*UltracartClient::SfvbApi* | [**update_sfvb_library_entry**](docs/SfvbApi.md#update_sfvb_library_entry) | **PUT** /sfvb/storefronts/{storefront_oid}/library/{library_oid} | Update a library entry's draft
|
|
774
780
|
*UltracartClient::SfvbApi* | [**update_sfvb_redirect**](docs/SfvbApi.md#update_sfvb_redirect) | **PUT** /sfvb/storefronts/{storefront_oid}/redirects/{redirect_id} | Change a redirect rule
|
|
775
781
|
*UltracartClient::SfvbApi* | [**update_sfvb_search_facets**](docs/SfvbApi.md#update_sfvb_search_facets) | **PUT** /sfvb/storefronts/{storefront_oid}/search/facets | Change the storefront's faceted search configuration
|
|
@@ -1845,6 +1851,7 @@ Class | Method | HTTP request | Description
|
|
|
1845
1851
|
- [UltracartClient::OrderBilling](docs/OrderBilling.md)
|
|
1846
1852
|
- [UltracartClient::OrderBuysafe](docs/OrderBuysafe.md)
|
|
1847
1853
|
- [UltracartClient::OrderByTokenQuery](docs/OrderByTokenQuery.md)
|
|
1854
|
+
- [UltracartClient::OrderCancelRequest](docs/OrderCancelRequest.md)
|
|
1848
1855
|
- [UltracartClient::OrderChannelPartner](docs/OrderChannelPartner.md)
|
|
1849
1856
|
- [UltracartClient::OrderCheckout](docs/OrderCheckout.md)
|
|
1850
1857
|
- [UltracartClient::OrderCoupon](docs/OrderCoupon.md)
|
|
@@ -2210,6 +2217,14 @@ Class | Method | HTTP request | Description
|
|
|
2210
2217
|
- [UltracartClient::SfvbItemSeo](docs/SfvbItemSeo.md)
|
|
2211
2218
|
- [UltracartClient::SfvbItemSeoRequest](docs/SfvbItemSeoRequest.md)
|
|
2212
2219
|
- [UltracartClient::SfvbItemTags](docs/SfvbItemTags.md)
|
|
2220
|
+
- [UltracartClient::SfvbItemTranslation](docs/SfvbItemTranslation.md)
|
|
2221
|
+
- [UltracartClient::SfvbItemTranslationBatchRequest](docs/SfvbItemTranslationBatchRequest.md)
|
|
2222
|
+
- [UltracartClient::SfvbItemTranslationBatchResponse](docs/SfvbItemTranslationBatchResponse.md)
|
|
2223
|
+
- [UltracartClient::SfvbItemTranslationBatchRow](docs/SfvbItemTranslationBatchRow.md)
|
|
2224
|
+
- [UltracartClient::SfvbItemTranslationBatchRowResult](docs/SfvbItemTranslationBatchRowResult.md)
|
|
2225
|
+
- [UltracartClient::SfvbItemTranslationField](docs/SfvbItemTranslationField.md)
|
|
2226
|
+
- [UltracartClient::SfvbItemTranslationWriteRequest](docs/SfvbItemTranslationWriteRequest.md)
|
|
2227
|
+
- [UltracartClient::SfvbItemTranslationsResponse](docs/SfvbItemTranslationsResponse.md)
|
|
2213
2228
|
- [UltracartClient::SfvbItemVariationAxis](docs/SfvbItemVariationAxis.md)
|
|
2214
2229
|
- [UltracartClient::SfvbItemVariationChange](docs/SfvbItemVariationChange.md)
|
|
2215
2230
|
- [UltracartClient::SfvbItemVariationChangeResult](docs/SfvbItemVariationChangeResult.md)
|
|
@@ -2609,6 +2624,8 @@ Not every change is committed to every SDK.
|
|
|
2609
2624
|
|
|
2610
2625
|
| Version | Date | Comments |
|
|
2611
2626
|
| --: | :-: | --- |
|
|
2627
|
+
| 4.1.261 | 11/30/2026 | sfvb internal testing |
|
|
2628
|
+
| 4.1.260 | 11/24/2026 | order api - add sendUpdateBillingEmail and cancelOrderWithOptions, add rotating_transaction_gateway to processPayment request |
|
|
2612
2629
|
| 4.1.259 | 11/24/2026 | sfvb internal testing |
|
|
2613
2630
|
| 4.1.258 | 11/23/2026 | communications - expose the campaign hourly divisor on the settings |
|
|
2614
2631
|
| 4.1.257 | 11/19/2026 | sfvb internal testing |
|
data/docs/FraudApi.md
CHANGED
|
@@ -457,7 +457,7 @@ end
|
|
|
457
457
|
|
|
458
458
|
Search fraud rules
|
|
459
459
|
|
|
460
|
-
Searches fraud rules for this merchant account using semantic filter fields. Pagination and sort are passed as query parameters (_limit, _offset, _sort). You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. Results are capped at 10,000 records by ElasticSearch and the warning slot indicates when that cap was hit. Use more selective filters in that case.
|
|
460
|
+
Searches fraud rules for this merchant account using semantic filter fields. Pagination and sort are passed as query parameters (_limit, _offset, _sort). You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. Results are capped at 10,000 records by ElasticSearch and the warning slot indicates when that cap was hit. Use more selective filters in that case. Requests with an _offset of 10,000 or more return 400 Bad Request.
|
|
461
461
|
|
|
462
462
|
|
|
463
463
|
### Examples
|
|
@@ -515,7 +515,7 @@ end
|
|
|
515
515
|
| ---- | ---- | ----------- | ----- |
|
|
516
516
|
| **fraud_rule_search_request** | [**FraudRuleSearchRequest**](FraudRuleSearchRequest.md) | Fraud rule search request | |
|
|
517
517
|
| **_limit** | **Integer** | The maximum number of records to return on this one API call. (Maximum 200) | [optional][default to 100] |
|
|
518
|
-
| **_offset** | **Integer** | Pagination of the record set. Offset is a zero based index. | [optional][default to 0] |
|
|
518
|
+
| **_offset** | **Integer** | Pagination of the record set. Offset is a zero based index. Must be less than 10,000. | [optional][default to 0] |
|
|
519
519
|
| **_sort** | **String** | The sort order of the fraud rules. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional] |
|
|
520
520
|
|
|
521
521
|
### Return type
|
data/docs/OrderApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
9
9
|
| [**assign_to_affiliate**](OrderApi.md#assign_to_affiliate) | **POST** /order/orders/{order_id}/assignToAffiliate | Assigns an order to an affiliate |
|
|
10
10
|
| [**block_refund_on_order**](OrderApi.md#block_refund_on_order) | **GET** /order/orders/{order_id}/refund_block | Set a refund block on an order |
|
|
11
11
|
| [**cancel_order**](OrderApi.md#cancel_order) | **POST** /order/orders/{order_id}/cancel | Cancel an order |
|
|
12
|
+
| [**cancel_order_with_options**](OrderApi.md#cancel_order_with_options) | **POST** /order/orders/{order_id}/cancel_with_options | Cancel an order with options |
|
|
12
13
|
| [**delete_order**](OrderApi.md#delete_order) | **DELETE** /order/orders/{order_id} | Delete an order |
|
|
13
14
|
| [**duplicate_order**](OrderApi.md#duplicate_order) | **POST** /order/orders/{order_id}/duplicate | Duplicate an order |
|
|
14
15
|
| [**format**](OrderApi.md#format) | **POST** /order/orders/{order_id}/format | Format order |
|
|
@@ -42,6 +43,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
42
43
|
| [**replacement**](OrderApi.md#replacement) | **POST** /order/orders/{order_id}/replacement | Replacement order |
|
|
43
44
|
| [**resend_receipt**](OrderApi.md#resend_receipt) | **POST** /order/orders/{order_id}/resend_receipt | Resend receipt |
|
|
44
45
|
| [**resend_shipment_confirmation**](OrderApi.md#resend_shipment_confirmation) | **POST** /order/orders/{order_id}/resend_shipment_confirmation | Resend shipment confirmation |
|
|
46
|
+
| [**send_update_billing_email**](OrderApi.md#send_update_billing_email) | **POST** /order/orders/{order_id}/send_update_billing_email | Send update billing email |
|
|
45
47
|
| [**unblock_refund_on_order**](OrderApi.md#unblock_refund_on_order) | **GET** /order/orders/{order_id}/refund_unblock | Remove a refund block on an order |
|
|
46
48
|
| [**update_accounts_receivable_retry_config**](OrderApi.md#update_accounts_receivable_retry_config) | **POST** /order/accountsReceivableRetryConfig | Update A/R Retry Configuration |
|
|
47
49
|
| [**update_order**](OrderApi.md#update_order) | **PUT** /order/orders/{order_id} | Update an order |
|
|
@@ -425,6 +427,106 @@ end
|
|
|
425
427
|
- **Accept**: application/json
|
|
426
428
|
|
|
427
429
|
|
|
430
|
+
## cancel_order_with_options
|
|
431
|
+
|
|
432
|
+
> <BaseResponse> cancel_order_with_options(order_id, cancel_request)
|
|
433
|
+
|
|
434
|
+
Cancel an order with options
|
|
435
|
+
|
|
436
|
+
Cancel an order on the UltraCart account, with the options in the request body. If the success flag is false, then consult the error message for why it failed. An empty request body behaves the same as cancelOrder.
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
### Examples
|
|
440
|
+
|
|
441
|
+
```ruby
|
|
442
|
+
require 'ultracart_api'
|
|
443
|
+
require_relative '../constants'
|
|
444
|
+
|
|
445
|
+
# OrderApi.cancel_order_with_options() cancels an order, the same as cancel_order(), with the options in a request body.
|
|
446
|
+
# An empty OrderCancelRequest behaves exactly like cancel_order().
|
|
447
|
+
#
|
|
448
|
+
# Options:
|
|
449
|
+
# - reject_reason: stored on the order when it is rejected without a refund (Accounts Receivable, Pre-order,
|
|
450
|
+
# Quote or Hold), the same as the reject reason in the backend. Reasons are configured at
|
|
451
|
+
# Home -> Configuration -> Order Management -> Refund/Reject Reasons
|
|
452
|
+
# - lock_self_ship_orders: prevent the order from shipping during the refund process
|
|
453
|
+
# - skip_refund_and_hold: skip the refund and move the order to the Held Orders department
|
|
454
|
+
#
|
|
455
|
+
# Rejecting an order in Accounts Receivable:
|
|
456
|
+
# - The customer is not emailed.
|
|
457
|
+
# - A rejected auto order rebill leaves the auto order active, so it rebills on its next cycle.
|
|
458
|
+
# - Rejecting the auto order's original order cancels the auto order, because the first payment never succeeded.
|
|
459
|
+
#
|
|
460
|
+
# Restrictions (the same as cancel_order()):
|
|
461
|
+
# 1) Cannot cancel completed orders
|
|
462
|
+
# 2) Cannot cancel already rejected orders
|
|
463
|
+
# 3) Cannot cancel orders transmitted to fulfillment center
|
|
464
|
+
# 4) Cannot cancel orders queued for distribution center transmission
|
|
465
|
+
#
|
|
466
|
+
# Requires SDK 4.1.260 or later.
|
|
467
|
+
|
|
468
|
+
order_api = UltracartClient::OrderApi.new_using_api_key(Constants::API_KEY)
|
|
469
|
+
|
|
470
|
+
order_id = 'DEMO-0009104436'
|
|
471
|
+
|
|
472
|
+
begin
|
|
473
|
+
cancel_request = UltracartClient::OrderCancelRequest.new(reject_reason: 'Card declined')
|
|
474
|
+
|
|
475
|
+
api_response = order_api.cancel_order_with_options(order_id, cancel_request)
|
|
476
|
+
|
|
477
|
+
if api_response.error
|
|
478
|
+
puts "Developer Message: #{api_response.error.developer_message}"
|
|
479
|
+
puts "User Message: #{api_response.error.user_message}"
|
|
480
|
+
puts 'Order could not be canceled.'
|
|
481
|
+
exit
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
puts 'Order was canceled successfully.' if api_response.success
|
|
485
|
+
rescue UltracartClient::ApiError => e
|
|
486
|
+
puts "Order could not be canceled due to an API error: #{e.response_body}"
|
|
487
|
+
end
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
#### Using the cancel_order_with_options_with_http_info variant
|
|
492
|
+
|
|
493
|
+
This returns an Array which contains the response data, status code and headers.
|
|
494
|
+
|
|
495
|
+
> <Array(<BaseResponse>, Integer, Hash)> cancel_order_with_options_with_http_info(order_id, cancel_request)
|
|
496
|
+
|
|
497
|
+
```ruby
|
|
498
|
+
begin
|
|
499
|
+
# Cancel an order with options
|
|
500
|
+
data, status_code, headers = api_instance.cancel_order_with_options_with_http_info(order_id, cancel_request)
|
|
501
|
+
p status_code # => 2xx
|
|
502
|
+
p headers # => { ... }
|
|
503
|
+
p data # => <BaseResponse>
|
|
504
|
+
rescue UltracartClient::ApiError => e
|
|
505
|
+
puts "Error when calling OrderApi->cancel_order_with_options_with_http_info: #{e}"
|
|
506
|
+
end
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
### Parameters
|
|
510
|
+
|
|
511
|
+
| Name | Type | Description | Notes |
|
|
512
|
+
| ---- | ---- | ----------- | ----- |
|
|
513
|
+
| **order_id** | **String** | The order id to cancel. | |
|
|
514
|
+
| **cancel_request** | [**OrderCancelRequest**](OrderCancelRequest.md) | Cancel order options | |
|
|
515
|
+
|
|
516
|
+
### Return type
|
|
517
|
+
|
|
518
|
+
[**BaseResponse**](BaseResponse.md)
|
|
519
|
+
|
|
520
|
+
### Authorization
|
|
521
|
+
|
|
522
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
523
|
+
|
|
524
|
+
### HTTP request headers
|
|
525
|
+
|
|
526
|
+
- **Content-Type**: application/json
|
|
527
|
+
- **Accept**: application/json
|
|
528
|
+
|
|
529
|
+
|
|
428
530
|
## delete_order
|
|
429
531
|
|
|
430
532
|
> delete_order(order_id)
|
|
@@ -3475,6 +3577,95 @@ end
|
|
|
3475
3577
|
- **Accept**: application/json
|
|
3476
3578
|
|
|
3477
3579
|
|
|
3580
|
+
## send_update_billing_email
|
|
3581
|
+
|
|
3582
|
+
> <BaseResponse> send_update_billing_email(order_id)
|
|
3583
|
+
|
|
3584
|
+
Send update billing email
|
|
3585
|
+
|
|
3586
|
+
Queues the update billing email to the customer on an order in Accounts Receivable, the same as the Send Billing Update button. The email is sent within a minute. The request is refused if the merchant has turned off the update billing notification, if a StoreFront communication flow handles unprocessed payments for the order, or if this method already sent the email for the order in the last 24 hours. While the order is less than 7 days old, a reminder is sent every 2 days.
|
|
3587
|
+
|
|
3588
|
+
|
|
3589
|
+
### Examples
|
|
3590
|
+
|
|
3591
|
+
```ruby
|
|
3592
|
+
require 'ultracart_api'
|
|
3593
|
+
require_relative '../constants'
|
|
3594
|
+
|
|
3595
|
+
# OrderApi.send_update_billing_email() emails the customer a link to update their billing information on an order
|
|
3596
|
+
# that is in Accounts Receivable. It is the API version of the "Send Billing Update" button on the
|
|
3597
|
+
# Accounts Receivable Process Payment screen. The email goes out within a minute.
|
|
3598
|
+
#
|
|
3599
|
+
# While the order is less than 7 days old, UltraCart sends a reminder every 2 days after this email.
|
|
3600
|
+
#
|
|
3601
|
+
# The call is refused (HTTP 400, raised as an UltracartClient::ApiError) when:
|
|
3602
|
+
# - the order is not in Accounts Receivable
|
|
3603
|
+
# - the order does not have a valid email address
|
|
3604
|
+
# - the update billing email is turned off for the account
|
|
3605
|
+
# - a StoreFront communication flow handles unprocessed payments for the order (the flow emails the customer instead)
|
|
3606
|
+
# - this method already sent the email for the order in the last 24 hours
|
|
3607
|
+
#
|
|
3608
|
+
# Requires SDK 4.1.260 or later.
|
|
3609
|
+
|
|
3610
|
+
order_api = UltracartClient::OrderApi.new_using_api_key(Constants::API_KEY)
|
|
3611
|
+
|
|
3612
|
+
order_id = 'DEMO-0009104436'
|
|
3613
|
+
|
|
3614
|
+
begin
|
|
3615
|
+
api_response = order_api.send_update_billing_email(order_id)
|
|
3616
|
+
|
|
3617
|
+
if api_response.error
|
|
3618
|
+
puts "Developer Message: #{api_response.error.developer_message}"
|
|
3619
|
+
puts "User Message: #{api_response.error.user_message}"
|
|
3620
|
+
exit
|
|
3621
|
+
end
|
|
3622
|
+
|
|
3623
|
+
puts 'Update billing email was queued.' if api_response.success
|
|
3624
|
+
rescue UltracartClient::ApiError => e
|
|
3625
|
+
# The reason for a refusal is in the response body.
|
|
3626
|
+
puts "Exception when calling OrderApi->send_update_billing_email: #{e.response_body}"
|
|
3627
|
+
end
|
|
3628
|
+
```
|
|
3629
|
+
|
|
3630
|
+
|
|
3631
|
+
#### Using the send_update_billing_email_with_http_info variant
|
|
3632
|
+
|
|
3633
|
+
This returns an Array which contains the response data, status code and headers.
|
|
3634
|
+
|
|
3635
|
+
> <Array(<BaseResponse>, Integer, Hash)> send_update_billing_email_with_http_info(order_id)
|
|
3636
|
+
|
|
3637
|
+
```ruby
|
|
3638
|
+
begin
|
|
3639
|
+
# Send update billing email
|
|
3640
|
+
data, status_code, headers = api_instance.send_update_billing_email_with_http_info(order_id)
|
|
3641
|
+
p status_code # => 2xx
|
|
3642
|
+
p headers # => { ... }
|
|
3643
|
+
p data # => <BaseResponse>
|
|
3644
|
+
rescue UltracartClient::ApiError => e
|
|
3645
|
+
puts "Error when calling OrderApi->send_update_billing_email_with_http_info: #{e}"
|
|
3646
|
+
end
|
|
3647
|
+
```
|
|
3648
|
+
|
|
3649
|
+
### Parameters
|
|
3650
|
+
|
|
3651
|
+
| Name | Type | Description | Notes |
|
|
3652
|
+
| ---- | ---- | ----------- | ----- |
|
|
3653
|
+
| **order_id** | **String** | The order id to send the update billing email for. | |
|
|
3654
|
+
|
|
3655
|
+
### Return type
|
|
3656
|
+
|
|
3657
|
+
[**BaseResponse**](BaseResponse.md)
|
|
3658
|
+
|
|
3659
|
+
### Authorization
|
|
3660
|
+
|
|
3661
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
3662
|
+
|
|
3663
|
+
### HTTP request headers
|
|
3664
|
+
|
|
3665
|
+
- **Content-Type**: Not defined
|
|
3666
|
+
- **Accept**: application/json
|
|
3667
|
+
|
|
3668
|
+
|
|
3478
3669
|
## unblock_refund_on_order
|
|
3479
3670
|
|
|
3480
3671
|
> unblock_refund_on_order(order_id)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::OrderCancelRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **lock_self_ship_orders** | **Boolean** | Flag to prevent a order shipping during a refund process | [optional] |
|
|
8
|
+
| **reject_reason** | **String** | Reason stored on the order when it is rejected without a refund (Accounts Receivable, Pre-order, Quote or Hold), the same as the reject reason in the UI. | [optional] |
|
|
9
|
+
| **skip_refund_and_hold** | **Boolean** | Skip refund and move order to Held Orders department | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ultracart_api'
|
|
15
|
+
|
|
16
|
+
instance = UltracartClient::OrderCancelRequest.new(
|
|
17
|
+
lock_self_ship_orders: null,
|
|
18
|
+
reject_reason: null,
|
|
19
|
+
skip_refund_and_hold: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **amount** | **Float** | Specific amount to bill (optional). If not specified the total of the order is billed. | [optional] |
|
|
8
8
|
| **card_verification_number_token** | **String** | Card verification number token from hosted fields used during credit card transaction processing (optional) | [optional] |
|
|
9
|
+
| **rotating_transaction_gateway_code** | **String** | Rotating transaction gateway code to process the payment through (optional). Must be an active rotating transaction gateway on the account. The charge is attempted on that gateway only, without cascading to other gateways, the same as choosing a gateway on the Accounts Receivable Process Payment screen. | [optional] |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,7 +15,8 @@ require 'ultracart_api'
|
|
|
14
15
|
|
|
15
16
|
instance = UltracartClient::OrderProcessPaymentRequest.new(
|
|
16
17
|
amount: null,
|
|
17
|
-
card_verification_number_token: null
|
|
18
|
+
card_verification_number_token: null,
|
|
19
|
+
rotating_transaction_gateway_code: null
|
|
18
20
|
)
|
|
19
21
|
```
|
|
20
22
|
|