ultracart_api 4.1.260 → 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 +15 -2
- data/docs/FraudApi.md +2 -2
- data/docs/OrderApi.md +84 -2
- 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/sfvb_api.rb +308 -0
- 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 +8 -0
- metadata +18 -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:
|
|
@@ -526,6 +526,7 @@ Class | Method | HTTP request | Description
|
|
|
526
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
|
|
527
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
|
|
528
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
|
|
529
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
|
|
530
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
|
|
531
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
|
|
@@ -597,6 +598,7 @@ Class | Method | HTTP request | Description
|
|
|
597
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
|
|
598
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
|
|
599
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
|
|
600
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
|
|
601
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
|
|
602
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
|
|
@@ -715,6 +717,7 @@ Class | Method | HTTP request | Description
|
|
|
715
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
|
|
716
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
|
|
717
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
|
|
718
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
|
|
719
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
|
|
720
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
|
|
@@ -772,6 +775,7 @@ Class | Method | HTTP request | Description
|
|
|
772
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
|
|
773
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
|
|
774
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
|
|
775
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
|
|
776
780
|
*UltracartClient::SfvbApi* | [**update_sfvb_redirect**](docs/SfvbApi.md#update_sfvb_redirect) | **PUT** /sfvb/storefronts/{storefront_oid}/redirects/{redirect_id} | Change a redirect rule
|
|
777
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
|
|
@@ -2213,6 +2217,14 @@ Class | Method | HTTP request | Description
|
|
|
2213
2217
|
- [UltracartClient::SfvbItemSeo](docs/SfvbItemSeo.md)
|
|
2214
2218
|
- [UltracartClient::SfvbItemSeoRequest](docs/SfvbItemSeoRequest.md)
|
|
2215
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)
|
|
2216
2228
|
- [UltracartClient::SfvbItemVariationAxis](docs/SfvbItemVariationAxis.md)
|
|
2217
2229
|
- [UltracartClient::SfvbItemVariationChange](docs/SfvbItemVariationChange.md)
|
|
2218
2230
|
- [UltracartClient::SfvbItemVariationChangeResult](docs/SfvbItemVariationChangeResult.md)
|
|
@@ -2612,6 +2624,7 @@ Not every change is committed to every SDK.
|
|
|
2612
2624
|
|
|
2613
2625
|
| Version | Date | Comments |
|
|
2614
2626
|
| --: | :-: | --- |
|
|
2627
|
+
| 4.1.261 | 11/30/2026 | sfvb internal testing |
|
|
2615
2628
|
| 4.1.260 | 11/24/2026 | order api - add sendUpdateBillingEmail and cancelOrderWithOptions, add rotating_transaction_gateway to processPayment request |
|
|
2616
2629
|
| 4.1.259 | 11/24/2026 | sfvb internal testing |
|
|
2617
2630
|
| 4.1.258 | 11/23/2026 | communications - expose the campaign hourly divisor on the settings |
|
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
|
@@ -438,8 +438,54 @@ Cancel an order on the UltraCart account, with the options in the request body.
|
|
|
438
438
|
|
|
439
439
|
### Examples
|
|
440
440
|
|
|
441
|
+
```ruby
|
|
442
|
+
require 'ultracart_api'
|
|
443
|
+
require_relative '../constants'
|
|
441
444
|
|
|
442
|
-
(
|
|
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
|
+
```
|
|
443
489
|
|
|
444
490
|
|
|
445
491
|
#### Using the cancel_order_with_options_with_http_info variant
|
|
@@ -3542,8 +3588,44 @@ Queues the update billing email to the customer on an order in Accounts Receivab
|
|
|
3542
3588
|
|
|
3543
3589
|
### Examples
|
|
3544
3590
|
|
|
3591
|
+
```ruby
|
|
3592
|
+
require 'ultracart_api'
|
|
3593
|
+
require_relative '../constants'
|
|
3545
3594
|
|
|
3546
|
-
(
|
|
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
|
+
```
|
|
3547
3629
|
|
|
3548
3630
|
|
|
3549
3631
|
#### Using the send_update_billing_email_with_http_info variant
|
data/docs/SfvbApi.md
CHANGED
|
@@ -52,6 +52,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
52
52
|
| [**download_sfvb_file**](SfvbApi.md#download_sfvb_file) | **GET** /sfvb/storefronts/{storefront_oid}/files/download | Read a storefront file's raw bytes |
|
|
53
53
|
| [**dry_run_sfvb_item_attribute_batch**](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 |
|
|
54
54
|
| [**dry_run_sfvb_item_default_page**](SfvbApi.md#dry_run_sfvb_item_default_page) | **POST** /sfvb/storefronts/{storefront_oid}/items/default_page/dry_run | Check moving items' default (canonical) pages |
|
|
55
|
+
| [**dry_run_sfvb_item_translation_batch**](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 |
|
|
55
56
|
| [**dry_run_sfvb_redirect_delete**](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 |
|
|
56
57
|
| [**dry_run_sfvb_redirect_import**](SfvbApi.md#dry_run_sfvb_redirect_import) | **POST** /sfvb/storefronts/{storefront_oid}/redirects/import/dry_run | Check a redirect import without writing it |
|
|
57
58
|
| [**duplicate_sfvb_library_entry**](SfvbApi.md#duplicate_sfvb_library_entry) | **POST** /sfvb/storefronts/{storefront_oid}/library/{library_oid}/duplicate | Copy a library entry into a new private entry |
|
|
@@ -123,6 +124,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
123
124
|
| [**get_sfvb_item_preorder_children**](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 |
|
|
124
125
|
| [**get_sfvb_item_pricing**](SfvbApi.md#get_sfvb_item_pricing) | **GET** /sfvb/storefronts/{storefront_oid}/items/pricing | Read what an item charges |
|
|
125
126
|
| [**get_sfvb_item_related**](SfvbApi.md#get_sfvb_item_related) | **GET** /sfvb/storefronts/{storefront_oid}/items/related | Read an item's related items |
|
|
127
|
+
| [**get_sfvb_item_translations**](SfvbApi.md#get_sfvb_item_translations) | **GET** /sfvb/storefronts/{storefront_oid}/items/translations | Read an item's title and extended description translations |
|
|
126
128
|
| [**get_sfvb_item_variations**](SfvbApi.md#get_sfvb_item_variations) | **GET** /sfvb/storefronts/{storefront_oid}/items/variations | Read an item's variations |
|
|
127
129
|
| [**get_sfvb_library_entry**](SfvbApi.md#get_sfvb_library_entry) | **GET** /sfvb/storefronts/{storefront_oid}/library/{library_oid} | Read one library entry including its CJSON |
|
|
128
130
|
| [**get_sfvb_library_history**](SfvbApi.md#get_sfvb_library_history) | **GET** /sfvb/storefronts/{storefront_oid}/library/{library_oid}/history | List a library entry's published revisions |
|
|
@@ -241,6 +243,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
241
243
|
| [**put_sfvb_item_pricing**](SfvbApi.md#put_sfvb_item_pricing) | **PUT** /sfvb/storefronts/{storefront_oid}/items/pricing | Change what an item charges |
|
|
242
244
|
| [**put_sfvb_item_related**](SfvbApi.md#put_sfvb_item_related) | **PUT** /sfvb/storefronts/{storefront_oid}/items/related | Replace an item's related items |
|
|
243
245
|
| [**put_sfvb_item_seo**](SfvbApi.md#put_sfvb_item_seo) | **PUT** /sfvb/storefronts/{storefront_oid}/items/seo | Change an item's search metadata |
|
|
246
|
+
| [**put_sfvb_item_translation**](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 |
|
|
244
247
|
| [**put_sfvb_item_variations**](SfvbApi.md#put_sfvb_item_variations) | **PUT** /sfvb/storefronts/{storefront_oid}/items/variations | Change an item's variations |
|
|
245
248
|
| [**put_sfvb_menu**](SfvbApi.md#put_sfvb_menu) | **PUT** /sfvb/storefronts/{storefront_oid}/menus/{code} | Replace a store menu's entries |
|
|
246
249
|
| [**put_sfvb_page_attributes**](SfvbApi.md#put_sfvb_page_attributes) | **PUT** /sfvb/storefronts/{storefront_oid}/pages/attributes | Change a page's attributes |
|
|
@@ -298,6 +301,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
298
301
|
| [**update_sfvb_flow_status**](SfvbApi.md#update_sfvb_flow_status) | **PUT** /sfvb/storefronts/{storefront_oid}/flows/{flow_uuid}/status | Turn a flow on or off |
|
|
299
302
|
| [**update_sfvb_item_attribute_batch**](SfvbApi.md#update_sfvb_item_attribute_batch) | **POST** /sfvb/storefronts/{storefront_oid}/items/attributes/batch | Change attributes across many items in one call |
|
|
300
303
|
| [**update_sfvb_item_default_page**](SfvbApi.md#update_sfvb_item_default_page) | **POST** /sfvb/storefronts/{storefront_oid}/items/default_page | Move items' default (canonical) pages |
|
|
304
|
+
| [**update_sfvb_item_translation_batch**](SfvbApi.md#update_sfvb_item_translation_batch) | **POST** /sfvb/storefronts/{storefront_oid}/items/translations/batch | Store hand translations across many items in one call |
|
|
301
305
|
| [**update_sfvb_library_entry**](SfvbApi.md#update_sfvb_library_entry) | **PUT** /sfvb/storefronts/{storefront_oid}/library/{library_oid} | Update a library entry's draft |
|
|
302
306
|
| [**update_sfvb_redirect**](SfvbApi.md#update_sfvb_redirect) | **PUT** /sfvb/storefronts/{storefront_oid}/redirects/{redirect_id} | Change a redirect rule |
|
|
303
307
|
| [**update_sfvb_search_facets**](SfvbApi.md#update_sfvb_search_facets) | **PUT** /sfvb/storefronts/{storefront_oid}/search/facets | Change the storefront's faceted search configuration |
|
|
@@ -2945,6 +2949,60 @@ end
|
|
|
2945
2949
|
- **Accept**: application/json
|
|
2946
2950
|
|
|
2947
2951
|
|
|
2952
|
+
## dry_run_sfvb_item_translation_batch
|
|
2953
|
+
|
|
2954
|
+
> <SfvbItemTranslationBatchResponse> dry_run_sfvb_item_translation_batch(storefront_oid, item_translation_batch_request)
|
|
2955
|
+
|
|
2956
|
+
Check hand translations across many items without storing them
|
|
2957
|
+
|
|
2958
|
+
Checks up to 100 rows on up to 25 items and answers each as change, skipped_hand (a hand translation is already there, in the store shoppers see or in the item editor's), not_found or invalid, with what shoppers see now and a current_sha256, plus a plan_hash over the change rows. Stores nothing. A translation belongs to the item, so it shows on every storefront of the account that renders the item; the storefront in the path only decides which languages are enabled.
|
|
2959
|
+
|
|
2960
|
+
|
|
2961
|
+
### Examples
|
|
2962
|
+
|
|
2963
|
+
|
|
2964
|
+
(No example for this operation).
|
|
2965
|
+
|
|
2966
|
+
|
|
2967
|
+
#### Using the dry_run_sfvb_item_translation_batch_with_http_info variant
|
|
2968
|
+
|
|
2969
|
+
This returns an Array which contains the response data, status code and headers.
|
|
2970
|
+
|
|
2971
|
+
> <Array(<SfvbItemTranslationBatchResponse>, Integer, Hash)> dry_run_sfvb_item_translation_batch_with_http_info(storefront_oid, item_translation_batch_request)
|
|
2972
|
+
|
|
2973
|
+
```ruby
|
|
2974
|
+
begin
|
|
2975
|
+
# Check hand translations across many items without storing them
|
|
2976
|
+
data, status_code, headers = api_instance.dry_run_sfvb_item_translation_batch_with_http_info(storefront_oid, item_translation_batch_request)
|
|
2977
|
+
p status_code # => 2xx
|
|
2978
|
+
p headers # => { ... }
|
|
2979
|
+
p data # => <SfvbItemTranslationBatchResponse>
|
|
2980
|
+
rescue UltracartClient::ApiError => e
|
|
2981
|
+
puts "Error when calling SfvbApi->dry_run_sfvb_item_translation_batch_with_http_info: #{e}"
|
|
2982
|
+
end
|
|
2983
|
+
```
|
|
2984
|
+
|
|
2985
|
+
### Parameters
|
|
2986
|
+
|
|
2987
|
+
| Name | Type | Description | Notes |
|
|
2988
|
+
| ---- | ---- | ----------- | ----- |
|
|
2989
|
+
| **storefront_oid** | **Integer** | | |
|
|
2990
|
+
| **item_translation_batch_request** | [**SfvbItemTranslationBatchRequest**](SfvbItemTranslationBatchRequest.md) | The rows | |
|
|
2991
|
+
|
|
2992
|
+
### Return type
|
|
2993
|
+
|
|
2994
|
+
[**SfvbItemTranslationBatchResponse**](SfvbItemTranslationBatchResponse.md)
|
|
2995
|
+
|
|
2996
|
+
### Authorization
|
|
2997
|
+
|
|
2998
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
2999
|
+
|
|
3000
|
+
### HTTP request headers
|
|
3001
|
+
|
|
3002
|
+
- **Content-Type**: application/json; charset=UTF-8
|
|
3003
|
+
- **Accept**: application/json
|
|
3004
|
+
|
|
3005
|
+
|
|
2948
3006
|
## dry_run_sfvb_redirect_delete
|
|
2949
3007
|
|
|
2950
3008
|
> <SfvbRedirectDeleteResponse> dry_run_sfvb_redirect_delete(storefront_oid, redirect_delete_request)
|
|
@@ -6784,6 +6842,62 @@ end
|
|
|
6784
6842
|
- **Accept**: application/json
|
|
6785
6843
|
|
|
6786
6844
|
|
|
6845
|
+
## get_sfvb_item_translations
|
|
6846
|
+
|
|
6847
|
+
> <SfvbItemTranslationsResponse> get_sfvb_item_translations(storefront_oid, opts)
|
|
6848
|
+
|
|
6849
|
+
Read an item's title and extended description translations
|
|
6850
|
+
|
|
6851
|
+
For each of the two fields, the English and, per language enabled on the storefront (or the one asked for), what shoppers see (hand, machine, pending or none), what the item editor's translation dialog shows, and whether a hand translation is there, which a batch never overwrites. hash_sha256 is the If-Match for a change. Address by merchant_item_id or merchant_item_oid. A translation belongs to the item, so it shows on every storefront of the account that renders the item; the storefront in the path only decides which languages are enabled.
|
|
6852
|
+
|
|
6853
|
+
|
|
6854
|
+
### Examples
|
|
6855
|
+
|
|
6856
|
+
|
|
6857
|
+
(No example for this operation).
|
|
6858
|
+
|
|
6859
|
+
|
|
6860
|
+
#### Using the get_sfvb_item_translations_with_http_info variant
|
|
6861
|
+
|
|
6862
|
+
This returns an Array which contains the response data, status code and headers.
|
|
6863
|
+
|
|
6864
|
+
> <Array(<SfvbItemTranslationsResponse>, Integer, Hash)> get_sfvb_item_translations_with_http_info(storefront_oid, opts)
|
|
6865
|
+
|
|
6866
|
+
```ruby
|
|
6867
|
+
begin
|
|
6868
|
+
# Read an item's title and extended description translations
|
|
6869
|
+
data, status_code, headers = api_instance.get_sfvb_item_translations_with_http_info(storefront_oid, opts)
|
|
6870
|
+
p status_code # => 2xx
|
|
6871
|
+
p headers # => { ... }
|
|
6872
|
+
p data # => <SfvbItemTranslationsResponse>
|
|
6873
|
+
rescue UltracartClient::ApiError => e
|
|
6874
|
+
puts "Error when calling SfvbApi->get_sfvb_item_translations_with_http_info: #{e}"
|
|
6875
|
+
end
|
|
6876
|
+
```
|
|
6877
|
+
|
|
6878
|
+
### Parameters
|
|
6879
|
+
|
|
6880
|
+
| Name | Type | Description | Notes |
|
|
6881
|
+
| ---- | ---- | ----------- | ----- |
|
|
6882
|
+
| **storefront_oid** | **Integer** | | |
|
|
6883
|
+
| **merchant_item_id** | **String** | | [optional] |
|
|
6884
|
+
| **merchant_item_oid** | **Integer** | | [optional] |
|
|
6885
|
+
| **language** | **String** | | [optional] |
|
|
6886
|
+
|
|
6887
|
+
### Return type
|
|
6888
|
+
|
|
6889
|
+
[**SfvbItemTranslationsResponse**](SfvbItemTranslationsResponse.md)
|
|
6890
|
+
|
|
6891
|
+
### Authorization
|
|
6892
|
+
|
|
6893
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
6894
|
+
|
|
6895
|
+
### HTTP request headers
|
|
6896
|
+
|
|
6897
|
+
- **Content-Type**: Not defined
|
|
6898
|
+
- **Accept**: application/json
|
|
6899
|
+
|
|
6900
|
+
|
|
6787
6901
|
## get_sfvb_item_variations
|
|
6788
6902
|
|
|
6789
6903
|
> <SfvbItemVariations> get_sfvb_item_variations(storefront_oid, opts)
|
|
@@ -13240,6 +13354,61 @@ end
|
|
|
13240
13354
|
- **Accept**: application/json
|
|
13241
13355
|
|
|
13242
13356
|
|
|
13357
|
+
## put_sfvb_item_translation
|
|
13358
|
+
|
|
13359
|
+
> <SfvbItemTranslationsResponse> put_sfvb_item_translation(storefront_oid, if_match, item_translation_write_request)
|
|
13360
|
+
|
|
13361
|
+
Set or remove one hand translation of an item's title or extended description
|
|
13362
|
+
|
|
13363
|
+
Stores the text as a hand translation in the given language, the same way the item editor's translation dialog saves, so the dialog shows it afterwards. An empty text removes the translation so machine translation fills it again. The language must be enabled on the storefront. The text gets the HTML safety check. Shoppers see it at once. A translation belongs to the item, so it shows on every storefront of the account that renders the item; the storefront in the path only decides which languages are enabled. Needs Edit Items and sfvb_publish.
|
|
13364
|
+
|
|
13365
|
+
|
|
13366
|
+
### Examples
|
|
13367
|
+
|
|
13368
|
+
|
|
13369
|
+
(No example for this operation).
|
|
13370
|
+
|
|
13371
|
+
|
|
13372
|
+
#### Using the put_sfvb_item_translation_with_http_info variant
|
|
13373
|
+
|
|
13374
|
+
This returns an Array which contains the response data, status code and headers.
|
|
13375
|
+
|
|
13376
|
+
> <Array(<SfvbItemTranslationsResponse>, Integer, Hash)> put_sfvb_item_translation_with_http_info(storefront_oid, if_match, item_translation_write_request)
|
|
13377
|
+
|
|
13378
|
+
```ruby
|
|
13379
|
+
begin
|
|
13380
|
+
# Set or remove one hand translation of an item's title or extended description
|
|
13381
|
+
data, status_code, headers = api_instance.put_sfvb_item_translation_with_http_info(storefront_oid, if_match, item_translation_write_request)
|
|
13382
|
+
p status_code # => 2xx
|
|
13383
|
+
p headers # => { ... }
|
|
13384
|
+
p data # => <SfvbItemTranslationsResponse>
|
|
13385
|
+
rescue UltracartClient::ApiError => e
|
|
13386
|
+
puts "Error when calling SfvbApi->put_sfvb_item_translation_with_http_info: #{e}"
|
|
13387
|
+
end
|
|
13388
|
+
```
|
|
13389
|
+
|
|
13390
|
+
### Parameters
|
|
13391
|
+
|
|
13392
|
+
| Name | Type | Description | Notes |
|
|
13393
|
+
| ---- | ---- | ----------- | ----- |
|
|
13394
|
+
| **storefront_oid** | **Integer** | | |
|
|
13395
|
+
| **if_match** | **String** | hash_sha256 from the last read of the item's translations. Required; 428 when absent, 412 when stale. | |
|
|
13396
|
+
| **item_translation_write_request** | [**SfvbItemTranslationWriteRequest**](SfvbItemTranslationWriteRequest.md) | The translation | |
|
|
13397
|
+
|
|
13398
|
+
### Return type
|
|
13399
|
+
|
|
13400
|
+
[**SfvbItemTranslationsResponse**](SfvbItemTranslationsResponse.md)
|
|
13401
|
+
|
|
13402
|
+
### Authorization
|
|
13403
|
+
|
|
13404
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
13405
|
+
|
|
13406
|
+
### HTTP request headers
|
|
13407
|
+
|
|
13408
|
+
- **Content-Type**: application/json; charset=UTF-8
|
|
13409
|
+
- **Accept**: application/json
|
|
13410
|
+
|
|
13411
|
+
|
|
13243
13412
|
## put_sfvb_item_variations
|
|
13244
13413
|
|
|
13245
13414
|
> <SfvbItemVariationsResponse> put_sfvb_item_variations(storefront_oid, if_match, item_variations_request, opts)
|
|
@@ -16388,6 +16557,61 @@ end
|
|
|
16388
16557
|
- **Accept**: application/json
|
|
16389
16558
|
|
|
16390
16559
|
|
|
16560
|
+
## update_sfvb_item_translation_batch
|
|
16561
|
+
|
|
16562
|
+
> <SfvbItemTranslationBatchResponse> update_sfvb_item_translation_batch(storefront_oid, item_translation_batch_request, opts)
|
|
16563
|
+
|
|
16564
|
+
Store hand translations across many items in one call
|
|
16565
|
+
|
|
16566
|
+
Stores exactly the change rows of a dry run, given its plan_hash, each with its merchant_item_oid and current_sha256, the same way the item editor's translation dialog saves. A row whose field gained a hand translation since the dry run is skipped, never overwritten, and one that changed otherwise is skipped as stale. A row that cannot be stored does not stop the others. An apply stops starting new writes after about 40 seconds and answers the rows it did not reach as deferred, unchanged, to send again as a new batch. A translation belongs to the item, so it shows on every storefront of the account that renders the item; the storefront in the path only decides which languages are enabled. Needs Edit Items, sfvb_publish and the approval of the person who signed in the CLI, an approved item.translation_batch request for exactly these rows in the Approval-Id header.
|
|
16567
|
+
|
|
16568
|
+
|
|
16569
|
+
### Examples
|
|
16570
|
+
|
|
16571
|
+
|
|
16572
|
+
(No example for this operation).
|
|
16573
|
+
|
|
16574
|
+
|
|
16575
|
+
#### Using the update_sfvb_item_translation_batch_with_http_info variant
|
|
16576
|
+
|
|
16577
|
+
This returns an Array which contains the response data, status code and headers.
|
|
16578
|
+
|
|
16579
|
+
> <Array(<SfvbItemTranslationBatchResponse>, Integer, Hash)> update_sfvb_item_translation_batch_with_http_info(storefront_oid, item_translation_batch_request, opts)
|
|
16580
|
+
|
|
16581
|
+
```ruby
|
|
16582
|
+
begin
|
|
16583
|
+
# Store hand translations across many items in one call
|
|
16584
|
+
data, status_code, headers = api_instance.update_sfvb_item_translation_batch_with_http_info(storefront_oid, item_translation_batch_request, opts)
|
|
16585
|
+
p status_code # => 2xx
|
|
16586
|
+
p headers # => { ... }
|
|
16587
|
+
p data # => <SfvbItemTranslationBatchResponse>
|
|
16588
|
+
rescue UltracartClient::ApiError => e
|
|
16589
|
+
puts "Error when calling SfvbApi->update_sfvb_item_translation_batch_with_http_info: #{e}"
|
|
16590
|
+
end
|
|
16591
|
+
```
|
|
16592
|
+
|
|
16593
|
+
### Parameters
|
|
16594
|
+
|
|
16595
|
+
| Name | Type | Description | Notes |
|
|
16596
|
+
| ---- | ---- | ----------- | ----- |
|
|
16597
|
+
| **storefront_oid** | **Integer** | | |
|
|
16598
|
+
| **item_translation_batch_request** | [**SfvbItemTranslationBatchRequest**](SfvbItemTranslationBatchRequest.md) | The dry run's change rows and plan_hash | |
|
|
16599
|
+
| **approval_id** | **String** | The approval_id of an approved item.translation_batch request for exactly these rows. Required. See POST /sfvb/approvals. | [optional] |
|
|
16600
|
+
|
|
16601
|
+
### Return type
|
|
16602
|
+
|
|
16603
|
+
[**SfvbItemTranslationBatchResponse**](SfvbItemTranslationBatchResponse.md)
|
|
16604
|
+
|
|
16605
|
+
### Authorization
|
|
16606
|
+
|
|
16607
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
16608
|
+
|
|
16609
|
+
### HTTP request headers
|
|
16610
|
+
|
|
16611
|
+
- **Content-Type**: application/json; charset=UTF-8
|
|
16612
|
+
- **Accept**: application/json
|
|
16613
|
+
|
|
16614
|
+
|
|
16391
16615
|
## update_sfvb_library_entry
|
|
16392
16616
|
|
|
16393
16617
|
> <SfvbLibraryEntry> update_sfvb_library_entry(storefront_oid, library_oid, if_match, library_entry)
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
| **item_preorder** | [**SfvbItemPreorderRequest**](SfvbItemPreorderRequest.md) | | [optional] |
|
|
18
18
|
| **item_preorder_children** | [**SfvbItemPreorderChildrenRequest**](SfvbItemPreorderChildrenRequest.md) | | [optional] |
|
|
19
19
|
| **item_pricing** | [**SfvbItemPricingRequest**](SfvbItemPricingRequest.md) | | [optional] |
|
|
20
|
+
| **item_translation_rows** | [**Array<SfvbItemTranslationBatchRow>**](SfvbItemTranslationBatchRow.md) | For item.translation_batch, exactly the rows the batch will send - the dry run's change rows, each with merchant_item_oid, field, language, text and current_sha256. UltraCart keeps only their hash. | [optional] |
|
|
20
21
|
| **item_variations** | [**SfvbItemVariationsRequest**](SfvbItemVariationsRequest.md) | | [optional] |
|
|
21
22
|
| **params** | [**SfvbApprovalParams**](SfvbApprovalParams.md) | | [optional] |
|
|
22
23
|
| **postcard_test_mail** | [**SfvbCommsTestPostcardRequest**](SfvbCommsTestPostcardRequest.md) | | [optional] |
|
|
@@ -47,6 +48,7 @@ instance = UltracartClient::SfvbApprovalCreateRequest.new(
|
|
|
47
48
|
item_preorder: null,
|
|
48
49
|
item_preorder_children: null,
|
|
49
50
|
item_pricing: null,
|
|
51
|
+
item_translation_rows: null,
|
|
50
52
|
item_variations: null,
|
|
51
53
|
params: null,
|
|
52
54
|
postcard_test_mail: null,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# UltracartClient::SfvbItemTranslation
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **editor_source** | **String** | What the item editor's translation dialog shows, which a save there copies to shoppers. | [optional] |
|
|
8
|
+
| **editor_text** | **String** | The text the item editor's translation dialog shows. | [optional] |
|
|
9
|
+
| **hand_protected** | **Boolean** | True when either store holds a hand translation. A batch skips this field and language. | [optional] |
|
|
10
|
+
| **language** | **String** | The three-letter language code, such as CHI or JPN. | [optional] |
|
|
11
|
+
| **source** | **String** | Where shoppers' text comes from now. | [optional] |
|
|
12
|
+
| **text** | **String** | The text shoppers see in this language. Absent when pending or none. | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'ultracart_api'
|
|
18
|
+
|
|
19
|
+
instance = UltracartClient::SfvbItemTranslation.new(
|
|
20
|
+
editor_source: null,
|
|
21
|
+
editor_text: null,
|
|
22
|
+
hand_protected: null,
|
|
23
|
+
language: null,
|
|
24
|
+
source: null,
|
|
25
|
+
text: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UltracartClient::SfvbItemTranslationBatchRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **plan_hash** | **String** | From the dry run. Required to apply, with exactly the rows the dry run answered as change. | [optional] |
|
|
8
|
+
| **rows** | [**Array<SfvbItemTranslationBatchRow>**](SfvbItemTranslationBatchRow.md) | Up to 100 rows on up to 25 items. Each item, field and language at most once. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'ultracart_api'
|
|
14
|
+
|
|
15
|
+
instance = UltracartClient::SfvbItemTranslationBatchRequest.new(
|
|
16
|
+
plan_hash: null,
|
|
17
|
+
rows: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# UltracartClient::SfvbItemTranslationBatchResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **applied** | **Boolean** | True after an apply. | [optional] |
|
|
8
|
+
| **change** | **Integer** | Rows that would be stored, from a dry run. | [optional] |
|
|
9
|
+
| **deferred** | **Integer** | Rows the apply ran out of time for. Nothing about them changed; send them again as a new batch. | [optional] |
|
|
10
|
+
| **error** | **Integer** | Rows that could not be stored, after an apply. | [optional] |
|
|
11
|
+
| **fields** | **Array<String>** | The fields of the rows that would be stored, or were. | [optional] |
|
|
12
|
+
| **invalid** | **Integer** | Rows refused by the checks. | [optional] |
|
|
13
|
+
| **item_count** | **Integer** | Distinct items with at least one row that would be stored, or was. | [optional] |
|
|
14
|
+
| **languages** | **Array<String>** | The languages of the rows that would be stored, or were. | [optional] |
|
|
15
|
+
| **not_found** | **Integer** | Rows naming an item that does not exist. | [optional] |
|
|
16
|
+
| **plan_hash** | **String** | The hash of the rows answered as change, with their current_sha256. Apply exactly those rows with this hash. | [optional] |
|
|
17
|
+
| **rows** | [**Array<SfvbItemTranslationBatchRowResult>**](SfvbItemTranslationBatchRowResult.md) | One result per row, in request order. | [optional] |
|
|
18
|
+
| **skipped_hand** | **Integer** | Rows left alone because a hand translation is already there. | [optional] |
|
|
19
|
+
| **stale** | **Integer** | Rows skipped because the translation changed since the dry run. | [optional] |
|
|
20
|
+
| **total** | **Integer** | Rows checked. | [optional] |
|
|
21
|
+
| **updated** | **Integer** | Rows stored, after an apply. | [optional] |
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'ultracart_api'
|
|
27
|
+
|
|
28
|
+
instance = UltracartClient::SfvbItemTranslationBatchResponse.new(
|
|
29
|
+
applied: null,
|
|
30
|
+
change: null,
|
|
31
|
+
deferred: null,
|
|
32
|
+
error: null,
|
|
33
|
+
fields: null,
|
|
34
|
+
invalid: null,
|
|
35
|
+
item_count: null,
|
|
36
|
+
languages: null,
|
|
37
|
+
not_found: null,
|
|
38
|
+
plan_hash: null,
|
|
39
|
+
rows: null,
|
|
40
|
+
skipped_hand: null,
|
|
41
|
+
stale: null,
|
|
42
|
+
total: null,
|
|
43
|
+
updated: null
|
|
44
|
+
)
|
|
45
|
+
```
|
|
46
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# UltracartClient::SfvbItemTranslationBatchRow
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **current_sha256** | **String** | The current_sha256 the dry run answered for this row. Required to apply. | [optional] |
|
|
8
|
+
| **field** | **String** | title or extended_description. | [optional] |
|
|
9
|
+
| **language** | **String** | The language code. To apply, send the code the dry run answered. | [optional] |
|
|
10
|
+
| **merchant_item_id** | **String** | The item by its merchant item id, for a dry run. Send this or merchant_item_oid, not both. | [optional] |
|
|
11
|
+
| **merchant_item_oid** | **Integer** | The item. Required to apply; the dry run answers it for a row that named merchant_item_id. | [optional] |
|
|
12
|
+
| **text** | **String** | The hand translation. Must not be empty. | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'ultracart_api'
|
|
18
|
+
|
|
19
|
+
instance = UltracartClient::SfvbItemTranslationBatchRow.new(
|
|
20
|
+
current_sha256: null,
|
|
21
|
+
field: null,
|
|
22
|
+
language: null,
|
|
23
|
+
merchant_item_id: null,
|
|
24
|
+
merchant_item_oid: null,
|
|
25
|
+
text: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|