ultracart_api 4.1.185 → 4.1.190

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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +33 -2
  3. data/docs/SfvbApi.md +621 -0
  4. data/docs/SfvbI18nGlossary.md +24 -0
  5. data/docs/SfvbI18nGlossaryRequest.md +18 -0
  6. data/docs/SfvbI18nLanguage.md +30 -0
  7. data/docs/SfvbI18nLanguageEnableRequest.md +18 -0
  8. data/docs/SfvbI18nLanguagesResponse.md +32 -0
  9. data/docs/SfvbI18nMachineTranslationsResponse.md +28 -0
  10. data/docs/SfvbI18nMessage.md +30 -0
  11. data/docs/SfvbI18nMessageValue.md +20 -0
  12. data/docs/SfvbI18nMessageWriteRequest.md +18 -0
  13. data/docs/SfvbI18nMessagesResponse.md +28 -0
  14. data/docs/SfvbI18nResetResponse.md +22 -0
  15. data/docs/SfvbI18nTranslation.md +22 -0
  16. data/docs/SfvbLibraryAiReview.md +1 -1
  17. data/docs/SfvbLibraryContentManifest.md +4 -4
  18. data/docs/SfvbLibraryManifestFinding.md +22 -0
  19. data/docs/SfvbLibraryParameter.md +2 -2
  20. data/docs/SfvbLibraryTaxonomyCatalog.md +1 -1
  21. data/docs/SfvbLibraryTaxonomyDimension.md +22 -0
  22. data/docs/SfvbLibraryTaxonomyTag.md +20 -0
  23. data/lib/ultracart_api/api/sfvb_api.rb +860 -17
  24. data/lib/ultracart_api/models/sfvb_i18n_glossary.rb +250 -0
  25. data/lib/ultracart_api/models/sfvb_i18n_glossary_request.rb +220 -0
  26. data/lib/ultracart_api/models/sfvb_i18n_language.rb +282 -0
  27. data/lib/ultracart_api/models/sfvb_i18n_language_enable_request.rb +220 -0
  28. data/lib/ultracart_api/models/sfvb_i18n_languages_response.rb +292 -0
  29. data/lib/ultracart_api/models/sfvb_i18n_machine_translations_response.rb +272 -0
  30. data/lib/ultracart_api/models/sfvb_i18n_message.rb +282 -0
  31. data/lib/ultracart_api/models/sfvb_i18n_message_value.rb +230 -0
  32. data/lib/ultracart_api/models/sfvb_i18n_message_write_request.rb +222 -0
  33. data/lib/ultracart_api/models/sfvb_i18n_messages_response.rb +272 -0
  34. data/lib/ultracart_api/models/sfvb_i18n_reset_response.rb +240 -0
  35. data/lib/ultracart_api/models/sfvb_i18n_translation.rb +240 -0
  36. data/lib/ultracart_api/models/sfvb_library_ai_review.rb +4 -2
  37. data/lib/ultracart_api/models/sfvb_library_content_manifest.rb +16 -8
  38. data/lib/ultracart_api/models/sfvb_library_manifest_finding.rb +240 -0
  39. data/lib/ultracart_api/models/sfvb_library_parameter.rb +7 -7
  40. data/lib/ultracart_api/models/sfvb_library_taxonomy_catalog.rb +4 -2
  41. data/lib/ultracart_api/models/sfvb_library_taxonomy_dimension.rb +276 -0
  42. data/lib/ultracart_api/models/sfvb_library_taxonomy_tag.rb +230 -0
  43. data/lib/ultracart_api/version.rb +1 -1
  44. data/lib/ultracart_api.rb +15 -0
  45. metadata +32 -2
@@ -0,0 +1,24 @@
1
+ # UltracartClient::SfvbI18nGlossary
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **hash_sha256** | **String** | Send back as If-Match when saving. Empty when none has been saved, and then no If-Match is needed. | [optional] |
8
+ | **markdown** | **String** | The glossary, plain markdown. Empty when none has been saved. | [optional] |
9
+ | **modified_dts** | **String** | When it was last saved, ISO 8601. | [optional] |
10
+ | **storefront_oid** | **Integer** | The storefront. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ultracart_api'
16
+
17
+ instance = UltracartClient::SfvbI18nGlossary.new(
18
+ hash_sha256: null,
19
+ markdown: null,
20
+ modified_dts: null,
21
+ storefront_oid: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # UltracartClient::SfvbI18nGlossaryRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **markdown** | **String** | The whole glossary, plain markdown, up to 64 KB. It replaces what is there. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::SfvbI18nGlossaryRequest.new(
15
+ markdown: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,30 @@
1
+ # UltracartClient::SfvbI18nLanguage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **aliases** | **Array<String>** | Other spellings accepted for this language, the two-letter code and the name. | [optional] |
8
+ | **auto_translate** | **Boolean** | True when text without a hand translation is machine translated. Enabled languages always auto translate. | [optional] |
9
+ | **code** | **String** | UltraCart's three-letter code, the value language maps and render take, such as ESP for Spanish. | [optional] |
10
+ | **default_language** | **Boolean** | True for the language shoppers start in. It cannot be disabled here. | [optional] |
11
+ | **enabled** | **Boolean** | True when the storefront serves this language. | [optional] |
12
+ | **name** | **String** | The language's English name. | [optional] |
13
+ | **rtl** | **Boolean** | True for a right to left language, so check direction and alignment when rendering it. | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'ultracart_api'
19
+
20
+ instance = UltracartClient::SfvbI18nLanguage.new(
21
+ aliases: null,
22
+ auto_translate: null,
23
+ code: null,
24
+ default_language: null,
25
+ enabled: null,
26
+ name: null,
27
+ rtl: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,18 @@
1
+ # UltracartClient::SfvbI18nLanguageEnableRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **acknowledge_cost** | **Boolean** | Must be true. Enabling a language turns on machine translation, which is billed per character. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::SfvbI18nLanguageEnableRequest.new(
15
+ acknowledge_cost: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,32 @@
1
+ # UltracartClient::SfvbI18nLanguagesResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **changed** | **Boolean** | On enable or disable, false when the language was already in that state and nothing was saved. | [optional] |
8
+ | **character_estimate** | **Integer** | About how many characters of storefront text one language translates. | [optional] |
9
+ | **default_language_code** | **String** | The code of the language shoppers start in. The source of every string is still English. | [optional] |
10
+ | **hash_sha256** | **String** | Send back as If-Match when enabling or disabling a language. | [optional] |
11
+ | **languages** | [**Array<SfvbI18nLanguage>**](SfvbI18nLanguage.md) | Every language the storefront can be translated into, enabled or not, English first. | [optional] |
12
+ | **per_language_cost** | **String** | The estimated machine translation cost of enabling one more language, formatted. | [optional] |
13
+ | **storefront_oid** | **Integer** | The storefront. | [optional] |
14
+ | **supports_i18n** | **Boolean** | False when the active theme takes its languages from locale files. Language and message writes are refused then. | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'ultracart_api'
20
+
21
+ instance = UltracartClient::SfvbI18nLanguagesResponse.new(
22
+ changed: null,
23
+ character_estimate: null,
24
+ default_language_code: null,
25
+ hash_sha256: null,
26
+ languages: null,
27
+ per_language_cost: null,
28
+ storefront_oid: null,
29
+ supports_i18n: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,28 @@
1
+ # UltracartClient::SfvbI18nMachineTranslationsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **english_text** | **String** | The English source text. | [optional] |
8
+ | **key** | **String** | The message key, for a built-in message. | [optional] |
9
+ | **property** | **String** | The setting, for a widget's setting. | [optional] |
10
+ | **theme_oid** | **Integer** | The theme the string belongs to. | [optional] |
11
+ | **translations** | [**Array<SfvbI18nTranslation>**](SfvbI18nTranslation.md) | Each enabled language other than English. | [optional] |
12
+ | **widget_id** | **String** | The widget id, for a widget's setting. | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'ultracart_api'
18
+
19
+ instance = UltracartClient::SfvbI18nMachineTranslationsResponse.new(
20
+ english_text: null,
21
+ key: null,
22
+ property: null,
23
+ theme_oid: null,
24
+ translations: null,
25
+ widget_id: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,30 @@
1
+ # UltracartClient::SfvbI18nMessage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **edited** | **Boolean** | True when the English was changed from the template's text. | [optional] |
8
+ | **english_text** | **String** | The English text, the source every other language is translated from. | [optional] |
9
+ | **hash_sha256** | **String** | Send back as If-Match when setting or resetting this message. | [optional] |
10
+ | **imported** | **Boolean** | True when the message came from an older theme's locale file. It cannot be reset. | [optional] |
11
+ | **key** | **String** | The message key. | [optional] |
12
+ | **theme_oid** | **Integer** | The theme the message belongs to. Messages are kept per storefront and theme. | [optional] |
13
+ | **translations** | [**Array<SfvbI18nTranslation>**](SfvbI18nTranslation.md) | Each enabled language other than English, with its text and where it comes from. | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'ultracart_api'
19
+
20
+ instance = UltracartClient::SfvbI18nMessage.new(
21
+ edited: null,
22
+ english_text: null,
23
+ hash_sha256: null,
24
+ imported: null,
25
+ key: null,
26
+ theme_oid: null,
27
+ translations: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,20 @@
1
+ # UltracartClient::SfvbI18nMessageValue
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **language** | **String** | The language code. ENG changes the English source, which clears its machine translations. | [optional] |
8
+ | **text** | **String** | The new text. Empty text is refused; reset the message instead. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ultracart_api'
14
+
15
+ instance = UltracartClient::SfvbI18nMessageValue.new(
16
+ language: null,
17
+ text: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # UltracartClient::SfvbI18nMessageWriteRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **values** | [**Array<SfvbI18nMessageValue>**](SfvbI18nMessageValue.md) | The languages to change. Languages not named are left alone. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::SfvbI18nMessageWriteRequest.new(
15
+ values: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,28 @@
1
+ # UltracartClient::SfvbI18nMessagesResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **limit** | **Integer** | The page size. | [optional] |
8
+ | **messages** | [**Array<SfvbI18nMessage>**](SfvbI18nMessage.md) | The messages on this page, ordered by key. | [optional] |
9
+ | **offset** | **Integer** | The index of the first message on this page. | [optional] |
10
+ | **storefront_oid** | **Integer** | The storefront. | [optional] |
11
+ | **theme_oid** | **Integer** | The theme the messages belong to. | [optional] |
12
+ | **total** | **Integer** | How many messages match, across every page. | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'ultracart_api'
18
+
19
+ instance = UltracartClient::SfvbI18nMessagesResponse.new(
20
+ limit: null,
21
+ messages: null,
22
+ offset: null,
23
+ storefront_oid: null,
24
+ theme_oid: null,
25
+ total: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,22 @@
1
+ # UltracartClient::SfvbI18nResetResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **key** | **String** | The message key. | [optional] |
8
+ | **note** | **String** | What happens next. | [optional] |
9
+ | **theme_oid** | **Integer** | The theme the message belongs to. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ultracart_api'
15
+
16
+ instance = UltracartClient::SfvbI18nResetResponse.new(
17
+ key: null,
18
+ note: null,
19
+ theme_oid: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # UltracartClient::SfvbI18nTranslation
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **language** | **String** | The three-letter language code. | [optional] |
8
+ | **source** | **String** | hand for a translation someone wrote, machine for a machine translation, pending when one is queued, none when nothing exists yet (it is made the first time the text renders in that language). | [optional] |
9
+ | **text** | **String** | The text a shopper sees in that language. Absent when source is none or pending. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ultracart_api'
15
+
16
+ instance = UltracartClient::SfvbI18nTranslation.new(
17
+ language: null,
18
+ source: null,
19
+ text: null
20
+ )
21
+ ```
22
+
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **findings** | **Object** | What the reviewers found. detail is the category followed by the quoted evidence. | [optional] |
7
+ | **findings** | [**Array<SfvbLibraryManifestFinding>**](SfvbLibraryManifestFinding.md) | What the reviewers found. detail is the category followed by the quoted evidence. | [optional] |
8
8
  | **prompt_version** | **String** | Version of the review policy that produced this verdict. | [optional] |
9
9
  | **reviewed_dts** | **String** | When the review ran, ISO 8601. | [optional] |
10
10
  | **screenshot_sha256** | **String** | The screenshot the review looked at, or absent when there was none. | [optional] |
@@ -4,11 +4,11 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **absolute_asset_urls** | **Object** | Images, fonts, stylesheets, scripts or media loaded from an absolute URL. A shared or public entry must use relative paths so it never pulls files from another storefront or site. | [optional] |
7
+ | **absolute_asset_urls** | [**Array<SfvbLibraryManifestFinding>**](SfvbLibraryManifestFinding.md) | Images, fonts, stylesheets, scripts or media loaded from an absolute URL. A shared or public entry must use relative paths so it never pulls files from another storefront or site. | [optional] |
8
8
  | **ai_review** | [**SfvbLibraryAiReview**](SfvbLibraryAiReview.md) | | [optional] |
9
- | **executable** | **Object** | Content that runs in a shopper's browser or on the server. Script, html, embed, css and velocity elements, script in markup, Velocity, script bearing CSS and unsafe URL schemes. An entry with any of these cannot be made public, and installing it needs an explicit acknowledgement. | [optional] |
10
- | **rejected** | **Object** | Card skimming and obfuscation signals. An entry with any is refused outright, whoever owns it. | [optional] |
11
- | **secrets** | **Object** | Strings shaped like credentials, by kind only. An entry with any cannot be shared or made public. | [optional] |
9
+ | **executable** | [**Array<SfvbLibraryManifestFinding>**](SfvbLibraryManifestFinding.md) | Content that runs in a shopper's browser or on the server. Script, html, embed, css and velocity elements, script in markup, Velocity, script bearing CSS and unsafe URL schemes. An entry with any of these cannot be made public, and installing it needs an explicit acknowledgement. | [optional] |
10
+ | **rejected** | [**Array<SfvbLibraryManifestFinding>**](SfvbLibraryManifestFinding.md) | Card skimming and obfuscation signals. An entry with any is refused outright, whoever owns it. | [optional] |
11
+ | **secrets** | [**Array<SfvbLibraryManifestFinding>**](SfvbLibraryManifestFinding.md) | Strings shaped like credentials, by kind only. An entry with any cannot be shared or made public. | [optional] |
12
12
 
13
13
  ## Example
14
14
 
@@ -0,0 +1,22 @@
1
+ # UltracartClient::SfvbLibraryManifestFinding
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **detail** | **String** | What was found. For an absolute asset URL this is the URL. For a credential it is only the kind of credential, never its value. | [optional] |
8
+ | **widget_id** | **String** | Id of the widget the finding is in. | [optional] |
9
+ | **widget_type** | **String** | Element type of that widget. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ultracart_api'
15
+
16
+ instance = UltracartClient::SfvbLibraryManifestFinding.new(
17
+ detail: null,
18
+ widget_id: null,
19
+ widget_type: null
20
+ )
21
+ ```
22
+
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **default** | **String** | The value used when none is supplied. | [optional] |
7
+ | **default_value** | **String** | The value used when none is supplied. | [optional] |
8
8
  | **description** | **String** | What the value is used for. | [optional] |
9
9
  | **name** | **String** | Parameter name, letters, digits, hyphens and underscores. | [optional] |
10
10
  | **required** | **Boolean** | True when the fragment cannot be used without it. | [optional] |
@@ -16,7 +16,7 @@
16
16
  require 'ultracart_api'
17
17
 
18
18
  instance = UltracartClient::SfvbLibraryParameter.new(
19
- default: null,
19
+ default_value: null,
20
20
  description: null,
21
21
  name: null,
22
22
  required: null,
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **dimensions** | **Object** | purpose, section, industry and style, each with its allowed tags. | [optional] |
7
+ | **dimensions** | [**Array<SfvbLibraryTaxonomyDimension>**](SfvbLibraryTaxonomyDimension.md) | purpose, section, industry and style, each with its allowed tags. | [optional] |
8
8
 
9
9
  ## Example
10
10
 
@@ -0,0 +1,22 @@
1
+ # UltracartClient::SfvbLibraryTaxonomyDimension
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **description** | **String** | What the dimension describes. | [optional] |
8
+ | **name** | **String** | The taxonomy field this list applies to. | [optional] |
9
+ | **tags** | [**Array<SfvbLibraryTaxonomyTag>**](SfvbLibraryTaxonomyTag.md) | The allowed tags, in display order. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ultracart_api'
15
+
16
+ instance = UltracartClient::SfvbLibraryTaxonomyDimension.new(
17
+ description: null,
18
+ name: null,
19
+ tags: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # UltracartClient::SfvbLibraryTaxonomyTag
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **description** | **String** | When to use it. | [optional] |
8
+ | **slug** | **String** | The value to send in the entry's taxonomy. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ultracart_api'
14
+
15
+ instance = UltracartClient::SfvbLibraryTaxonomyTag.new(
16
+ description: null,
17
+ slug: null
18
+ )
19
+ ```
20
+