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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -2
  3. data/docs/FraudApi.md +2 -2
  4. data/docs/OrderApi.md +191 -0
  5. data/docs/OrderCancelRequest.md +22 -0
  6. data/docs/OrderProcessPaymentRequest.md +3 -1
  7. data/docs/SfvbApi.md +224 -0
  8. data/docs/SfvbApprovalCreateRequest.md +2 -0
  9. data/docs/SfvbItemTranslation.md +28 -0
  10. data/docs/SfvbItemTranslationBatchRequest.md +20 -0
  11. data/docs/SfvbItemTranslationBatchResponse.md +46 -0
  12. data/docs/SfvbItemTranslationBatchRow.md +28 -0
  13. data/docs/SfvbItemTranslationBatchRowResult.md +34 -0
  14. data/docs/SfvbItemTranslationField.md +22 -0
  15. data/docs/SfvbItemTranslationWriteRequest.md +26 -0
  16. data/docs/SfvbItemTranslationsResponse.md +26 -0
  17. data/lib/ultracart_api/api/fraud_api.rb +4 -4
  18. data/lib/ultracart_api/api/order_api.rb +139 -0
  19. data/lib/ultracart_api/api/sfvb_api.rb +308 -0
  20. data/lib/ultracart_api/models/order_cancel_request.rb +240 -0
  21. data/lib/ultracart_api/models/order_process_payment_request.rb +14 -4
  22. data/lib/ultracart_api/models/sfvb_approval_create_request.rb +15 -3
  23. data/lib/ultracart_api/models/sfvb_item_translation.rb +316 -0
  24. data/lib/ultracart_api/models/sfvb_item_translation_batch_request.rb +232 -0
  25. data/lib/ultracart_api/models/sfvb_item_translation_batch_response.rb +366 -0
  26. data/lib/ultracart_api/models/sfvb_item_translation_batch_row.rb +304 -0
  27. data/lib/ultracart_api/models/sfvb_item_translation_batch_row_result.rb +346 -0
  28. data/lib/ultracart_api/models/sfvb_item_translation_field.rb +276 -0
  29. data/lib/ultracart_api/models/sfvb_item_translation_write_request.rb +294 -0
  30. data/lib/ultracart_api/models/sfvb_item_translations_response.rb +264 -0
  31. data/lib/ultracart_api/version.rb +1 -1
  32. data/lib/ultracart_api.rb +9 -0
  33. metadata +20 -2
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&#39;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&#39;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&lt;SfvbItemTranslationBatchRow&gt;**](SfvbItemTranslationBatchRow.md) | For item.translation_batch, exactly the rows the batch will send - the dry run&#39;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&#39;s translation dialog shows, which a save there copies to shoppers. | [optional] |
8
+ | **editor_text** | **String** | The text the item editor&#39;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&#39; 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&lt;SfvbItemTranslationBatchRow&gt;**](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&lt;String&gt;** | 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&lt;String&gt;** | 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&lt;SfvbItemTranslationBatchRowResult&gt;**](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
+
@@ -0,0 +1,34 @@
1
+ # UltracartClient::SfvbItemTranslationBatchRowResult
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **current_sha256** | **String** | The state of this field and language now. Send it back to apply. | [optional] |
8
+ | **current_source** | **String** | What shoppers see now in this language. | [optional] |
9
+ | **field** | **String** | The field, normalized. | [optional] |
10
+ | **language** | **String** | The language code. | [optional] |
11
+ | **merchant_item_id** | **String** | The item&#39;s merchant item id. | [optional] |
12
+ | **merchant_item_oid** | **Integer** | The item. Absent when not_found. | [optional] |
13
+ | **message** | **String** | Why a row is invalid, skipped, stale, error or deferred. | [optional] |
14
+ | **result** | **String** | change from a dry run, updated after an apply, skipped_hand (a hand translation is there and is never overwritten), stale (changed since the dry run), not_found, invalid, error when it could not be stored, or deferred when the apply ran out of time before reaching it (nothing changed, send it again). | [optional] |
15
+ | **row** | **Integer** | The row&#39;s position in the request, from 1. | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'ultracart_api'
21
+
22
+ instance = UltracartClient::SfvbItemTranslationBatchRowResult.new(
23
+ current_sha256: null,
24
+ current_source: null,
25
+ field: null,
26
+ language: null,
27
+ merchant_item_id: null,
28
+ merchant_item_oid: null,
29
+ message: null,
30
+ result: null,
31
+ row: null
32
+ )
33
+ ```
34
+
@@ -0,0 +1,22 @@
1
+ # UltracartClient::SfvbItemTranslationField
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **english_text** | **String** | The item&#39;s English text for the field, the source of every translation. | [optional] |
8
+ | **field** | **String** | title or extended_description. | [optional] |
9
+ | **translations** | [**Array&lt;SfvbItemTranslation&gt;**](SfvbItemTranslation.md) | One entry per language, in the order of languages. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ultracart_api'
15
+
16
+ instance = UltracartClient::SfvbItemTranslationField.new(
17
+ english_text: null,
18
+ field: null,
19
+ translations: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,26 @@
1
+ # UltracartClient::SfvbItemTranslationWriteRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **field** | **String** | title or extended_description. | [optional] |
8
+ | **language** | **String** | The language code, such as CHI, or its two-letter code. Must be enabled on the storefront. | [optional] |
9
+ | **merchant_item_id** | **String** | The item by its merchant item id. | [optional] |
10
+ | **merchant_item_oid** | **Integer** | The item. Send this or merchant_item_id, not both. | [optional] |
11
+ | **text** | **String** | The hand translation. An empty string removes the translation in both stores so machine translation fills it again. | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ultracart_api'
17
+
18
+ instance = UltracartClient::SfvbItemTranslationWriteRequest.new(
19
+ field: null,
20
+ language: null,
21
+ merchant_item_id: null,
22
+ merchant_item_oid: null,
23
+ text: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,26 @@
1
+ # UltracartClient::SfvbItemTranslationsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **fields** | [**Array&lt;SfvbItemTranslationField&gt;**](SfvbItemTranslationField.md) | title, then extended_description. | [optional] |
8
+ | **hash_sha256** | **String** | Over the English and every reported language of both fields. Send it as If-Match to change a translation. | [optional] |
9
+ | **languages** | **Array&lt;String&gt;** | The languages reported - the storefront&#39;s enabled languages other than English, or the one asked for. | [optional] |
10
+ | **merchant_item_id** | **String** | The item&#39;s merchant item id. | [optional] |
11
+ | **merchant_item_oid** | **Integer** | The item. | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ultracart_api'
17
+
18
+ instance = UltracartClient::SfvbItemTranslationsResponse.new(
19
+ fields: null,
20
+ hash_sha256: null,
21
+ languages: null,
22
+ merchant_item_id: null,
23
+ merchant_item_oid: null
24
+ )
25
+ ```
26
+
@@ -362,11 +362,11 @@ module UltracartClient
362
362
  end
363
363
 
364
364
  # Search fraud rules
365
- # 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.
365
+ # 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.
366
366
  # @param fraud_rule_search_request [FraudRuleSearchRequest] Fraud rule search request
367
367
  # @param [Hash] opts the optional parameters
368
368
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Maximum 200) (default to 100)
369
- # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
369
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. Must be less than 10,000. (default to 0)
370
370
  # @option opts [String] :_sort The sort order of the fraud rules. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
371
371
  # @return [FraudRulesResponse]
372
372
  def search_fraud_rules(fraud_rule_search_request, opts = {})
@@ -375,11 +375,11 @@ module UltracartClient
375
375
  end
376
376
 
377
377
  # Search fraud rules
378
- # 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.
378
+ # 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.
379
379
  # @param fraud_rule_search_request [FraudRuleSearchRequest] Fraud rule search request
380
380
  # @param [Hash] opts the optional parameters
381
381
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Maximum 200) (default to 100)
382
- # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
382
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. Must be less than 10,000. (default to 0)
383
383
  # @option opts [String] :_sort The sort order of the fraud rules. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
384
384
  # @return [Array<(FraudRulesResponse, Integer, Hash)>] FraudRulesResponse data, response status code and response headers
385
385
  def search_fraud_rules_with_http_info(fraud_rule_search_request, opts = {})