From 1a458bdcad7f953a37899fb1b23b7b2ce823fd87 Mon Sep 17 00:00:00 2001 From: Daniil Bratukhin Date: Sat, 13 Jul 2024 22:47:34 -0300 Subject: [PATCH] docs: remove auto-generated translation schemas Those turned out to be useless. In practice it's much easier to just copy and modify a built-in translation file than mess with JSONSchema. --- .scripts/generate-schemas.js | 53 - .vscode/settings.json | 428 --- package.json | 3 +- src/static/schemas/access-recovery-form.json | 43 - src/static/schemas/address-card.json | 29 - src/static/schemas/address-form.json | 1356 ------- .../schemas/admin-subscription-card.json | 72 - src/static/schemas/api-browser.json | 88 - .../schemas/applied-coupon-code-card.json | 16 - .../schemas/applied-coupon-code-form.json | 65 - src/static/schemas/applied-tax-card.json | 18 - src/static/schemas/attribute-card.json | 16 - src/static/schemas/attribute-form.json | 93 - src/static/schemas/billing-address-card.json | 21 - src/static/schemas/cancellation-form.json | 29 - src/static/schemas/cart-card.json | 30 - src/static/schemas/cart-form.json | 1678 --------- src/static/schemas/client-card.json | 19 - src/static/schemas/client-form.json | 157 - src/static/schemas/copy-to-clipboard.json | 11 - src/static/schemas/country.json | 506 --- src/static/schemas/coupon-card.json | 124 - src/static/schemas/coupon-code-card.json | 23 - src/static/schemas/coupon-code-form.json | 197 - src/static/schemas/coupon-codes-form.json | 44 - src/static/schemas/coupon-form.json | 1447 -------- src/static/schemas/custom-field-card.json | 16 - src/static/schemas/custom-field-form.json | 85 - src/static/schemas/customer-card.json | 16 - src/static/schemas/customer-form.json | 271 -- .../customer-portal-settings-form.json | 777 ---- .../schemas/customer-portal-settings.json | 267 -- src/static/schemas/customer-portal.json | 2796 -------------- src/static/schemas/customer.json | 2863 -------------- src/static/schemas/customers-table.json | 19 - src/static/schemas/discount-builder.json | 32 - src/static/schemas/discount-card.json | 17 - src/static/schemas/donation.json | 25 - src/static/schemas/downloadable-card.json | 16 - src/static/schemas/downloadable-form.json | 160 - src/static/schemas/email-template-card.json | 28 - src/static/schemas/email-template-form.json | 89 - src/static/schemas/error-entry-card.json | 26 - src/static/schemas/filter-attribute-card.json | 17 - src/static/schemas/filter-attribute-form.json | 102 - src/static/schemas/generate-codes-form.json | 97 - src/static/schemas/gift-card-card.json | 18 - src/static/schemas/gift-card-code-card.json | 19 - src/static/schemas/gift-card-code-form.json | 408 -- .../schemas/gift-card-code-log-card.json | 30 - src/static/schemas/gift-card-codes-form.json | 54 - src/static/schemas/gift-card-form.json | 1672 --------- src/static/schemas/global.json | 164 - src/static/schemas/i18n-editor.json | 20 - src/static/schemas/integration-card.json | 19 - src/static/schemas/integration-form.json | 88 - src/static/schemas/item-card.json | 55 - src/static/schemas/item-category-card.json | 16 - src/static/schemas/item-category-form.json | 420 --- src/static/schemas/item-form.json | 817 ---- src/static/schemas/item-option-form.json | 91 - src/static/schemas/items-form.json | 66 - .../schemas/native-integration-card.json | 55 - .../schemas/native-integration-form.json | 673 ---- src/static/schemas/pagination.json | 12 - src/static/schemas/passkey-card.json | 24 - src/static/schemas/passkey-form.json | 86 - src/static/schemas/payment-card-embed.json | 119 - src/static/schemas/payment-card.json | 36 - src/static/schemas/payment-method-card.json | 439 --- src/static/schemas/payment-method-form.json | 146 - .../payments-api-fraud-protection-card.json | 17 - .../payments-api-fraud-protection-form.json | 87 - .../payments-api-payment-method-card.json | 17 - .../payments-api-payment-method-form.json | 131 - .../payments-api-payment-preset-card.json | 18 - .../payments-api-payment-preset-form.json | 208 -- src/static/schemas/query-builder.json | 68 - src/static/schemas/region.json | 136 - src/static/schemas/report-form.json | 94 - src/static/schemas/reports-table.json | 48 - src/static/schemas/shared.json | 9 - src/static/schemas/shipment-card.json | 25 - src/static/schemas/shipping-method-card.json | 18 - src/static/schemas/sign-in-form.json | 69 - src/static/schemas/spinner.json | 12 - src/static/schemas/store-card.json | 16 - src/static/schemas/store-form.json | 793 ---- .../schemas/store-shipping-method-form.json | 210 -- src/static/schemas/subscription-card.json | 74 - src/static/schemas/subscription-form.json | 478 --- .../schemas/subscription-settings-form.json | 242 -- src/static/schemas/subscriptions-table.json | 68 - src/static/schemas/tax-card.json | 23 - src/static/schemas/tax-form.json | 100 - src/static/schemas/template-config-form.json | 321 -- src/static/schemas/template-form.json | 65 - src/static/schemas/template-set-card.json | 16 - src/static/schemas/template-set-form.json | 144 - src/static/schemas/transaction-card.json | 79 - src/static/schemas/transaction.json | 3281 ----------------- src/static/schemas/transactions-table.json | 52 - .../schemas/update-payment-method-form.json | 341 -- src/static/schemas/user-card.json | 17 - src/static/schemas/user-form.json | 159 - src/static/schemas/users-table.json | 206 -- src/static/schemas/webhook-card.json | 16 - src/static/schemas/webhook-form.json | 228 -- src/static/schemas/webhook-log-card.json | 17 - src/static/schemas/webhook-status-card.json | 20 - src/static/translations/address-form/en.json | 38 +- src/static/translations/api-browser/en.json | 12 +- .../applied-coupon-code-form/en.json | 27 +- .../translations/attribute-form/en.json | 29 +- src/static/translations/cart-form/en.json | 259 +- src/static/translations/client-form/en.json | 27 +- .../translations/coupon-code-form/en.json | 31 +- .../translations/coupon-codes-form/en.json | 10 +- src/static/translations/coupon-form/en.json | 100 +- .../translations/custom-field-form/en.json | 27 +- src/static/translations/customer-form/en.json | 29 +- .../customer-portal-settings-form/en.json | 37 +- .../translations/customer-portal/de.json | 56 +- .../translations/customer-portal/en.json | 56 +- .../translations/customer-portal/es.json | 56 +- .../translations/customer-portal/fr.json | 56 +- .../translations/customer-portal/nl.json | 56 +- .../translations/customer-portal/pl.json | 56 +- .../translations/customer-portal/sv.json | 56 +- .../translations/customer-portal/zh-hk.json | 56 +- src/static/translations/customer/en.json | 136 +- .../translations/downloadable-form/en.json | 27 +- .../translations/email-template-form/en.json | 4 +- .../filter-attribute-form/en.json | 4 +- .../translations/generate-codes-form/en.json | 10 +- .../translations/gift-card-code-form/en.json | 27 +- .../translations/gift-card-codes-form/en.json | 10 +- .../translations/gift-card-form/en.json | 94 +- .../translations/integration-form/en.json | 20 +- .../translations/item-category-form/en.json | 39 +- src/static/translations/item-form/en.json | 118 +- .../translations/item-option-form/en.json | 27 +- .../native-integration-form/en.json | 34 +- src/static/translations/passkey-form/en.json | 32 +- .../en.json | 24 +- .../payments-api-payment-method-form/en.json | 27 +- .../payments-api-payment-preset-form/en.json | 83 +- src/static/translations/report-form/en.json | 4 +- .../shipping-container-card/en.json | 8 + .../shipping-drop-type-card/en.json | 8 + .../translations/shipping-method-card/en.json | 1 + .../shipping-service-card/en.json | 9 + src/static/translations/store-form/en.json | 29 +- .../store-shipping-method-form/en.json | 167 +- .../translations/subscription-form/en.json | 34 +- .../subscription-settings-form/en.json | 21 +- src/static/translations/tax-form/en.json | 4 +- .../translations/template-config-form/en.json | 4 +- src/static/translations/template-form/en.json | 4 +- .../translations/template-set-form/en.json | 63 +- src/static/translations/transaction/en.json | 235 +- .../update-payment-method-form/en.json | 6 +- src/static/translations/user-form/en.json | 28 +- src/static/translations/users-table/en.json | 10 +- src/static/translations/webhook-form/en.json | 42 +- .../translations/webhook-log-card/en.json | 4 +- .../translations/webhook-status-card/en.json | 4 +- 167 files changed, 2205 insertions(+), 28025 deletions(-) delete mode 100644 .scripts/generate-schemas.js delete mode 100644 .vscode/settings.json delete mode 100644 src/static/schemas/access-recovery-form.json delete mode 100644 src/static/schemas/address-card.json delete mode 100644 src/static/schemas/address-form.json delete mode 100644 src/static/schemas/admin-subscription-card.json delete mode 100644 src/static/schemas/api-browser.json delete mode 100644 src/static/schemas/applied-coupon-code-card.json delete mode 100644 src/static/schemas/applied-coupon-code-form.json delete mode 100644 src/static/schemas/applied-tax-card.json delete mode 100644 src/static/schemas/attribute-card.json delete mode 100644 src/static/schemas/attribute-form.json delete mode 100644 src/static/schemas/billing-address-card.json delete mode 100644 src/static/schemas/cancellation-form.json delete mode 100644 src/static/schemas/cart-card.json delete mode 100644 src/static/schemas/cart-form.json delete mode 100644 src/static/schemas/client-card.json delete mode 100644 src/static/schemas/client-form.json delete mode 100644 src/static/schemas/copy-to-clipboard.json delete mode 100644 src/static/schemas/country.json delete mode 100644 src/static/schemas/coupon-card.json delete mode 100644 src/static/schemas/coupon-code-card.json delete mode 100644 src/static/schemas/coupon-code-form.json delete mode 100644 src/static/schemas/coupon-codes-form.json delete mode 100644 src/static/schemas/coupon-form.json delete mode 100644 src/static/schemas/custom-field-card.json delete mode 100644 src/static/schemas/custom-field-form.json delete mode 100644 src/static/schemas/customer-card.json delete mode 100644 src/static/schemas/customer-form.json delete mode 100644 src/static/schemas/customer-portal-settings-form.json delete mode 100644 src/static/schemas/customer-portal-settings.json delete mode 100644 src/static/schemas/customer-portal.json delete mode 100644 src/static/schemas/customer.json delete mode 100644 src/static/schemas/customers-table.json delete mode 100644 src/static/schemas/discount-builder.json delete mode 100644 src/static/schemas/discount-card.json delete mode 100644 src/static/schemas/donation.json delete mode 100644 src/static/schemas/downloadable-card.json delete mode 100644 src/static/schemas/downloadable-form.json delete mode 100644 src/static/schemas/email-template-card.json delete mode 100644 src/static/schemas/email-template-form.json delete mode 100644 src/static/schemas/error-entry-card.json delete mode 100644 src/static/schemas/filter-attribute-card.json delete mode 100644 src/static/schemas/filter-attribute-form.json delete mode 100644 src/static/schemas/generate-codes-form.json delete mode 100644 src/static/schemas/gift-card-card.json delete mode 100644 src/static/schemas/gift-card-code-card.json delete mode 100644 src/static/schemas/gift-card-code-form.json delete mode 100644 src/static/schemas/gift-card-code-log-card.json delete mode 100644 src/static/schemas/gift-card-codes-form.json delete mode 100644 src/static/schemas/gift-card-form.json delete mode 100644 src/static/schemas/global.json delete mode 100644 src/static/schemas/i18n-editor.json delete mode 100644 src/static/schemas/integration-card.json delete mode 100644 src/static/schemas/integration-form.json delete mode 100644 src/static/schemas/item-card.json delete mode 100644 src/static/schemas/item-category-card.json delete mode 100644 src/static/schemas/item-category-form.json delete mode 100644 src/static/schemas/item-form.json delete mode 100644 src/static/schemas/item-option-form.json delete mode 100644 src/static/schemas/items-form.json delete mode 100644 src/static/schemas/native-integration-card.json delete mode 100644 src/static/schemas/native-integration-form.json delete mode 100644 src/static/schemas/pagination.json delete mode 100644 src/static/schemas/passkey-card.json delete mode 100644 src/static/schemas/passkey-form.json delete mode 100644 src/static/schemas/payment-card-embed.json delete mode 100644 src/static/schemas/payment-card.json delete mode 100644 src/static/schemas/payment-method-card.json delete mode 100644 src/static/schemas/payment-method-form.json delete mode 100644 src/static/schemas/payments-api-fraud-protection-card.json delete mode 100644 src/static/schemas/payments-api-fraud-protection-form.json delete mode 100644 src/static/schemas/payments-api-payment-method-card.json delete mode 100644 src/static/schemas/payments-api-payment-method-form.json delete mode 100644 src/static/schemas/payments-api-payment-preset-card.json delete mode 100644 src/static/schemas/payments-api-payment-preset-form.json delete mode 100644 src/static/schemas/query-builder.json delete mode 100644 src/static/schemas/region.json delete mode 100644 src/static/schemas/report-form.json delete mode 100644 src/static/schemas/reports-table.json delete mode 100644 src/static/schemas/shared.json delete mode 100644 src/static/schemas/shipment-card.json delete mode 100644 src/static/schemas/shipping-method-card.json delete mode 100644 src/static/schemas/sign-in-form.json delete mode 100644 src/static/schemas/spinner.json delete mode 100644 src/static/schemas/store-card.json delete mode 100644 src/static/schemas/store-form.json delete mode 100644 src/static/schemas/store-shipping-method-form.json delete mode 100644 src/static/schemas/subscription-card.json delete mode 100644 src/static/schemas/subscription-form.json delete mode 100644 src/static/schemas/subscription-settings-form.json delete mode 100644 src/static/schemas/subscriptions-table.json delete mode 100644 src/static/schemas/tax-card.json delete mode 100644 src/static/schemas/tax-form.json delete mode 100644 src/static/schemas/template-config-form.json delete mode 100644 src/static/schemas/template-form.json delete mode 100644 src/static/schemas/template-set-card.json delete mode 100644 src/static/schemas/template-set-form.json delete mode 100644 src/static/schemas/transaction-card.json delete mode 100644 src/static/schemas/transaction.json delete mode 100644 src/static/schemas/transactions-table.json delete mode 100644 src/static/schemas/update-payment-method-form.json delete mode 100644 src/static/schemas/user-card.json delete mode 100644 src/static/schemas/user-form.json delete mode 100644 src/static/schemas/users-table.json delete mode 100644 src/static/schemas/webhook-card.json delete mode 100644 src/static/schemas/webhook-form.json delete mode 100644 src/static/schemas/webhook-log-card.json delete mode 100644 src/static/schemas/webhook-status-card.json create mode 100644 src/static/translations/shipping-container-card/en.json create mode 100644 src/static/translations/shipping-drop-type-card/en.json create mode 100644 src/static/translations/shipping-service-card/en.json diff --git a/.scripts/generate-schemas.js b/.scripts/generate-schemas.js deleted file mode 100644 index 1bc0f47e1..000000000 --- a/.scripts/generate-schemas.js +++ /dev/null @@ -1,53 +0,0 @@ -import { readdir, readFile, writeFile } from 'fs/promises'; - -async function updateVSCodeSettings(namespaces) { - const settingsURL = new URL('../.vscode/settings.json', import.meta.url); - const settings = await readFile(settingsURL, { encoding: 'utf-8' }); - const parsedSettings = JSON.parse(settings); - - parsedSettings['json.schemas'] = namespaces.map(ns => ({ - fileMatch: [`/src/static/translations/${ns}/*.json`], - url: `./src/static/schemas/${ns}.json`, - })); - - await writeFile(settingsURL, JSON.stringify(parsedSettings), { encoding: 'utf-8' }); -} - -async function writeSchemaForNs(ns) { - const generateNestedSchema = translations => { - const properties = generateProperties(translations); - return { - additionalProperties: false, - properties: properties, - required: Array.from(Object.keys(properties)), - }; - }; - - const generateProperties = translations => { - return Object.fromEntries( - Object.entries(translations).map(([key, value]) => { - if (typeof value === 'object') return [key, generateNestedSchema(value)]; - return [key, { type: 'string', default: value }]; - }) - ); - }; - - const enTranslationURL = new URL(`../src/static/translations/${ns}/en.json`, import.meta.url); - const enTranslation = await readFile(enTranslationURL, { encoding: 'utf-8' }); - const schema = JSON.stringify({ - $schema: 'http://json-schema.org/draft-07/schema', - ...generateNestedSchema(JSON.parse(enTranslation)), - }); - - const schemaURL = new URL(`../src/static/schemas/${ns}.json`, import.meta.url); - await writeFile(schemaURL, schema, { encoding: 'utf-8' }); -} - -const translationFilesURL = new URL('../src/static/translations', import.meta.url); -const translationFiles = await readdir(translationFilesURL, { withFileTypes: true }); -const namespaces = translationFiles - .filter(file => file.isDirectory && !file.name.startsWith('.')) - .map(file => file.name); - -await Promise.all(namespaces.map(ns => writeSchemaForNs(ns))); -await updateVSCodeSettings(namespaces); diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 4dc213508..000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,428 +0,0 @@ -{ - "json.schemas": [ - { - "fileMatch": ["/src/static/translations/access-recovery-form/*.json"], - "url": "./src/static/schemas/access-recovery-form.json" - }, - { - "fileMatch": ["/src/static/translations/address-card/*.json"], - "url": "./src/static/schemas/address-card.json" - }, - { - "fileMatch": ["/src/static/translations/address-form/*.json"], - "url": "./src/static/schemas/address-form.json" - }, - { - "fileMatch": ["/src/static/translations/admin-subscription-card/*.json"], - "url": "./src/static/schemas/admin-subscription-card.json" - }, - { - "fileMatch": ["/src/static/translations/api-browser/*.json"], - "url": "./src/static/schemas/api-browser.json" - }, - { - "fileMatch": ["/src/static/translations/applied-coupon-code-card/*.json"], - "url": "./src/static/schemas/applied-coupon-code-card.json" - }, - { - "fileMatch": ["/src/static/translations/applied-coupon-code-form/*.json"], - "url": "./src/static/schemas/applied-coupon-code-form.json" - }, - { - "fileMatch": ["/src/static/translations/applied-tax-card/*.json"], - "url": "./src/static/schemas/applied-tax-card.json" - }, - { - "fileMatch": ["/src/static/translations/attribute-card/*.json"], - "url": "./src/static/schemas/attribute-card.json" - }, - { - "fileMatch": ["/src/static/translations/attribute-form/*.json"], - "url": "./src/static/schemas/attribute-form.json" - }, - { - "fileMatch": ["/src/static/translations/billing-address-card/*.json"], - "url": "./src/static/schemas/billing-address-card.json" - }, - { - "fileMatch": ["/src/static/translations/cancellation-form/*.json"], - "url": "./src/static/schemas/cancellation-form.json" - }, - { - "fileMatch": ["/src/static/translations/cart-card/*.json"], - "url": "./src/static/schemas/cart-card.json" - }, - { - "fileMatch": ["/src/static/translations/cart-form/*.json"], - "url": "./src/static/schemas/cart-form.json" - }, - { - "fileMatch": ["/src/static/translations/client-card/*.json"], - "url": "./src/static/schemas/client-card.json" - }, - { - "fileMatch": ["/src/static/translations/client-form/*.json"], - "url": "./src/static/schemas/client-form.json" - }, - { - "fileMatch": ["/src/static/translations/copy-to-clipboard/*.json"], - "url": "./src/static/schemas/copy-to-clipboard.json" - }, - { - "fileMatch": ["/src/static/translations/country/*.json"], - "url": "./src/static/schemas/country.json" - }, - { - "fileMatch": ["/src/static/translations/coupon-card/*.json"], - "url": "./src/static/schemas/coupon-card.json" - }, - { - "fileMatch": ["/src/static/translations/coupon-code-card/*.json"], - "url": "./src/static/schemas/coupon-code-card.json" - }, - { - "fileMatch": ["/src/static/translations/coupon-code-form/*.json"], - "url": "./src/static/schemas/coupon-code-form.json" - }, - { - "fileMatch": ["/src/static/translations/coupon-codes-form/*.json"], - "url": "./src/static/schemas/coupon-codes-form.json" - }, - { - "fileMatch": ["/src/static/translations/coupon-form/*.json"], - "url": "./src/static/schemas/coupon-form.json" - }, - { - "fileMatch": ["/src/static/translations/custom-field-card/*.json"], - "url": "./src/static/schemas/custom-field-card.json" - }, - { - "fileMatch": ["/src/static/translations/custom-field-form/*.json"], - "url": "./src/static/schemas/custom-field-form.json" - }, - { - "fileMatch": ["/src/static/translations/customer/*.json"], - "url": "./src/static/schemas/customer.json" - }, - { - "fileMatch": ["/src/static/translations/customer-card/*.json"], - "url": "./src/static/schemas/customer-card.json" - }, - { - "fileMatch": ["/src/static/translations/customer-form/*.json"], - "url": "./src/static/schemas/customer-form.json" - }, - { - "fileMatch": ["/src/static/translations/customer-portal/*.json"], - "url": "./src/static/schemas/customer-portal.json" - }, - { - "fileMatch": ["/src/static/translations/customer-portal-settings/*.json"], - "url": "./src/static/schemas/customer-portal-settings.json" - }, - { - "fileMatch": ["/src/static/translations/customer-portal-settings-form/*.json"], - "url": "./src/static/schemas/customer-portal-settings-form.json" - }, - { - "fileMatch": ["/src/static/translations/customers-table/*.json"], - "url": "./src/static/schemas/customers-table.json" - }, - { - "fileMatch": ["/src/static/translations/discount-builder/*.json"], - "url": "./src/static/schemas/discount-builder.json" - }, - { - "fileMatch": ["/src/static/translations/discount-card/*.json"], - "url": "./src/static/schemas/discount-card.json" - }, - { - "fileMatch": ["/src/static/translations/donation/*.json"], - "url": "./src/static/schemas/donation.json" - }, - { - "fileMatch": ["/src/static/translations/downloadable-card/*.json"], - "url": "./src/static/schemas/downloadable-card.json" - }, - { - "fileMatch": ["/src/static/translations/downloadable-form/*.json"], - "url": "./src/static/schemas/downloadable-form.json" - }, - { - "fileMatch": ["/src/static/translations/email-template-card/*.json"], - "url": "./src/static/schemas/email-template-card.json" - }, - { - "fileMatch": ["/src/static/translations/email-template-form/*.json"], - "url": "./src/static/schemas/email-template-form.json" - }, - { - "fileMatch": ["/src/static/translations/error-entry-card/*.json"], - "url": "./src/static/schemas/error-entry-card.json" - }, - { - "fileMatch": ["/src/static/translations/filter-attribute-card/*.json"], - "url": "./src/static/schemas/filter-attribute-card.json" - }, - { - "fileMatch": ["/src/static/translations/filter-attribute-form/*.json"], - "url": "./src/static/schemas/filter-attribute-form.json" - }, - { - "fileMatch": ["/src/static/translations/generate-codes-form/*.json"], - "url": "./src/static/schemas/generate-codes-form.json" - }, - { - "fileMatch": ["/src/static/translations/gift-card-card/*.json"], - "url": "./src/static/schemas/gift-card-card.json" - }, - { - "fileMatch": ["/src/static/translations/gift-card-code-card/*.json"], - "url": "./src/static/schemas/gift-card-code-card.json" - }, - { - "fileMatch": ["/src/static/translations/gift-card-code-form/*.json"], - "url": "./src/static/schemas/gift-card-code-form.json" - }, - { - "fileMatch": ["/src/static/translations/gift-card-code-log-card/*.json"], - "url": "./src/static/schemas/gift-card-code-log-card.json" - }, - { - "fileMatch": ["/src/static/translations/gift-card-codes-form/*.json"], - "url": "./src/static/schemas/gift-card-codes-form.json" - }, - { - "fileMatch": ["/src/static/translations/gift-card-form/*.json"], - "url": "./src/static/schemas/gift-card-form.json" - }, - { - "fileMatch": ["/src/static/translations/global/*.json"], - "url": "./src/static/schemas/global.json" - }, - { - "fileMatch": ["/src/static/translations/i18n-editor/*.json"], - "url": "./src/static/schemas/i18n-editor.json" - }, - { - "fileMatch": ["/src/static/translations/integration-card/*.json"], - "url": "./src/static/schemas/integration-card.json" - }, - { - "fileMatch": ["/src/static/translations/integration-form/*.json"], - "url": "./src/static/schemas/integration-form.json" - }, - { - "fileMatch": ["/src/static/translations/item-card/*.json"], - "url": "./src/static/schemas/item-card.json" - }, - { - "fileMatch": ["/src/static/translations/item-category-card/*.json"], - "url": "./src/static/schemas/item-category-card.json" - }, - { - "fileMatch": ["/src/static/translations/item-category-form/*.json"], - "url": "./src/static/schemas/item-category-form.json" - }, - { - "fileMatch": ["/src/static/translations/item-form/*.json"], - "url": "./src/static/schemas/item-form.json" - }, - { - "fileMatch": ["/src/static/translations/item-option-form/*.json"], - "url": "./src/static/schemas/item-option-form.json" - }, - { - "fileMatch": ["/src/static/translations/items-form/*.json"], - "url": "./src/static/schemas/items-form.json" - }, - { - "fileMatch": ["/src/static/translations/native-integration-card/*.json"], - "url": "./src/static/schemas/native-integration-card.json" - }, - { - "fileMatch": ["/src/static/translations/native-integration-form/*.json"], - "url": "./src/static/schemas/native-integration-form.json" - }, - { - "fileMatch": ["/src/static/translations/pagination/*.json"], - "url": "./src/static/schemas/pagination.json" - }, - { - "fileMatch": ["/src/static/translations/passkey-card/*.json"], - "url": "./src/static/schemas/passkey-card.json" - }, - { - "fileMatch": ["/src/static/translations/passkey-form/*.json"], - "url": "./src/static/schemas/passkey-form.json" - }, - { - "fileMatch": ["/src/static/translations/payment-card/*.json"], - "url": "./src/static/schemas/payment-card.json" - }, - { - "fileMatch": ["/src/static/translations/payment-card-embed/*.json"], - "url": "./src/static/schemas/payment-card-embed.json" - }, - { - "fileMatch": ["/src/static/translations/payment-method-card/*.json"], - "url": "./src/static/schemas/payment-method-card.json" - }, - { - "fileMatch": ["/src/static/translations/payments-api-fraud-protection-card/*.json"], - "url": "./src/static/schemas/payments-api-fraud-protection-card.json" - }, - { - "fileMatch": ["/src/static/translations/payments-api-fraud-protection-form/*.json"], - "url": "./src/static/schemas/payments-api-fraud-protection-form.json" - }, - { - "fileMatch": ["/src/static/translations/payments-api-payment-method-card/*.json"], - "url": "./src/static/schemas/payments-api-payment-method-card.json" - }, - { - "fileMatch": ["/src/static/translations/payments-api-payment-method-form/*.json"], - "url": "./src/static/schemas/payments-api-payment-method-form.json" - }, - { - "fileMatch": ["/src/static/translations/payments-api-payment-preset-card/*.json"], - "url": "./src/static/schemas/payments-api-payment-preset-card.json" - }, - { - "fileMatch": ["/src/static/translations/payments-api-payment-preset-form/*.json"], - "url": "./src/static/schemas/payments-api-payment-preset-form.json" - }, - { - "fileMatch": ["/src/static/translations/query-builder/*.json"], - "url": "./src/static/schemas/query-builder.json" - }, - { - "fileMatch": ["/src/static/translations/region/*.json"], - "url": "./src/static/schemas/region.json" - }, - { - "fileMatch": ["/src/static/translations/report-form/*.json"], - "url": "./src/static/schemas/report-form.json" - }, - { - "fileMatch": ["/src/static/translations/reports-table/*.json"], - "url": "./src/static/schemas/reports-table.json" - }, - { - "fileMatch": ["/src/static/translations/shared/*.json"], - "url": "./src/static/schemas/shared.json" - }, - { - "fileMatch": ["/src/static/translations/shipment-card/*.json"], - "url": "./src/static/schemas/shipment-card.json" - }, - { - "fileMatch": ["/src/static/translations/shipping-method-card/*.json"], - "url": "./src/static/schemas/shipping-method-card.json" - }, - { - "fileMatch": ["/src/static/translations/sign-in-form/*.json"], - "url": "./src/static/schemas/sign-in-form.json" - }, - { - "fileMatch": ["/src/static/translations/spinner/*.json"], - "url": "./src/static/schemas/spinner.json" - }, - { - "fileMatch": ["/src/static/translations/store-card/*.json"], - "url": "./src/static/schemas/store-card.json" - }, - { - "fileMatch": ["/src/static/translations/store-form/*.json"], - "url": "./src/static/schemas/store-form.json" - }, - { - "fileMatch": ["/src/static/translations/store-shipping-method-form/*.json"], - "url": "./src/static/schemas/store-shipping-method-form.json" - }, - { - "fileMatch": ["/src/static/translations/subscription-card/*.json"], - "url": "./src/static/schemas/subscription-card.json" - }, - { - "fileMatch": ["/src/static/translations/subscription-form/*.json"], - "url": "./src/static/schemas/subscription-form.json" - }, - { - "fileMatch": ["/src/static/translations/subscription-settings-form/*.json"], - "url": "./src/static/schemas/subscription-settings-form.json" - }, - { - "fileMatch": ["/src/static/translations/subscriptions-table/*.json"], - "url": "./src/static/schemas/subscriptions-table.json" - }, - { - "fileMatch": ["/src/static/translations/tax-card/*.json"], - "url": "./src/static/schemas/tax-card.json" - }, - { - "fileMatch": ["/src/static/translations/tax-form/*.json"], - "url": "./src/static/schemas/tax-form.json" - }, - { - "fileMatch": ["/src/static/translations/template-config-form/*.json"], - "url": "./src/static/schemas/template-config-form.json" - }, - { - "fileMatch": ["/src/static/translations/template-form/*.json"], - "url": "./src/static/schemas/template-form.json" - }, - { - "fileMatch": ["/src/static/translations/template-set-card/*.json"], - "url": "./src/static/schemas/template-set-card.json" - }, - { - "fileMatch": ["/src/static/translations/template-set-form/*.json"], - "url": "./src/static/schemas/template-set-form.json" - }, - { - "fileMatch": ["/src/static/translations/transaction/*.json"], - "url": "./src/static/schemas/transaction.json" - }, - { - "fileMatch": ["/src/static/translations/transaction-card/*.json"], - "url": "./src/static/schemas/transaction-card.json" - }, - { - "fileMatch": ["/src/static/translations/transactions-table/*.json"], - "url": "./src/static/schemas/transactions-table.json" - }, - { - "fileMatch": ["/src/static/translations/update-payment-method-form/*.json"], - "url": "./src/static/schemas/update-payment-method-form.json" - }, - { - "fileMatch": ["/src/static/translations/user-card/*.json"], - "url": "./src/static/schemas/user-card.json" - }, - { - "fileMatch": ["/src/static/translations/user-form/*.json"], - "url": "./src/static/schemas/user-form.json" - }, - { - "fileMatch": ["/src/static/translations/users-table/*.json"], - "url": "./src/static/schemas/users-table.json" - }, - { - "fileMatch": ["/src/static/translations/webhook-card/*.json"], - "url": "./src/static/schemas/webhook-card.json" - }, - { - "fileMatch": ["/src/static/translations/webhook-form/*.json"], - "url": "./src/static/schemas/webhook-form.json" - }, - { - "fileMatch": ["/src/static/translations/webhook-log-card/*.json"], - "url": "./src/static/schemas/webhook-log-card.json" - }, - { - "fileMatch": ["/src/static/translations/webhook-status-card/*.json"], - "url": "./src/static/schemas/webhook-status-card.json" - } - ] -} diff --git a/package.json b/package.json index 844cb58eb..5a6badf29 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,6 @@ "types": "dist/index.d.ts", "scripts": { "wca": "wca analyze \"src/elements/public/*/index.ts\" --outFile custom-elements.json --format json", - "generate-schemas": "node \"./.scripts/generate-schemas.js\" && prettier \"./src/static/schemas/*.json\" \"./.vscode/settings.json\" --write", "generate-groups": "node \"./.scripts/generate-groups.js\" && prettier \"./web-test-runner.groups.js\" --write", "storybook": "wds --watch", "storybook:build": "NODE_OPTIONS=--openssl-legacy-provider build-storybook", @@ -148,4 +147,4 @@ "publishConfig": { "access": "public" } -} +} \ No newline at end of file diff --git a/src/static/schemas/access-recovery-form.json b/src/static/schemas/access-recovery-form.json deleted file mode 100644 index 7c7af87b7..000000000 --- a/src/static/schemas/access-recovery-form.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "back": { "type": "string", "default": "Go back" }, - "email": { "type": "string", "default": "Email" }, - "recover_access": { "type": "string", "default": "Get temporary password" }, - "recover_access_hint": { - "type": "string", - "default": "Enter your email to get a temporary password" - }, - "recover_access_success": { - "type": "string", - "default": "Done! Please check your email for further instructions." - }, - "unknown_error": { - "type": "string", - "default": "We can't issue a one-time code for this account at the moment. If you've already requested the code, please wait a few minutes before trying again." - }, - "v8n_invalid_email": { "type": "string", "default": "Invalid email" }, - "v8n_required": { "type": "string", "default": "Required" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "back", - "email", - "recover_access", - "recover_access_hint", - "recover_access_success", - "unknown_error", - "v8n_invalid_email", - "v8n_required", - "spinner" - ] -} diff --git a/src/static/schemas/address-card.json b/src/static/schemas/address-card.json deleted file mode 100644 index d70b456fb..000000000 --- a/src/static/schemas/address-card.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "default_billing_address": { "type": "string", "default": "Default billing address" }, - "default_shipping_address": { "type": "string", "default": "Default shipping address" }, - "full_address": { - "type": "string", - "default": "{{address1}} {{address2}} {{city}} {{region}} {{postal_code}}" - }, - "full_name": { "type": "string", "default": "{{first_name}} {{last_name}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "default_billing_address", - "default_shipping_address", - "full_address", - "full_name", - "spinner" - ] -} diff --git a/src/static/schemas/address-form.json b/src/static/schemas/address-form.json deleted file mode 100644 index 86ff759c9..000000000 --- a/src/static/schemas/address-form.json +++ /dev/null @@ -1,1356 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "address-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please enter address name" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten address name to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "first-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "First name" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store first names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "last-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last name" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store last names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "company": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Company" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store company names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "phone": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Phone" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { "type": "string", "default": "This phone number appears to be too long" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "address-one": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address Line 1" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Street address, P.O. box, company name, c/o" - }, - "v8n_required": { "type": "string", "default": "Please enter address line 1" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten address line 1 to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "address-two": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address Line 2" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "Apartment, suite, unit, building, floor, etc." - }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten address line 2 to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "city": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "City" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store city names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "postal-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Postal code" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { "type": "string", "default": "This postal code appears to be too long" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "country": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Country" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "region": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Region" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store region names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this address? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "country_af": { "type": "string", "default": "Afghanistan" }, - "country_ax": { "type": "string", "default": "Åland Islands" }, - "country_al": { "type": "string", "default": "Albania" }, - "country_dz": { "type": "string", "default": "Algeria" }, - "country_as": { "type": "string", "default": "American Samoa" }, - "country_ad": { "type": "string", "default": "Andorra" }, - "country_ao": { "type": "string", "default": "Angola" }, - "country_ai": { "type": "string", "default": "Anguilla" }, - "country_aq": { "type": "string", "default": "Antarctica" }, - "country_ag": { "type": "string", "default": "Antigua and Barbuda" }, - "country_ar": { "type": "string", "default": "Argentina" }, - "country_am": { "type": "string", "default": "Armenia" }, - "country_aw": { "type": "string", "default": "Aruba" }, - "country_au": { "type": "string", "default": "Australia" }, - "country_au_region_act": { "type": "string", "default": "Australian Capital Territory" }, - "country_au_region_nsw": { "type": "string", "default": "New South Wales" }, - "country_au_region_nt": { "type": "string", "default": "Northern Territory" }, - "country_au_region_qld": { "type": "string", "default": "Queensland" }, - "country_au_region_sa": { "type": "string", "default": "South Australia" }, - "country_au_region_tas": { "type": "string", "default": "Tasmania" }, - "country_au_region_vic": { "type": "string", "default": "Victoria" }, - "country_au_region_wa": { "type": "string", "default": "Western Australia" }, - "country_at": { "type": "string", "default": "Austria" }, - "country_at_region_bl": { "type": "string", "default": "Burgenland" }, - "country_at_region_kn": { "type": "string", "default": "Kaernten" }, - "country_at_region_no": { "type": "string", "default": "Niederoesterreich" }, - "country_at_region_oo": { "type": "string", "default": "Oberoesterreich" }, - "country_at_region_sb": { "type": "string", "default": "Salzburg" }, - "country_at_region_st": { "type": "string", "default": "Steiermark" }, - "country_at_region_ti": { "type": "string", "default": "Tirol" }, - "country_at_region_vb": { "type": "string", "default": "Voralberg" }, - "country_at_region_wi": { "type": "string", "default": "Wien" }, - "country_az": { "type": "string", "default": "Azerbaijan" }, - "country_bs": { "type": "string", "default": "Bahamas" }, - "country_bh": { "type": "string", "default": "Bahrain" }, - "country_bd": { "type": "string", "default": "Bangladesh" }, - "country_bb": { "type": "string", "default": "Barbados" }, - "country_by": { "type": "string", "default": "Belarus" }, - "country_be": { "type": "string", "default": "Belgium" }, - "country_bz": { "type": "string", "default": "Belize" }, - "country_bj": { "type": "string", "default": "Benin" }, - "country_bm": { "type": "string", "default": "Bermuda" }, - "country_bt": { "type": "string", "default": "Bhutan" }, - "country_bo": { "type": "string", "default": "Bolivia" }, - "country_bq": { "type": "string", "default": "Bonaire, Sint Eustatius and Saba" }, - "country_bq_region_bo": { "type": "string", "default": "Bonaire" }, - "country_bq_region_sa": { "type": "string", "default": "Saba" }, - "country_bq_region_se": { "type": "string", "default": "Sint Eustatius" }, - "country_ba": { "type": "string", "default": "Bosnia and Herzegovina" }, - "country_bw": { "type": "string", "default": "Botswana" }, - "country_bv": { "type": "string", "default": "Bouvet Island" }, - "country_br": { "type": "string", "default": "Brazil" }, - "country_io": { "type": "string", "default": "British Indian Ocean Territory" }, - "country_bn": { "type": "string", "default": "Brunei Darussalam" }, - "country_bg": { "type": "string", "default": "Bulgaria" }, - "country_bf": { "type": "string", "default": "Burkina Faso" }, - "country_bi": { "type": "string", "default": "Burundi" }, - "country_kh": { "type": "string", "default": "Cambodia" }, - "country_cm": { "type": "string", "default": "Cameroon" }, - "country_ca": { "type": "string", "default": "Canada" }, - "country_ca_region_ab": { "type": "string", "default": "Alberta" }, - "country_ca_region_bc": { "type": "string", "default": "British Columbia" }, - "country_ca_region_mb": { "type": "string", "default": "Manitoba" }, - "country_ca_region_nb": { "type": "string", "default": "New Brunswick" }, - "country_ca_region_nl": { "type": "string", "default": "Newfoundland and Labrador" }, - "country_ca_region_nt": { "type": "string", "default": "Northwest Territories" }, - "country_ca_region_ns": { "type": "string", "default": "Nova Scotia" }, - "country_ca_region_nu": { "type": "string", "default": "Nunavut" }, - "country_ca_region_on": { "type": "string", "default": "Ontario" }, - "country_ca_region_pe": { "type": "string", "default": "Prince Edward Island" }, - "country_ca_region_qc": { "type": "string", "default": "Quebec" }, - "country_ca_region_sk": { "type": "string", "default": "Saskatchewan" }, - "country_ca_region_yt": { "type": "string", "default": "Yukon" }, - "country_cv": { "type": "string", "default": "Cape Verde" }, - "country_cw": { "type": "string", "default": "Curaçao" }, - "country_ky": { "type": "string", "default": "Cayman Islands" }, - "country_cf": { "type": "string", "default": "Central African Republic" }, - "country_td": { "type": "string", "default": "Chad" }, - "country_cl": { "type": "string", "default": "Chile" }, - "country_cn": { "type": "string", "default": "China" }, - "country_cx": { "type": "string", "default": "Christmas Island" }, - "country_cc": { "type": "string", "default": "Cocos (Keeling) Islands" }, - "country_co": { "type": "string", "default": "Colombia" }, - "country_km": { "type": "string", "default": "Comoros" }, - "country_cg": { "type": "string", "default": "Congo" }, - "country_cd": { "type": "string", "default": "Congo, the Democratic Republic of the" }, - "country_ck": { "type": "string", "default": "Cook Islands" }, - "country_cr": { "type": "string", "default": "Costa Rica" }, - "country_ci": { "type": "string", "default": "Cote DIvoire" }, - "country_hr": { "type": "string", "default": "Croatia" }, - "country_cu": { "type": "string", "default": "Cuba" }, - "country_cy": { "type": "string", "default": "Cyprus" }, - "country_cz": { "type": "string", "default": "Czech Republic" }, - "country_dk": { "type": "string", "default": "Denmark" }, - "country_dj": { "type": "string", "default": "Djibouti" }, - "country_dm": { "type": "string", "default": "Dominica" }, - "country_do": { "type": "string", "default": "Dominican Republic" }, - "country_ec": { "type": "string", "default": "Ecuador" }, - "country_eg": { "type": "string", "default": "Egypt" }, - "country_sv": { "type": "string", "default": "El Salvador" }, - "country_sx": { "type": "string", "default": "Sint Maarten" }, - "country_gq": { "type": "string", "default": "Equatorial Guinea" }, - "country_er": { "type": "string", "default": "Eritrea" }, - "country_ee": { "type": "string", "default": "Estonia" }, - "country_et": { "type": "string", "default": "Ethiopia" }, - "country_fk": { "type": "string", "default": "Falkland Islands (Malvinas)" }, - "country_fo": { "type": "string", "default": "Faroe Islands" }, - "country_fj": { "type": "string", "default": "Fiji" }, - "country_fi": { "type": "string", "default": "Finland" }, - "country_fr": { "type": "string", "default": "France" }, - "country_gf": { "type": "string", "default": "French Guiana" }, - "country_pf": { "type": "string", "default": "French Polynesia" }, - "country_tf": { "type": "string", "default": "French Southern Territories" }, - "country_ga": { "type": "string", "default": "Gabon" }, - "country_gm": { "type": "string", "default": "Gambia" }, - "country_ge": { "type": "string", "default": "Georgia" }, - "country_de": { "type": "string", "default": "Germany" }, - "country_de_region_bw": { "type": "string", "default": "Baden-Wuerttemberg" }, - "country_de_region_by": { "type": "string", "default": "Bayern" }, - "country_de_region_be": { "type": "string", "default": "Berlin" }, - "country_de_region_bb": { "type": "string", "default": "Brandenburg" }, - "country_de_region_hb": { "type": "string", "default": "Bremen" }, - "country_de_region_hh": { "type": "string", "default": "Hamburg" }, - "country_de_region_he": { "type": "string", "default": "Hessen" }, - "country_de_region_mv": { "type": "string", "default": "Mecklenburg-Vorpommern" }, - "country_de_region_ni": { "type": "string", "default": "Niedersachsen" }, - "country_de_region_nw": { "type": "string", "default": "Nordrhein-Westfalen" }, - "country_de_region_rp": { "type": "string", "default": "Rheinland-Pfalz" }, - "country_de_region_sl": { "type": "string", "default": "Saarland" }, - "country_de_region_sn": { "type": "string", "default": "Sachsen" }, - "country_de_region_st": { "type": "string", "default": "Sachsen-Anhalt" }, - "country_de_region_sh": { "type": "string", "default": "Schleswig-Holstein" }, - "country_de_region_th": { "type": "string", "default": "Thueringen" }, - "country_gh": { "type": "string", "default": "Ghana" }, - "country_gi": { "type": "string", "default": "Gibraltar" }, - "country_gr": { "type": "string", "default": "Greece" }, - "country_gl": { "type": "string", "default": "Greenland" }, - "country_gd": { "type": "string", "default": "Grenada" }, - "country_gp": { "type": "string", "default": "Guadeloupe" }, - "country_gu": { "type": "string", "default": "Guam" }, - "country_gt": { "type": "string", "default": "Guatemala" }, - "country_gg": { "type": "string", "default": "Guernsey" }, - "country_gn": { "type": "string", "default": "Guinea" }, - "country_gw": { "type": "string", "default": "Guinea-bissau" }, - "country_gy": { "type": "string", "default": "Guyana" }, - "country_ht": { "type": "string", "default": "Haiti" }, - "country_hm": { "type": "string", "default": "Heard Island and McDonald Island" }, - "country_va": { "type": "string", "default": "Holy See (Vatican City State)" }, - "country_hn": { "type": "string", "default": "Honduras" }, - "country_hk": { "type": "string", "default": "Hong Kong" }, - "country_hu": { "type": "string", "default": "Hungary" }, - "country_is": { "type": "string", "default": "Iceland" }, - "country_in": { "type": "string", "default": "India" }, - "country_in_region_an": { "type": "string", "default": "Andaman and Nicobar Islands" }, - "country_in_region_ap": { "type": "string", "default": "Andhra Pradesh" }, - "country_in_region_ar": { "type": "string", "default": "Arunachal Pradesh" }, - "country_in_region_as": { "type": "string", "default": "Assam" }, - "country_in_region_br": { "type": "string", "default": "Bihar" }, - "country_in_region_ch": { "type": "string", "default": "Chandigarh" }, - "country_in_region_ct": { "type": "string", "default": "Chhattisgarh" }, - "country_in_region_dn": { "type": "string", "default": "Dadra and Nagar Haveli" }, - "country_in_region_dd": { "type": "string", "default": "Daman and Diu" }, - "country_in_region_dl": { "type": "string", "default": "Delhi" }, - "country_in_region_ga": { "type": "string", "default": "Goa" }, - "country_in_region_gj": { "type": "string", "default": "Gujarat" }, - "country_in_region_hr": { "type": "string", "default": "Haryana" }, - "country_in_region_hp": { "type": "string", "default": "Himachal Pradesh" }, - "country_in_region_jk": { "type": "string", "default": "Jammu and Kashmir" }, - "country_in_region_jh": { "type": "string", "default": "Jharkhand" }, - "country_in_region_ka": { "type": "string", "default": "Karnataka" }, - "country_in_region_kl": { "type": "string", "default": "Kerala" }, - "country_in_region_ld": { "type": "string", "default": "Lakshadweep" }, - "country_in_region_mp": { "type": "string", "default": "Madhya Pradesh" }, - "country_in_region_mh": { "type": "string", "default": "Maharashtra" }, - "country_in_region_mn": { "type": "string", "default": "Manipur" }, - "country_in_region_ml": { "type": "string", "default": "Meghalaya" }, - "country_in_region_mz": { "type": "string", "default": "Mizoram" }, - "country_in_region_nl": { "type": "string", "default": "Nagaland" }, - "country_in_region_or": { "type": "string", "default": "Odisha" }, - "country_in_region_py": { "type": "string", "default": "Puducherry" }, - "country_in_region_pb": { "type": "string", "default": "Punjab" }, - "country_in_region_rj": { "type": "string", "default": "Rajasthan" }, - "country_in_region_sk": { "type": "string", "default": "Sikkim" }, - "country_in_region_tn": { "type": "string", "default": "Tamil Nadu" }, - "country_in_region_tg": { "type": "string", "default": "Telangana" }, - "country_in_region_tr": { "type": "string", "default": "Tripura" }, - "country_in_region_ut": { "type": "string", "default": "Uttarakhand" }, - "country_in_region_up": { "type": "string", "default": "Uttar Pradesh" }, - "country_in_region_wb": { "type": "string", "default": "West Bengal" }, - "country_id": { "type": "string", "default": "Indonesia" }, - "country_ir": { "type": "string", "default": "Iran, Islamic Republic of" }, - "country_iq": { "type": "string", "default": "Iraq" }, - "country_ie": { "type": "string", "default": "Ireland" }, - "country_ie_region_cw": { "type": "string", "default": "Carlow" }, - "country_ie_region_cn": { "type": "string", "default": "Cavan" }, - "country_ie_region_ce": { "type": "string", "default": "Clare" }, - "country_ie_region_co": { "type": "string", "default": "Cork" }, - "country_ie_region_dl": { "type": "string", "default": "Donegal" }, - "country_ie_region_d": { "type": "string", "default": "Dublin" }, - "country_ie_region_g": { "type": "string", "default": "Galway" }, - "country_ie_region_ky": { "type": "string", "default": "Kerry" }, - "country_ie_region_ke": { "type": "string", "default": "Kildare" }, - "country_ie_region_kk": { "type": "string", "default": "Kilkenny" }, - "country_ie_region_ls": { "type": "string", "default": "Laois" }, - "country_ie_region_lm": { "type": "string", "default": "Leitrim" }, - "country_ie_region_lk": { "type": "string", "default": "Limerick" }, - "country_ie_region_ld": { "type": "string", "default": "Longford" }, - "country_ie_region_lh": { "type": "string", "default": "Louth" }, - "country_ie_region_mo": { "type": "string", "default": "Mayo" }, - "country_ie_region_mh": { "type": "string", "default": "Meath" }, - "country_ie_region_mn": { "type": "string", "default": "Monaghan" }, - "country_ie_region_oy": { "type": "string", "default": "Offaly" }, - "country_ie_region_rn": { "type": "string", "default": "Roscommon" }, - "country_ie_region_so": { "type": "string", "default": "Sligo" }, - "country_ie_region_ta": { "type": "string", "default": "Tipperary" }, - "country_ie_region_wd": { "type": "string", "default": "Waterford" }, - "country_ie_region_wh": { "type": "string", "default": "Westmeath" }, - "country_ie_region_wx": { "type": "string", "default": "Wexford" }, - "country_ie_region_ww": { "type": "string", "default": "Wicklow" }, - "country_im": { "type": "string", "default": "Isle of Man" }, - "country_il": { "type": "string", "default": "Israel" }, - "country_it": { "type": "string", "default": "Italy" }, - "country_jm": { "type": "string", "default": "Jamaica" }, - "country_jp": { "type": "string", "default": "Japan" }, - "country_jp_region_10": { "type": "string", "default": "Gunma" }, - "country_jp_region_11": { "type": "string", "default": "Saitama" }, - "country_jp_region_12": { "type": "string", "default": "Chiba" }, - "country_jp_region_13": { "type": "string", "default": "Tokyo" }, - "country_jp_region_14": { "type": "string", "default": "Kanagawa" }, - "country_jp_region_15": { "type": "string", "default": "Niigata" }, - "country_jp_region_16": { "type": "string", "default": "Toyama" }, - "country_jp_region_17": { "type": "string", "default": "Ishikawa" }, - "country_jp_region_18": { "type": "string", "default": "Fukui" }, - "country_jp_region_19": { "type": "string", "default": "Yamanashi" }, - "country_jp_region_20": { "type": "string", "default": "Nagano" }, - "country_jp_region_21": { "type": "string", "default": "Gifu" }, - "country_jp_region_22": { "type": "string", "default": "Shizuoka" }, - "country_jp_region_23": { "type": "string", "default": "Aichi" }, - "country_jp_region_24": { "type": "string", "default": "Mie" }, - "country_jp_region_25": { "type": "string", "default": "Shiga" }, - "country_jp_region_26": { "type": "string", "default": "Kyoto" }, - "country_jp_region_27": { "type": "string", "default": "Osaka" }, - "country_jp_region_28": { "type": "string", "default": "Hyogo" }, - "country_jp_region_29": { "type": "string", "default": "Nara" }, - "country_jp_region_30": { "type": "string", "default": "Wakayama" }, - "country_jp_region_31": { "type": "string", "default": "Tottori" }, - "country_jp_region_32": { "type": "string", "default": "Shimane" }, - "country_jp_region_33": { "type": "string", "default": "Okayama" }, - "country_jp_region_34": { "type": "string", "default": "Hiroshima" }, - "country_jp_region_35": { "type": "string", "default": "Yamaguchi" }, - "country_jp_region_36": { "type": "string", "default": "Tokushima" }, - "country_jp_region_37": { "type": "string", "default": "Kagawa" }, - "country_jp_region_38": { "type": "string", "default": "Ehime" }, - "country_jp_region_39": { "type": "string", "default": "Kochi" }, - "country_jp_region_40": { "type": "string", "default": "Fukuoka" }, - "country_jp_region_41": { "type": "string", "default": "Saga" }, - "country_jp_region_42": { "type": "string", "default": "Nagasaki" }, - "country_jp_region_43": { "type": "string", "default": "Kumamoto" }, - "country_jp_region_44": { "type": "string", "default": "Oita" }, - "country_jp_region_45": { "type": "string", "default": "Miyazaki" }, - "country_jp_region_46": { "type": "string", "default": "Kagoshima" }, - "country_jp_region_47": { "type": "string", "default": "Okinawa" }, - "country_jp_region_05": { "type": "string", "default": "Akita" }, - "country_jp_region_02": { "type": "string", "default": "Aomori" }, - "country_jp_region_07": { "type": "string", "default": "Fukushima" }, - "country_jp_region_01": { "type": "string", "default": "Hokkaido" }, - "country_jp_region_08": { "type": "string", "default": "Ibaraki" }, - "country_jp_region_03": { "type": "string", "default": "Iwate" }, - "country_jp_region_04": { "type": "string", "default": "Miyagi" }, - "country_jp_region_09": { "type": "string", "default": "Tochigi" }, - "country_jp_region_06": { "type": "string", "default": "Yamagata" }, - "country_je": { "type": "string", "default": "Jersey" }, - "country_jo": { "type": "string", "default": "Jordan" }, - "country_kz": { "type": "string", "default": "Kazakhstan" }, - "country_ke": { "type": "string", "default": "Kenya" }, - "country_ki": { "type": "string", "default": "Kiribati" }, - "country_kp": { "type": "string", "default": "Korea, Democratic People's Republic of" }, - "country_kr": { "type": "string", "default": "Korea, Republic of" }, - "country_kw": { "type": "string", "default": "Kuwait" }, - "country_kg": { "type": "string", "default": "Kyrgyzstan" }, - "country_la": { "type": "string", "default": "Lao People's Democratic Republic" }, - "country_lv": { "type": "string", "default": "Latvia" }, - "country_lb": { "type": "string", "default": "Lebanon" }, - "country_ls": { "type": "string", "default": "Lesotho" }, - "country_lr": { "type": "string", "default": "Liberia" }, - "country_ly": { "type": "string", "default": "Libya" }, - "country_li": { "type": "string", "default": "Liechtenstein" }, - "country_lt": { "type": "string", "default": "Lithuania" }, - "country_lu": { "type": "string", "default": "Luxembourg" }, - "country_mo": { "type": "string", "default": "Macau Special Administrative Region of China" }, - "country_mk": { "type": "string", "default": "North Macedonia" }, - "country_mg": { "type": "string", "default": "Madagascar" }, - "country_mw": { "type": "string", "default": "Malawi" }, - "country_my": { "type": "string", "default": "Malaysia" }, - "country_mv": { "type": "string", "default": "Maldives" }, - "country_ml": { "type": "string", "default": "Mali" }, - "country_mt": { "type": "string", "default": "Malta" }, - "country_mh": { "type": "string", "default": "Marshall Islands" }, - "country_mq": { "type": "string", "default": "Martinique" }, - "country_mr": { "type": "string", "default": "Mauritania" }, - "country_mu": { "type": "string", "default": "Mauritius" }, - "country_yt": { "type": "string", "default": "Mayotte" }, - "country_mx": { "type": "string", "default": "Mexico" }, - "country_fm": { "type": "string", "default": "Micronesia, Federated States of" }, - "country_md": { "type": "string", "default": "Moldova, Republic of" }, - "country_mc": { "type": "string", "default": "Monaco" }, - "country_mn": { "type": "string", "default": "Mongolia" }, - "country_me": { "type": "string", "default": "Montenegro" }, - "country_ms": { "type": "string", "default": "Montserrat" }, - "country_ma": { "type": "string", "default": "Morocco" }, - "country_mz": { "type": "string", "default": "Mozambique" }, - "country_mm": { "type": "string", "default": "Myanmar" }, - "country_na": { "type": "string", "default": "Namibia" }, - "country_nr": { "type": "string", "default": "Nauru" }, - "country_np": { "type": "string", "default": "Nepal" }, - "country_nl": { "type": "string", "default": "Netherlands" }, - "country_nc": { "type": "string", "default": "New Caledonia" }, - "country_nz": { "type": "string", "default": "New Zealand" }, - "country_ni": { "type": "string", "default": "Nicaragua" }, - "country_ne": { "type": "string", "default": "Niger" }, - "country_ng": { "type": "string", "default": "Nigeria" }, - "country_nu": { "type": "string", "default": "Niue" }, - "country_nf": { "type": "string", "default": "Norfolk Island" }, - "country_mp": { "type": "string", "default": "Northern Mariana Islands" }, - "country_no": { "type": "string", "default": "Norway" }, - "country_no_region_10": { "type": "string", "default": "Vest-Agder" }, - "country_no_region_11": { "type": "string", "default": "Rogaland" }, - "country_no_region_12": { "type": "string", "default": "Hordaland" }, - "country_no_region_14": { "type": "string", "default": "Sogn og Fjordane" }, - "country_no_region_15": { "type": "string", "default": "Møre og Romsdal" }, - "country_no_region_16": { "type": "string", "default": "Sør-Trøndelag" }, - "country_no_region_17": { "type": "string", "default": "Nord-Trøndelag" }, - "country_no_region_18": { "type": "string", "default": "Nordland" }, - "country_no_region_19": { "type": "string", "default": "Troms" }, - "country_no_region_20": { "type": "string", "default": "Finnmark" }, - "country_no_region_30": { "type": "string", "default": "Viken" }, - "country_no_region_34": { "type": "string", "default": "Innlandet" }, - "country_no_region_38": { "type": "string", "default": "Vestfold og Telemark" }, - "country_no_region_42": { "type": "string", "default": "Agder" }, - "country_no_region_46": { "type": "string", "default": "Vestland" }, - "country_no_region_50": { "type": "string", "default": "Trøndelag" }, - "country_no_region_54": { "type": "string", "default": "Troms og Finnmark" }, - "country_no_region_01": { "type": "string", "default": "Østfold" }, - "country_no_region_02": { "type": "string", "default": "Akershus" }, - "country_no_region_03": { "type": "string", "default": "Oslo" }, - "country_no_region_04": { "type": "string", "default": "Hedmark" }, - "country_no_region_05": { "type": "string", "default": "Oppland" }, - "country_no_region_06": { "type": "string", "default": "Buskerud" }, - "country_no_region_07": { "type": "string", "default": "Vestfold" }, - "country_no_region_08": { "type": "string", "default": "Telemark" }, - "country_no_region_09": { "type": "string", "default": "Aust-Agder" }, - "country_om": { "type": "string", "default": "Oman" }, - "country_pk": { "type": "string", "default": "Pakistan" }, - "country_pw": { "type": "string", "default": "Palau" }, - "country_ps": { "type": "string", "default": "Palestine, State of" }, - "country_pa": { "type": "string", "default": "Panama" }, - "country_pg": { "type": "string", "default": "Papua New Guinea" }, - "country_py": { "type": "string", "default": "Paraguay" }, - "country_pe": { "type": "string", "default": "Peru" }, - "country_ph": { "type": "string", "default": "Philippines" }, - "country_pn": { "type": "string", "default": "Pitcairn" }, - "country_pl": { "type": "string", "default": "Poland" }, - "country_pt": { "type": "string", "default": "Portugal" }, - "country_pr": { "type": "string", "default": "Puerto Rico" }, - "country_qa": { "type": "string", "default": "Qatar" }, - "country_re": { "type": "string", "default": "Réunion" }, - "country_ro": { "type": "string", "default": "Romania" }, - "country_ru": { "type": "string", "default": "Russian Federation" }, - "country_rw": { "type": "string", "default": "Rwanda" }, - "country_bl": { "type": "string", "default": "Saint Barthélemy" }, - "country_sh": { "type": "string", "default": "Saint Helena, Ascension and Tristan da Cunha" }, - "country_kn": { "type": "string", "default": "Saint Kitts and Nevis" }, - "country_lc": { "type": "string", "default": "Saint Lucia" }, - "country_mf": { "type": "string", "default": "Saint Martin" }, - "country_pm": { "type": "string", "default": "Saint Pierre and Miquelon" }, - "country_vc": { "type": "string", "default": "Saint Vincent and the Grenadines" }, - "country_ws": { "type": "string", "default": "Samoa" }, - "country_sm": { "type": "string", "default": "San Marino" }, - "country_ss": { "type": "string", "default": "South Sudan" }, - "country_st": { "type": "string", "default": "Sao Tome and Principe" }, - "country_sa": { "type": "string", "default": "Saudi Arabia" }, - "country_sn": { "type": "string", "default": "Senegal" }, - "country_rs": { "type": "string", "default": "Serbia" }, - "country_sc": { "type": "string", "default": "Seychelles" }, - "country_sl": { "type": "string", "default": "Sierra Leone" }, - "country_sg": { "type": "string", "default": "Singapore" }, - "country_sk": { "type": "string", "default": "Slovakia" }, - "country_si": { "type": "string", "default": "Slovenia" }, - "country_sb": { "type": "string", "default": "Solomon Islands" }, - "country_so": { "type": "string", "default": "Somalia" }, - "country_za": { "type": "string", "default": "South Africa" }, - "country_gs": { "type": "string", "default": "South Georgia and the South Sandwich Islands" }, - "country_es": { "type": "string", "default": "Spain" }, - "country_es_region_a coruna": { "type": "string", "default": "A Coruna" }, - "country_es_region_alava": { "type": "string", "default": "Alava" }, - "country_es_region_albacete": { "type": "string", "default": "Albacete" }, - "country_es_region_alicante": { "type": "string", "default": "Alicante" }, - "country_es_region_almeria": { "type": "string", "default": "Almeria" }, - "country_es_region_asturias": { "type": "string", "default": "Asturias" }, - "country_es_region_avila": { "type": "string", "default": "Avila" }, - "country_es_region_badajoz": { "type": "string", "default": "Badajoz" }, - "country_es_region_baleares": { "type": "string", "default": "Baleares" }, - "country_es_region_barcelona": { "type": "string", "default": "Barcelona" }, - "country_es_region_burgos": { "type": "string", "default": "Burgos" }, - "country_es_region_caceres": { "type": "string", "default": "Caceres" }, - "country_es_region_cadiz": { "type": "string", "default": "Cadiz" }, - "country_es_region_cn": { "type": "string", "default": "Canarias" }, - "country_es_region_cantabria": { "type": "string", "default": "Cantabria" }, - "country_es_region_castellon": { "type": "string", "default": "Castellon" }, - "country_es_region_ceuta": { "type": "string", "default": "Ceuta" }, - "country_es_region_ciudad real": { "type": "string", "default": "Ciudad Real" }, - "country_es_region_cordoba": { "type": "string", "default": "Cordoba" }, - "country_es_region_cuenca": { "type": "string", "default": "Cuenca" }, - "country_es_region_gipuzkoa": { "type": "string", "default": "Gipuzkoa" }, - "country_es_region_girona": { "type": "string", "default": "Girona" }, - "country_es_region_granada": { "type": "string", "default": "Granada" }, - "country_es_region_guadalajara": { "type": "string", "default": "Guadalajara" }, - "country_es_region_guipuzcoa": { "type": "string", "default": "Guipuzcoa" }, - "country_es_region_huelva": { "type": "string", "default": "Huelva" }, - "country_es_region_huesca": { "type": "string", "default": "Huesca" }, - "country_es_region_jaen": { "type": "string", "default": "Jaen" }, - "country_es_region_la rioja": { "type": "string", "default": "La Rioja" }, - "country_es_region_las palmas": { "type": "string", "default": "Las Palmas" }, - "country_es_region_leon": { "type": "string", "default": "Leon" }, - "country_es_region_lleida": { "type": "string", "default": "Lleida" }, - "country_es_region_lugo": { "type": "string", "default": "Lugo" }, - "country_es_region_madrid": { "type": "string", "default": "Madrid" }, - "country_es_region_malaga": { "type": "string", "default": "Malaga" }, - "country_es_region_melilla": { "type": "string", "default": "Melilla" }, - "country_es_region_murcia": { "type": "string", "default": "Murcia" }, - "country_es_region_navarra": { "type": "string", "default": "Navarra" }, - "country_es_region_ourense": { "type": "string", "default": "Ourense" }, - "country_es_region_palencia": { "type": "string", "default": "Palencia" }, - "country_es_region_pontevedra": { "type": "string", "default": "Pontevedra" }, - "country_es_region_salamanca": { "type": "string", "default": "Salamanca" }, - "country_es_region_santa cruz de tenerife": { - "type": "string", - "default": "Santa Cruz de Tenerife" - }, - "country_es_region_segovia": { "type": "string", "default": "Segovia" }, - "country_es_region_sevilla": { "type": "string", "default": "Sevilla" }, - "country_es_region_soria": { "type": "string", "default": "Soria" }, - "country_es_region_tarragona": { "type": "string", "default": "Tarragona" }, - "country_es_region_teruel": { "type": "string", "default": "Teruel" }, - "country_es_region_toledo": { "type": "string", "default": "Toledo" }, - "country_es_region_valencia": { "type": "string", "default": "Valencia" }, - "country_es_region_valladolid": { "type": "string", "default": "Valladolid" }, - "country_es_region_vizcaya": { "type": "string", "default": "Biscay" }, - "country_es_region_zamora": { "type": "string", "default": "Zamora" }, - "country_es_region_zaragoza": { "type": "string", "default": "Zaragoza" }, - "country_lk": { "type": "string", "default": "Sri Lanka" }, - "country_sd": { "type": "string", "default": "Sudan" }, - "country_sr": { "type": "string", "default": "Suriname" }, - "country_sj": { "type": "string", "default": "Svalbard and Jan Mayen" }, - "country_sz": { "type": "string", "default": "Eswatini" }, - "country_se": { "type": "string", "default": "Sweden" }, - "country_ch": { "type": "string", "default": "Switzerland" }, - "country_ch_region_ag": { "type": "string", "default": "Aargau" }, - "country_ch_region_ar": { "type": "string", "default": "Appenzell Ausserrhoden" }, - "country_ch_region_ai": { "type": "string", "default": "Appenzell Innerrhoden" }, - "country_ch_region_bl": { "type": "string", "default": "Basel-Landschaft" }, - "country_ch_region_bs": { "type": "string", "default": "Basel-Stadt" }, - "country_ch_region_be": { "type": "string", "default": "Bern" }, - "country_ch_region_fr": { "type": "string", "default": "Freiburg" }, - "country_ch_region_ge": { "type": "string", "default": "Genf" }, - "country_ch_region_gl": { "type": "string", "default": "Glarus" }, - "country_ch_region_gr": { "type": "string", "default": "Graubuenden" }, - "country_ch_region_ju": { "type": "string", "default": "Jura" }, - "country_ch_region_lu": { "type": "string", "default": "Luzern" }, - "country_ch_region_ne": { "type": "string", "default": "Neuenburg" }, - "country_ch_region_nw": { "type": "string", "default": "Nidwalden" }, - "country_ch_region_ow": { "type": "string", "default": "Obwalden" }, - "country_ch_region_sh": { "type": "string", "default": "Schaffhausen" }, - "country_ch_region_sz": { "type": "string", "default": "Schwyz" }, - "country_ch_region_so": { "type": "string", "default": "Solothurn" }, - "country_ch_region_sg": { "type": "string", "default": "St. Gallen" }, - "country_ch_region_ti": { "type": "string", "default": "Tessin" }, - "country_ch_region_tg": { "type": "string", "default": "Thurgau" }, - "country_ch_region_ur": { "type": "string", "default": "Uri" }, - "country_ch_region_vs": { "type": "string", "default": "Valais" }, - "country_ch_region_vd": { "type": "string", "default": "Vaud" }, - "country_ch_region_zh": { "type": "string", "default": "Zurich" }, - "country_ch_region_zg": { "type": "string", "default": "Zug" }, - "country_sy": { "type": "string", "default": "Syrian Arab Republic" }, - "country_tw": { "type": "string", "default": "Taiwan" }, - "country_tj": { "type": "string", "default": "Tajikistan" }, - "country_tz": { "type": "string", "default": "Tanzania, United Republic of" }, - "country_th": { "type": "string", "default": "Thailand" }, - "country_tl": { "type": "string", "default": "Timor-Leste" }, - "country_tg": { "type": "string", "default": "Togo" }, - "country_tk": { "type": "string", "default": "Tokelau" }, - "country_to": { "type": "string", "default": "Tonga" }, - "country_tt": { "type": "string", "default": "Trinidad and Tobago" }, - "country_tn": { "type": "string", "default": "Tunisia" }, - "country_tr": { "type": "string", "default": "Turkey" }, - "country_tm": { "type": "string", "default": "Turkmenistan" }, - "country_tc": { "type": "string", "default": "Turks and Caicos Islands" }, - "country_tv": { "type": "string", "default": "Tuvalu" }, - "country_ug": { "type": "string", "default": "Uganda" }, - "country_ua": { "type": "string", "default": "Ukraine" }, - "country_ae": { "type": "string", "default": "United Arab Emirates" }, - "country_gb": { "type": "string", "default": "United Kingdom" }, - "country_us": { "type": "string", "default": "United States" }, - "country_us_region_al": { "type": "string", "default": "Alabama" }, - "country_us_region_ak": { "type": "string", "default": "Alaska" }, - "country_us_region_as": { "type": "string", "default": "American Samoa" }, - "country_us_region_az": { "type": "string", "default": "Arizona" }, - "country_us_region_ar": { "type": "string", "default": "Arkansas" }, - "country_us_region_af": { "type": "string", "default": "Armed Forces Africa" }, - "country_us_region_aa": { "type": "string", "default": "Armed Forces Americas" }, - "country_us_region_ac": { "type": "string", "default": "Armed Forces Canada" }, - "country_us_region_ae": { "type": "string", "default": "Armed Forces Europe" }, - "country_us_region_am": { "type": "string", "default": "Armed Forces Middle East" }, - "country_us_region_ap": { "type": "string", "default": "Armed Forces Pacific" }, - "country_us_region_ca": { "type": "string", "default": "California" }, - "country_us_region_co": { "type": "string", "default": "Colorado" }, - "country_us_region_ct": { "type": "string", "default": "Connecticut" }, - "country_us_region_de": { "type": "string", "default": "Delaware" }, - "country_us_region_dc": { "type": "string", "default": "Washington DC" }, - "country_us_region_fm": { "type": "string", "default": "Federated States Of Micronesia" }, - "country_us_region_fl": { "type": "string", "default": "Florida" }, - "country_us_region_ga": { "type": "string", "default": "Georgia" }, - "country_us_region_gu": { "type": "string", "default": "Guam" }, - "country_us_region_hi": { "type": "string", "default": "Hawaii" }, - "country_us_region_id": { "type": "string", "default": "Idaho" }, - "country_us_region_il": { "type": "string", "default": "Illinois" }, - "country_us_region_in": { "type": "string", "default": "Indiana" }, - "country_us_region_ia": { "type": "string", "default": "Iowa" }, - "country_us_region_ks": { "type": "string", "default": "Kansas" }, - "country_us_region_ky": { "type": "string", "default": "Kentucky" }, - "country_us_region_la": { "type": "string", "default": "Louisiana" }, - "country_us_region_me": { "type": "string", "default": "Maine" }, - "country_us_region_mh": { "type": "string", "default": "Marshall Islands" }, - "country_us_region_md": { "type": "string", "default": "Maryland" }, - "country_us_region_ma": { "type": "string", "default": "Massachusetts" }, - "country_us_region_mi": { "type": "string", "default": "Michigan" }, - "country_us_region_mn": { "type": "string", "default": "Minnesota" }, - "country_us_region_ms": { "type": "string", "default": "Mississippi" }, - "country_us_region_mo": { "type": "string", "default": "Missouri" }, - "country_us_region_mt": { "type": "string", "default": "Montana" }, - "country_us_region_ne": { "type": "string", "default": "Nebraska" }, - "country_us_region_nv": { "type": "string", "default": "Nevada" }, - "country_us_region_nh": { "type": "string", "default": "New Hampshire" }, - "country_us_region_nj": { "type": "string", "default": "New Jersey" }, - "country_us_region_nm": { "type": "string", "default": "New Mexico" }, - "country_us_region_ny": { "type": "string", "default": "New York" }, - "country_us_region_nc": { "type": "string", "default": "North Carolina" }, - "country_us_region_nd": { "type": "string", "default": "North Dakota" }, - "country_us_region_mp": { "type": "string", "default": "Northern Mariana Islands" }, - "country_us_region_oh": { "type": "string", "default": "Ohio" }, - "country_us_region_ok": { "type": "string", "default": "Oklahoma" }, - "country_us_region_or": { "type": "string", "default": "Oregon" }, - "country_us_region_pa": { "type": "string", "default": "Pennsylvania" }, - "country_us_region_pr": { "type": "string", "default": "Puerto Rico" }, - "country_us_region_ri": { "type": "string", "default": "Rhode Island" }, - "country_us_region_sc": { "type": "string", "default": "South Carolina" }, - "country_us_region_sd": { "type": "string", "default": "South Dakota" }, - "country_us_region_tn": { "type": "string", "default": "Tennessee" }, - "country_us_region_tx": { "type": "string", "default": "Texas" }, - "country_us_region_ut": { "type": "string", "default": "Utah" }, - "country_us_region_vt": { "type": "string", "default": "Vermont" }, - "country_us_region_vi": { "type": "string", "default": "Virgin Islands" }, - "country_us_region_va": { "type": "string", "default": "Virginia" }, - "country_us_region_wa": { "type": "string", "default": "Washington" }, - "country_us_region_wv": { "type": "string", "default": "West Virginia" }, - "country_us_region_wi": { "type": "string", "default": "Wisconsin" }, - "country_us_region_wy": { "type": "string", "default": "Wyoming" }, - "country_um": { "type": "string", "default": "United States Minor Outlying Islands" }, - "country_uy": { "type": "string", "default": "Uruguay" }, - "country_uz": { "type": "string", "default": "Uzbekistan" }, - "country_vu": { "type": "string", "default": "Vanuatu" }, - "country_ve": { "type": "string", "default": "Venezuela" }, - "country_vn": { "type": "string", "default": "Vietnam" }, - "country_vg": { "type": "string", "default": "Virgin Islands, British" }, - "country_vi": { "type": "string", "default": "Virgin Islands, U.S." }, - "country_wf": { "type": "string", "default": "Wallis and Futuna Islands" }, - "country_eh": { "type": "string", "default": "Western Sahara" }, - "country_ye": { "type": "string", "default": "Yemen" }, - "country_zm": { "type": "string", "default": "Zambia" }, - "country_zw": { "type": "string", "default": "Zimbabwe" } - }, - "required": [ - "address-name", - "first-name", - "last-name", - "company", - "phone", - "address-one", - "address-two", - "city", - "postal-code", - "country", - "region", - "timestamps", - "delete", - "create", - "spinner", - "country_af", - "country_ax", - "country_al", - "country_dz", - "country_as", - "country_ad", - "country_ao", - "country_ai", - "country_aq", - "country_ag", - "country_ar", - "country_am", - "country_aw", - "country_au", - "country_au_region_act", - "country_au_region_nsw", - "country_au_region_nt", - "country_au_region_qld", - "country_au_region_sa", - "country_au_region_tas", - "country_au_region_vic", - "country_au_region_wa", - "country_at", - "country_at_region_bl", - "country_at_region_kn", - "country_at_region_no", - "country_at_region_oo", - "country_at_region_sb", - "country_at_region_st", - "country_at_region_ti", - "country_at_region_vb", - "country_at_region_wi", - "country_az", - "country_bs", - "country_bh", - "country_bd", - "country_bb", - "country_by", - "country_be", - "country_bz", - "country_bj", - "country_bm", - "country_bt", - "country_bo", - "country_bq", - "country_bq_region_bo", - "country_bq_region_sa", - "country_bq_region_se", - "country_ba", - "country_bw", - "country_bv", - "country_br", - "country_io", - "country_bn", - "country_bg", - "country_bf", - "country_bi", - "country_kh", - "country_cm", - "country_ca", - "country_ca_region_ab", - "country_ca_region_bc", - "country_ca_region_mb", - "country_ca_region_nb", - "country_ca_region_nl", - "country_ca_region_nt", - "country_ca_region_ns", - "country_ca_region_nu", - "country_ca_region_on", - "country_ca_region_pe", - "country_ca_region_qc", - "country_ca_region_sk", - "country_ca_region_yt", - "country_cv", - "country_cw", - "country_ky", - "country_cf", - "country_td", - "country_cl", - "country_cn", - "country_cx", - "country_cc", - "country_co", - "country_km", - "country_cg", - "country_cd", - "country_ck", - "country_cr", - "country_ci", - "country_hr", - "country_cu", - "country_cy", - "country_cz", - "country_dk", - "country_dj", - "country_dm", - "country_do", - "country_ec", - "country_eg", - "country_sv", - "country_sx", - "country_gq", - "country_er", - "country_ee", - "country_et", - "country_fk", - "country_fo", - "country_fj", - "country_fi", - "country_fr", - "country_gf", - "country_pf", - "country_tf", - "country_ga", - "country_gm", - "country_ge", - "country_de", - "country_de_region_bw", - "country_de_region_by", - "country_de_region_be", - "country_de_region_bb", - "country_de_region_hb", - "country_de_region_hh", - "country_de_region_he", - "country_de_region_mv", - "country_de_region_ni", - "country_de_region_nw", - "country_de_region_rp", - "country_de_region_sl", - "country_de_region_sn", - "country_de_region_st", - "country_de_region_sh", - "country_de_region_th", - "country_gh", - "country_gi", - "country_gr", - "country_gl", - "country_gd", - "country_gp", - "country_gu", - "country_gt", - "country_gg", - "country_gn", - "country_gw", - "country_gy", - "country_ht", - "country_hm", - "country_va", - "country_hn", - "country_hk", - "country_hu", - "country_is", - "country_in", - "country_in_region_an", - "country_in_region_ap", - "country_in_region_ar", - "country_in_region_as", - "country_in_region_br", - "country_in_region_ch", - "country_in_region_ct", - "country_in_region_dn", - "country_in_region_dd", - "country_in_region_dl", - "country_in_region_ga", - "country_in_region_gj", - "country_in_region_hr", - "country_in_region_hp", - "country_in_region_jk", - "country_in_region_jh", - "country_in_region_ka", - "country_in_region_kl", - "country_in_region_ld", - "country_in_region_mp", - "country_in_region_mh", - "country_in_region_mn", - "country_in_region_ml", - "country_in_region_mz", - "country_in_region_nl", - "country_in_region_or", - "country_in_region_py", - "country_in_region_pb", - "country_in_region_rj", - "country_in_region_sk", - "country_in_region_tn", - "country_in_region_tg", - "country_in_region_tr", - "country_in_region_ut", - "country_in_region_up", - "country_in_region_wb", - "country_id", - "country_ir", - "country_iq", - "country_ie", - "country_ie_region_cw", - "country_ie_region_cn", - "country_ie_region_ce", - "country_ie_region_co", - "country_ie_region_dl", - "country_ie_region_d", - "country_ie_region_g", - "country_ie_region_ky", - "country_ie_region_ke", - "country_ie_region_kk", - "country_ie_region_ls", - "country_ie_region_lm", - "country_ie_region_lk", - "country_ie_region_ld", - "country_ie_region_lh", - "country_ie_region_mo", - "country_ie_region_mh", - "country_ie_region_mn", - "country_ie_region_oy", - "country_ie_region_rn", - "country_ie_region_so", - "country_ie_region_ta", - "country_ie_region_wd", - "country_ie_region_wh", - "country_ie_region_wx", - "country_ie_region_ww", - "country_im", - "country_il", - "country_it", - "country_jm", - "country_jp", - "country_jp_region_10", - "country_jp_region_11", - "country_jp_region_12", - "country_jp_region_13", - "country_jp_region_14", - "country_jp_region_15", - "country_jp_region_16", - "country_jp_region_17", - "country_jp_region_18", - "country_jp_region_19", - "country_jp_region_20", - "country_jp_region_21", - "country_jp_region_22", - "country_jp_region_23", - "country_jp_region_24", - "country_jp_region_25", - "country_jp_region_26", - "country_jp_region_27", - "country_jp_region_28", - "country_jp_region_29", - "country_jp_region_30", - "country_jp_region_31", - "country_jp_region_32", - "country_jp_region_33", - "country_jp_region_34", - "country_jp_region_35", - "country_jp_region_36", - "country_jp_region_37", - "country_jp_region_38", - "country_jp_region_39", - "country_jp_region_40", - "country_jp_region_41", - "country_jp_region_42", - "country_jp_region_43", - "country_jp_region_44", - "country_jp_region_45", - "country_jp_region_46", - "country_jp_region_47", - "country_jp_region_05", - "country_jp_region_02", - "country_jp_region_07", - "country_jp_region_01", - "country_jp_region_08", - "country_jp_region_03", - "country_jp_region_04", - "country_jp_region_09", - "country_jp_region_06", - "country_je", - "country_jo", - "country_kz", - "country_ke", - "country_ki", - "country_kp", - "country_kr", - "country_kw", - "country_kg", - "country_la", - "country_lv", - "country_lb", - "country_ls", - "country_lr", - "country_ly", - "country_li", - "country_lt", - "country_lu", - "country_mo", - "country_mk", - "country_mg", - "country_mw", - "country_my", - "country_mv", - "country_ml", - "country_mt", - "country_mh", - "country_mq", - "country_mr", - "country_mu", - "country_yt", - "country_mx", - "country_fm", - "country_md", - "country_mc", - "country_mn", - "country_me", - "country_ms", - "country_ma", - "country_mz", - "country_mm", - "country_na", - "country_nr", - "country_np", - "country_nl", - "country_nc", - "country_nz", - "country_ni", - "country_ne", - "country_ng", - "country_nu", - "country_nf", - "country_mp", - "country_no", - "country_no_region_10", - "country_no_region_11", - "country_no_region_12", - "country_no_region_14", - "country_no_region_15", - "country_no_region_16", - "country_no_region_17", - "country_no_region_18", - "country_no_region_19", - "country_no_region_20", - "country_no_region_30", - "country_no_region_34", - "country_no_region_38", - "country_no_region_42", - "country_no_region_46", - "country_no_region_50", - "country_no_region_54", - "country_no_region_01", - "country_no_region_02", - "country_no_region_03", - "country_no_region_04", - "country_no_region_05", - "country_no_region_06", - "country_no_region_07", - "country_no_region_08", - "country_no_region_09", - "country_om", - "country_pk", - "country_pw", - "country_ps", - "country_pa", - "country_pg", - "country_py", - "country_pe", - "country_ph", - "country_pn", - "country_pl", - "country_pt", - "country_pr", - "country_qa", - "country_re", - "country_ro", - "country_ru", - "country_rw", - "country_bl", - "country_sh", - "country_kn", - "country_lc", - "country_mf", - "country_pm", - "country_vc", - "country_ws", - "country_sm", - "country_ss", - "country_st", - "country_sa", - "country_sn", - "country_rs", - "country_sc", - "country_sl", - "country_sg", - "country_sk", - "country_si", - "country_sb", - "country_so", - "country_za", - "country_gs", - "country_es", - "country_es_region_a coruna", - "country_es_region_alava", - "country_es_region_albacete", - "country_es_region_alicante", - "country_es_region_almeria", - "country_es_region_asturias", - "country_es_region_avila", - "country_es_region_badajoz", - "country_es_region_baleares", - "country_es_region_barcelona", - "country_es_region_burgos", - "country_es_region_caceres", - "country_es_region_cadiz", - "country_es_region_cn", - "country_es_region_cantabria", - "country_es_region_castellon", - "country_es_region_ceuta", - "country_es_region_ciudad real", - "country_es_region_cordoba", - "country_es_region_cuenca", - "country_es_region_gipuzkoa", - "country_es_region_girona", - "country_es_region_granada", - "country_es_region_guadalajara", - "country_es_region_guipuzcoa", - "country_es_region_huelva", - "country_es_region_huesca", - "country_es_region_jaen", - "country_es_region_la rioja", - "country_es_region_las palmas", - "country_es_region_leon", - "country_es_region_lleida", - "country_es_region_lugo", - "country_es_region_madrid", - "country_es_region_malaga", - "country_es_region_melilla", - "country_es_region_murcia", - "country_es_region_navarra", - "country_es_region_ourense", - "country_es_region_palencia", - "country_es_region_pontevedra", - "country_es_region_salamanca", - "country_es_region_santa cruz de tenerife", - "country_es_region_segovia", - "country_es_region_sevilla", - "country_es_region_soria", - "country_es_region_tarragona", - "country_es_region_teruel", - "country_es_region_toledo", - "country_es_region_valencia", - "country_es_region_valladolid", - "country_es_region_vizcaya", - "country_es_region_zamora", - "country_es_region_zaragoza", - "country_lk", - "country_sd", - "country_sr", - "country_sj", - "country_sz", - "country_se", - "country_ch", - "country_ch_region_ag", - "country_ch_region_ar", - "country_ch_region_ai", - "country_ch_region_bl", - "country_ch_region_bs", - "country_ch_region_be", - "country_ch_region_fr", - "country_ch_region_ge", - "country_ch_region_gl", - "country_ch_region_gr", - "country_ch_region_ju", - "country_ch_region_lu", - "country_ch_region_ne", - "country_ch_region_nw", - "country_ch_region_ow", - "country_ch_region_sh", - "country_ch_region_sz", - "country_ch_region_so", - "country_ch_region_sg", - "country_ch_region_ti", - "country_ch_region_tg", - "country_ch_region_ur", - "country_ch_region_vs", - "country_ch_region_vd", - "country_ch_region_zh", - "country_ch_region_zg", - "country_sy", - "country_tw", - "country_tj", - "country_tz", - "country_th", - "country_tl", - "country_tg", - "country_tk", - "country_to", - "country_tt", - "country_tn", - "country_tr", - "country_tm", - "country_tc", - "country_tv", - "country_ug", - "country_ua", - "country_ae", - "country_gb", - "country_us", - "country_us_region_al", - "country_us_region_ak", - "country_us_region_as", - "country_us_region_az", - "country_us_region_ar", - "country_us_region_af", - "country_us_region_aa", - "country_us_region_ac", - "country_us_region_ae", - "country_us_region_am", - "country_us_region_ap", - "country_us_region_ca", - "country_us_region_co", - "country_us_region_ct", - "country_us_region_de", - "country_us_region_dc", - "country_us_region_fm", - "country_us_region_fl", - "country_us_region_ga", - "country_us_region_gu", - "country_us_region_hi", - "country_us_region_id", - "country_us_region_il", - "country_us_region_in", - "country_us_region_ia", - "country_us_region_ks", - "country_us_region_ky", - "country_us_region_la", - "country_us_region_me", - "country_us_region_mh", - "country_us_region_md", - "country_us_region_ma", - "country_us_region_mi", - "country_us_region_mn", - "country_us_region_ms", - "country_us_region_mo", - "country_us_region_mt", - "country_us_region_ne", - "country_us_region_nv", - "country_us_region_nh", - "country_us_region_nj", - "country_us_region_nm", - "country_us_region_ny", - "country_us_region_nc", - "country_us_region_nd", - "country_us_region_mp", - "country_us_region_oh", - "country_us_region_ok", - "country_us_region_or", - "country_us_region_pa", - "country_us_region_pr", - "country_us_region_ri", - "country_us_region_sc", - "country_us_region_sd", - "country_us_region_tn", - "country_us_region_tx", - "country_us_region_ut", - "country_us_region_vt", - "country_us_region_vi", - "country_us_region_va", - "country_us_region_wa", - "country_us_region_wv", - "country_us_region_wi", - "country_us_region_wy", - "country_um", - "country_uy", - "country_uz", - "country_vu", - "country_ve", - "country_vn", - "country_vg", - "country_vi", - "country_wf", - "country_eh", - "country_ye", - "country_zm", - "country_zw" - ] -} diff --git a/src/static/schemas/admin-subscription-card.json b/src/static/schemas/admin-subscription-card.json deleted file mode 100644 index 86e651cdd..000000000 --- a/src/static/schemas/admin-subscription-card.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "daily": { "type": "string", "default": "/ day" }, - "daily_plural": { "type": "string", "default": "/ {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t({{units}}, { \"count\": {{count}}, \"ns\": \"admin-subscription-card\" })" - }, - "monthly": { "type": "string", "default": "/ month" }, - "monthly_plural": { "type": "string", "default": "/ {{count}} months" }, - "price_recurring": { - "type": "string", - "default": "{{amount, price}} $t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"admin-subscription-card\" })" - }, - "price_twice_a_month": { - "type": "string", - "default": "{{amount, price}} $t(twice_a_month, { \"ns\": \"admin-subscription-card\" })" - }, - "subscription_active": { "type": "string", "default": "Next payment on {{date, date}}" }, - "subscription_cancelled": { "type": "string", "default": "Ended on {{date, date}}" }, - "subscription_failed": { "type": "string", "default": "Payment failed on {{date, date}}" }, - "subscription_inactive": { "type": "string", "default": "Inactive" }, - "subscription_will_be_cancelled": { "type": "string", "default": "Ends on {{date, date}}" }, - "subscription_will_be_active": { "type": "string", "default": "Starts on {{date, date}}" }, - "summary": { "type": "string", "default": "{{ firstItem.name }}" }, - "summary_plural": { - "type": "string", - "default": "{{ firstItem.name }} + {{ countMinus1 }} more" - }, - "summary_approximate": { "type": "string", "default": "{{ firstItem.name }} + more" }, - "twice_a_month": { "type": "string", "default": "twice a month" }, - "weekly": { "type": "string", "default": "/ week" }, - "weekly_plural": { "type": "string", "default": "/ {{count}} weeks" }, - "yearly": { "type": "string", "default": "/ year" }, - "yearly_plural": { "type": "string", "default": "/ {{count}} years" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "price_recurring", - "price_twice_a_month", - "subscription_active", - "subscription_cancelled", - "subscription_failed", - "subscription_inactive", - "subscription_will_be_cancelled", - "subscription_will_be_active", - "summary", - "summary_plural", - "summary_approximate", - "twice_a_month", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "spinner" - ] -} diff --git a/src/static/schemas/api-browser.json b/src/static/schemas/api-browser.json deleted file mode 100644 index fa0293293..000000000 --- a/src/static/schemas/api-browser.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "go_back": { "type": "string", "default": "Go back" }, - "go_home": { "type": "string", "default": "Go home" }, - "current_url": { "type": "string", "default": "Current URL" }, - "get_mode": { - "type": "string", - "default": "Click to send GET requests to the selected endpoints" - }, - "post_mode": { - "type": "string", - "default": "Click to send POST requests to the selected endpoints" - }, - "navigate": { "type": "string", "default": "Navigate to this URL" }, - "refresh": { "type": "string", "default": "Refresh" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "undo": { "type": "string", "default": "Undo" }, - "editor": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Resource JSON" }, - "placeholder": { - "type": "string", - "default": "Enter resource JSON here and click Submit to save" - } - }, - "required": ["label", "placeholder"] - }, - "copy-to-clipboard": { - "additionalProperties": false, - "properties": { - "click_to_copy": { "type": "string", "default": "Click to copy" }, - "copying": { "type": "string", "default": "Copying" }, - "done": { "type": "string", "default": "Done" }, - "failed_to_copy": { "type": "string", "default": "Failed to copy" } - }, - "required": ["click_to_copy", "copying", "done", "failed_to_copy"] - }, - "spinner": { - "additionalProperties": false, - "properties": { "loading_busy": { "type": "string", "default": "Loading" } }, - "required": ["loading_busy"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this resource? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Submit" } }, - "required": ["create"] - } - }, - "required": [ - "go_back", - "go_home", - "current_url", - "get_mode", - "post_mode", - "navigate", - "refresh", - "first", - "last", - "next", - "pagination", - "previous", - "undo", - "editor", - "copy-to-clipboard", - "spinner", - "delete", - "create" - ] -} diff --git a/src/static/schemas/applied-coupon-code-card.json b/src/static/schemas/applied-coupon-code-card.json deleted file mode 100644 index 5f175ab78..000000000 --- a/src/static/schemas/applied-coupon-code-card.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] -} diff --git a/src/static/schemas/applied-coupon-code-form.json b/src/static/schemas/applied-coupon-code-form.json deleted file mode 100644 index 83adfe202..000000000 --- a/src/static/schemas/applied-coupon-code-form.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Coupon code" }, - "placeholder": { "type": "string", "default": "MY-COUPON-123" }, - "helper_text_new": { - "type": "string", - "default": "To find the right code, go to the Coupons page, select a coupon and scroll down to the Codes section." - }, - "helper_text_existing": { - "type": "string", - "default": "Applied codes can't be modified. To replace this code, remove it using the button below and then add a new one." - }, - "v8n_required": { "type": "string", "default": "Please enter a coupon code." } - }, - "required": [ - "label", - "placeholder", - "helper_text_new", - "helper_text_existing", - "v8n_required" - ] - }, - "ignore-usage-limits": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "option_checked": { "type": "string", "default": "Ignore usage limits" } - }, - "required": ["label", "helper_text", "option_checked"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Remove" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this coupon code? This might affect the cart total." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Apply" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": ["code", "ignore-usage-limits", "delete", "create", "spinner"] -} diff --git a/src/static/schemas/applied-tax-card.json b/src/static/schemas/applied-tax-card.json deleted file mode 100644 index c2bf774d6..000000000 --- a/src/static/schemas/applied-tax-card.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "percent": { "type": "string", "default": "{{fraction, percent}}" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["percent", "price", "spinner"] -} diff --git a/src/static/schemas/attribute-card.json b/src/static/schemas/attribute-card.json deleted file mode 100644 index 5f175ab78..000000000 --- a/src/static/schemas/attribute-card.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] -} diff --git a/src/static/schemas/attribute-form.json b/src/static/schemas/attribute-form.json deleted file mode 100644 index 658a2bce7..000000000 --- a/src/static/schemas/attribute-form.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Name of this attribute. It does not have to be unique." - }, - "v8n_required": { "type": "string", "default": "Please name this attribute." }, - "v8n_too_long": { - "type": "string", - "default": "Please choose a name that is 500 characters long or less." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Value of this attribute. Attribute values are automatically HTML-escaped." - }, - "v8n_required": { - "type": "string", - "default": "Please provide a value for this attribute." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store values that are more than 1000 characters long." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "visibility": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Visibility" }, - "option_public": { "type": "string", "default": "Everyone" }, - "option_restricted": { "type": "string", "default": "Store admins" }, - "option_private": { "type": "string", "default": "Only me" }, - "helper_text": { - "type": "string", - "default": "Controls who can see this attribute. Public attributes can be shown to anyone, including customers. Private attributes are more suitable for configuration or technical details which are irrelevant to the public. Restricted attributes can only be viewed with the OAuth client that created them." - } - }, - "required": ["label", "option_public", "option_restricted", "option_private", "helper_text"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": ["name", "value", "visibility", "timestamps", "delete", "create", "spinner"] -} diff --git a/src/static/schemas/billing-address-card.json b/src/static/schemas/billing-address-card.json deleted file mode 100644 index 0f1cd3d1f..000000000 --- a/src/static/schemas/billing-address-card.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "full_address": { - "type": "string", - "default": "{{address1}} {{address2}} {{city}} {{region}} {{country}} {{postal_code}}" - }, - "full_name": { "type": "string", "default": "{{first_name}} {{last_name}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["full_address", "full_name", "spinner"] -} diff --git a/src/static/schemas/cancellation-form.json b/src/static/schemas/cancellation-form.json deleted file mode 100644 index 42646f573..000000000 --- a/src/static/schemas/cancellation-form.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "end_date": { "type": "string", "default": "End date" }, - "end_subscription": { "type": "string", "default": "End subscription" }, - "end_subscription_explainer": { - "type": "string", - "default": "Your subscription will remain active until the selected end date. You might have to resubscribe if you decide to resume this subscription later." - }, - "v8n_required": { "type": "string", "default": "Required" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "end_date", - "end_subscription", - "end_subscription_explainer", - "v8n_required", - "spinner" - ] -} diff --git a/src/static/schemas/cart-card.json b/src/static/schemas/cart-card.json deleted file mode 100644 index 164c1a39e..000000000 --- a/src/static/schemas/cart-card.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "line_1": { "type": "string", "default": "ID {{ id }} • {{ amount, price }}" }, - "line_2_one": { "type": "string", "default": "{{ name }}" }, - "line_2_many": { "type": "string", "default": "{{ name }} + more" }, - "line_2_empty": { "type": "string", "default": "Empty cart" }, - "no_customer": { "type": "string", "default": "Customer unknown" }, - "status": { "type": "string", "default": "{{ dateCreated, date }}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "line_1", - "line_2_one", - "line_2_many", - "line_2_empty", - "no_customer", - "status", - "spinner" - ] -} diff --git a/src/static/schemas/cart-form.json b/src/static/schemas/cart-form.json deleted file mode 100644 index e946aad03..000000000 --- a/src/static/schemas/cart-form.json +++ /dev/null @@ -1,1678 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "order_section_title": { "type": "string", "default": "Order" }, - "order_section_description": { - "type": "string", - "default": "Cart items, discounts and metadata" - }, - "billing_section_title": { "type": "string", "default": "Billing" }, - "billing_section_description": { - "type": "string", - "default": "Address associated with the payment method" - }, - "shipping_section_title": { "type": "string", "default": "Shipping" }, - "shipping_section_description": { - "type": "string", - "default": "Location where the ordered items will be delivered" - }, - "customer-type": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Customer type" }, - "placeholder": { "type": "string", "default": "Select type..." }, - "helper_text": { "type": "string", "default": "" }, - "option_new": { "type": "string", "default": "New customer" }, - "option_guest": { "type": "string", "default": "Guest customer" }, - "option_regular": { "type": "string", "default": "Existing customer" } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "option_new", - "option_guest", - "option_regular" - ] - }, - "customer": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Customer email" }, - "placeholder": { "type": "string", "default": "customer@example.com" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "items": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Items" }, - "delete_confirm": { "type": "string", "default": "Delete" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "delete_message": { - "type": "string", - "default": "Are you sure you'd like to remove this item? You won't be able to bring it back." - }, - "delete_header": { "type": "string", "default": "Delete item?" }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add item +" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Remove" }, - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t(items.pagination.card.{{units}}, { \"count\": {{count}}, \"ns\": \"cart-form\" })" - }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "subinfo_recurring": { - "type": "string", - "default": "$t(items.pagination.card.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"cart-form\" }) from {{startDate, date}}" - }, - "subinfo_twice_a_month": { - "type": "string", - "default": "$t(items.pagination.card.twice_a_month, { \"ns\": \"cart-form\" }) from {{startDate, date}}" - }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "no_code": { "type": "string", "default": "No SKU" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No items" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "delete_button_text", - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "subinfo_recurring", - "subinfo_twice_a_month", - "twice_a_month", - "no_code", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "price", - "spinner" - ] - } - }, - "required": [ - "create_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "header_update": { "type": "string", "default": "Item" }, - "header_create": { "type": "string", "default": "New item" }, - "save": { "type": "string", "default": "Save" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "dimensions": { "type": "string", "default": "Dimensions" }, - "subscriptions": { "type": "string", "default": "Subscriptions" }, - "discount": { "type": "string", "default": "Discount" }, - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "helper_text": { "type": "string", "default": "Public name of this item." }, - "placeholder": { "type": "string", "default": "13' Laptop Case" }, - "v8n_required": { "type": "string", "default": "Name is required" }, - "v8n_too_long": { - "type": "string", - "default": "Name mustn't exceed 255 characters" - } - }, - "required": ["label", "helper_text", "placeholder", "v8n_required", "v8n_too_long"] - }, - "price": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Price" }, - "helper_text": { - "type": "string", - "default": "Base price before option modifiers." - }, - "placeholder": { "type": "string", "default": "25" }, - "v8n_required": { "type": "string", "default": "Price is required" }, - "v8n_negative": { "type": "string", "default": "Price can't be negative" } - }, - "required": ["label", "helper_text", "placeholder", "v8n_required", "v8n_negative"] - }, - "quantity": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Quantity" }, - "helper_text": { "type": "string", "default": "Number of items in the cart." }, - "placeholder": { "type": "string", "default": "1 by default" }, - "v8n_less_than_one": { "type": "string", "default": "Quantity must be 1 or more" } - }, - "required": ["label", "helper_text", "placeholder", "v8n_less_than_one"] - }, - "subscription-frequency": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Subscription frequency" }, - "helper_text": { - "type": "string", - "default": "This determines how often this subscription will be processed. To modify this value for an existing subscription, you must modify the subscription directly." - }, - "day": { "type": "string", "default": "Day" }, - "day_plural": { "type": "string", "default": "Days" }, - "week": { "type": "string", "default": "Week" }, - "week_plural": { "type": "string", "default": "Weeks" }, - "month": { "type": "string", "default": "Month" }, - "month_plural": { "type": "string", "default": "Months" }, - "year": { "type": "string", "default": "Year" }, - "year_plural": { "type": "string", "default": "Years" } - }, - "required": [ - "label", - "helper_text", - "day", - "day_plural", - "week", - "week_plural", - "month", - "month_plural", - "year", - "year_plural" - ] - }, - "subscription-start-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Subscription start" }, - "helper_text": { - "type": "string", - "default": "The original date this subscription began or will begin if set in the future. To modify this value for an existing subscription, you must modify the subscription directly." - }, - "placeholder": { "type": "string", "default": "01/01/2022" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "subscription-end-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Subscription end" }, - "helper_text": { - "type": "string", - "default": "If set, the date this subscription will end. The subscription will not run on this day." - }, - "placeholder": { "type": "string", "default": "01/01/2022" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "discount-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Discount name" }, - "helper_text": { - "type": "string", - "default": "The name of the line item discount if it is included on this item." - }, - "placeholder": { "type": "string", "default": "One-off 10% discount" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "discount-builder": { - "additionalProperties": false, - "properties": { - "tier": { "type": "string", "default": "Tier" }, - "tier_by": { "type": "string", "default": "by" }, - "tier_if": { "type": "string", "default": "if" }, - "tier_allunits": { "type": "string", "default": "price of each item" }, - "tier_incremental": { "type": "string", "default": "price of additional items" }, - "tier_repeat": { "type": "string", "default": "price of next item" }, - "tier_single": { "type": "string", "default": "order total" }, - "tier_then": { "type": "string", "default": "then" }, - "quantity": { "type": "string", "default": "quantity" }, - "total": { "type": "string", "default": "total" }, - "reduce": { "type": "string", "default": "reduce" }, - "increase": { "type": "string", "default": "increase" } - }, - "required": [ - "tier", - "tier_by", - "tier_if", - "tier_allunits", - "tier_incremental", - "tier_repeat", - "tier_single", - "tier_then", - "quantity", - "total", - "reduce", - "increase" - ] - }, - "expires": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Expires" }, - "helper_text": { - "type": "string", - "default": "Date when this item will be removed from the cart (optional)." - }, - "placeholder": { "type": "string", "default": "01/01/2022" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "image": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Image" }, - "helper_text": { - "type": "string", - "default": "URL of the image to display for this item in the cart and checkout." - }, - "placeholder": { "type": "string", "default": "https://picsum.photos/256" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "URL" }, - "helper_text": { - "type": "string", - "default": "Full URL for the customer to view this item on the store website." - }, - "placeholder": { "type": "string", "default": "https://example.com/products/123" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "quantity-min": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Min quantity" }, - "helper_text": { "type": "string", "default": "Minimum quantity per cart." }, - "placeholder": { "type": "string", "default": "1" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "quantity-max": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Max quantity" }, - "helper_text": { "type": "string", "default": "Maximum quantity per cart." }, - "placeholder": { "type": "string", "default": "25" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "shipto": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Shipping address" }, - "helper_text": { - "type": "string", - "default": "Used for multiship to assign this item to a specific shipment." - }, - "placeholder": { - "type": "string", - "default": "Select address to ship this item to..." - } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "width": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Width" }, - "helper_text": { - "type": "string", - "default": "This is currently a placeholder for future use." - }, - "placeholder": { "type": "string", "default": "16" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "height": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Height" }, - "helper_text": { - "type": "string", - "default": "This is currently a placeholder for future use." - }, - "placeholder": { "type": "string", "default": "8" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "length": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Width" }, - "helper_text": { - "type": "string", - "default": "This is currently a placeholder for future use." - }, - "placeholder": { "type": "string", "default": "32" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "weight": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Weight" }, - "helper_text": { - "type": "string", - "default": "Per-item weight, used for shipping rate requests." - }, - "placeholder": { "type": "string", "default": "24" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "item-category-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Item category" }, - "helper_text": { - "type": "string", - "default": "Item category associated with this item." - }, - "placeholder": { "type": "string", "default": "Select item category..." } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code" }, - "helper_text": { - "type": "string", - "default": "Unique item code such as SKU or barcode." - }, - "placeholder": { "type": "string", "default": "MY-PRODUCT-001" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "parent-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Parent code" }, - "helper_text": { - "type": "string", - "default": "Used if this should be a child product in a bundle." - }, - "placeholder": { "type": "string", "default": "MY-BUNDLE-001" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "discount-details": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Discount details" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["title", "pagination"] - }, - "coupon-details": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Coupon details" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["title", "pagination"] - }, - "attributes": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Attributes" }, - "delete_header": { "type": "string", "default": "Remove attribute?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this attribute from the item." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_create": { "type": "string", "default": "Create attribute" }, - "header_update": { "type": "string", "default": "Update attribute" }, - "close": { "type": "string", "default": "Close" }, - "save": { "type": "string", "default": "Save" }, - "cancel": { "type": "string", "default": "Cancel" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "attribute-form": { - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Name of this attribute. It does not have to be unique." - }, - "v8n_required": { - "type": "string", - "default": "Please name this attribute." - }, - "v8n_too_long": { - "type": "string", - "default": "Please choose a name that is 500 characters long or less." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Value of this attribute. Attribute values are automatically HTML-escaped." - }, - "v8n_required": { - "type": "string", - "default": "Please provide a value for this attribute." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store values that are more than 1000 characters long." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "visibility": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Visibility" }, - "option_public": { "type": "string", "default": "Everyone" }, - "option_restricted": { "type": "string", "default": "Store admins" }, - "option_private": { "type": "string", "default": "Only me" }, - "helper_text": { - "type": "string", - "default": "Controls who can see this attribute. Public attributes can be shown to anyone, including customers. Private attributes are more suitable for configuration or technical details which are irrelevant to the public. Restricted attributes can only be viewed with the OAuth client that created them." - } - }, - "required": [ - "label", - "option_public", - "option_restricted", - "option_private", - "helper_text" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "name", - "value", - "visibility", - "timestamps", - "delete", - "create", - "spinner" - ] - } - }, - "required": [ - "header_create", - "header_update", - "close", - "save", - "cancel", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "attribute-form" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add attribute +" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Delete" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "spinner"] - }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": [ - "create_button_text", - "card", - "first", - "last", - "next", - "pagination", - "previous" - ] - } - }, - "required": [ - "title", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "dialog", - "pagination" - ] - }, - "item-options": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Item options" }, - "delete_header": { "type": "string", "default": "Remove item option?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this item option from the item." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_create": { "type": "string", "default": "Create option" }, - "header_update": { "type": "string", "default": "Update option" }, - "close": { "type": "string", "default": "Close" }, - "save": { "type": "string", "default": "Save" }, - "cancel": { "type": "string", "default": "Cancel" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "item-option-form": { - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "helper_text": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "Color" }, - "v8n_required": { "type": "string", "default": "Name is required" }, - "v8n_too_long": { - "type": "string", - "default": "Name mustn't exceed 100 characters" - } - }, - "required": [ - "label", - "helper_text", - "placeholder", - "v8n_required", - "v8n_too_long" - ] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "helper_text": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "Red" }, - "v8n_required": { "type": "string", "default": "Value is required" }, - "v8n_too_long": { - "type": "string", - "default": "Value mustn't exceed 1024 characters" - } - }, - "required": [ - "label", - "helper_text", - "placeholder", - "v8n_required", - "v8n_too_long" - ] - }, - "price-mod": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Price" }, - "helper_text": { "type": "string", "default": "Same currency as item" }, - "placeholder": { "type": "string", "default": "10" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "weight-mod": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Weight" }, - "helper_text": { "type": "string", "default": "Arbitrary units" }, - "placeholder": { "type": "string", "default": "5" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this item option? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - } - }, - "required": [ - "name", - "value", - "price-mod", - "weight-mod", - "timestamps", - "spinner", - "delete", - "create" - ] - } - }, - "required": [ - "header_create", - "header_update", - "close", - "save", - "cancel", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "item-option-form" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Delete" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "spinner"] - }, - "create_button_text": { "type": "string", "default": "Add option +" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": [ - "card", - "create_button_text", - "first", - "last", - "next", - "pagination", - "previous" - ] - } - }, - "required": [ - "title", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "dialog", - "pagination" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this item? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "close", - "cancel", - "header_update", - "header_create", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "dimensions", - "subscriptions", - "discount", - "name", - "price", - "quantity", - "subscription-frequency", - "subscription-start-date", - "subscription-end-date", - "discount-name", - "discount-builder", - "expires", - "image", - "url", - "quantity-min", - "quantity-max", - "shipto", - "width", - "height", - "length", - "weight", - "item-category-uri", - "code", - "parent-code", - "discount-details", - "coupon-details", - "attributes", - "item-options", - "timestamps", - "delete", - "create", - "spinner" - ] - } - }, - "required": [ - "label", - "delete_confirm", - "delete_cancel", - "delete_message", - "delete_header", - "pagination", - "dialog" - ] - }, - "applied-coupon-codes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Coupon codes" }, - "delete_confirm": { "type": "string", "default": "Delete" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "delete_message": { - "type": "string", - "default": "Are you sure you'd like to remove this coupon code? This might affect the cart total." - }, - "delete_header": { "type": "string", "default": "Delete code?" }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Apply code +" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Remove" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "wgt": { "type": "string", "default": "WGT" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No codes" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "price", "wgt", "spinner"] - } - }, - "required": [ - "create_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "header_update": { "type": "string", "default": "Coupon code" }, - "header_create": { "type": "string", "default": "Apply code" }, - "save": { "type": "string", "default": "Save" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" } - }, - "required": [ - "close", - "cancel", - "header_update", - "header_create", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm" - ] - } - }, - "required": [ - "label", - "delete_confirm", - "delete_cancel", - "delete_message", - "delete_header", - "pagination", - "dialog" - ] - }, - "totals": { - "additionalProperties": false, - "properties": { - "price": { "type": "string", "default": "{{ amount, price }}" }, - "total_order": { "type": "string", "default": "Total: {{ amount, price }}" }, - "total_item_price": { "type": "string", "default": "Total item price" }, - "total_shipping": { "type": "string", "default": "Total shipping" }, - "total_tax": { "type": "string", "default": "Total tax" } - }, - "required": ["price", "total_order", "total_item_price", "total_shipping", "total_tax"] - }, - "discounts": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Discounts" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "price": { "type": "string", "default": "{{amount, price}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No discounts" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["price", "spinner"] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["label", "pagination"] - }, - "template-set-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Template set" }, - "placeholder": { "type": "string", "default": "Select template set..." }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "billing-first-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "First name" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "We can't store first names that are more than 50 characters long. Please shorten this value." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "billing-last-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last name" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "We can't store last names that are more than 50 characters long. Please shorten this value." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "billing-company": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Company" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "We can't store company names that are more than 50 characters long. Please shorten this value." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "billing-phone": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Phone" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "This phone number is unusually long. Please use a value below 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "billing-address-one": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address Line 1" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this value to fit 100 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "billing-address-two": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address Line 2" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this value to fit 100 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "billing-country": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Country" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this value to fit 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "billing-region": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Region" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this value to fit 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "billing-city": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "City" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this value to fit 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "billing-postal-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Postal code" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "This postal code is unsually long. Please use a code that fits in 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "shipping-first-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "First name" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "We can't store first names that are more than 50 characters long. Please shorten this value." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "shipping-last-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last name" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "We can't store last names that are more than 50 characters long. Please shorten this value." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "shipping-company": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Company" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "We can't store company names that are more than 50 characters long. Please shorten this value." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "shipping-phone": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Phone" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "This phone number is unusually long. Please use a value below 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "shipping-address-one": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address Line 1" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this value to fit 100 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "shipping-address-two": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address Line 2" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this value to fit 100 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "shipping-country": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Country" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this value to fit 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "shipping-region": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Region" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this value to fit 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "shipping-city": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "City" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this value to fit 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "shipping-postal-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Postal code" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "This postal code is unsually long. Please use a code that fits in 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "custom-fields": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Custom fields" }, - "delete_confirm": { "type": "string", "default": "Delete" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "delete_message": { - "type": "string", - "default": "Are you sure you'd like to remove this custom field? This action can't be undone." - }, - "delete_header": { "type": "string", "default": "Delete custom field?" }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add custom field +" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Remove" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "wgt": { "type": "string", "default": "WGT" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No custom fields" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "price", "wgt", "spinner"] - } - }, - "required": [ - "create_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "header_update": { "type": "string", "default": "Custom field" }, - "header_create": { "type": "string", "default": "New custom field" }, - "save": { "type": "string", "default": "Save" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" } - }, - "required": [ - "close", - "cancel", - "header_update", - "header_create", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm" - ] - } - }, - "required": [ - "label", - "delete_confirm", - "delete_cancel", - "delete_message", - "delete_header", - "pagination", - "dialog" - ] - }, - "attributes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Attributes" }, - "delete_confirm": { "type": "string", "default": "Delete" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "delete_message": { - "type": "string", - "default": "Are you sure you'd like to remove this attribute? This action can't be undone." - }, - "delete_header": { "type": "string", "default": "Delete attribute?" }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add attribute +" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Remove" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "wgt": { "type": "string", "default": "WGT" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No attributes" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "price", "wgt", "spinner"] - } - }, - "required": [ - "create_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "header_update": { "type": "string", "default": "Custom field" }, - "header_create": { "type": "string", "default": "New attribute" }, - "save": { "type": "string", "default": "Save" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" } - }, - "required": [ - "close", - "cancel", - "header_update", - "header_create", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm" - ] - } - }, - "required": [ - "label", - "delete_confirm", - "delete_cancel", - "delete_message", - "delete_header", - "pagination", - "dialog" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "view-as-customer": { - "additionalProperties": false, - "properties": { - "state_idle": { "type": "string", "default": "View as customer" }, - "state_busy": { "type": "string", "default": "Creating cart link..." }, - "state_fail": { "type": "string", "default": "Failed to create cart link" } - }, - "required": ["state_idle", "state_busy", "state_fail"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this cart? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "order_section_title", - "order_section_description", - "billing_section_title", - "billing_section_description", - "shipping_section_title", - "shipping_section_description", - "customer-type", - "customer", - "items", - "applied-coupon-codes", - "totals", - "discounts", - "template-set-uri", - "billing-first-name", - "billing-last-name", - "billing-company", - "billing-phone", - "billing-address-one", - "billing-address-two", - "billing-country", - "billing-region", - "billing-city", - "billing-postal-code", - "shipping-first-name", - "shipping-last-name", - "shipping-company", - "shipping-phone", - "shipping-address-one", - "shipping-address-two", - "shipping-country", - "shipping-region", - "shipping-city", - "shipping-postal-code", - "custom-fields", - "attributes", - "timestamps", - "view-as-customer", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/client-card.json b/src/static/schemas/client-card.json deleted file mode 100644 index 77c00e137..000000000 --- a/src/static/schemas/client-card.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "no_project_name": { "type": "string", "default": "Unnamed project" }, - "no_project_description": { "type": "string", "default": "No description provided" }, - "no_company_name": { "type": "string", "default": "Unknown company" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["no_project_name", "no_project_description", "no_company_name", "spinner"] -} diff --git a/src/static/schemas/client-form.json b/src/static/schemas/client-form.json deleted file mode 100644 index 2d39e3932..000000000 --- a/src/static/schemas/client-form.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "client-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Client ID" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "client-secret": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Client secret" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "project-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Project name" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "project-description": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Project description" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "redirect-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Redirect URI" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "company-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Company name" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "company-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Company url" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "company-logo": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Company logo" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "contact-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Contact name" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "contact-email": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Contact email" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "contact-phone": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Contact phone" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Once deleted, applications using this client will no longer be able to access Foxy stores and users." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "client-id", - "client-secret", - "project-name", - "project-description", - "redirect-uri", - "company-name", - "company-url", - "company-logo", - "contact-name", - "contact-email", - "contact-phone", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/copy-to-clipboard.json b/src/static/schemas/copy-to-clipboard.json deleted file mode 100644 index bcb0a9a86..000000000 --- a/src/static/schemas/copy-to-clipboard.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "click_to_copy": { "type": "string", "default": "Click to copy" }, - "copying": { "type": "string", "default": "Copying" }, - "done": { "type": "string", "default": "Done" }, - "failed_to_copy": { "type": "string", "default": "Failed to copy" } - }, - "required": ["click_to_copy", "copying", "done", "failed_to_copy"] -} diff --git a/src/static/schemas/country.json b/src/static/schemas/country.json deleted file mode 100644 index 4544fc9ae..000000000 --- a/src/static/schemas/country.json +++ /dev/null @@ -1,506 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "AF": { "type": "string", "default": "Afghanistan" }, - "AX": { "type": "string", "default": "Åland Islands" }, - "AL": { "type": "string", "default": "Albania" }, - "DZ": { "type": "string", "default": "Algeria" }, - "AS": { "type": "string", "default": "American Samoa" }, - "AD": { "type": "string", "default": "Andorra" }, - "AO": { "type": "string", "default": "Angola" }, - "AI": { "type": "string", "default": "Anguilla" }, - "AQ": { "type": "string", "default": "Antarctica" }, - "AG": { "type": "string", "default": "Antigua and Barbuda" }, - "AR": { "type": "string", "default": "Argentina" }, - "AM": { "type": "string", "default": "Armenia" }, - "AW": { "type": "string", "default": "Aruba" }, - "AU": { "type": "string", "default": "Australia" }, - "AT": { "type": "string", "default": "Austria" }, - "AZ": { "type": "string", "default": "Azerbaijan" }, - "BS": { "type": "string", "default": "Bahamas" }, - "BH": { "type": "string", "default": "Bahrain" }, - "BD": { "type": "string", "default": "Bangladesh" }, - "BB": { "type": "string", "default": "Barbados" }, - "BY": { "type": "string", "default": "Belarus" }, - "BE": { "type": "string", "default": "Belgium" }, - "BZ": { "type": "string", "default": "Belize" }, - "BJ": { "type": "string", "default": "Benin" }, - "BM": { "type": "string", "default": "Bermuda" }, - "BT": { "type": "string", "default": "Bhutan" }, - "BO": { "type": "string", "default": "Bolivia" }, - "BQ": { "type": "string", "default": "Bonaire, Sint Eustatius and Saba" }, - "BA": { "type": "string", "default": "Bosnia and Herzegovina" }, - "BW": { "type": "string", "default": "Botswana" }, - "BV": { "type": "string", "default": "Bouvet Island" }, - "BR": { "type": "string", "default": "Brazil" }, - "IO": { "type": "string", "default": "British Indian Ocean Territory" }, - "BN": { "type": "string", "default": "Brunei Darussalam" }, - "BG": { "type": "string", "default": "Bulgaria" }, - "BF": { "type": "string", "default": "Burkina Faso" }, - "BI": { "type": "string", "default": "Burundi" }, - "KH": { "type": "string", "default": "Cambodia" }, - "CM": { "type": "string", "default": "Cameroon" }, - "CA": { "type": "string", "default": "Canada" }, - "CV": { "type": "string", "default": "Cape Verde" }, - "CW": { "type": "string", "default": "Curaçao" }, - "KY": { "type": "string", "default": "Cayman Islands" }, - "CF": { "type": "string", "default": "Central African Republic" }, - "TD": { "type": "string", "default": "Chad" }, - "CL": { "type": "string", "default": "Chile" }, - "CN": { "type": "string", "default": "China" }, - "CX": { "type": "string", "default": "Christmas Island" }, - "CC": { "type": "string", "default": "Cocos (Keeling) Islands" }, - "CO": { "type": "string", "default": "Colombia" }, - "KM": { "type": "string", "default": "Comoros" }, - "CG": { "type": "string", "default": "Congo" }, - "CD": { "type": "string", "default": "Congo, the Democratic Republic of the" }, - "CK": { "type": "string", "default": "Cook Islands" }, - "CR": { "type": "string", "default": "Costa Rica" }, - "CI": { "type": "string", "default": "Cote DIvoire" }, - "HR": { "type": "string", "default": "Croatia" }, - "CU": { "type": "string", "default": "Cuba" }, - "CY": { "type": "string", "default": "Cyprus" }, - "CZ": { "type": "string", "default": "Czech Republic" }, - "DK": { "type": "string", "default": "Denmark" }, - "DJ": { "type": "string", "default": "Djibouti" }, - "DM": { "type": "string", "default": "Dominica" }, - "DO": { "type": "string", "default": "Dominican Republic" }, - "EC": { "type": "string", "default": "Ecuador" }, - "EG": { "type": "string", "default": "Egypt" }, - "SV": { "type": "string", "default": "El Salvador" }, - "SX": { "type": "string", "default": "Sint Maarten" }, - "GQ": { "type": "string", "default": "Equatorial Guinea" }, - "ER": { "type": "string", "default": "Eritrea" }, - "EE": { "type": "string", "default": "Estonia" }, - "ET": { "type": "string", "default": "Ethiopia" }, - "FK": { "type": "string", "default": "Falkland Islands (Malvinas)" }, - "FO": { "type": "string", "default": "Faroe Islands" }, - "FJ": { "type": "string", "default": "Fiji" }, - "FI": { "type": "string", "default": "Finland" }, - "FR": { "type": "string", "default": "France" }, - "GF": { "type": "string", "default": "French Guiana" }, - "PF": { "type": "string", "default": "French Polynesia" }, - "TF": { "type": "string", "default": "French Southern Territories" }, - "GA": { "type": "string", "default": "Gabon" }, - "GM": { "type": "string", "default": "Gambia" }, - "GE": { "type": "string", "default": "Georgia" }, - "DE": { "type": "string", "default": "Germany" }, - "GH": { "type": "string", "default": "Ghana" }, - "GI": { "type": "string", "default": "Gibraltar" }, - "GR": { "type": "string", "default": "Greece" }, - "GL": { "type": "string", "default": "Greenland" }, - "GD": { "type": "string", "default": "Grenada" }, - "GP": { "type": "string", "default": "Guadeloupe" }, - "GU": { "type": "string", "default": "Guam" }, - "GT": { "type": "string", "default": "Guatemala" }, - "GG": { "type": "string", "default": "Guernsey" }, - "GN": { "type": "string", "default": "Guinea" }, - "GW": { "type": "string", "default": "Guinea-bissau" }, - "GY": { "type": "string", "default": "Guyana" }, - "HT": { "type": "string", "default": "Haiti" }, - "HM": { "type": "string", "default": "Heard Island and McDonald Island" }, - "VA": { "type": "string", "default": "Holy See (Vatican City State)" }, - "HN": { "type": "string", "default": "Honduras" }, - "HK": { "type": "string", "default": "Hong Kong" }, - "HU": { "type": "string", "default": "Hungary" }, - "IS": { "type": "string", "default": "Iceland" }, - "IN": { "type": "string", "default": "India" }, - "ID": { "type": "string", "default": "Indonesia" }, - "IR": { "type": "string", "default": "Iran, Islamic Republic of" }, - "IQ": { "type": "string", "default": "Iraq" }, - "IE": { "type": "string", "default": "Ireland" }, - "IM": { "type": "string", "default": "Isle of Man" }, - "IL": { "type": "string", "default": "Israel" }, - "IT": { "type": "string", "default": "Italy" }, - "JM": { "type": "string", "default": "Jamaica" }, - "JP": { "type": "string", "default": "Japan" }, - "JE": { "type": "string", "default": "Jersey" }, - "JO": { "type": "string", "default": "Jordan" }, - "KZ": { "type": "string", "default": "Kazakhstan" }, - "KE": { "type": "string", "default": "Kenya" }, - "KI": { "type": "string", "default": "Kiribati" }, - "KP": { "type": "string", "default": "Korea, Democratic People's Republic of" }, - "KR": { "type": "string", "default": "Korea, Republic of" }, - "KW": { "type": "string", "default": "Kuwait" }, - "KG": { "type": "string", "default": "Kyrgyzstan" }, - "LA": { "type": "string", "default": "Lao People's Democratic Republic" }, - "LV": { "type": "string", "default": "Latvia" }, - "LB": { "type": "string", "default": "Lebanon" }, - "LS": { "type": "string", "default": "Lesotho" }, - "LR": { "type": "string", "default": "Liberia" }, - "LY": { "type": "string", "default": "Libya" }, - "LI": { "type": "string", "default": "Liechtenstein" }, - "LT": { "type": "string", "default": "Lithuania" }, - "LU": { "type": "string", "default": "Luxembourg" }, - "MO": { "type": "string", "default": "Macau Special Administrative Region of China" }, - "MK": { "type": "string", "default": "North Macedonia" }, - "MG": { "type": "string", "default": "Madagascar" }, - "MW": { "type": "string", "default": "Malawi" }, - "MY": { "type": "string", "default": "Malaysia" }, - "MV": { "type": "string", "default": "Maldives" }, - "ML": { "type": "string", "default": "Mali" }, - "MT": { "type": "string", "default": "Malta" }, - "MH": { "type": "string", "default": "Marshall Islands" }, - "MQ": { "type": "string", "default": "Martinique" }, - "MR": { "type": "string", "default": "Mauritania" }, - "MU": { "type": "string", "default": "Mauritius" }, - "YT": { "type": "string", "default": "Mayotte" }, - "MX": { "type": "string", "default": "Mexico" }, - "FM": { "type": "string", "default": "Micronesia, Federated States of" }, - "MD": { "type": "string", "default": "Moldova, Republic of" }, - "MC": { "type": "string", "default": "Monaco" }, - "MN": { "type": "string", "default": "Mongolia" }, - "ME": { "type": "string", "default": "Montenegro" }, - "MS": { "type": "string", "default": "Montserrat" }, - "MA": { "type": "string", "default": "Morocco" }, - "MZ": { "type": "string", "default": "Mozambique" }, - "MM": { "type": "string", "default": "Myanmar" }, - "NA": { "type": "string", "default": "Namibia" }, - "NR": { "type": "string", "default": "Nauru" }, - "NP": { "type": "string", "default": "Nepal" }, - "NL": { "type": "string", "default": "Netherlands" }, - "NC": { "type": "string", "default": "New Caledonia" }, - "NZ": { "type": "string", "default": "New Zealand" }, - "NI": { "type": "string", "default": "Nicaragua" }, - "NE": { "type": "string", "default": "Niger" }, - "NG": { "type": "string", "default": "Nigeria" }, - "NU": { "type": "string", "default": "Niue" }, - "NF": { "type": "string", "default": "Norfolk Island" }, - "MP": { "type": "string", "default": "Northern Mariana Islands" }, - "NO": { "type": "string", "default": "Norway" }, - "OM": { "type": "string", "default": "Oman" }, - "PK": { "type": "string", "default": "Pakistan" }, - "PW": { "type": "string", "default": "Palau" }, - "PS": { "type": "string", "default": "Palestine, State of" }, - "PA": { "type": "string", "default": "Panama" }, - "PG": { "type": "string", "default": "Papua New Guinea" }, - "PY": { "type": "string", "default": "Paraguay" }, - "PE": { "type": "string", "default": "Peru" }, - "PH": { "type": "string", "default": "Philippines" }, - "PN": { "type": "string", "default": "Pitcairn" }, - "PL": { "type": "string", "default": "Poland" }, - "PT": { "type": "string", "default": "Portugal" }, - "PR": { "type": "string", "default": "Puerto Rico" }, - "QA": { "type": "string", "default": "Qatar" }, - "RE": { "type": "string", "default": "Réunion" }, - "RO": { "type": "string", "default": "Romania" }, - "RU": { "type": "string", "default": "Russian Federation" }, - "RW": { "type": "string", "default": "Rwanda" }, - "BL": { "type": "string", "default": "Saint Barthélemy" }, - "SH": { "type": "string", "default": "Saint Helena, Ascension and Tristan da Cunha" }, - "KN": { "type": "string", "default": "Saint Kitts and Nevis" }, - "LC": { "type": "string", "default": "Saint Lucia" }, - "MF": { "type": "string", "default": "Saint Martin" }, - "PM": { "type": "string", "default": "Saint Pierre and Miquelon" }, - "VC": { "type": "string", "default": "Saint Vincent and the Grenadines" }, - "WS": { "type": "string", "default": "Samoa" }, - "SM": { "type": "string", "default": "San Marino" }, - "SS": { "type": "string", "default": "South Sudan" }, - "ST": { "type": "string", "default": "Sao Tome and Principe" }, - "SA": { "type": "string", "default": "Saudi Arabia" }, - "SN": { "type": "string", "default": "Senegal" }, - "RS": { "type": "string", "default": "Serbia" }, - "SC": { "type": "string", "default": "Seychelles" }, - "SL": { "type": "string", "default": "Sierra Leone" }, - "SG": { "type": "string", "default": "Singapore" }, - "SK": { "type": "string", "default": "Slovakia" }, - "SI": { "type": "string", "default": "Slovenia" }, - "SB": { "type": "string", "default": "Solomon Islands" }, - "SO": { "type": "string", "default": "Somalia" }, - "ZA": { "type": "string", "default": "South Africa" }, - "GS": { "type": "string", "default": "South Georgia and the South Sandwich Islands" }, - "ES": { "type": "string", "default": "Spain" }, - "LK": { "type": "string", "default": "Sri Lanka" }, - "SD": { "type": "string", "default": "Sudan" }, - "SR": { "type": "string", "default": "Suriname" }, - "SJ": { "type": "string", "default": "Svalbard and Jan Mayen" }, - "SZ": { "type": "string", "default": "Eswatini" }, - "SE": { "type": "string", "default": "Sweden" }, - "CH": { "type": "string", "default": "Switzerland" }, - "SY": { "type": "string", "default": "Syrian Arab Republic" }, - "TW": { "type": "string", "default": "Taiwan" }, - "TJ": { "type": "string", "default": "Tajikistan" }, - "TZ": { "type": "string", "default": "Tanzania, United Republic of" }, - "TH": { "type": "string", "default": "Thailand" }, - "TL": { "type": "string", "default": "Timor-Leste" }, - "TG": { "type": "string", "default": "Togo" }, - "TK": { "type": "string", "default": "Tokelau" }, - "TO": { "type": "string", "default": "Tonga" }, - "TT": { "type": "string", "default": "Trinidad and Tobago" }, - "TN": { "type": "string", "default": "Tunisia" }, - "TR": { "type": "string", "default": "Turkey" }, - "TM": { "type": "string", "default": "Turkmenistan" }, - "TC": { "type": "string", "default": "Turks and Caicos Islands" }, - "TV": { "type": "string", "default": "Tuvalu" }, - "UG": { "type": "string", "default": "Uganda" }, - "UA": { "type": "string", "default": "Ukraine" }, - "AE": { "type": "string", "default": "United Arab Emirates" }, - "GB": { "type": "string", "default": "United Kingdom" }, - "US": { "type": "string", "default": "United States" }, - "UM": { "type": "string", "default": "United States Minor Outlying Islands" }, - "UY": { "type": "string", "default": "Uruguay" }, - "UZ": { "type": "string", "default": "Uzbekistan" }, - "VU": { "type": "string", "default": "Vanuatu" }, - "VE": { "type": "string", "default": "Venezuela" }, - "VN": { "type": "string", "default": "Vietnam" }, - "VG": { "type": "string", "default": "Virgin Islands, British" }, - "VI": { "type": "string", "default": "Virgin Islands, U.S." }, - "WF": { "type": "string", "default": "Wallis and Futuna Islands" }, - "EH": { "type": "string", "default": "Western Sahara" }, - "YE": { "type": "string", "default": "Yemen" }, - "ZM": { "type": "string", "default": "Zambia" }, - "ZW": { "type": "string", "default": "Zimbabwe" } - }, - "required": [ - "AF", - "AX", - "AL", - "DZ", - "AS", - "AD", - "AO", - "AI", - "AQ", - "AG", - "AR", - "AM", - "AW", - "AU", - "AT", - "AZ", - "BS", - "BH", - "BD", - "BB", - "BY", - "BE", - "BZ", - "BJ", - "BM", - "BT", - "BO", - "BQ", - "BA", - "BW", - "BV", - "BR", - "IO", - "BN", - "BG", - "BF", - "BI", - "KH", - "CM", - "CA", - "CV", - "CW", - "KY", - "CF", - "TD", - "CL", - "CN", - "CX", - "CC", - "CO", - "KM", - "CG", - "CD", - "CK", - "CR", - "CI", - "HR", - "CU", - "CY", - "CZ", - "DK", - "DJ", - "DM", - "DO", - "EC", - "EG", - "SV", - "SX", - "GQ", - "ER", - "EE", - "ET", - "FK", - "FO", - "FJ", - "FI", - "FR", - "GF", - "PF", - "TF", - "GA", - "GM", - "GE", - "DE", - "GH", - "GI", - "GR", - "GL", - "GD", - "GP", - "GU", - "GT", - "GG", - "GN", - "GW", - "GY", - "HT", - "HM", - "VA", - "HN", - "HK", - "HU", - "IS", - "IN", - "ID", - "IR", - "IQ", - "IE", - "IM", - "IL", - "IT", - "JM", - "JP", - "JE", - "JO", - "KZ", - "KE", - "KI", - "KP", - "KR", - "KW", - "KG", - "LA", - "LV", - "LB", - "LS", - "LR", - "LY", - "LI", - "LT", - "LU", - "MO", - "MK", - "MG", - "MW", - "MY", - "MV", - "ML", - "MT", - "MH", - "MQ", - "MR", - "MU", - "YT", - "MX", - "FM", - "MD", - "MC", - "MN", - "ME", - "MS", - "MA", - "MZ", - "MM", - "NA", - "NR", - "NP", - "NL", - "NC", - "NZ", - "NI", - "NE", - "NG", - "NU", - "NF", - "MP", - "NO", - "OM", - "PK", - "PW", - "PS", - "PA", - "PG", - "PY", - "PE", - "PH", - "PN", - "PL", - "PT", - "PR", - "QA", - "RE", - "RO", - "RU", - "RW", - "BL", - "SH", - "KN", - "LC", - "MF", - "PM", - "VC", - "WS", - "SM", - "SS", - "ST", - "SA", - "SN", - "RS", - "SC", - "SL", - "SG", - "SK", - "SI", - "SB", - "SO", - "ZA", - "GS", - "ES", - "LK", - "SD", - "SR", - "SJ", - "SZ", - "SE", - "CH", - "SY", - "TW", - "TJ", - "TZ", - "TH", - "TL", - "TG", - "TK", - "TO", - "TT", - "TN", - "TR", - "TM", - "TC", - "TV", - "UG", - "UA", - "AE", - "GB", - "US", - "UM", - "UY", - "UZ", - "VU", - "VE", - "VN", - "VG", - "VI", - "WF", - "EH", - "YE", - "ZM", - "ZW" - ] -} diff --git a/src/static/schemas/coupon-card.json b/src/static/schemas/coupon-card.json deleted file mode 100644 index 8c4657868..000000000 --- a/src/static/schemas/coupon-card.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "allunits_price_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ each after {{from}}" - }, - "allunits_price_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} after {{from}}" - }, - "allunits_quantity_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ each on orders of {{from}}+" - }, - "allunits_quantity_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} on orders of {{from}}+" - }, - "date_range_any": { "type": "string", "default": "Ongoing" }, - "date_range_complete": { "type": "string", "default": "{{start, date}} – {{end, date}}" }, - "date_range_from": { "type": "string", "default": "From {{start, date}}" }, - "date_range_until": { "type": "string", "default": "Until {{end, date}}" }, - "discount_summary": { "type": "string", "default": "{{params, discount}}" }, - "incremental_price_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ each on orders of {{from}}+" - }, - "incremental_price_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} on orders of {{from}}+" - }, - "incremental_quantity_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ each on items {{from}}+" - }, - "incremental_quantity_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} on items {{from}}+" - }, - "ordinal_few": { "type": "string", "default": "rd" }, - "ordinal_many": { "type": "string", "default": "th" }, - "ordinal_one": { "type": "string", "default": "st" }, - "ordinal_other": { "type": "string", "default": "th" }, - "ordinal_two": { "type": "string", "default": "nd" }, - "ordinal_zero": { "type": "string", "default": "th" }, - "repeat_price_amount_discount_summary": { - "type": "string", - "default": "for each {{from}}, {{adjustment}}¤ on the next item" - }, - "repeat_price_percentage_discount_summary": { - "type": "string", - "default": "for each {{from}}, {{adjustment, percent}} on the next item" - }, - "repeat_quantity_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ on each {{from, ordinal}} item" - }, - "repeat_quantity_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} on each {{from, ordinal}} item" - }, - "single_price_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ after {{from}}" - }, - "single_price_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} after {{from}}" - }, - "single_quantity_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ after {{from}} item(s)" - }, - "single_quantity_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} after {{from}} item(s)" - }, - "uses_count": { "type": "string", "default": "{{count}} uses" }, - "uses_to_total_count": { "type": "string", "default": "{{count}}/{{total}} uses" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "allunits_price_amount_discount_summary", - "allunits_price_percentage_discount_summary", - "allunits_quantity_amount_discount_summary", - "allunits_quantity_percentage_discount_summary", - "date_range_any", - "date_range_complete", - "date_range_from", - "date_range_until", - "discount_summary", - "incremental_price_amount_discount_summary", - "incremental_price_percentage_discount_summary", - "incremental_quantity_amount_discount_summary", - "incremental_quantity_percentage_discount_summary", - "ordinal_few", - "ordinal_many", - "ordinal_one", - "ordinal_other", - "ordinal_two", - "ordinal_zero", - "repeat_price_amount_discount_summary", - "repeat_price_percentage_discount_summary", - "repeat_quantity_amount_discount_summary", - "repeat_quantity_percentage_discount_summary", - "single_price_amount_discount_summary", - "single_price_percentage_discount_summary", - "single_quantity_amount_discount_summary", - "single_quantity_percentage_discount_summary", - "uses_count", - "uses_to_total_count", - "spinner" - ] -} diff --git a/src/static/schemas/coupon-code-card.json b/src/static/schemas/coupon-code-card.json deleted file mode 100644 index 5f852d7ac..000000000 --- a/src/static/schemas/coupon-code-card.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "line_1": { "type": "string", "default": "{{ code }}" }, - "line_2": { - "type": "string", - "default": "Added on {{ date_created, date }} at {{ date_created, time }}" - }, - "uses_count": { "type": "string", "default": "Used {{ count }} time" }, - "uses_count_plural": { "type": "string", "default": "Used {{ count }} times" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["line_1", "line_2", "uses_count", "uses_count_plural", "spinner"] -} diff --git a/src/static/schemas/coupon-code-form.json b/src/static/schemas/coupon-code-form.json deleted file mode 100644 index 08748cb71..000000000 --- a/src/static/schemas/coupon-code-form.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The string value of this coupon code which your customer will add to their cart to use this coupon." - }, - "v8n_required": { "type": "string", "default": "Please enter a coupon code" }, - "v8n_too_long": { - "type": "string", - "default": "Coupon code must be 50 characters or less" - }, - "v8n_has_spaces": { - "type": "string", - "default": "Please remove spaces from the coupon code" - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long", - "v8n_has_spaces" - ] - }, - "number-of-uses-to-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Number of uses" }, - "helper_text": { - "type": "string", - "default": "For informational purposes, this shows you how many times this coupon code has already been used." - } - }, - "required": ["label", "helper_text"] - }, - "transactions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Transactions" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "code": { "type": "string", "default": "Code" }, - "customer": { "type": "string", "default": "Customer" }, - "description": { "type": "string", "default": "Description" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "time": { "type": "string", "default": "{{value, date}}" }, - "status_capturing": { "type": "string", "default": "Capturing" }, - "status_captured": { "type": "string", "default": "Captured" }, - "status_approved": { "type": "string", "default": "Approved" }, - "status_authorized": { "type": "string", "default": "Authorized" }, - "status_pending": { "type": "string", "default": "Pending" }, - "status_completed": { "type": "string", "default": "Completed" }, - "status_problem": { "type": "string", "default": "Problem" }, - "status_pending_fraud_review": { - "type": "string", - "default": "Pending_fraud_review" - }, - "status_rejected": { "type": "string", "default": "Rejected" }, - "status_declined": { "type": "string", "default": "Declined" }, - "status_refunding": { "type": "string", "default": "Refunding" }, - "status_refunded": { "type": "string", "default": "Refunded" }, - "status_voided": { "type": "string", "default": "Voided" }, - "status_verified": { "type": "string", "default": "Verified" }, - "summary": { "type": "string", "default": "{{most_expensive_item.name}}" }, - "summary_plural": { - "type": "string", - "default": "{{most_expensive_item.name}} and {{count_minus_one}} more" - }, - "summary_payment_method_change": { - "type": "string", - "default": "Payment method change" - }, - "summary_subscription_modification": { - "type": "string", - "default": "Subscription modification" - }, - "summary_subscription_cancellation": { - "type": "string", - "default": "Subscription cancellation" - }, - "source_MIT": { - "type": "string", - "default": "This transaction was initiated by the merchant" - }, - "source_CIT": { - "type": "string", - "default": "This transaction was initiated by the customer" - }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No transactions" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "code", - "customer", - "description", - "price", - "time", - "status_capturing", - "status_captured", - "status_approved", - "status_authorized", - "status_pending", - "status_completed", - "status_problem", - "status_pending_fraud_review", - "status_rejected", - "status_declined", - "status_refunding", - "status_refunded", - "status_voided", - "status_verified", - "summary", - "summary_plural", - "summary_payment_method_change", - "summary_subscription_modification", - "summary_subscription_cancellation", - "source_MIT", - "source_CIT", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["label", "pagination"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this coupon code? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "code", - "number-of-uses-to-date", - "transactions", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/coupon-codes-form.json b/src/static/schemas/coupon-codes-form.json deleted file mode 100644 index f3766e9de..000000000 --- a/src/static/schemas/coupon-codes-form.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "status": { - "additionalProperties": false, - "properties": { - "success": { - "type": "string", - "default": "All done! We've imported your codes into the system." - } - }, - "required": ["success"] - }, - "coupon-codes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Codes" }, - "placeholder": { "type": "string", "default": "Enter or paste codes here..." }, - "helper_text": { - "type": "string", - "default": "Paste multiple space-separated codes in the field above to add all of them at once. Importing duplicate codes clears their usage stats." - }, - "v8n_required": { "type": "string", "default": "Please add at least one code" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Import" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": ["status", "coupon-codes", "create", "spinner"] -} diff --git a/src/static/schemas/coupon-form.json b/src/static/schemas/coupon-form.json deleted file mode 100644 index 2446b3b50..000000000 --- a/src/static/schemas/coupon-form.json +++ /dev/null @@ -1,1447 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "header": { - "additionalProperties": false, - "properties": { - "title_existing": { "type": "string", "default": "ID {{ id }}" }, - "title_new": { "type": "string", "default": "New coupon" }, - "subtitle": { - "type": "string", - "default": "Used {{ number_of_uses_to_date }} times (see individual codes for more info)" - } - }, - "required": ["title_existing", "title_new", "subtitle"] - }, - "import": { - "additionalProperties": false, - "properties": { - "button_text": { "type": "string", "default": "Import codes" }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "header": { "type": "string", "default": "Import codes" }, - "save": { "type": "string", "default": "Import" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "coupon-codes-form": { - "additionalProperties": false, - "properties": { - "status": { - "additionalProperties": false, - "properties": { - "success": { - "type": "string", - "default": "All done! We've imported your codes into the system." - } - }, - "required": ["success"] - }, - "coupon-codes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Codes" }, - "placeholder": { "type": "string", "default": "Enter or paste codes here..." }, - "helper_text": { - "type": "string", - "default": "Paste multiple space-separated codes in the field above to add all of them at once. Importing duplicate codes clears their usage stats." - }, - "v8n_required": { "type": "string", "default": "Please add at least one code" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Import" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": ["status", "coupon-codes", "create", "spinner"] - } - }, - "required": [ - "close", - "cancel", - "header", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "coupon-codes-form" - ] - } - }, - "required": ["button_text", "dialog"] - }, - "generate": { - "additionalProperties": false, - "properties": { - "button_text": { "type": "string", "default": "Generate codes" }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "header": { "type": "string", "default": "Generate codes" }, - "save": { "type": "string", "default": "Generate" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "generate-codes-form": { - "additionalProperties": false, - "properties": { - "status": { - "additionalProperties": false, - "properties": { - "success": { "type": "string", "default": "Codes generated successfully." } - }, - "required": ["success"] - }, - "error": { - "additionalProperties": false, - "properties": { - "invalid_form": { - "type": "string", - "default": "These parameters won't generate any codes. Please make sure that the length of the code is greater than the length of the prefix, does not exceed 50 characters in total and that the code itself does not contain spaces." - } - }, - "required": ["invalid_form"] - }, - "length": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code length" }, - "placeholder": { "type": "string", "default": "6" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "number-of-codes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Number of codes" }, - "placeholder": { "type": "string", "default": "10" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "prefix": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Prefix" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "The length value is inclusive of this prefix." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "current-balance": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Initial balance" }, - "placeholder": { "type": "string", "default": "0" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "example": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Examples" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "This is what the generated codes will look like." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Generate" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "status", - "error", - "length", - "number-of-codes", - "prefix", - "current-balance", - "example", - "create", - "spinner" - ] - } - }, - "required": [ - "close", - "cancel", - "header", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "generate-codes-form" - ] - } - }, - "required": ["button_text", "dialog"] - }, - "ordinal_few": { "type": "string", "default": "rd" }, - "ordinal_many": { "type": "string", "default": "th" }, - "ordinal_one": { "type": "string", "default": "st" }, - "ordinal_other": { "type": "string", "default": "th" }, - "ordinal_two": { "type": "string", "default": "nd" }, - "ordinal_zero": { "type": "string", "default": "th" }, - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "Coupon name is visible to the customers." }, - "v8n_required": { "type": "string", "default": "Please enter a name for this coupon." }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten the name to 50 characters or less." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "rules": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Rules" }, - "helper_text": { - "type": "string", - "default": "Add rules to define how this coupon will affect order total. You can get started by selecting one of the examples from the dropdown on top right." - }, - "v8n_required": { - "type": "string", - "default": "Please add at least one discount rule in this section." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we are unable to store that many discount rules at the moment. Please reduce the number of rules in this section until this message disappears." - }, - "discount-builder": { - "additionalProperties": false, - "properties": { - "tier": { "type": "string", "default": "Tier" }, - "tier_by": { "type": "string", "default": "by" }, - "tier_if": { "type": "string", "default": "if" }, - "tier_allunits": { "type": "string", "default": "price of each item" }, - "tier_incremental": { "type": "string", "default": "price of additional items" }, - "tier_repeat": { "type": "string", "default": "price of next item" }, - "tier_single": { "type": "string", "default": "order total" }, - "tier_then": { "type": "string", "default": "then" }, - "quantity": { "type": "string", "default": "quantity" }, - "total": { "type": "string", "default": "total" }, - "reduce": { "type": "string", "default": "reduce" }, - "increase": { "type": "string", "default": "increase" } - }, - "required": [ - "tier", - "tier_by", - "tier_if", - "tier_allunits", - "tier_incremental", - "tier_repeat", - "tier_single", - "tier_then", - "quantity", - "total", - "reduce", - "increase" - ] - }, - "allunits_price_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ each after {{from}}" - }, - "allunits_price_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} after {{from}}" - }, - "allunits_quantity_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ each on orders of {{from}}+" - }, - "allunits_quantity_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} on orders of {{from}}+" - }, - "incremental_price_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ each on orders of {{from}}+" - }, - "incremental_price_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} on orders of {{from}}+" - }, - "incremental_quantity_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ each on items {{from}}+" - }, - "incremental_quantity_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} on items {{from}}+" - }, - "repeat_price_amount_discount_summary": { - "type": "string", - "default": "for each {{from}}, {{adjustment}}¤ on the next item" - }, - "repeat_price_percentage_discount_summary": { - "type": "string", - "default": "for each {{from}}, {{adjustment, percent}} on the next item" - }, - "repeat_quantity_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ on each {{from, ordinal}} item" - }, - "single_price_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ after {{from}}" - }, - "single_price_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} after {{from}}" - }, - "single_quantity_amount_discount_summary": { - "type": "string", - "default": "{{adjustment}}¤ after {{from}} items" - }, - "single_quantity_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} after {{from}} items" - }, - "repeat_quantity_percentage_discount_summary": { - "type": "string", - "default": "{{adjustment, percent}} on each {{from, ordinal}} item" - }, - "discount_summary": { - "type": "string", - "default": "Applied discount: {{params, discount}}." - }, - "custom_discount": { "type": "string", "default": "Custom discount" }, - "description": { "type": "string", "default": "Description" }, - "url_parameter": { "type": "string", "default": "URL parameter" } - }, - "required": [ - "label", - "helper_text", - "v8n_required", - "v8n_too_long", - "discount-builder", - "allunits_price_amount_discount_summary", - "allunits_price_percentage_discount_summary", - "allunits_quantity_amount_discount_summary", - "allunits_quantity_percentage_discount_summary", - "incremental_price_amount_discount_summary", - "incremental_price_percentage_discount_summary", - "incremental_quantity_amount_discount_summary", - "incremental_quantity_percentage_discount_summary", - "repeat_price_amount_discount_summary", - "repeat_price_percentage_discount_summary", - "repeat_quantity_amount_discount_summary", - "single_price_amount_discount_summary", - "single_price_percentage_discount_summary", - "single_quantity_amount_discount_summary", - "single_quantity_percentage_discount_summary", - "repeat_quantity_percentage_discount_summary", - "discount_summary", - "custom_discount", - "description", - "url_parameter" - ] - }, - "coupon-codes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Codes" }, - "delete_header": { "type": "string", "default": "Remove code?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this code from the item." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "search": { "type": "string", "default": "Search" }, - "clear": { "type": "string", "default": "Clear" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_create": { "type": "string", "default": "Create code" }, - "header_update": { "type": "string", "default": "Update code" }, - "close": { "type": "string", "default": "Close" }, - "save": { "type": "string", "default": "Save" }, - "cancel": { "type": "string", "default": "Cancel" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "coupon-code-form": { - "additionalProperties": false, - "properties": { - "code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The string value of this coupon code which your customer will add to their cart to use this coupon." - }, - "v8n_required": { "type": "string", "default": "Please enter a coupon code" }, - "v8n_too_long": { - "type": "string", - "default": "Coupon code must be 50 characters or less" - }, - "v8n_has_spaces": { - "type": "string", - "default": "Please remove spaces from the coupon code" - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long", - "v8n_has_spaces" - ] - }, - "number-of-uses-to-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Number of uses" }, - "helper_text": { - "type": "string", - "default": "For informational purposes, this shows you how many times this coupon code has already been used." - } - }, - "required": ["label", "helper_text"] - }, - "transactions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Transactions" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "code": { "type": "string", "default": "Code" }, - "customer": { "type": "string", "default": "Customer" }, - "description": { "type": "string", "default": "Description" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "time": { "type": "string", "default": "{{value, date}}" }, - "status_capturing": { "type": "string", "default": "Capturing" }, - "status_captured": { "type": "string", "default": "Captured" }, - "status_approved": { "type": "string", "default": "Approved" }, - "status_authorized": { "type": "string", "default": "Authorized" }, - "status_pending": { "type": "string", "default": "Pending" }, - "status_completed": { "type": "string", "default": "Completed" }, - "status_problem": { "type": "string", "default": "Problem" }, - "status_pending_fraud_review": { - "type": "string", - "default": "Pending_fraud_review" - }, - "status_rejected": { "type": "string", "default": "Rejected" }, - "status_declined": { "type": "string", "default": "Declined" }, - "status_refunding": { "type": "string", "default": "Refunding" }, - "status_refunded": { "type": "string", "default": "Refunded" }, - "status_voided": { "type": "string", "default": "Voided" }, - "status_verified": { "type": "string", "default": "Verified" }, - "summary": { - "type": "string", - "default": "{{most_expensive_item.name}}" - }, - "summary_plural": { - "type": "string", - "default": "{{most_expensive_item.name}} and {{count_minus_one}} more" - }, - "summary_payment_method_change": { - "type": "string", - "default": "Payment method change" - }, - "summary_subscription_modification": { - "type": "string", - "default": "Subscription modification" - }, - "summary_subscription_cancellation": { - "type": "string", - "default": "Subscription cancellation" - }, - "source_MIT": { - "type": "string", - "default": "This transaction was initiated by the merchant" - }, - "source_CIT": { - "type": "string", - "default": "This transaction was initiated by the customer" - }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No transactions" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "code", - "customer", - "description", - "price", - "time", - "status_capturing", - "status_captured", - "status_approved", - "status_authorized", - "status_pending", - "status_completed", - "status_problem", - "status_pending_fraud_review", - "status_rejected", - "status_declined", - "status_refunding", - "status_refunded", - "status_voided", - "status_verified", - "summary", - "summary_plural", - "summary_payment_method_change", - "summary_subscription_modification", - "summary_subscription_cancellation", - "source_MIT", - "source_CIT", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["label", "pagination"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this coupon code? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "code", - "number-of-uses-to-date", - "transactions", - "timestamps", - "delete", - "create", - "spinner" - ] - } - }, - "required": [ - "header_create", - "header_update", - "close", - "save", - "cancel", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "coupon-code-form" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add code +" }, - "search_button_text": { "type": "string", "default": "Search codes" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Delete" }, - "copy_button_text": { "type": "string", "default": "Copy code" }, - "line_1": { "type": "string", "default": "{{ code }}" }, - "line_2": { - "type": "string", - "default": "Added on {{ date_created, date }} at {{ date_created, time }}" - }, - "uses_count": { "type": "string", "default": "Used {{ count }} time" }, - "uses_count_plural": { "type": "string", "default": "Used {{ count }} times" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No codes" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "delete_button_text", - "copy_button_text", - "line_1", - "line_2", - "uses_count", - "uses_count_plural", - "spinner" - ] - }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": [ - "create_button_text", - "search_button_text", - "card", - "first", - "last", - "next", - "pagination", - "previous" - ] - }, - "query-builder": { - "additionalProperties": false, - "properties": { - "add_or_clause": { "type": "string", "default": "Add OR clause" }, - "add_value": { "type": "string", "default": "Add value" }, - "code": { "type": "string", "default": "Code" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "delete": { "type": "string", "default": "Delete" }, - "field": { "type": "string", "default": "Field" }, - "hidden": { "type": "string", "default": "Hidden" }, - "is_defined_false": { "type": "string", "default": "Not defined" }, - "is_defined_true": { "type": "string", "default": "Defined" }, - "name": { "type": "string", "default": "Name" }, - "operator_equal": { "type": "string", "default": "Equal" }, - "operator_greaterthan": { "type": "string", "default": "Greater than" }, - "operator_greaterthanorequal": { "type": "string", "default": "Greater than or equal" }, - "operator_in": { "type": "string", "default": "One of" }, - "operator_isdefined": { "type": "string", "default": "Is defined" }, - "operator_lessthan": { "type": "string", "default": "Less than" }, - "operator_lessthanorequal": { "type": "string", "default": "Less than or equal" }, - "operator_not": { "type": "string", "default": "Not equal" }, - "or": { "type": "string", "default": "Or" }, - "query_builder_group": { "type": "string", "default": "Group of filters" }, - "query_builder_rule": { "type": "string", "default": "Filter" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "type": { "type": "string", "default": "Type" }, - "type_any": { "type": "string", "default": "Field of unknown type" }, - "type_attribute": { "type": "string", "default": "Key-value resource" }, - "type_date": { "type": "string", "default": "Date field" }, - "type_here": { "type": "string", "default": "Type here..." }, - "type_number": { "type": "string", "default": "Numeric field" }, - "type_string": { "type": "string", "default": "Text field" }, - "used_codes": { "type": "string", "default": "Codes used" }, - "value": { "type": "string", "default": "Value" } - }, - "required": [ - "add_or_clause", - "add_value", - "code", - "date", - "date_created", - "date_modified", - "delete", - "field", - "hidden", - "is_defined_false", - "is_defined_true", - "name", - "operator_equal", - "operator_greaterthan", - "operator_greaterthanorequal", - "operator_in", - "operator_isdefined", - "operator_lessthan", - "operator_lessthanorequal", - "operator_not", - "or", - "query_builder_group", - "query_builder_rule", - "range_from", - "range_to", - "type", - "type_any", - "type_attribute", - "type_date", - "type_here", - "type_number", - "type_string", - "used_codes", - "value" - ] - } - }, - "required": [ - "label", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "search", - "clear", - "dialog", - "pagination", - "query-builder" - ] - }, - "attributes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Attributes" }, - "delete_header": { "type": "string", "default": "Remove attribute?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this attribute from the item." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_create": { "type": "string", "default": "Create attribute" }, - "header_update": { "type": "string", "default": "Update attribute" }, - "close": { "type": "string", "default": "Close" }, - "save": { "type": "string", "default": "Save" }, - "cancel": { "type": "string", "default": "Cancel" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "attribute-form": { - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Name of this attribute. It does not have to be unique." - }, - "v8n_required": { "type": "string", "default": "Please name this attribute." }, - "v8n_too_long": { - "type": "string", - "default": "Please choose a name that is 500 characters long or less." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Value of this attribute. Attribute values are automatically HTML-escaped." - }, - "v8n_required": { - "type": "string", - "default": "Please provide a value for this attribute." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store values that are more than 1000 characters long." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "visibility": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Visibility" }, - "option_public": { "type": "string", "default": "Everyone" }, - "option_restricted": { "type": "string", "default": "Store admins" }, - "option_private": { "type": "string", "default": "Only me" }, - "helper_text": { - "type": "string", - "default": "Controls who can see this attribute. Public attributes can be shown to anyone, including customers. Private attributes are more suitable for configuration or technical details which are irrelevant to the public. Restricted attributes can only be viewed with the OAuth client that created them." - } - }, - "required": [ - "label", - "option_public", - "option_restricted", - "option_private", - "helper_text" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "name", - "value", - "visibility", - "timestamps", - "delete", - "create", - "spinner" - ] - } - }, - "required": [ - "header_create", - "header_update", - "close", - "save", - "cancel", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "attribute-form" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add attribute +" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Delete" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No attributes" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "spinner"] - }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": [ - "create_button_text", - "card", - "first", - "last", - "next", - "pagination", - "previous" - ] - } - }, - "required": [ - "label", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "dialog", - "pagination" - ] - }, - "number-of-uses-allowed": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Uses per coupon" }, - "placeholder": { "type": "string", "default": "Unlimited" }, - "helper_text": { - "type": "string", - "default": "The maximum number of times this coupon can be used. Leave blank for unlimited uses." - }, - "v8n_too_small": { - "type": "string", - "default": "Please enter a value greater or equal to 0." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_small"] - }, - "number-of-uses-allowed-per-customer": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Uses per customer" }, - "placeholder": { "type": "string", "default": "Unlimited" }, - "helper_text": { - "type": "string", - "default": "The maximum number of times a single customer can use this coupon. Leave blank for unlimited uses." - }, - "v8n_too_small": { - "type": "string", - "default": "Please enter a value greater or equal to 0." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_small"] - }, - "number-of-uses-allowed-per-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Uses per code" }, - "placeholder": { "type": "string", "default": "Unlimited" }, - "helper_text": { - "type": "string", - "default": "The maximum number of times a single code can be used. Leave blank for unlimited uses." - }, - "v8n_too_small": { - "type": "string", - "default": "Please enter a value greater or equal to 0." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_small"] - }, - "product-code-restrictions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Product code restrictions" }, - "placeholder": { "type": "string", "default": "Enter a product code and hit Enter" }, - "helper_text": { - "type": "string", - "default": "We'll apply this coupon only if one of the rules in the list matches the product code. Wildcards are allowed." - }, - "unit_allow": { "type": "string", "default": "Allow" }, - "unit_block": { "type": "string", "default": "Block" }, - "label_allow": { "type": "string", "default": "Allow {{ value }}" }, - "label_block": { "type": "string", "default": "Block {{ value }}" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we are unable to store that many product code restrictions at the moment. Please reduce the number of rules in this section until this message disappears." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "unit_allow", - "unit_block", - "label_allow", - "label_block", - "v8n_too_long" - ] - }, - "options": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Options" }, - "option_multiple_codes_allowed": { - "type": "string", - "default": "Allow multiple codes on the same order" - }, - "option_combinable": { "type": "string", "default": "Allow combining with other coupons" }, - "option_exclude_category_discounts": { - "type": "string", - "default": "Don't apply category discounts with this coupon" - }, - "option_exclude_line_item_discounts": { - "type": "string", - "default": "Don't apply line item discounts with this coupon" - }, - "option_is_taxable": { "type": "string", "default": "Apply taxes before this coupon" }, - "option_shared_codes_allowed": { - "type": "string", - "default": "Enable code sharing between coupons" - }, - "option_customer_auto_apply": { "type": "string", "default": "Enable auto-apply" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": [ - "label", - "option_multiple_codes_allowed", - "option_combinable", - "option_exclude_category_discounts", - "option_exclude_line_item_discounts", - "option_is_taxable", - "option_shared_codes_allowed", - "option_customer_auto_apply", - "helper_text" - ] - }, - "start-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Start date" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "The date and time when this coupon will become active. Leave blank to activate immediately." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "end-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "End date" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "The date and time when this coupon will expire. Leave blank for no expiration." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "customer-subscription-restrictions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Auto-apply: subscription restrictions" }, - "placeholder": { "type": "string", "default": "Enter a product code and hit Enter" }, - "helper_text": { - "type": "string", - "default": "This coupon will be automatically applied when a subscription includes a product with one of the codes in the list. Wildcards are allowed just like in product code restrictions." - }, - "submit": { "type": "string", "default": "Add this code" }, - "delete": { "type": "string", "default": "Delete this code" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we are unable to store that many subscription restrictions at the moment. Please reduce the number of rules in this section until this message disappears." - } - }, - "required": ["label", "placeholder", "helper_text", "submit", "delete", "v8n_too_long"] - }, - "customer-attribute-restrictions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Auto-apply: customer restrictions" }, - "helper_text": { - "type": "string", - "default": "This coupon will be automatically applied when a customer record matches this query." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we are unable to store that many customer restrictions at the moment. Please reduce the number of rules in this section until this message disappears." - }, - "query-builder": { - "additionalProperties": false, - "properties": { - "add_or_clause": { "type": "string", "default": "Add OR clause" }, - "add_value": { "type": "string", "default": "Add value" }, - "code": { "type": "string", "default": "Code" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "delete": { "type": "string", "default": "Delete" }, - "field": { "type": "string", "default": "Field" }, - "hidden": { "type": "string", "default": "Hidden" }, - "is_defined_false": { "type": "string", "default": "Not defined" }, - "is_defined_true": { "type": "string", "default": "Defined" }, - "name": { "type": "string", "default": "Name" }, - "operator_equal": { "type": "string", "default": "Equal" }, - "operator_greaterthan": { "type": "string", "default": "Greater than" }, - "operator_greaterthanorequal": { "type": "string", "default": "Greater than or equal" }, - "operator_in": { "type": "string", "default": "One of" }, - "operator_isdefined": { "type": "string", "default": "Is defined" }, - "operator_lessthan": { "type": "string", "default": "Less than" }, - "operator_lessthanorequal": { "type": "string", "default": "Less than or equal" }, - "operator_not": { "type": "string", "default": "Not equal" }, - "or": { "type": "string", "default": "Or" }, - "query_builder_group": { "type": "string", "default": "Group of filters" }, - "query_builder_rule": { "type": "string", "default": "Filter" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "type": { "type": "string", "default": "Type" }, - "type_any": { "type": "string", "default": "Field of unknown type" }, - "type_attribute": { "type": "string", "default": "Key-value resource" }, - "type_date": { "type": "string", "default": "Date field" }, - "type_here": { "type": "string", "default": "Type here..." }, - "type_number": { "type": "string", "default": "Numeric field" }, - "type_string": { "type": "string", "default": "Text field" }, - "used_codes": { "type": "string", "default": "Codes used" }, - "value": { "type": "string", "default": "Value" } - }, - "required": [ - "add_or_clause", - "add_value", - "code", - "date", - "date_created", - "date_modified", - "delete", - "field", - "hidden", - "is_defined_false", - "is_defined_true", - "name", - "operator_equal", - "operator_greaterthan", - "operator_greaterthanorequal", - "operator_in", - "operator_isdefined", - "operator_lessthan", - "operator_lessthanorequal", - "operator_not", - "or", - "query_builder_group", - "query_builder_rule", - "range_from", - "range_to", - "type", - "type_any", - "type_attribute", - "type_date", - "type_here", - "type_number", - "type_string", - "used_codes", - "value" - ] - } - }, - "required": ["label", "helper_text", "v8n_too_long", "query-builder"] - }, - "item-option-restrictions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Item option restrictions" }, - "helper_text": { - "type": "string", - "default": "This restricts the usage of a coupon code based on an item option's name and value. When defined, the coupon will only apply to items with the specified option name and value. Wildcards are allowed." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we are unable to store that many item option restrictions at the moment. Please reduce the number of rules in this section until this message disappears." - }, - "query-builder": { - "additionalProperties": false, - "properties": { - "add_or_clause": { "type": "string", "default": "Add OR clause" }, - "add_value": { "type": "string", "default": "Add option value" }, - "code": { "type": "string", "default": "Code" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "delete": { "type": "string", "default": "Delete" }, - "field": { "type": "string", "default": "Option name" }, - "hidden": { "type": "string", "default": "Hidden" }, - "is_defined_false": { "type": "string", "default": "Not defined" }, - "is_defined_true": { "type": "string", "default": "Defined" }, - "name": { "type": "string", "default": "Name" }, - "operator_equal": { "type": "string", "default": "Equal" }, - "operator_greaterthan": { "type": "string", "default": "Greater than" }, - "operator_greaterthanorequal": { "type": "string", "default": "Greater than or equal" }, - "operator_in": { "type": "string", "default": "One of" }, - "operator_isdefined": { "type": "string", "default": "Is defined" }, - "operator_lessthan": { "type": "string", "default": "Less than" }, - "operator_lessthanorequal": { "type": "string", "default": "Less than or equal" }, - "operator_not": { "type": "string", "default": "Not equal" }, - "or": { "type": "string", "default": "Or" }, - "query_builder_group": { "type": "string", "default": "Group of filters" }, - "query_builder_rule": { "type": "string", "default": "Filter" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "type": { "type": "string", "default": "Type" }, - "type_any": { "type": "string", "default": "Field of unknown type" }, - "type_attribute": { "type": "string", "default": "Key-value resource" }, - "type_date": { "type": "string", "default": "Date field" }, - "type_here": { "type": "string", "default": "Type here..." }, - "type_number": { "type": "string", "default": "Numeric field" }, - "type_string": { "type": "string", "default": "Text field" }, - "used_codes": { "type": "string", "default": "Codes used" }, - "value": { "type": "string", "default": "Option value" } - }, - "required": [ - "add_or_clause", - "add_value", - "code", - "date", - "date_created", - "date_modified", - "delete", - "field", - "hidden", - "is_defined_false", - "is_defined_true", - "name", - "operator_equal", - "operator_greaterthan", - "operator_greaterthanorequal", - "operator_in", - "operator_isdefined", - "operator_lessthan", - "operator_lessthanorequal", - "operator_not", - "or", - "query_builder_group", - "query_builder_rule", - "range_from", - "range_to", - "type", - "type_any", - "type_attribute", - "type_date", - "type_here", - "type_number", - "type_string", - "used_codes", - "value" - ] - } - }, - "required": ["label", "helper_text", "v8n_too_long", "query-builder"] - }, - "category-restrictions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Item category restrictions" }, - "status_saving": { "type": "string", "default": "Saving..." }, - "status_loading": { "type": "string", "default": "Loading..." }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No restrictions" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - }, - "helper_text": { - "type": "string", - "default": "Limit which categories this coupon applies to. All changes are saved automatically." - } - }, - "required": ["label", "status_saving", "status_loading", "pagination", "helper_text"] - }, - "inclusive-tax-rate": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Tax rate" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "The tax rate to apply to the coupon in tax-inclusive mode. This is a decimal value from 0 to 1." - }, - "v8n_too_small": { - "type": "string", - "default": "Please enter a value greater or equal to 0." - }, - "v8n_too_big": { - "type": "string", - "default": "Please enter a value less than or equal to 1." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_small", "v8n_too_big"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "This action is irreversible. Are you sure you want to delete this coupon?" - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "header", - "import", - "generate", - "ordinal_few", - "ordinal_many", - "ordinal_one", - "ordinal_other", - "ordinal_two", - "ordinal_zero", - "name", - "rules", - "coupon-codes", - "attributes", - "number-of-uses-allowed", - "number-of-uses-allowed-per-customer", - "number-of-uses-allowed-per-code", - "product-code-restrictions", - "options", - "start-date", - "end-date", - "customer-subscription-restrictions", - "customer-attribute-restrictions", - "item-option-restrictions", - "category-restrictions", - "inclusive-tax-rate", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/custom-field-card.json b/src/static/schemas/custom-field-card.json deleted file mode 100644 index 5f175ab78..000000000 --- a/src/static/schemas/custom-field-card.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] -} diff --git a/src/static/schemas/custom-field-form.json b/src/static/schemas/custom-field-form.json deleted file mode 100644 index 6d80702a9..000000000 --- a/src/static/schemas/custom-field-form.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "Maximum 100 characters." }, - "v8n_required": { "type": "string", "default": "Please name this custom field." }, - "v8n_too_long": { - "type": "string", - "default": "Please choose a name that is 100 characters long or less." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "Maximum 700 characters." }, - "v8n_required": { - "type": "string", - "default": "Please provide a value for this custom field." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store values that are more than 700 characters long." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "visibility": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Visibility" }, - "option_hidden": { "type": "string", "default": "Hide in receipts" }, - "helper_text": { - "type": "string", - "default": "Whether or not this custom field is visible on the receipt and email receipt. This correlates to custom fields with a \"h:\" prefix when added to the cart." - } - }, - "required": ["label", "option_hidden", "helper_text"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this custom field? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": ["name", "value", "visibility", "timestamps", "delete", "create", "spinner"] -} diff --git a/src/static/schemas/customer-card.json b/src/static/schemas/customer-card.json deleted file mode 100644 index 5f175ab78..000000000 --- a/src/static/schemas/customer-card.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] -} diff --git a/src/static/schemas/customer-form.json b/src/static/schemas/customer-form.json deleted file mode 100644 index 275faeccd..000000000 --- a/src/static/schemas/customer-form.json +++ /dev/null @@ -1,271 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "legal-notice": { - "additionalProperties": false, - "properties": { - "text": { - "type": "string", - "default": "By creating an account, you agree to our Terms of Service." - }, - "link": { "type": "string", "default": "Click here to open them in a new tab." } - }, - "required": ["text", "link"] - }, - "status": { - "additionalProperties": false, - "properties": { - "password_change_success": { - "type": "string", - "default": "You have successfully set a new password for {{ email }}." - }, - "close": { "type": "string", "default": "Close" } - }, - "required": ["password_change_success", "close"] - }, - "error": { - "additionalProperties": false, - "properties": { - "old_password_incorrect": { - "type": "string", - "default": "The old password you entered is incorrect. Please try again." - }, - "registration_disabled": { - "type": "string", - "default": "Customer registration is disabled for this store. If you're seeing this message as a customer, please contact the store owner." - }, - "verification_failed": { - "type": "string", - "default": "Client verification failed. If you are seeing this message as a customer, please contact the store owner." - }, - "email_already_used": { - "type": "string", - "default": "This email is already in use. Please use a different email." - } - }, - "required": [ - "old_password_incorrect", - "registration_disabled", - "verification_failed", - "email_already_used" - ] - }, - "first-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "First name" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { "type": "string", "default": "Customer's given name, optional." }, - "v8n_too_long": { - "type": "string", - "default": "We can't store first names longer than 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "last-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last name" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { "type": "string", "default": "Customer's surname, optional." }, - "v8n_too_long": { - "type": "string", - "default": "We can't store last names longer than 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "tax-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Tax ID" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { - "type": "string", - "default": "Tax identification number for this customer, optional." - }, - "v8n_too_long": { - "type": "string", - "default": "We can't store tax IDs longer than 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "email": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Email" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "This email will be used as the login to the Checkout and Customer Portal." - }, - "helper_text_last_login_date": { - "type": "string", - "default": "This customer's login to the Checkout and Customer Portal. Last used on {{ date, date }} at {{ date, time }}." - }, - "v8n_too_long": { - "type": "string", - "default": "We can't store emails longer than 100 characters." - }, - "v8n_invalid_email": { "type": "string", "default": "This email is invalid." }, - "v8n_required": { "type": "string", "default": "Please fill out this field." } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "helper_text_last_login_date", - "v8n_too_long", - "v8n_invalid_email", - "v8n_required" - ] - }, - "is-anonymous": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Account type" }, - "helper_text": { - "type": "string", - "default": "Guest customers dont't have access to Customer Portal. Once the account type is set, it can not be changed." - }, - "option_true": { "type": "string", "default": "Guest" }, - "option_false": { "type": "string", "default": "Registered" } - }, - "required": ["label", "helper_text", "option_true", "option_false"] - }, - "password": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Password" }, - "placeholder": { "type": "string", "default": "Required" }, - "placeholder_new": { "type": "string", "default": "Keep current password" }, - "helper_text": { - "type": "string", - "default": "Set a password for this customer. To generate a secure random password for this account, use the ✨ button." - }, - "helper_text_new": { - "type": "string", - "default": "To change this customer's password, enter a new password here. If you leave it blank, their password will remain the same." - }, - "v8n_too_long": { - "type": "string", - "default": "Please use a password that is no longer than 50 characters." - }, - "v8n_too_weak": { - "type": "string", - "default": "Please use a stronger password. To make this password stronger, make it at least 8 characters long and include a few upper and lower case letters, numbers, and special characters." - }, - "v8n_required": { "type": "string", "default": "Please fill out this field." } - }, - "required": [ - "label", - "placeholder", - "placeholder_new", - "helper_text", - "helper_text_new", - "v8n_too_long", - "v8n_too_weak", - "v8n_required" - ] - }, - "password-old": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Old password" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "Enter the old password to set a new password. If you're a store admin, you can leave this field blank." - }, - "v8n_required": { "type": "string", "default": "Please fill out this field." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "forgot-password": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "One-time code" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { - "type": "string", - "default": "Set a one-time code that this customer can use instead of a password to sign in. Keep in mind that this code will expire after 30 minutes." - }, - "helper_text_expired_on": { - "type": "string", - "default": "A one-time code that this customer can use instead of a password to sign in. This code expired on {{ expiresOn, date }} at {{ expiresOn, time }}." - }, - "helper_text_expires_in": { - "type": "string", - "default": "A one-time code that this customer can use instead of a password to sign in. This code will expire in {{ expiresInMin, relative }}." - }, - "v8n_too_long": { - "type": "string", - "default": "Please use a code that is no longer than 50 characters." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "helper_text_expired_on", - "helper_text_expires_in", - "v8n_too_long" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "This action is irreversible. Are you sure you want to delete this customer?" - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "legal-notice", - "status", - "error", - "first-name", - "last-name", - "tax-id", - "email", - "is-anonymous", - "password", - "password-old", - "forgot-password", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/customer-portal-settings-form.json b/src/static/schemas/customer-portal-settings-form.json deleted file mode 100644 index 2a63b1585..000000000 --- a/src/static/schemas/customer-portal-settings-form.json +++ /dev/null @@ -1,777 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "session-lifespan-in-minutes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Session lifespan" }, - "option_minute": { "type": "string", "default": "Minute" }, - "option_minute_plural": { "type": "string", "default": "Minutes" }, - "option_hour": { "type": "string", "default": "Hour" }, - "option_hour_plural": { "type": "string", "default": "Hours" }, - "option_day": { "type": "string", "default": "Day" }, - "option_day_plural": { "type": "string", "default": "Days" }, - "option_week": { "type": "string", "default": "Week" }, - "option_week_plural": { "type": "string", "default": "Weeks" }, - "helper_text": { - "type": "string", - "default": "The maximum time a customer can be logged in without activity." - }, - "v8n_too_long": { - "type": "string", - "default": "We limit session lifespan to 4 weeks for security reasons. Please select a smaller value." - } - }, - "required": [ - "label", - "option_minute", - "option_minute_plural", - "option_hour", - "option_hour_plural", - "option_day", - "option_day_plural", - "option_week", - "option_week_plural", - "helper_text", - "v8n_too_long" - ] - }, - "allowed-origins": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Allowed origins" }, - "helper_text": { - "type": "string", - "default": "The list of origins that are allowed to access the Customer Portal API. Must be https unless it's localhost. You can add up to 10 origins in this section." - }, - "placeholder": { "type": "string", "default": "Enter an origin and press Enter" }, - "v8n_invalid": { - "type": "string", - "default": "Some of the origins you've entered are invalid. Please check the items marked with ⚠️ and correct them." - }, - "v8n_too_many": { - "type": "string", - "default": "We support up to 10 origins. Please remove some of them." - } - }, - "required": ["label", "helper_text", "placeholder", "v8n_invalid", "v8n_too_many"] - }, - "jwt-shared-secret": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "JWT shared secret" }, - "placeholder": { "type": "string", "default": "Leave empty to generate automatically" }, - "helper_text": { - "type": "string", - "default": "We use this key to sign customer JWTs. Changing it will drop all active sessions." - }, - "v8n_invalid": { - "type": "string", - "default": "Only letters (a-z), numbers (0-9) and dashes (-) are allowed in this field." - }, - "v8n_too_short": { - "type": "string", - "default": "This value must be at least 40 characters long." - }, - "v8n_too_long": { "type": "string", "default": "This value can't exceed 100 characters." } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_invalid", - "v8n_too_short", - "v8n_too_long" - ] - }, - "features": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Features" }, - "option_sso": { "type": "string", "default": "SSO (single sign-on)" }, - "option_sign_up": { "type": "string", "default": "Customer registration" }, - "option_frequency_modification": { - "type": "string", - "default": "Frequency changes for subscriptions" - }, - "option_next_date_modification": { - "type": "string", - "default": "Next payment date changes for subscriptions" - }, - "helper_text": { "type": "string", "default": "" } - }, - "required": [ - "label", - "option_sso", - "option_sign_up", - "option_frequency_modification", - "option_next_date_modification", - "helper_text" - ] - }, - "sign-up-verification-hcaptcha-site-key": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "hCaptcha site key" }, - "placeholder": { "type": "string", "default": "Provided by Foxy" }, - "helper_text": { - "type": "string", - "default": "By default, we use our own hCaptcha site key for all portal installs. If you have a hCaptcha account and would like to use your own key, enter it here." - }, - "v8n_too_long": { "type": "string", "default": "This value can't exceed 100 characters." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "sign-up-verification-hcaptcha-secret-key": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "hCaptcha secret key" }, - "placeholder": { "type": "string", "default": "Provided by Foxy" }, - "helper_text": { - "type": "string", - "default": "By default, we use our own hCaptcha secret key for all portal installs. If you have a hCaptcha account and would like to use your own key, enter it here." - }, - "v8n_too_long": { "type": "string", "default": "This value can't exceed 100 characters." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "subscriptions-allow-frequency-modification": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Frequency options" }, - "helper_text": { - "type": "string", - "default": "Customize how your customers can change the payment schedule of their subscriptions. You can add up to 10 rules in this section." - }, - "delete_header": { "type": "string", "default": "Remove this rule?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this rule." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_create": { "type": "string", "default": "Add rule" }, - "header_update": { "type": "string", "default": "Edit rule" }, - "close": { "type": "string", "default": "Close" }, - "save": { "type": "string", "default": "Save" }, - "cancel": { "type": "string", "default": "Cancel" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "jsonata-query": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "JSONata query" }, - "placeholder": { - "type": "string", - "default": "Enter * to match all subscriptions" - }, - "helper_text": { - "type": "string", - "default": "This rule will apply only to subscriptions that match this query. We will run this query against the standard fx:subscription object." - }, - "v8n_required": { - "type": "string", - "default": "Please enter a JSONata expression. You can use * to match all subscriptions." - }, - "v8n_too_long": { - "type": "string", - "default": "Please limit your query to 200 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "values": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Values" }, - "unit_years": { "type": "string", "default": "Years" }, - "unit_months": { "type": "string", "default": "Months" }, - "unit_weeks": { "type": "string", "default": "Weeks" }, - "unit_days": { "type": "string", "default": "Days" }, - "twice_a_week": { "type": "string", "default": "Twice a week" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{ count }} years" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{ count }} weeks" }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{ count }} months" }, - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{ count }} days" }, - "placeholder": { "type": "string", "default": "Enter a number" }, - "helper_text": { - "type": "string", - "default": "The frequency options that will be available to the customer. You can add up to 20 options." - }, - "v8n_required": { "type": "string", "default": "Please enter at least one value." }, - "v8n_too_long": { - "type": "string", - "default": "Only up to 20 values are allowed. Please remove some of them to proceed." - } - }, - "required": [ - "label", - "unit_years", - "unit_months", - "unit_weeks", - "unit_days", - "twice_a_week", - "yearly", - "yearly_plural", - "weekly", - "weekly_plural", - "monthly", - "monthly_plural", - "daily", - "daily_plural", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Please confirm that you'd like to remove this rule." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "header_create", - "header_update", - "close", - "save", - "cancel", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "jsonata-query", - "values", - "delete", - "create", - "spinner" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add rule +" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Delete" }, - "title_all": { "type": "string", "default": "All subscriptions" }, - "title_matching": { "type": "string", "default": "Matching {{ query }}" }, - "subtitle_empty": { "type": "string", "default": "No options" }, - "subtitle_list": { "type": "string", "default": "{{ list }}" }, - "twice_a_week": { "type": "string", "default": "Twice a week" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{ count }} years" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{ count }} weeks" }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{ count }} months" }, - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{ count }} days" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No rules" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "delete_button_text", - "title_all", - "title_matching", - "subtitle_empty", - "subtitle_list", - "twice_a_week", - "yearly", - "yearly_plural", - "weekly", - "weekly_plural", - "monthly", - "monthly_plural", - "daily", - "daily_plural", - "spinner" - ] - }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": [ - "create_button_text", - "card", - "first", - "last", - "next", - "pagination", - "previous" - ] - } - }, - "required": [ - "label", - "helper_text", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "dialog", - "pagination" - ] - }, - "subscriptions-allow-next-date-modification": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Next payment date options" }, - "helper_text": { - "type": "string", - "default": "Customize how your customers can change the next payment date of their subscriptions. You can add up to 10 rules in this section." - }, - "delete_header": { "type": "string", "default": "Remove this rule?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this rule." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_create": { "type": "string", "default": "Add rule" }, - "header_update": { "type": "string", "default": "Edit rule" }, - "close": { "type": "string", "default": "Close" }, - "save": { "type": "string", "default": "Save" }, - "cancel": { "type": "string", "default": "Cancel" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "jsonata-query": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "JSONata query" }, - "placeholder": { - "type": "string", - "default": "Enter * to match all subscriptions" - }, - "helper_text": { - "type": "string", - "default": "This rule will apply only to subscriptions that match this query. We will run this query against the standard fx:subscription object." - }, - "v8n_required": { - "type": "string", - "default": "Please enter a JSONata expression. You can use * to match all subscriptions." - }, - "v8n_too_long": { - "type": "string", - "default": "Please limit your query to 200 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "minmax-restrictions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Range restrictions" }, - "option_min": { "type": "string", "default": "Minimum" }, - "option_max": { "type": "string", "default": "Maximum" }, - "helper_text": { - "type": "string", - "default": "Prevent customers from setting the next payment date too close to the current date or too far in the future. You will be able to customize the exact values below." - } - }, - "required": ["label", "option_min", "option_max", "helper_text"] - }, - "min": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Minimum" }, - "day": { "type": "string", "default": "Day" }, - "day_plural": { "type": "string", "default": "Days" }, - "week": { "type": "string", "default": "Week" }, - "week_plural": { "type": "string", "default": "Weeks" }, - "month": { "type": "string", "default": "Month" }, - "month_plural": { "type": "string", "default": "Months" }, - "year": { "type": "string", "default": "Year" }, - "year_plural": { "type": "string", "default": "Years" }, - "helper_text": { - "type": "string", - "default": "Select the period during which the next payment date can't be set." - } - }, - "required": [ - "label", - "day", - "day_plural", - "week", - "week_plural", - "month", - "month_plural", - "year", - "year_plural", - "helper_text" - ] - }, - "max": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Maximum" }, - "day": { "type": "string", "default": "Day" }, - "day_plural": { "type": "string", "default": "Days" }, - "week": { "type": "string", "default": "Week" }, - "week_plural": { "type": "string", "default": "Weeks" }, - "month": { "type": "string", "default": "Month" }, - "month_plural": { "type": "string", "default": "Months" }, - "year": { "type": "string", "default": "Year" }, - "year_plural": { "type": "string", "default": "Years" }, - "helper_text": { - "type": "string", - "default": "Select the period after which the next payment date can't be set." - } - }, - "required": [ - "label", - "day", - "day_plural", - "week", - "week_plural", - "month", - "month_plural", - "year", - "year_plural", - "helper_text" - ] - }, - "day-and-date-restrictions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Day and date restrictions" }, - "option_none": { "type": "string", "default": "None" }, - "option_days": { "type": "string", "default": "Days of week" }, - "option_dates": { "type": "string", "default": "Dates of month" }, - "helper_text": { - "type": "string", - "default": "Opt to restrict the next payment date to a specific day of the week or date of the month. You will be able to customize the exact values below." - } - }, - "required": ["label", "option_none", "option_days", "option_dates", "helper_text"] - }, - "days-of-week": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Allowed days of week" }, - "option_1": { "type": "string", "default": "Monday" }, - "option_2": { "type": "string", "default": "Tuesday" }, - "option_3": { "type": "string", "default": "Wednesday" }, - "option_4": { "type": "string", "default": "Thursday" }, - "option_5": { "type": "string", "default": "Friday" }, - "option_6": { "type": "string", "default": "Saturday" }, - "option_7": { "type": "string", "default": "Sunday" }, - "helper_text": { - "type": "string", - "default": "Select all days of week that the next payment date can be set to." - } - }, - "required": [ - "label", - "option_1", - "option_2", - "option_3", - "option_4", - "option_5", - "option_6", - "option_7", - "helper_text" - ] - }, - "dates-of-month": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Allowed dates of month" }, - "placeholder": { - "type": "string", - "default": "Enter a date (e.g. 14) and press Enter" - }, - "helper_text": { - "type": "string", - "default": "Add all dates of month that the next payment date can be set to." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "disallowed-dates": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Disallowed dates" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "range": { "type": "string", "default": "{{ from, date }} – {{ to, date }}" }, - "single": { "type": "string", "default": "{{ value, date }}" }, - "placeholder": { "type": "string", "default": "Enter a date" }, - "helper_text": { - "type": "string", - "default": "Prevent customers from setting the next payment date to specific dates or date ranges. You can add up to 10 items in this section." - }, - "v8n_too_long": { - "type": "string", - "default": "Only up to 10 values are allowed. Please remove some of them to proceed." - } - }, - "required": [ - "label", - "range_from", - "range_to", - "range", - "single", - "placeholder", - "helper_text", - "v8n_too_long" - ] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Please confirm that you'd like to remove this rule." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "header_create", - "header_update", - "close", - "save", - "cancel", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "jsonata-query", - "minmax-restrictions", - "min", - "max", - "day-and-date-restrictions", - "days-of-week", - "dates-of-month", - "disallowed-dates", - "delete", - "create", - "spinner" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add rule +" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Delete" }, - "line_1_all": { "type": "string", "default": "All subscriptions" }, - "line_1_matching": { "type": "string", "default": "Matching {{ query }}" }, - "line_2": { "type": "string", "default": "Range: {{ from }} – {{ to }}" }, - "line_3_month": { "type": "string", "default": "Allowed dates: {{ list }}" }, - "line_3_day": { "type": "string", "default": "Allowed days: {{ list }}" }, - "line_3_any": { "type": "string", "default": "Allowed dates and days: any" }, - "line_4_some": { "type": "string", "default": "Excluded: {{ list }}" }, - "line_4_none": { "type": "string", "default": "Excluded: none" }, - "any": { "type": "string", "default": "any" }, - "unit_y": { "type": "string", "default": "{{ count }} year" }, - "unit_y_plural": { "type": "string", "default": "{{ count }} years" }, - "unit_m": { "type": "string", "default": "{{ count }} month" }, - "unit_m_plural": { "type": "string", "default": "{{ count }} months" }, - "unit_w": { "type": "string", "default": "{{ count }} week" }, - "unit_w_plural": { "type": "string", "default": "{{ count }} weeks" }, - "unit_d": { "type": "string", "default": "{{ count }} day" }, - "unit_d_plural": { "type": "string", "default": "{{ count }} days" }, - "day_1": { "type": "string", "default": "Monday" }, - "day_2": { "type": "string", "default": "Tuesday" }, - "day_3": { "type": "string", "default": "Wednesday" }, - "day_4": { "type": "string", "default": "Thursday" }, - "day_5": { "type": "string", "default": "Friday" }, - "day_6": { "type": "string", "default": "Saturday" }, - "day_7": { "type": "string", "default": "Sunday" }, - "single_date": { "type": "string", "default": "{{ value, date }}" }, - "date_range": { "type": "string", "default": "{{ from, date }} – {{ to, date }}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No rules" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "delete_button_text", - "line_1_all", - "line_1_matching", - "line_2", - "line_3_month", - "line_3_day", - "line_3_any", - "line_4_some", - "line_4_none", - "any", - "unit_y", - "unit_y_plural", - "unit_m", - "unit_m_plural", - "unit_w", - "unit_w_plural", - "unit_d", - "unit_d_plural", - "day_1", - "day_2", - "day_3", - "day_4", - "day_5", - "day_6", - "day_7", - "single_date", - "date_range", - "spinner" - ] - }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": [ - "create_button_text", - "card", - "first", - "last", - "next", - "pagination", - "previous" - ] - } - }, - "required": [ - "label", - "helper_text", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "dialog", - "pagination" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Enabled on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Disable" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Disabling Customer Portal will erase the configuration and disable the related APIs. Would you like to proceed?" - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Enable" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "session-lifespan-in-minutes", - "allowed-origins", - "jwt-shared-secret", - "features", - "sign-up-verification-hcaptcha-site-key", - "sign-up-verification-hcaptcha-secret-key", - "subscriptions-allow-frequency-modification", - "subscriptions-allow-next-date-modification", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/customer-portal-settings.json b/src/static/schemas/customer-portal-settings.json deleted file mode 100644 index 5003c9116..000000000 --- a/src/static/schemas/customer-portal-settings.json +++ /dev/null @@ -1,267 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "save_create": { "type": "string", "default": "Save and enable" }, - "save_delete": { "type": "string", "default": "Disable portal" }, - "save_update": { "type": "string", "default": "Save changes" }, - "jsonata": { - "additionalProperties": false, - "properties": { - "all": { "type": "string", "default": "All" }, - "some": { "type": "string", "default": "Some" }, - "hint": { - "type": "string", - "default": "Enter a valid JSONata query selecting the subscriptions these rules will apply to. Please limit your expression to 200 characters. Docs:" - } - }, - "required": ["all", "some", "hint"] - }, - "title": { "type": "string", "default": "Customer Portal" }, - "subtitle": { - "type": "string", - "default": "A dedicated place for your customers to view and manage their subscriptions, payment methods and recent transactions" - }, - "quickstart": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Quick start" }, - "subtitle": { - "type": "string", - "default": "Embed customer portal into your website by copying the code snippet below:" - } - }, - "required": ["title", "subtitle"] - }, - "origins": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Allowed origins" }, - "subtitle": { - "type": "string", - "default": "Please list below the websites you’re planning to use customer portal on" - }, - "invalid": { "type": "string", "default": "URL is invalid" }, - "https_only": { "type": "string", "default": "Origin is insecure" }, - "add": { "type": "string", "default": "Add origin" }, - "add_hint": { "type": "string", "default": "You can add up to 10 origins" } - }, - "required": ["title", "subtitle", "invalid", "https_only", "add", "add_hint"] - }, - "fmod": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Frequency modification" }, - "subtitle": { - "type": "string", - "default": "Customize how your customers can switch to a different payment schedule" - }, - "allTitle": { "type": "string", "default": "All subscriptions" }, - "someTitle": { "type": "string", "default": "Subscriptions matching" }, - "valuesLabel": { "type": "string", "default": "Values: " }, - "valuesList": { "type": "string", "default": "{{values, list lowercase}}" }, - "valuesListEmpty": { "type": "string", "default": "none" }, - "add_option": { "type": "string", "default": "Add option" }, - "add_option_hint": { - "type": "string", - "default": "You can add up to 20 value options for this rule" - }, - "add_rule": { "type": "string", "default": "Add rule" }, - "add_rule_hint": { "type": "string", "default": "You can add up to 10 rules" }, - "options": { "type": "string", "default": "Options" }, - "match": { "type": "string", "default": "Match" } - }, - "required": [ - "title", - "subtitle", - "allTitle", - "someTitle", - "valuesLabel", - "valuesList", - "valuesListEmpty", - "add_option", - "add_option_hint", - "add_rule", - "add_rule_hint", - "options", - "match" - ] - }, - "ndmod": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Next payment date modification" }, - "subtitle": { - "type": "string", - "default": "If enabled, your customers will be able to delay or advance the next payment" - }, - "allTitle": { "type": "string", "default": "All subscriptions" }, - "someTitle": { "type": "string", "default": "Subscriptions matching" }, - "range": { "type": "string", "default": "Range" }, - "range_start": { "type": "string", "default": "Start" }, - "range_end": { "type": "string", "default": "End (optional)" }, - "any": { "type": "string", "default": "Any" }, - "add": { "type": "string", "default": "Add rule" }, - "add_hint": { "type": "string", "default": "You can add up to 10 rules" }, - "add_range": { "type": "string", "default": "Add range" }, - "add_range_hint": { "type": "string", "default": "You can add up to 20 exceptions" }, - "add_single": { "type": "string", "default": "Add one date" }, - "match": { "type": "string", "default": "Match" }, - "allowed": { "type": "string", "default": "Allowed dates" }, - "excluded": { "type": "string", "default": "Excluded dates" }, - "month": { "type": "string", "default": "Specific dates" }, - "day": { "type": "string", "default": "Specific days of week" }, - "dayHint": { - "type": "string", - "default": "Your customers will be able to select only {{days, list}} for the next payment date." - }, - "select": { "type": "string", "default": "Select date" }, - "all": { "type": "string", "default": "All" }, - "none": { "type": "string", "default": "No restrictions" }, - "custom": { "type": "string", "default": "Custom offset" }, - "min": { "type": "string", "default": "Minimum" }, - "max": { "type": "string", "default": "Maximum" }, - "minHint": { - "type": "string", - "default": "Requires the new date to be at least {{duration}} into the future." - }, - "minWarning": { - "type": "string", - "default": "The minimum is either too close to the maximum or exceeds it. This may make your customers unable to change next date under certain conditions. Please proceed with caution." - }, - "maxHint": { - "type": "string", - "default": "Requires the new date to be at most {{duration}} into the future." - } - }, - "required": [ - "title", - "subtitle", - "allTitle", - "someTitle", - "range", - "range_start", - "range_end", - "any", - "add", - "add_hint", - "add_range", - "add_range_hint", - "add_single", - "match", - "allowed", - "excluded", - "month", - "day", - "dayHint", - "select", - "all", - "none", - "custom", - "min", - "max", - "minHint", - "minWarning", - "maxHint" - ] - }, - "sso": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Enable Single Sign-On (SSO)" }, - "subtitle": { - "type": "string", - "default": "Sync your sessions across your website and our checkout" - } - }, - "required": ["title", "subtitle"] - }, - "sign_up": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Enable customer registration" }, - "subtitle": { - "type": "string", - "default": "Add a sign up form to your portal and enable the API" - }, - "hcaptcha_explainer": { - "type": "string", - "default": "By default, Customer Portal uses Foxy's hCaptcha account to protect the sign up form. If you'd like to use your own hCaptcha account, please enter your site key and secret key above." - }, - "site_key_label": { "type": "string", "default": "hCaptcha site key" }, - "site_key_placeholder": { "type": "string", "default": "Use Foxy default" }, - "secret_key_label": { "type": "string", "default": "hCaptcha secret key" }, - "secret_key_placeholder": { "type": "string", "default": "Use Foxy default" } - }, - "required": [ - "title", - "subtitle", - "hcaptcha_explainer", - "site_key_label", - "site_key_placeholder", - "secret_key_label", - "secret_key_placeholder" - ] - }, - "jwt": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "JWT shared secret" }, - "subtitle": { "type": "string", "default": "Reset this key to drop all active sessions" }, - "invalid": { - "type": "string", - "default": "Only letters (a-z), numbers (0-9) and dashes (-) are allowed in this field" - }, - "required": { "type": "string", "default": "Please fill in this field" }, - "too_short": { - "type": "string", - "default": "This key must be at least 40 characters long" - }, - "too_long": { "type": "string", "default": "This key must be at most 100 characters long" }, - "refresh": { "type": "string", "default": "Reset" } - }, - "required": ["title", "subtitle", "invalid", "required", "too_short", "too_long", "refresh"] - }, - "session": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Session duration" }, - "subtitle": { - "type": "string", - "default": "This is how long we'll keep your customers logged in" - }, - "too_short": { "type": "string", "default": "Session must be at least 1 minute long" }, - "too_long": { "type": "string", "default": "Sessions can't last for more than 4 weeks" } - }, - "required": ["title", "subtitle", "too_short", "too_long"] - }, - "advanced": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Advanced settings" }, - "subtitle": { - "type": "string", - "default": "Authentication settings for fine-tuning your integration" - } - }, - "required": ["title", "subtitle"] - } - }, - "required": [ - "save_create", - "save_delete", - "save_update", - "jsonata", - "title", - "subtitle", - "quickstart", - "origins", - "fmod", - "ndmod", - "sso", - "sign_up", - "jwt", - "session", - "advanced" - ] -} diff --git a/src/static/schemas/customer-portal.json b/src/static/schemas/customer-portal.json deleted file mode 100644 index b1999f58c..000000000 --- a/src/static/schemas/customer-portal.json +++ /dev/null @@ -1,2796 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "access-recovery-form": { - "additionalProperties": false, - "properties": { - "back": { "type": "string", "default": "Go back" }, - "email": { "type": "string", "default": "Email" }, - "recover_access": { "type": "string", "default": "Get temporary password" }, - "recover_access_hint": { - "type": "string", - "default": "Enter your email to get a temporary password" - }, - "recover_access_success": { - "type": "string", - "default": "Done! Please check your email for further instructions." - }, - "unknown_error": { - "type": "string", - "default": "We can't issue a one-time code for this account at the moment. If you've already requested the code, please wait a few minutes before trying again." - }, - "v8n_invalid_email": { "type": "string", "default": "Invalid email" }, - "v8n_required": { "type": "string", "default": "Required" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "back", - "email", - "recover_access", - "recover_access_hint", - "recover_access_success", - "unknown_error", - "v8n_invalid_email", - "v8n_required", - "spinner" - ] - }, - "customer": { - "additionalProperties": false, - "properties": { - "address_plural": { "type": "string", "default": "Addresses" }, - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "payment_method_plural": { "type": "string", "default": "Payment methods" }, - "save": { "type": "string", "default": "Save" }, - "subscription_plural": { "type": "string", "default": "Subscriptions" }, - "transaction_plural": { "type": "string", "default": "Transactions" }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "update": { "type": "string", "default": "Update" }, - "transactions-table": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "receipt": { "type": "string", "default": "Receipt" }, - "transaction_approved": { "type": "string", "default": "Approved" }, - "transaction_authorized": { "type": "string", "default": "Authorized" }, - "transaction_captured": { "type": "string", "default": "Captured" }, - "transaction_completed": { "type": "string", "default": "Completed" }, - "transaction_declined": { "type": "string", "default": "Declined" }, - "transaction_pending": { "type": "string", "default": "Pending" }, - "transaction_refunded": { "type": "string", "default": "Refunded" }, - "transaction_rejected": { "type": "string", "default": "Rejected" }, - "transaction_summary": { "type": "string", "default": "{{most_expensive_item.name}}" }, - "transaction_summary_plural": { - "type": "string", - "default": "{{most_expensive_item.name}} and {{count_minus_one}} more" - }, - "transaction_verified": { "type": "string", "default": "Verified" }, - "transaction_voided": { "type": "string", "default": "Voided" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "date", - "price", - "receipt", - "transaction_approved", - "transaction_authorized", - "transaction_captured", - "transaction_completed", - "transaction_declined", - "transaction_pending", - "transaction_refunded", - "transaction_rejected", - "transaction_summary", - "transaction_summary_plural", - "transaction_verified", - "transaction_voided", - "spinner" - ] - }, - "address-card": { - "additionalProperties": false, - "properties": { - "default_billing_address": { "type": "string", "default": "Default billing address" }, - "default_shipping_address": { "type": "string", "default": "Default shipping address" }, - "full_address": { - "type": "string", - "default": "{{address1}} {{address2}} {{city}} {{region}} {{postal_code}}" - }, - "full_name": { "type": "string", "default": "{{first_name}} {{last_name}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No addresses" }, - "loading_end": { "type": "string", "default": "No more data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_end", "loading_error"] - } - }, - "required": [ - "default_billing_address", - "default_shipping_address", - "full_address", - "full_name", - "spinner" - ] - }, - "address-form": { - "additionalProperties": false, - "properties": { - "address-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please enter address name" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten address name to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "first-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "First name" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store first names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "last-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last name" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store last names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "company": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Company" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store company names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "phone": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Phone" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "This phone number appears to be too long" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "address-one": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address Line 1" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Street address, P.O. box, company name, c/o" - }, - "v8n_required": { "type": "string", "default": "Please enter address line 1" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten address line 1 to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "address-two": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address Line 2" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "Apartment, suite, unit, building, floor, etc." - }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten address line 2 to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "city": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "City" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store city names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "postal-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Postal code" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "This postal code appears to be too long" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "country": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Country" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "region": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Region" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store region names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this address? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "country_af": { "type": "string", "default": "Afghanistan" }, - "country_ax": { "type": "string", "default": "Åland Islands" }, - "country_al": { "type": "string", "default": "Albania" }, - "country_dz": { "type": "string", "default": "Algeria" }, - "country_as": { "type": "string", "default": "American Samoa" }, - "country_ad": { "type": "string", "default": "Andorra" }, - "country_ao": { "type": "string", "default": "Angola" }, - "country_ai": { "type": "string", "default": "Anguilla" }, - "country_aq": { "type": "string", "default": "Antarctica" }, - "country_ag": { "type": "string", "default": "Antigua and Barbuda" }, - "country_ar": { "type": "string", "default": "Argentina" }, - "country_am": { "type": "string", "default": "Armenia" }, - "country_aw": { "type": "string", "default": "Aruba" }, - "country_au": { "type": "string", "default": "Australia" }, - "country_au_region_act": { - "type": "string", - "default": "Australian Capital Territory" - }, - "country_au_region_nsw": { "type": "string", "default": "New South Wales" }, - "country_au_region_nt": { "type": "string", "default": "Northern Territory" }, - "country_au_region_qld": { "type": "string", "default": "Queensland" }, - "country_au_region_sa": { "type": "string", "default": "South Australia" }, - "country_au_region_tas": { "type": "string", "default": "Tasmania" }, - "country_au_region_vic": { "type": "string", "default": "Victoria" }, - "country_au_region_wa": { "type": "string", "default": "Western Australia" }, - "country_at": { "type": "string", "default": "Austria" }, - "country_at_region_bl": { "type": "string", "default": "Burgenland" }, - "country_at_region_kn": { "type": "string", "default": "Kaernten" }, - "country_at_region_no": { "type": "string", "default": "Niederoesterreich" }, - "country_at_region_oo": { "type": "string", "default": "Oberoesterreich" }, - "country_at_region_sb": { "type": "string", "default": "Salzburg" }, - "country_at_region_st": { "type": "string", "default": "Steiermark" }, - "country_at_region_ti": { "type": "string", "default": "Tirol" }, - "country_at_region_vb": { "type": "string", "default": "Voralberg" }, - "country_at_region_wi": { "type": "string", "default": "Wien" }, - "country_az": { "type": "string", "default": "Azerbaijan" }, - "country_bs": { "type": "string", "default": "Bahamas" }, - "country_bh": { "type": "string", "default": "Bahrain" }, - "country_bd": { "type": "string", "default": "Bangladesh" }, - "country_bb": { "type": "string", "default": "Barbados" }, - "country_by": { "type": "string", "default": "Belarus" }, - "country_be": { "type": "string", "default": "Belgium" }, - "country_bz": { "type": "string", "default": "Belize" }, - "country_bj": { "type": "string", "default": "Benin" }, - "country_bm": { "type": "string", "default": "Bermuda" }, - "country_bt": { "type": "string", "default": "Bhutan" }, - "country_bo": { "type": "string", "default": "Bolivia" }, - "country_bq": { "type": "string", "default": "Bonaire, Sint Eustatius and Saba" }, - "country_bq_region_bo": { "type": "string", "default": "Bonaire" }, - "country_bq_region_sa": { "type": "string", "default": "Saba" }, - "country_bq_region_se": { "type": "string", "default": "Sint Eustatius" }, - "country_ba": { "type": "string", "default": "Bosnia and Herzegovina" }, - "country_bw": { "type": "string", "default": "Botswana" }, - "country_bv": { "type": "string", "default": "Bouvet Island" }, - "country_br": { "type": "string", "default": "Brazil" }, - "country_io": { "type": "string", "default": "British Indian Ocean Territory" }, - "country_bn": { "type": "string", "default": "Brunei Darussalam" }, - "country_bg": { "type": "string", "default": "Bulgaria" }, - "country_bf": { "type": "string", "default": "Burkina Faso" }, - "country_bi": { "type": "string", "default": "Burundi" }, - "country_kh": { "type": "string", "default": "Cambodia" }, - "country_cm": { "type": "string", "default": "Cameroon" }, - "country_ca": { "type": "string", "default": "Canada" }, - "country_ca_region_ab": { "type": "string", "default": "Alberta" }, - "country_ca_region_bc": { "type": "string", "default": "British Columbia" }, - "country_ca_region_mb": { "type": "string", "default": "Manitoba" }, - "country_ca_region_nb": { "type": "string", "default": "New Brunswick" }, - "country_ca_region_nl": { "type": "string", "default": "Newfoundland and Labrador" }, - "country_ca_region_nt": { "type": "string", "default": "Northwest Territories" }, - "country_ca_region_ns": { "type": "string", "default": "Nova Scotia" }, - "country_ca_region_nu": { "type": "string", "default": "Nunavut" }, - "country_ca_region_on": { "type": "string", "default": "Ontario" }, - "country_ca_region_pe": { "type": "string", "default": "Prince Edward Island" }, - "country_ca_region_qc": { "type": "string", "default": "Quebec" }, - "country_ca_region_sk": { "type": "string", "default": "Saskatchewan" }, - "country_ca_region_yt": { "type": "string", "default": "Yukon" }, - "country_cv": { "type": "string", "default": "Cape Verde" }, - "country_cw": { "type": "string", "default": "Curaçao" }, - "country_ky": { "type": "string", "default": "Cayman Islands" }, - "country_cf": { "type": "string", "default": "Central African Republic" }, - "country_td": { "type": "string", "default": "Chad" }, - "country_cl": { "type": "string", "default": "Chile" }, - "country_cn": { "type": "string", "default": "China" }, - "country_cx": { "type": "string", "default": "Christmas Island" }, - "country_cc": { "type": "string", "default": "Cocos (Keeling) Islands" }, - "country_co": { "type": "string", "default": "Colombia" }, - "country_km": { "type": "string", "default": "Comoros" }, - "country_cg": { "type": "string", "default": "Congo" }, - "country_cd": { "type": "string", "default": "Congo, the Democratic Republic of the" }, - "country_ck": { "type": "string", "default": "Cook Islands" }, - "country_cr": { "type": "string", "default": "Costa Rica" }, - "country_ci": { "type": "string", "default": "Cote DIvoire" }, - "country_hr": { "type": "string", "default": "Croatia" }, - "country_cu": { "type": "string", "default": "Cuba" }, - "country_cy": { "type": "string", "default": "Cyprus" }, - "country_cz": { "type": "string", "default": "Czech Republic" }, - "country_dk": { "type": "string", "default": "Denmark" }, - "country_dj": { "type": "string", "default": "Djibouti" }, - "country_dm": { "type": "string", "default": "Dominica" }, - "country_do": { "type": "string", "default": "Dominican Republic" }, - "country_ec": { "type": "string", "default": "Ecuador" }, - "country_eg": { "type": "string", "default": "Egypt" }, - "country_sv": { "type": "string", "default": "El Salvador" }, - "country_sx": { "type": "string", "default": "Sint Maarten" }, - "country_gq": { "type": "string", "default": "Equatorial Guinea" }, - "country_er": { "type": "string", "default": "Eritrea" }, - "country_ee": { "type": "string", "default": "Estonia" }, - "country_et": { "type": "string", "default": "Ethiopia" }, - "country_fk": { "type": "string", "default": "Falkland Islands (Malvinas)" }, - "country_fo": { "type": "string", "default": "Faroe Islands" }, - "country_fj": { "type": "string", "default": "Fiji" }, - "country_fi": { "type": "string", "default": "Finland" }, - "country_fr": { "type": "string", "default": "France" }, - "country_gf": { "type": "string", "default": "French Guiana" }, - "country_pf": { "type": "string", "default": "French Polynesia" }, - "country_tf": { "type": "string", "default": "French Southern Territories" }, - "country_ga": { "type": "string", "default": "Gabon" }, - "country_gm": { "type": "string", "default": "Gambia" }, - "country_ge": { "type": "string", "default": "Georgia" }, - "country_de": { "type": "string", "default": "Germany" }, - "country_de_region_bw": { "type": "string", "default": "Baden-Wuerttemberg" }, - "country_de_region_by": { "type": "string", "default": "Bayern" }, - "country_de_region_be": { "type": "string", "default": "Berlin" }, - "country_de_region_bb": { "type": "string", "default": "Brandenburg" }, - "country_de_region_hb": { "type": "string", "default": "Bremen" }, - "country_de_region_hh": { "type": "string", "default": "Hamburg" }, - "country_de_region_he": { "type": "string", "default": "Hessen" }, - "country_de_region_mv": { "type": "string", "default": "Mecklenburg-Vorpommern" }, - "country_de_region_ni": { "type": "string", "default": "Niedersachsen" }, - "country_de_region_nw": { "type": "string", "default": "Nordrhein-Westfalen" }, - "country_de_region_rp": { "type": "string", "default": "Rheinland-Pfalz" }, - "country_de_region_sl": { "type": "string", "default": "Saarland" }, - "country_de_region_sn": { "type": "string", "default": "Sachsen" }, - "country_de_region_st": { "type": "string", "default": "Sachsen-Anhalt" }, - "country_de_region_sh": { "type": "string", "default": "Schleswig-Holstein" }, - "country_de_region_th": { "type": "string", "default": "Thueringen" }, - "country_gh": { "type": "string", "default": "Ghana" }, - "country_gi": { "type": "string", "default": "Gibraltar" }, - "country_gr": { "type": "string", "default": "Greece" }, - "country_gl": { "type": "string", "default": "Greenland" }, - "country_gd": { "type": "string", "default": "Grenada" }, - "country_gp": { "type": "string", "default": "Guadeloupe" }, - "country_gu": { "type": "string", "default": "Guam" }, - "country_gt": { "type": "string", "default": "Guatemala" }, - "country_gg": { "type": "string", "default": "Guernsey" }, - "country_gn": { "type": "string", "default": "Guinea" }, - "country_gw": { "type": "string", "default": "Guinea-bissau" }, - "country_gy": { "type": "string", "default": "Guyana" }, - "country_ht": { "type": "string", "default": "Haiti" }, - "country_hm": { "type": "string", "default": "Heard Island and McDonald Island" }, - "country_va": { "type": "string", "default": "Holy See (Vatican City State)" }, - "country_hn": { "type": "string", "default": "Honduras" }, - "country_hk": { "type": "string", "default": "Hong Kong" }, - "country_hu": { "type": "string", "default": "Hungary" }, - "country_is": { "type": "string", "default": "Iceland" }, - "country_in": { "type": "string", "default": "India" }, - "country_in_region_an": { "type": "string", "default": "Andaman and Nicobar Islands" }, - "country_in_region_ap": { "type": "string", "default": "Andhra Pradesh" }, - "country_in_region_ar": { "type": "string", "default": "Arunachal Pradesh" }, - "country_in_region_as": { "type": "string", "default": "Assam" }, - "country_in_region_br": { "type": "string", "default": "Bihar" }, - "country_in_region_ch": { "type": "string", "default": "Chandigarh" }, - "country_in_region_ct": { "type": "string", "default": "Chhattisgarh" }, - "country_in_region_dn": { "type": "string", "default": "Dadra and Nagar Haveli" }, - "country_in_region_dd": { "type": "string", "default": "Daman and Diu" }, - "country_in_region_dl": { "type": "string", "default": "Delhi" }, - "country_in_region_ga": { "type": "string", "default": "Goa" }, - "country_in_region_gj": { "type": "string", "default": "Gujarat" }, - "country_in_region_hr": { "type": "string", "default": "Haryana" }, - "country_in_region_hp": { "type": "string", "default": "Himachal Pradesh" }, - "country_in_region_jk": { "type": "string", "default": "Jammu and Kashmir" }, - "country_in_region_jh": { "type": "string", "default": "Jharkhand" }, - "country_in_region_ka": { "type": "string", "default": "Karnataka" }, - "country_in_region_kl": { "type": "string", "default": "Kerala" }, - "country_in_region_ld": { "type": "string", "default": "Lakshadweep" }, - "country_in_region_mp": { "type": "string", "default": "Madhya Pradesh" }, - "country_in_region_mh": { "type": "string", "default": "Maharashtra" }, - "country_in_region_mn": { "type": "string", "default": "Manipur" }, - "country_in_region_ml": { "type": "string", "default": "Meghalaya" }, - "country_in_region_mz": { "type": "string", "default": "Mizoram" }, - "country_in_region_nl": { "type": "string", "default": "Nagaland" }, - "country_in_region_or": { "type": "string", "default": "Odisha" }, - "country_in_region_py": { "type": "string", "default": "Puducherry" }, - "country_in_region_pb": { "type": "string", "default": "Punjab" }, - "country_in_region_rj": { "type": "string", "default": "Rajasthan" }, - "country_in_region_sk": { "type": "string", "default": "Sikkim" }, - "country_in_region_tn": { "type": "string", "default": "Tamil Nadu" }, - "country_in_region_tg": { "type": "string", "default": "Telangana" }, - "country_in_region_tr": { "type": "string", "default": "Tripura" }, - "country_in_region_ut": { "type": "string", "default": "Uttarakhand" }, - "country_in_region_up": { "type": "string", "default": "Uttar Pradesh" }, - "country_in_region_wb": { "type": "string", "default": "West Bengal" }, - "country_id": { "type": "string", "default": "Indonesia" }, - "country_ir": { "type": "string", "default": "Iran, Islamic Republic of" }, - "country_iq": { "type": "string", "default": "Iraq" }, - "country_ie": { "type": "string", "default": "Ireland" }, - "country_ie_region_cw": { "type": "string", "default": "Carlow" }, - "country_ie_region_cn": { "type": "string", "default": "Cavan" }, - "country_ie_region_ce": { "type": "string", "default": "Clare" }, - "country_ie_region_co": { "type": "string", "default": "Cork" }, - "country_ie_region_dl": { "type": "string", "default": "Donegal" }, - "country_ie_region_d": { "type": "string", "default": "Dublin" }, - "country_ie_region_g": { "type": "string", "default": "Galway" }, - "country_ie_region_ky": { "type": "string", "default": "Kerry" }, - "country_ie_region_ke": { "type": "string", "default": "Kildare" }, - "country_ie_region_kk": { "type": "string", "default": "Kilkenny" }, - "country_ie_region_ls": { "type": "string", "default": "Laois" }, - "country_ie_region_lm": { "type": "string", "default": "Leitrim" }, - "country_ie_region_lk": { "type": "string", "default": "Limerick" }, - "country_ie_region_ld": { "type": "string", "default": "Longford" }, - "country_ie_region_lh": { "type": "string", "default": "Louth" }, - "country_ie_region_mo": { "type": "string", "default": "Mayo" }, - "country_ie_region_mh": { "type": "string", "default": "Meath" }, - "country_ie_region_mn": { "type": "string", "default": "Monaghan" }, - "country_ie_region_oy": { "type": "string", "default": "Offaly" }, - "country_ie_region_rn": { "type": "string", "default": "Roscommon" }, - "country_ie_region_so": { "type": "string", "default": "Sligo" }, - "country_ie_region_ta": { "type": "string", "default": "Tipperary" }, - "country_ie_region_wd": { "type": "string", "default": "Waterford" }, - "country_ie_region_wh": { "type": "string", "default": "Westmeath" }, - "country_ie_region_wx": { "type": "string", "default": "Wexford" }, - "country_ie_region_ww": { "type": "string", "default": "Wicklow" }, - "country_im": { "type": "string", "default": "Isle of Man" }, - "country_il": { "type": "string", "default": "Israel" }, - "country_it": { "type": "string", "default": "Italy" }, - "country_jm": { "type": "string", "default": "Jamaica" }, - "country_jp": { "type": "string", "default": "Japan" }, - "country_jp_region_10": { "type": "string", "default": "Gunma" }, - "country_jp_region_11": { "type": "string", "default": "Saitama" }, - "country_jp_region_12": { "type": "string", "default": "Chiba" }, - "country_jp_region_13": { "type": "string", "default": "Tokyo" }, - "country_jp_region_14": { "type": "string", "default": "Kanagawa" }, - "country_jp_region_15": { "type": "string", "default": "Niigata" }, - "country_jp_region_16": { "type": "string", "default": "Toyama" }, - "country_jp_region_17": { "type": "string", "default": "Ishikawa" }, - "country_jp_region_18": { "type": "string", "default": "Fukui" }, - "country_jp_region_19": { "type": "string", "default": "Yamanashi" }, - "country_jp_region_20": { "type": "string", "default": "Nagano" }, - "country_jp_region_21": { "type": "string", "default": "Gifu" }, - "country_jp_region_22": { "type": "string", "default": "Shizuoka" }, - "country_jp_region_23": { "type": "string", "default": "Aichi" }, - "country_jp_region_24": { "type": "string", "default": "Mie" }, - "country_jp_region_25": { "type": "string", "default": "Shiga" }, - "country_jp_region_26": { "type": "string", "default": "Kyoto" }, - "country_jp_region_27": { "type": "string", "default": "Osaka" }, - "country_jp_region_28": { "type": "string", "default": "Hyogo" }, - "country_jp_region_29": { "type": "string", "default": "Nara" }, - "country_jp_region_30": { "type": "string", "default": "Wakayama" }, - "country_jp_region_31": { "type": "string", "default": "Tottori" }, - "country_jp_region_32": { "type": "string", "default": "Shimane" }, - "country_jp_region_33": { "type": "string", "default": "Okayama" }, - "country_jp_region_34": { "type": "string", "default": "Hiroshima" }, - "country_jp_region_35": { "type": "string", "default": "Yamaguchi" }, - "country_jp_region_36": { "type": "string", "default": "Tokushima" }, - "country_jp_region_37": { "type": "string", "default": "Kagawa" }, - "country_jp_region_38": { "type": "string", "default": "Ehime" }, - "country_jp_region_39": { "type": "string", "default": "Kochi" }, - "country_jp_region_40": { "type": "string", "default": "Fukuoka" }, - "country_jp_region_41": { "type": "string", "default": "Saga" }, - "country_jp_region_42": { "type": "string", "default": "Nagasaki" }, - "country_jp_region_43": { "type": "string", "default": "Kumamoto" }, - "country_jp_region_44": { "type": "string", "default": "Oita" }, - "country_jp_region_45": { "type": "string", "default": "Miyazaki" }, - "country_jp_region_46": { "type": "string", "default": "Kagoshima" }, - "country_jp_region_47": { "type": "string", "default": "Okinawa" }, - "country_jp_region_05": { "type": "string", "default": "Akita" }, - "country_jp_region_02": { "type": "string", "default": "Aomori" }, - "country_jp_region_07": { "type": "string", "default": "Fukushima" }, - "country_jp_region_01": { "type": "string", "default": "Hokkaido" }, - "country_jp_region_08": { "type": "string", "default": "Ibaraki" }, - "country_jp_region_03": { "type": "string", "default": "Iwate" }, - "country_jp_region_04": { "type": "string", "default": "Miyagi" }, - "country_jp_region_09": { "type": "string", "default": "Tochigi" }, - "country_jp_region_06": { "type": "string", "default": "Yamagata" }, - "country_je": { "type": "string", "default": "Jersey" }, - "country_jo": { "type": "string", "default": "Jordan" }, - "country_kz": { "type": "string", "default": "Kazakhstan" }, - "country_ke": { "type": "string", "default": "Kenya" }, - "country_ki": { "type": "string", "default": "Kiribati" }, - "country_kp": { "type": "string", "default": "Korea, Democratic People's Republic of" }, - "country_kr": { "type": "string", "default": "Korea, Republic of" }, - "country_kw": { "type": "string", "default": "Kuwait" }, - "country_kg": { "type": "string", "default": "Kyrgyzstan" }, - "country_la": { "type": "string", "default": "Lao People's Democratic Republic" }, - "country_lv": { "type": "string", "default": "Latvia" }, - "country_lb": { "type": "string", "default": "Lebanon" }, - "country_ls": { "type": "string", "default": "Lesotho" }, - "country_lr": { "type": "string", "default": "Liberia" }, - "country_ly": { "type": "string", "default": "Libya" }, - "country_li": { "type": "string", "default": "Liechtenstein" }, - "country_lt": { "type": "string", "default": "Lithuania" }, - "country_lu": { "type": "string", "default": "Luxembourg" }, - "country_mo": { - "type": "string", - "default": "Macau Special Administrative Region of China" - }, - "country_mk": { "type": "string", "default": "North Macedonia" }, - "country_mg": { "type": "string", "default": "Madagascar" }, - "country_mw": { "type": "string", "default": "Malawi" }, - "country_my": { "type": "string", "default": "Malaysia" }, - "country_mv": { "type": "string", "default": "Maldives" }, - "country_ml": { "type": "string", "default": "Mali" }, - "country_mt": { "type": "string", "default": "Malta" }, - "country_mh": { "type": "string", "default": "Marshall Islands" }, - "country_mq": { "type": "string", "default": "Martinique" }, - "country_mr": { "type": "string", "default": "Mauritania" }, - "country_mu": { "type": "string", "default": "Mauritius" }, - "country_yt": { "type": "string", "default": "Mayotte" }, - "country_mx": { "type": "string", "default": "Mexico" }, - "country_fm": { "type": "string", "default": "Micronesia, Federated States of" }, - "country_md": { "type": "string", "default": "Moldova, Republic of" }, - "country_mc": { "type": "string", "default": "Monaco" }, - "country_mn": { "type": "string", "default": "Mongolia" }, - "country_me": { "type": "string", "default": "Montenegro" }, - "country_ms": { "type": "string", "default": "Montserrat" }, - "country_ma": { "type": "string", "default": "Morocco" }, - "country_mz": { "type": "string", "default": "Mozambique" }, - "country_mm": { "type": "string", "default": "Myanmar" }, - "country_na": { "type": "string", "default": "Namibia" }, - "country_nr": { "type": "string", "default": "Nauru" }, - "country_np": { "type": "string", "default": "Nepal" }, - "country_nl": { "type": "string", "default": "Netherlands" }, - "country_nc": { "type": "string", "default": "New Caledonia" }, - "country_nz": { "type": "string", "default": "New Zealand" }, - "country_ni": { "type": "string", "default": "Nicaragua" }, - "country_ne": { "type": "string", "default": "Niger" }, - "country_ng": { "type": "string", "default": "Nigeria" }, - "country_nu": { "type": "string", "default": "Niue" }, - "country_nf": { "type": "string", "default": "Norfolk Island" }, - "country_mp": { "type": "string", "default": "Northern Mariana Islands" }, - "country_no": { "type": "string", "default": "Norway" }, - "country_no_region_10": { "type": "string", "default": "Vest-Agder" }, - "country_no_region_11": { "type": "string", "default": "Rogaland" }, - "country_no_region_12": { "type": "string", "default": "Hordaland" }, - "country_no_region_14": { "type": "string", "default": "Sogn og Fjordane" }, - "country_no_region_15": { "type": "string", "default": "Møre og Romsdal" }, - "country_no_region_16": { "type": "string", "default": "Sør-Trøndelag" }, - "country_no_region_17": { "type": "string", "default": "Nord-Trøndelag" }, - "country_no_region_18": { "type": "string", "default": "Nordland" }, - "country_no_region_19": { "type": "string", "default": "Troms" }, - "country_no_region_20": { "type": "string", "default": "Finnmark" }, - "country_no_region_30": { "type": "string", "default": "Viken" }, - "country_no_region_34": { "type": "string", "default": "Innlandet" }, - "country_no_region_38": { "type": "string", "default": "Vestfold og Telemark" }, - "country_no_region_42": { "type": "string", "default": "Agder" }, - "country_no_region_46": { "type": "string", "default": "Vestland" }, - "country_no_region_50": { "type": "string", "default": "Trøndelag" }, - "country_no_region_54": { "type": "string", "default": "Troms og Finnmark" }, - "country_no_region_01": { "type": "string", "default": "Østfold" }, - "country_no_region_02": { "type": "string", "default": "Akershus" }, - "country_no_region_03": { "type": "string", "default": "Oslo" }, - "country_no_region_04": { "type": "string", "default": "Hedmark" }, - "country_no_region_05": { "type": "string", "default": "Oppland" }, - "country_no_region_06": { "type": "string", "default": "Buskerud" }, - "country_no_region_07": { "type": "string", "default": "Vestfold" }, - "country_no_region_08": { "type": "string", "default": "Telemark" }, - "country_no_region_09": { "type": "string", "default": "Aust-Agder" }, - "country_om": { "type": "string", "default": "Oman" }, - "country_pk": { "type": "string", "default": "Pakistan" }, - "country_pw": { "type": "string", "default": "Palau" }, - "country_ps": { "type": "string", "default": "Palestine, State of" }, - "country_pa": { "type": "string", "default": "Panama" }, - "country_pg": { "type": "string", "default": "Papua New Guinea" }, - "country_py": { "type": "string", "default": "Paraguay" }, - "country_pe": { "type": "string", "default": "Peru" }, - "country_ph": { "type": "string", "default": "Philippines" }, - "country_pn": { "type": "string", "default": "Pitcairn" }, - "country_pl": { "type": "string", "default": "Poland" }, - "country_pt": { "type": "string", "default": "Portugal" }, - "country_pr": { "type": "string", "default": "Puerto Rico" }, - "country_qa": { "type": "string", "default": "Qatar" }, - "country_re": { "type": "string", "default": "Réunion" }, - "country_ro": { "type": "string", "default": "Romania" }, - "country_ru": { "type": "string", "default": "Russian Federation" }, - "country_rw": { "type": "string", "default": "Rwanda" }, - "country_bl": { "type": "string", "default": "Saint Barthélemy" }, - "country_sh": { - "type": "string", - "default": "Saint Helena, Ascension and Tristan da Cunha" - }, - "country_kn": { "type": "string", "default": "Saint Kitts and Nevis" }, - "country_lc": { "type": "string", "default": "Saint Lucia" }, - "country_mf": { "type": "string", "default": "Saint Martin" }, - "country_pm": { "type": "string", "default": "Saint Pierre and Miquelon" }, - "country_vc": { "type": "string", "default": "Saint Vincent and the Grenadines" }, - "country_ws": { "type": "string", "default": "Samoa" }, - "country_sm": { "type": "string", "default": "San Marino" }, - "country_ss": { "type": "string", "default": "South Sudan" }, - "country_st": { "type": "string", "default": "Sao Tome and Principe" }, - "country_sa": { "type": "string", "default": "Saudi Arabia" }, - "country_sn": { "type": "string", "default": "Senegal" }, - "country_rs": { "type": "string", "default": "Serbia" }, - "country_sc": { "type": "string", "default": "Seychelles" }, - "country_sl": { "type": "string", "default": "Sierra Leone" }, - "country_sg": { "type": "string", "default": "Singapore" }, - "country_sk": { "type": "string", "default": "Slovakia" }, - "country_si": { "type": "string", "default": "Slovenia" }, - "country_sb": { "type": "string", "default": "Solomon Islands" }, - "country_so": { "type": "string", "default": "Somalia" }, - "country_za": { "type": "string", "default": "South Africa" }, - "country_gs": { - "type": "string", - "default": "South Georgia and the South Sandwich Islands" - }, - "country_es": { "type": "string", "default": "Spain" }, - "country_es_region_a coruna": { "type": "string", "default": "A Coruna" }, - "country_es_region_alava": { "type": "string", "default": "Alava" }, - "country_es_region_albacete": { "type": "string", "default": "Albacete" }, - "country_es_region_alicante": { "type": "string", "default": "Alicante" }, - "country_es_region_almeria": { "type": "string", "default": "Almeria" }, - "country_es_region_asturias": { "type": "string", "default": "Asturias" }, - "country_es_region_avila": { "type": "string", "default": "Avila" }, - "country_es_region_badajoz": { "type": "string", "default": "Badajoz" }, - "country_es_region_baleares": { "type": "string", "default": "Baleares" }, - "country_es_region_barcelona": { "type": "string", "default": "Barcelona" }, - "country_es_region_burgos": { "type": "string", "default": "Burgos" }, - "country_es_region_caceres": { "type": "string", "default": "Caceres" }, - "country_es_region_cadiz": { "type": "string", "default": "Cadiz" }, - "country_es_region_cn": { "type": "string", "default": "Canarias" }, - "country_es_region_cantabria": { "type": "string", "default": "Cantabria" }, - "country_es_region_castellon": { "type": "string", "default": "Castellon" }, - "country_es_region_ceuta": { "type": "string", "default": "Ceuta" }, - "country_es_region_ciudad real": { "type": "string", "default": "Ciudad Real" }, - "country_es_region_cordoba": { "type": "string", "default": "Cordoba" }, - "country_es_region_cuenca": { "type": "string", "default": "Cuenca" }, - "country_es_region_gipuzkoa": { "type": "string", "default": "Gipuzkoa" }, - "country_es_region_girona": { "type": "string", "default": "Girona" }, - "country_es_region_granada": { "type": "string", "default": "Granada" }, - "country_es_region_guadalajara": { "type": "string", "default": "Guadalajara" }, - "country_es_region_guipuzcoa": { "type": "string", "default": "Guipuzcoa" }, - "country_es_region_huelva": { "type": "string", "default": "Huelva" }, - "country_es_region_huesca": { "type": "string", "default": "Huesca" }, - "country_es_region_jaen": { "type": "string", "default": "Jaen" }, - "country_es_region_la rioja": { "type": "string", "default": "La Rioja" }, - "country_es_region_las palmas": { "type": "string", "default": "Las Palmas" }, - "country_es_region_leon": { "type": "string", "default": "Leon" }, - "country_es_region_lleida": { "type": "string", "default": "Lleida" }, - "country_es_region_lugo": { "type": "string", "default": "Lugo" }, - "country_es_region_madrid": { "type": "string", "default": "Madrid" }, - "country_es_region_malaga": { "type": "string", "default": "Malaga" }, - "country_es_region_melilla": { "type": "string", "default": "Melilla" }, - "country_es_region_murcia": { "type": "string", "default": "Murcia" }, - "country_es_region_navarra": { "type": "string", "default": "Navarra" }, - "country_es_region_ourense": { "type": "string", "default": "Ourense" }, - "country_es_region_palencia": { "type": "string", "default": "Palencia" }, - "country_es_region_pontevedra": { "type": "string", "default": "Pontevedra" }, - "country_es_region_salamanca": { "type": "string", "default": "Salamanca" }, - "country_es_region_santa cruz de tenerife": { - "type": "string", - "default": "Santa Cruz de Tenerife" - }, - "country_es_region_segovia": { "type": "string", "default": "Segovia" }, - "country_es_region_sevilla": { "type": "string", "default": "Sevilla" }, - "country_es_region_soria": { "type": "string", "default": "Soria" }, - "country_es_region_tarragona": { "type": "string", "default": "Tarragona" }, - "country_es_region_teruel": { "type": "string", "default": "Teruel" }, - "country_es_region_toledo": { "type": "string", "default": "Toledo" }, - "country_es_region_valencia": { "type": "string", "default": "Valencia" }, - "country_es_region_valladolid": { "type": "string", "default": "Valladolid" }, - "country_es_region_vizcaya": { "type": "string", "default": "Biscay" }, - "country_es_region_zamora": { "type": "string", "default": "Zamora" }, - "country_es_region_zaragoza": { "type": "string", "default": "Zaragoza" }, - "country_lk": { "type": "string", "default": "Sri Lanka" }, - "country_sd": { "type": "string", "default": "Sudan" }, - "country_sr": { "type": "string", "default": "Suriname" }, - "country_sj": { "type": "string", "default": "Svalbard and Jan Mayen" }, - "country_sz": { "type": "string", "default": "Eswatini" }, - "country_se": { "type": "string", "default": "Sweden" }, - "country_ch": { "type": "string", "default": "Switzerland" }, - "country_ch_region_ag": { "type": "string", "default": "Aargau" }, - "country_ch_region_ar": { "type": "string", "default": "Appenzell Ausserrhoden" }, - "country_ch_region_ai": { "type": "string", "default": "Appenzell Innerrhoden" }, - "country_ch_region_bl": { "type": "string", "default": "Basel-Landschaft" }, - "country_ch_region_bs": { "type": "string", "default": "Basel-Stadt" }, - "country_ch_region_be": { "type": "string", "default": "Bern" }, - "country_ch_region_fr": { "type": "string", "default": "Freiburg" }, - "country_ch_region_ge": { "type": "string", "default": "Genf" }, - "country_ch_region_gl": { "type": "string", "default": "Glarus" }, - "country_ch_region_gr": { "type": "string", "default": "Graubuenden" }, - "country_ch_region_ju": { "type": "string", "default": "Jura" }, - "country_ch_region_lu": { "type": "string", "default": "Luzern" }, - "country_ch_region_ne": { "type": "string", "default": "Neuenburg" }, - "country_ch_region_nw": { "type": "string", "default": "Nidwalden" }, - "country_ch_region_ow": { "type": "string", "default": "Obwalden" }, - "country_ch_region_sh": { "type": "string", "default": "Schaffhausen" }, - "country_ch_region_sz": { "type": "string", "default": "Schwyz" }, - "country_ch_region_so": { "type": "string", "default": "Solothurn" }, - "country_ch_region_sg": { "type": "string", "default": "St. Gallen" }, - "country_ch_region_ti": { "type": "string", "default": "Tessin" }, - "country_ch_region_tg": { "type": "string", "default": "Thurgau" }, - "country_ch_region_ur": { "type": "string", "default": "Uri" }, - "country_ch_region_vs": { "type": "string", "default": "Valais" }, - "country_ch_region_vd": { "type": "string", "default": "Vaud" }, - "country_ch_region_zh": { "type": "string", "default": "Zurich" }, - "country_ch_region_zg": { "type": "string", "default": "Zug" }, - "country_sy": { "type": "string", "default": "Syrian Arab Republic" }, - "country_tw": { "type": "string", "default": "Taiwan" }, - "country_tj": { "type": "string", "default": "Tajikistan" }, - "country_tz": { "type": "string", "default": "Tanzania, United Republic of" }, - "country_th": { "type": "string", "default": "Thailand" }, - "country_tl": { "type": "string", "default": "Timor-Leste" }, - "country_tg": { "type": "string", "default": "Togo" }, - "country_tk": { "type": "string", "default": "Tokelau" }, - "country_to": { "type": "string", "default": "Tonga" }, - "country_tt": { "type": "string", "default": "Trinidad and Tobago" }, - "country_tn": { "type": "string", "default": "Tunisia" }, - "country_tr": { "type": "string", "default": "Turkey" }, - "country_tm": { "type": "string", "default": "Turkmenistan" }, - "country_tc": { "type": "string", "default": "Turks and Caicos Islands" }, - "country_tv": { "type": "string", "default": "Tuvalu" }, - "country_ug": { "type": "string", "default": "Uganda" }, - "country_ua": { "type": "string", "default": "Ukraine" }, - "country_ae": { "type": "string", "default": "United Arab Emirates" }, - "country_gb": { "type": "string", "default": "United Kingdom" }, - "country_us": { "type": "string", "default": "United States" }, - "country_us_region_al": { "type": "string", "default": "Alabama" }, - "country_us_region_ak": { "type": "string", "default": "Alaska" }, - "country_us_region_as": { "type": "string", "default": "American Samoa" }, - "country_us_region_az": { "type": "string", "default": "Arizona" }, - "country_us_region_ar": { "type": "string", "default": "Arkansas" }, - "country_us_region_af": { "type": "string", "default": "Armed Forces Africa" }, - "country_us_region_aa": { "type": "string", "default": "Armed Forces Americas" }, - "country_us_region_ac": { "type": "string", "default": "Armed Forces Canada" }, - "country_us_region_ae": { "type": "string", "default": "Armed Forces Europe" }, - "country_us_region_am": { "type": "string", "default": "Armed Forces Middle East" }, - "country_us_region_ap": { "type": "string", "default": "Armed Forces Pacific" }, - "country_us_region_ca": { "type": "string", "default": "California" }, - "country_us_region_co": { "type": "string", "default": "Colorado" }, - "country_us_region_ct": { "type": "string", "default": "Connecticut" }, - "country_us_region_de": { "type": "string", "default": "Delaware" }, - "country_us_region_dc": { "type": "string", "default": "Washington DC" }, - "country_us_region_fm": { - "type": "string", - "default": "Federated States Of Micronesia" - }, - "country_us_region_fl": { "type": "string", "default": "Florida" }, - "country_us_region_ga": { "type": "string", "default": "Georgia" }, - "country_us_region_gu": { "type": "string", "default": "Guam" }, - "country_us_region_hi": { "type": "string", "default": "Hawaii" }, - "country_us_region_id": { "type": "string", "default": "Idaho" }, - "country_us_region_il": { "type": "string", "default": "Illinois" }, - "country_us_region_in": { "type": "string", "default": "Indiana" }, - "country_us_region_ia": { "type": "string", "default": "Iowa" }, - "country_us_region_ks": { "type": "string", "default": "Kansas" }, - "country_us_region_ky": { "type": "string", "default": "Kentucky" }, - "country_us_region_la": { "type": "string", "default": "Louisiana" }, - "country_us_region_me": { "type": "string", "default": "Maine" }, - "country_us_region_mh": { "type": "string", "default": "Marshall Islands" }, - "country_us_region_md": { "type": "string", "default": "Maryland" }, - "country_us_region_ma": { "type": "string", "default": "Massachusetts" }, - "country_us_region_mi": { "type": "string", "default": "Michigan" }, - "country_us_region_mn": { "type": "string", "default": "Minnesota" }, - "country_us_region_ms": { "type": "string", "default": "Mississippi" }, - "country_us_region_mo": { "type": "string", "default": "Missouri" }, - "country_us_region_mt": { "type": "string", "default": "Montana" }, - "country_us_region_ne": { "type": "string", "default": "Nebraska" }, - "country_us_region_nv": { "type": "string", "default": "Nevada" }, - "country_us_region_nh": { "type": "string", "default": "New Hampshire" }, - "country_us_region_nj": { "type": "string", "default": "New Jersey" }, - "country_us_region_nm": { "type": "string", "default": "New Mexico" }, - "country_us_region_ny": { "type": "string", "default": "New York" }, - "country_us_region_nc": { "type": "string", "default": "North Carolina" }, - "country_us_region_nd": { "type": "string", "default": "North Dakota" }, - "country_us_region_mp": { "type": "string", "default": "Northern Mariana Islands" }, - "country_us_region_oh": { "type": "string", "default": "Ohio" }, - "country_us_region_ok": { "type": "string", "default": "Oklahoma" }, - "country_us_region_or": { "type": "string", "default": "Oregon" }, - "country_us_region_pa": { "type": "string", "default": "Pennsylvania" }, - "country_us_region_pr": { "type": "string", "default": "Puerto Rico" }, - "country_us_region_ri": { "type": "string", "default": "Rhode Island" }, - "country_us_region_sc": { "type": "string", "default": "South Carolina" }, - "country_us_region_sd": { "type": "string", "default": "South Dakota" }, - "country_us_region_tn": { "type": "string", "default": "Tennessee" }, - "country_us_region_tx": { "type": "string", "default": "Texas" }, - "country_us_region_ut": { "type": "string", "default": "Utah" }, - "country_us_region_vt": { "type": "string", "default": "Vermont" }, - "country_us_region_vi": { "type": "string", "default": "Virgin Islands" }, - "country_us_region_va": { "type": "string", "default": "Virginia" }, - "country_us_region_wa": { "type": "string", "default": "Washington" }, - "country_us_region_wv": { "type": "string", "default": "West Virginia" }, - "country_us_region_wi": { "type": "string", "default": "Wisconsin" }, - "country_us_region_wy": { "type": "string", "default": "Wyoming" }, - "country_um": { "type": "string", "default": "United States Minor Outlying Islands" }, - "country_uy": { "type": "string", "default": "Uruguay" }, - "country_uz": { "type": "string", "default": "Uzbekistan" }, - "country_vu": { "type": "string", "default": "Vanuatu" }, - "country_ve": { "type": "string", "default": "Venezuela" }, - "country_vn": { "type": "string", "default": "Vietnam" }, - "country_vg": { "type": "string", "default": "Virgin Islands, British" }, - "country_vi": { "type": "string", "default": "Virgin Islands, U.S." }, - "country_wf": { "type": "string", "default": "Wallis and Futuna Islands" }, - "country_eh": { "type": "string", "default": "Western Sahara" }, - "country_ye": { "type": "string", "default": "Yemen" }, - "country_zm": { "type": "string", "default": "Zambia" }, - "country_zw": { "type": "string", "default": "Zimbabwe" } - }, - "required": [ - "address-name", - "first-name", - "last-name", - "company", - "phone", - "address-one", - "address-two", - "city", - "postal-code", - "country", - "region", - "timestamps", - "delete", - "create", - "spinner", - "country_af", - "country_ax", - "country_al", - "country_dz", - "country_as", - "country_ad", - "country_ao", - "country_ai", - "country_aq", - "country_ag", - "country_ar", - "country_am", - "country_aw", - "country_au", - "country_au_region_act", - "country_au_region_nsw", - "country_au_region_nt", - "country_au_region_qld", - "country_au_region_sa", - "country_au_region_tas", - "country_au_region_vic", - "country_au_region_wa", - "country_at", - "country_at_region_bl", - "country_at_region_kn", - "country_at_region_no", - "country_at_region_oo", - "country_at_region_sb", - "country_at_region_st", - "country_at_region_ti", - "country_at_region_vb", - "country_at_region_wi", - "country_az", - "country_bs", - "country_bh", - "country_bd", - "country_bb", - "country_by", - "country_be", - "country_bz", - "country_bj", - "country_bm", - "country_bt", - "country_bo", - "country_bq", - "country_bq_region_bo", - "country_bq_region_sa", - "country_bq_region_se", - "country_ba", - "country_bw", - "country_bv", - "country_br", - "country_io", - "country_bn", - "country_bg", - "country_bf", - "country_bi", - "country_kh", - "country_cm", - "country_ca", - "country_ca_region_ab", - "country_ca_region_bc", - "country_ca_region_mb", - "country_ca_region_nb", - "country_ca_region_nl", - "country_ca_region_nt", - "country_ca_region_ns", - "country_ca_region_nu", - "country_ca_region_on", - "country_ca_region_pe", - "country_ca_region_qc", - "country_ca_region_sk", - "country_ca_region_yt", - "country_cv", - "country_cw", - "country_ky", - "country_cf", - "country_td", - "country_cl", - "country_cn", - "country_cx", - "country_cc", - "country_co", - "country_km", - "country_cg", - "country_cd", - "country_ck", - "country_cr", - "country_ci", - "country_hr", - "country_cu", - "country_cy", - "country_cz", - "country_dk", - "country_dj", - "country_dm", - "country_do", - "country_ec", - "country_eg", - "country_sv", - "country_sx", - "country_gq", - "country_er", - "country_ee", - "country_et", - "country_fk", - "country_fo", - "country_fj", - "country_fi", - "country_fr", - "country_gf", - "country_pf", - "country_tf", - "country_ga", - "country_gm", - "country_ge", - "country_de", - "country_de_region_bw", - "country_de_region_by", - "country_de_region_be", - "country_de_region_bb", - "country_de_region_hb", - "country_de_region_hh", - "country_de_region_he", - "country_de_region_mv", - "country_de_region_ni", - "country_de_region_nw", - "country_de_region_rp", - "country_de_region_sl", - "country_de_region_sn", - "country_de_region_st", - "country_de_region_sh", - "country_de_region_th", - "country_gh", - "country_gi", - "country_gr", - "country_gl", - "country_gd", - "country_gp", - "country_gu", - "country_gt", - "country_gg", - "country_gn", - "country_gw", - "country_gy", - "country_ht", - "country_hm", - "country_va", - "country_hn", - "country_hk", - "country_hu", - "country_is", - "country_in", - "country_in_region_an", - "country_in_region_ap", - "country_in_region_ar", - "country_in_region_as", - "country_in_region_br", - "country_in_region_ch", - "country_in_region_ct", - "country_in_region_dn", - "country_in_region_dd", - "country_in_region_dl", - "country_in_region_ga", - "country_in_region_gj", - "country_in_region_hr", - "country_in_region_hp", - "country_in_region_jk", - "country_in_region_jh", - "country_in_region_ka", - "country_in_region_kl", - "country_in_region_ld", - "country_in_region_mp", - "country_in_region_mh", - "country_in_region_mn", - "country_in_region_ml", - "country_in_region_mz", - "country_in_region_nl", - "country_in_region_or", - "country_in_region_py", - "country_in_region_pb", - "country_in_region_rj", - "country_in_region_sk", - "country_in_region_tn", - "country_in_region_tg", - "country_in_region_tr", - "country_in_region_ut", - "country_in_region_up", - "country_in_region_wb", - "country_id", - "country_ir", - "country_iq", - "country_ie", - "country_ie_region_cw", - "country_ie_region_cn", - "country_ie_region_ce", - "country_ie_region_co", - "country_ie_region_dl", - "country_ie_region_d", - "country_ie_region_g", - "country_ie_region_ky", - "country_ie_region_ke", - "country_ie_region_kk", - "country_ie_region_ls", - "country_ie_region_lm", - "country_ie_region_lk", - "country_ie_region_ld", - "country_ie_region_lh", - "country_ie_region_mo", - "country_ie_region_mh", - "country_ie_region_mn", - "country_ie_region_oy", - "country_ie_region_rn", - "country_ie_region_so", - "country_ie_region_ta", - "country_ie_region_wd", - "country_ie_region_wh", - "country_ie_region_wx", - "country_ie_region_ww", - "country_im", - "country_il", - "country_it", - "country_jm", - "country_jp", - "country_jp_region_10", - "country_jp_region_11", - "country_jp_region_12", - "country_jp_region_13", - "country_jp_region_14", - "country_jp_region_15", - "country_jp_region_16", - "country_jp_region_17", - "country_jp_region_18", - "country_jp_region_19", - "country_jp_region_20", - "country_jp_region_21", - "country_jp_region_22", - "country_jp_region_23", - "country_jp_region_24", - "country_jp_region_25", - "country_jp_region_26", - "country_jp_region_27", - "country_jp_region_28", - "country_jp_region_29", - "country_jp_region_30", - "country_jp_region_31", - "country_jp_region_32", - "country_jp_region_33", - "country_jp_region_34", - "country_jp_region_35", - "country_jp_region_36", - "country_jp_region_37", - "country_jp_region_38", - "country_jp_region_39", - "country_jp_region_40", - "country_jp_region_41", - "country_jp_region_42", - "country_jp_region_43", - "country_jp_region_44", - "country_jp_region_45", - "country_jp_region_46", - "country_jp_region_47", - "country_jp_region_05", - "country_jp_region_02", - "country_jp_region_07", - "country_jp_region_01", - "country_jp_region_08", - "country_jp_region_03", - "country_jp_region_04", - "country_jp_region_09", - "country_jp_region_06", - "country_je", - "country_jo", - "country_kz", - "country_ke", - "country_ki", - "country_kp", - "country_kr", - "country_kw", - "country_kg", - "country_la", - "country_lv", - "country_lb", - "country_ls", - "country_lr", - "country_ly", - "country_li", - "country_lt", - "country_lu", - "country_mo", - "country_mk", - "country_mg", - "country_mw", - "country_my", - "country_mv", - "country_ml", - "country_mt", - "country_mh", - "country_mq", - "country_mr", - "country_mu", - "country_yt", - "country_mx", - "country_fm", - "country_md", - "country_mc", - "country_mn", - "country_me", - "country_ms", - "country_ma", - "country_mz", - "country_mm", - "country_na", - "country_nr", - "country_np", - "country_nl", - "country_nc", - "country_nz", - "country_ni", - "country_ne", - "country_ng", - "country_nu", - "country_nf", - "country_mp", - "country_no", - "country_no_region_10", - "country_no_region_11", - "country_no_region_12", - "country_no_region_14", - "country_no_region_15", - "country_no_region_16", - "country_no_region_17", - "country_no_region_18", - "country_no_region_19", - "country_no_region_20", - "country_no_region_30", - "country_no_region_34", - "country_no_region_38", - "country_no_region_42", - "country_no_region_46", - "country_no_region_50", - "country_no_region_54", - "country_no_region_01", - "country_no_region_02", - "country_no_region_03", - "country_no_region_04", - "country_no_region_05", - "country_no_region_06", - "country_no_region_07", - "country_no_region_08", - "country_no_region_09", - "country_om", - "country_pk", - "country_pw", - "country_ps", - "country_pa", - "country_pg", - "country_py", - "country_pe", - "country_ph", - "country_pn", - "country_pl", - "country_pt", - "country_pr", - "country_qa", - "country_re", - "country_ro", - "country_ru", - "country_rw", - "country_bl", - "country_sh", - "country_kn", - "country_lc", - "country_mf", - "country_pm", - "country_vc", - "country_ws", - "country_sm", - "country_ss", - "country_st", - "country_sa", - "country_sn", - "country_rs", - "country_sc", - "country_sl", - "country_sg", - "country_sk", - "country_si", - "country_sb", - "country_so", - "country_za", - "country_gs", - "country_es", - "country_es_region_a coruna", - "country_es_region_alava", - "country_es_region_albacete", - "country_es_region_alicante", - "country_es_region_almeria", - "country_es_region_asturias", - "country_es_region_avila", - "country_es_region_badajoz", - "country_es_region_baleares", - "country_es_region_barcelona", - "country_es_region_burgos", - "country_es_region_caceres", - "country_es_region_cadiz", - "country_es_region_cn", - "country_es_region_cantabria", - "country_es_region_castellon", - "country_es_region_ceuta", - "country_es_region_ciudad real", - "country_es_region_cordoba", - "country_es_region_cuenca", - "country_es_region_gipuzkoa", - "country_es_region_girona", - "country_es_region_granada", - "country_es_region_guadalajara", - "country_es_region_guipuzcoa", - "country_es_region_huelva", - "country_es_region_huesca", - "country_es_region_jaen", - "country_es_region_la rioja", - "country_es_region_las palmas", - "country_es_region_leon", - "country_es_region_lleida", - "country_es_region_lugo", - "country_es_region_madrid", - "country_es_region_malaga", - "country_es_region_melilla", - "country_es_region_murcia", - "country_es_region_navarra", - "country_es_region_ourense", - "country_es_region_palencia", - "country_es_region_pontevedra", - "country_es_region_salamanca", - "country_es_region_santa cruz de tenerife", - "country_es_region_segovia", - "country_es_region_sevilla", - "country_es_region_soria", - "country_es_region_tarragona", - "country_es_region_teruel", - "country_es_region_toledo", - "country_es_region_valencia", - "country_es_region_valladolid", - "country_es_region_vizcaya", - "country_es_region_zamora", - "country_es_region_zaragoza", - "country_lk", - "country_sd", - "country_sr", - "country_sj", - "country_sz", - "country_se", - "country_ch", - "country_ch_region_ag", - "country_ch_region_ar", - "country_ch_region_ai", - "country_ch_region_bl", - "country_ch_region_bs", - "country_ch_region_be", - "country_ch_region_fr", - "country_ch_region_ge", - "country_ch_region_gl", - "country_ch_region_gr", - "country_ch_region_ju", - "country_ch_region_lu", - "country_ch_region_ne", - "country_ch_region_nw", - "country_ch_region_ow", - "country_ch_region_sh", - "country_ch_region_sz", - "country_ch_region_so", - "country_ch_region_sg", - "country_ch_region_ti", - "country_ch_region_tg", - "country_ch_region_ur", - "country_ch_region_vs", - "country_ch_region_vd", - "country_ch_region_zh", - "country_ch_region_zg", - "country_sy", - "country_tw", - "country_tj", - "country_tz", - "country_th", - "country_tl", - "country_tg", - "country_tk", - "country_to", - "country_tt", - "country_tn", - "country_tr", - "country_tm", - "country_tc", - "country_tv", - "country_ug", - "country_ua", - "country_ae", - "country_gb", - "country_us", - "country_us_region_al", - "country_us_region_ak", - "country_us_region_as", - "country_us_region_az", - "country_us_region_ar", - "country_us_region_af", - "country_us_region_aa", - "country_us_region_ac", - "country_us_region_ae", - "country_us_region_am", - "country_us_region_ap", - "country_us_region_ca", - "country_us_region_co", - "country_us_region_ct", - "country_us_region_de", - "country_us_region_dc", - "country_us_region_fm", - "country_us_region_fl", - "country_us_region_ga", - "country_us_region_gu", - "country_us_region_hi", - "country_us_region_id", - "country_us_region_il", - "country_us_region_in", - "country_us_region_ia", - "country_us_region_ks", - "country_us_region_ky", - "country_us_region_la", - "country_us_region_me", - "country_us_region_mh", - "country_us_region_md", - "country_us_region_ma", - "country_us_region_mi", - "country_us_region_mn", - "country_us_region_ms", - "country_us_region_mo", - "country_us_region_mt", - "country_us_region_ne", - "country_us_region_nv", - "country_us_region_nh", - "country_us_region_nj", - "country_us_region_nm", - "country_us_region_ny", - "country_us_region_nc", - "country_us_region_nd", - "country_us_region_mp", - "country_us_region_oh", - "country_us_region_ok", - "country_us_region_or", - "country_us_region_pa", - "country_us_region_pr", - "country_us_region_ri", - "country_us_region_sc", - "country_us_region_sd", - "country_us_region_tn", - "country_us_region_tx", - "country_us_region_ut", - "country_us_region_vt", - "country_us_region_vi", - "country_us_region_va", - "country_us_region_wa", - "country_us_region_wv", - "country_us_region_wi", - "country_us_region_wy", - "country_um", - "country_uy", - "country_uz", - "country_vu", - "country_ve", - "country_vn", - "country_vg", - "country_vi", - "country_wf", - "country_eh", - "country_ye", - "country_zm", - "country_zw" - ] - }, - "customer-form": { - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "message": { - "additionalProperties": false, - "properties": { - "password_change_success": { - "type": "string", - "default": "You have successfully set a new password for your account." - }, - "close": { "type": "string", "default": "Close" } - }, - "required": ["password_change_success", "close"] - }, - "error": { - "additionalProperties": false, - "properties": { - "old_password_incorrect": { - "type": "string", - "default": "The old password you entered is incorrect. Please try again." - }, - "email_already_used": { - "type": "string", - "default": "This email is already in use. Please use a different email." - } - }, - "required": ["old_password_incorrect", "email_already_used"] - }, - "first-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "First name" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { "type": "string", "default": "Your given name, optional." }, - "v8n_too_long": { - "type": "string", - "default": "We can't store first names longer than 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "last-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last name" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { "type": "string", "default": "Your surname, optional." }, - "v8n_too_long": { - "type": "string", - "default": "We can't store last names longer than 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "tax-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Tax ID" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { - "type": "string", - "default": "Your tax identification number, optional." - }, - "v8n_too_long": { - "type": "string", - "default": "We can't store tax IDs longer than 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "email": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Email" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "We'll use this email as the login to the Checkout and Customer Portal." - }, - "helper_text_last_login_date": { - "type": "string", - "default": "Your login to the Checkout and Customer Portal. Last used on {{ date, date }} at {{ date, time }}." - }, - "v8n_too_long": { - "type": "string", - "default": "We can't store emails longer than 100 characters." - }, - "v8n_invalid_email": { "type": "string", "default": "This email is invalid." }, - "v8n_required": { "type": "string", "default": "Please fill out this field." } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "helper_text_last_login_date", - "v8n_too_long", - "v8n_invalid_email", - "v8n_required" - ] - }, - "password": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Password" }, - "placeholder": { "type": "string", "default": "Required" }, - "placeholder_new": { "type": "string", "default": "Keep current password" }, - "helper_text_new": { - "type": "string", - "default": "To change your password, enter a new password here. If you leave this field blank, your password will remain the same." - }, - "v8n_too_long": { - "type": "string", - "default": "Please use a password that is no longer than 50 characters." - }, - "v8n_too_weak": { - "type": "string", - "default": "Please use a stronger password. To make this password stronger, make it at least 8 characters long and include a few upper and lower case letters, numbers, and special characters." - }, - "v8n_required": { "type": "string", "default": "Please fill out this field." } - }, - "required": [ - "label", - "placeholder", - "placeholder_new", - "helper_text_new", - "v8n_too_long", - "v8n_too_weak", - "v8n_required" - ] - }, - "password-old": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Old password" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "Enter your old password to confirm password change." - }, - "v8n_required": { "type": "string", "default": "Please fill out this field." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "cancel", - "close", - "message", - "error", - "first-name", - "last-name", - "tax-id", - "email", - "password", - "password-old", - "timestamps", - "spinner" - ] - }, - "payment-method-card": { - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "delete": { "type": "string", "default": "Delete" }, - "add": { "type": "string", "default": "Add payment method" }, - "update": { "type": "string", "default": "Update payment method" }, - "delete_prompt": { - "type": "string", - "default": "This payment method will be permanently deleted from your account. Would you like to continue?" - }, - "expires": { "type": "string", "default": "Expires" }, - "last_4_digits": { "type": "string", "default": "Last 4 digits" }, - "unknown": { "type": "string", "default": "Unknown" }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "dialog_header_add": { "type": "string", "default": "Add payment method" }, - "dialog_header_update": { "type": "string", "default": "Update payment method" }, - "update-payment-method-form": { - "additionalProperties": false, - "properties": { - "status": { - "additionalProperties": false, - "properties": { - "cc_token_success": { - "type": "string", - "default": "Card details saved successfully." - }, - "close": { "type": "string", "default": "Close" } - }, - "required": ["cc_token_success", "close"] - }, - "error": { - "additionalProperties": false, - "properties": { - "cc_token_invalid": { - "type": "string", - "default": "Unfortunately, we couldn't save your card details. Please try again later or use a different card." - } - }, - "required": ["cc_token_invalid"] - }, - "template-set": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Template set" }, - "dialog": { - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "header": { "type": "string", "default": "Choose a template set" }, - "selection": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "search": { "type": "string", "default": "Search" }, - "clear": { "type": "string", "default": "Clear" }, - "pagination": { - "additionalProperties": false, - "properties": { - "search_button_text": { "type": "string", "default": "Search" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { - "type": "string", - "default": "Loading" - }, - "loading_empty": { - "type": "string", - "default": "No template sets found" - }, - "loading_error": { - "type": "string", - "default": "Unknown error" - } - }, - "required": [ - "loading_busy", - "loading_empty", - "loading_error" - ] - } - }, - "required": ["spinner"] - } - }, - "required": [ - "search_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "query-builder": { - "additionalProperties": false, - "properties": { - "filters": { - "additionalProperties": false, - "properties": {}, - "required": [] - }, - "add_or_clause": { - "type": "string", - "default": "Add OR clause" - }, - "add_value": { "type": "string", "default": "Add value" }, - "code": { "type": "string", "default": "Code" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { - "type": "string", - "default": "Last updated on" - }, - "delete": { "type": "string", "default": "Delete" }, - "field": { "type": "string", "default": "Field" }, - "hidden": { "type": "string", "default": "Hidden" }, - "is_defined_false": { - "type": "string", - "default": "Not defined" - }, - "is_defined_true": { "type": "string", "default": "Defined" }, - "name": { "type": "string", "default": "Name" }, - "operator_equal": { "type": "string", "default": "Equal" }, - "operator_greaterthan": { - "type": "string", - "default": "Greater than" - }, - "operator_greaterthanorequal": { - "type": "string", - "default": "Greater than or equal" - }, - "operator_in": { "type": "string", "default": "One of" }, - "operator_isdefined": { - "type": "string", - "default": "Is defined" - }, - "operator_lessthan": { - "type": "string", - "default": "Less than" - }, - "operator_lessthanorequal": { - "type": "string", - "default": "Less than or equal" - }, - "operator_not": { "type": "string", "default": "Not equal" }, - "or": { "type": "string", "default": "Or" }, - "query_builder_group": { - "type": "string", - "default": "Group of filters" - }, - "query_builder_rule": { "type": "string", "default": "Filter" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "type": { "type": "string", "default": "Type" }, - "type_any": { - "type": "string", - "default": "Field of unknown type" - }, - "type_attribute": { - "type": "string", - "default": "Key-value resource" - }, - "type_date": { "type": "string", "default": "Date field" }, - "type_here": { "type": "string", "default": "Type here..." }, - "type_number": { "type": "string", "default": "Numeric field" }, - "type_string": { "type": "string", "default": "Text field" }, - "used_codes": { "type": "string", "default": "Codes used" }, - "value": { "type": "string", "default": "Value" } - }, - "required": [ - "filters", - "add_or_clause", - "add_value", - "code", - "date", - "date_created", - "date_modified", - "delete", - "field", - "hidden", - "is_defined_false", - "is_defined_true", - "name", - "operator_equal", - "operator_greaterthan", - "operator_greaterthanorequal", - "operator_in", - "operator_isdefined", - "operator_lessthan", - "operator_lessthanorequal", - "operator_not", - "or", - "query_builder_group", - "query_builder_rule", - "range_from", - "range_to", - "type", - "type_any", - "type_attribute", - "type_date", - "type_here", - "type_number", - "type_string", - "used_codes", - "value" - ] - } - }, - "required": [ - "label", - "helper_text", - "search", - "clear", - "pagination", - "query-builder" - ] - } - }, - "required": ["cancel", "close", "header", "selection"] - }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "Click to select" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - }, - "helper_text": { - "type": "string", - "default": "Template set determines which payment gateway and tokenization service will be used to capture card details." - } - }, - "required": ["label", "dialog", "card", "helper_text"] - }, - "cc-token": { - "additionalProperties": false, - "properties": { - "clear": { "type": "string", "default": "Clear" }, - "tokenize": { "type": "string", "default": "Save card" }, - "payment-card-embed": { - "additionalProperties": false, - "properties": { - "stripe": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card details" }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Stripe. Visit https://stripe.com to learn more." - }, - "busy": { - "type": "string", - "default": "Encrypting your card details..." - }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "unsupported": { - "type": "string", - "default": "We don't support this card type. Please try another card." - } - }, - "required": ["idle", "busy", "fail", "unsupported"] - } - }, - "required": ["label", "status"] - }, - "square": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card details" }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Square. Visit https://squareup.com to learn more." - }, - "busy": { - "type": "string", - "default": "Encrypting your card details..." - }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "unsupported": { - "type": "string", - "default": "We don't support this card type. Please try another card." - } - }, - "required": ["idle", "busy", "fail", "unsupported"] - } - }, - "required": ["label", "status"] - }, - "default": { - "additionalProperties": false, - "properties": { - "cc-number": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card number" }, - "placeholder": { - "type": "string", - "default": "1234 1234 1234 1234" - }, - "v8n_required": { - "type": "string", - "default": "Enter a card number." - }, - "v8n_invalid": { - "type": "string", - "default": "Check your card number – it doesn't seem to be valid." - }, - "v8n_unsupported": { - "type": "string", - "default": "We don't support this card type." - } - }, - "required": [ - "label", - "placeholder", - "v8n_required", - "v8n_invalid", - "v8n_unsupported" - ] - }, - "cc-exp": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Expires on" }, - "placeholder": { "type": "string", "default": "MM/YYYY" }, - "v8n_required": { - "type": "string", - "default": "Enter an expiry date." - }, - "v8n_invalid": { - "type": "string", - "default": "Enter a date as MM/YYYY." - }, - "v8n_expired": { - "type": "string", - "default": "Your card has expired." - } - }, - "required": [ - "label", - "placeholder", - "v8n_required", - "v8n_invalid", - "v8n_expired" - ] - }, - "cc-csc": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "CSC" }, - "placeholder": { "type": "string", "default": "XXX" }, - "v8n_required": { - "type": "string", - "default": "Enter a security code." - }, - "v8n_invalid": { - "type": "string", - "default": "Enter a 3-4 digits code." - } - }, - "required": [ - "label", - "placeholder", - "v8n_required", - "v8n_invalid" - ] - }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Foxy.io. Visit https://foxy.io to learn more." - }, - "busy": { - "type": "string", - "default": "Encrypting your card details..." - }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "misconfigured": { - "type": "string", - "default": "This form is not configured correctly. If you are seeing this message as a customer, please report this issue to the store support team." - } - }, - "required": ["idle", "busy", "fail", "misconfigured"] - } - }, - "required": ["cc-number", "cc-exp", "cc-csc", "status"] - } - }, - "required": ["stripe", "square", "default"] - } - }, - "required": ["clear", "tokenize", "payment-card-embed"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" }, - "loading_empty": { - "type": "string", - "default": "This form works only with existing payment methods" - } - }, - "required": ["refresh", "loading_busy", "loading_error", "loading_empty"] - } - }, - "required": ["status", "error", "template-set", "cc-token", "spinner"] - } - }, - "required": [ - "close", - "dialog_header_add", - "dialog_header_update", - "update-payment-method-form" - ] - } - }, - "required": [ - "cancel", - "delete", - "add", - "update", - "delete_prompt", - "expires", - "last_4_digits", - "unknown", - "dialog" - ] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "subscription-card": { - "additionalProperties": false, - "properties": { - "daily": { "type": "string", "default": "/ day" }, - "daily_plural": { "type": "string", "default": "/ {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t(customer.subscription-card.{{units}}, { \"count\": {{count}}, \"ns\": \"customer-portal\" })" - }, - "monthly": { "type": "string", "default": "/ month" }, - "monthly_plural": { "type": "string", "default": "/ {{count}} months" }, - "price_recurring": { - "type": "string", - "default": "{{amount, price}} $t(customer.subscription-card.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })" - }, - "price_twice_a_month": { - "type": "string", - "default": "{{amount, price}} $t(customer.subscription-card.twice_a_month, { \"ns\": \"customer-portal\" })" - }, - "subscription_active": { - "type": "string", - "default": "Next payment on {{date, date}}" - }, - "subscription_cancelled": { "type": "string", "default": "Ended on {{date, date}}" }, - "subscription_failed": { - "type": "string", - "default": "Payment failed on {{date, date}}" - }, - "subscription_inactive": { "type": "string", "default": "Inactive" }, - "subscription_will_be_cancelled": { - "type": "string", - "default": "Ends on {{date, date}}" - }, - "subscription_will_be_active": { - "type": "string", - "default": "Starts on {{date, date}}" - }, - "transaction_summary": { "type": "string", "default": "{{most_expensive_item.name}}" }, - "fees_hint": { "type": "string", "default": "inc. shipping, taxes, etc." }, - "fees_explainer": { - "type": "string", - "default": "Taxes, shipping, and discounts may change the amount charged." - }, - "twice_a_month": { "type": "string", "default": "twice a month" }, - "weekly": { "type": "string", "default": "/ week" }, - "weekly_plural": { "type": "string", "default": "/ {{count}} weeks" }, - "yearly": { "type": "string", "default": "/ year" }, - "yearly_plural": { "type": "string", "default": "/ {{count}} years" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No subscriptions" }, - "loading_end": { "type": "string", "default": "No more data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_end", "loading_error"] - } - }, - "required": [ - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "price_recurring", - "price_twice_a_month", - "subscription_active", - "subscription_cancelled", - "subscription_failed", - "subscription_inactive", - "subscription_will_be_cancelled", - "subscription_will_be_active", - "transaction_summary", - "fees_hint", - "fees_explainer", - "twice_a_month", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "spinner" - ] - }, - "subscription-form": { - "additionalProperties": false, - "properties": { - "day": { "type": "string", "default": "Day" }, - "day_plural": { "type": "string", "default": "Days" }, - "week": { "type": "string", "default": "Week" }, - "week_plural": { "type": "string", "default": "Weeks" }, - "month": { "type": "string", "default": "Month" }, - "month_plural": { "type": "string", "default": "Months" }, - "year": { "type": "string", "default": "Year" }, - "year_plural": { "type": "string", "default": "Years" }, - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "confirm": { "type": "string", "default": "Confirm" }, - "currency": { "type": "string", "default": "Currency" }, - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "end_subscription": { "type": "string", "default": "End subscription" }, - "frequency": { - "type": "string", - "default": "$t(customer.subscription-form.{{units}}, { \"count\": {{count}}, \"ns\": \"customer-portal\" })" - }, - "frequency_label": { "type": "string", "default": "Frequency" }, - "item_plural": { "type": "string", "default": "Items" }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "next_transaction_date": { "type": "string", "default": "Next transaction date" }, - "price_recurring": { - "type": "string", - "default": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })" - }, - "price_twice_a_month": { - "type": "string", - "default": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })" - }, - "subscription_active": { - "type": "string", - "default": "Including shipping, taxes, etc. Next payment on {{date, date}}." - }, - "subscription_cancelled": { - "type": "string", - "default": "Including shipping, taxes, etc. Ended on {{date, date}}." - }, - "subscription_failed": { - "type": "string", - "default": "Including shipping, taxes, etc. Payment failed on {{date, date}}." - }, - "subscription_inactive": { - "type": "string", - "default": "Including shipping, taxes, etc. Inactive." - }, - "subscription_will_be_cancelled": { - "type": "string", - "default": "Including shipping, taxes, etc. Ends on {{date, date}}." - }, - "subscription_will_be_active": { - "type": "string", - "default": "Including shipping, taxes, etc. Starts on {{date, date}}." - }, - "transaction_plural": { "type": "string", "default": "Transactions" }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "update_billing": { "type": "string", "default": "Update billing" }, - "update_items": { "type": "string", "default": "Edit" }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "items": { - "additionalProperties": false, - "properties": { - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t(customer.subscription-form.items.pagination.card.{{units}}, { \"count\": {{count}}, \"ns\": \"customer-portal\" })" - }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "subinfo_recurring": { - "type": "string", - "default": "$t(customer.subscription-form.items.pagination.card.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" }) from {{startDate, date}}" - }, - "subinfo_twice_a_month": { - "type": "string", - "default": "$t(customer.subscription-form.items.pagination.card.twice_a_month, { \"ns\": \"customer-portal\" }) from {{startDate, date}}" - }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "no_code": { "type": "string", "default": "No SKU" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No items" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "subinfo_recurring", - "subinfo_twice_a_month", - "twice_a_month", - "no_code", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "price", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["pagination"] - }, - "transactions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Transactions" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "code": { "type": "string", "default": "Code" }, - "customer": { "type": "string", "default": "Customer" }, - "description": { "type": "string", "default": "Description" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "time": { "type": "string", "default": "{{value, date}}" }, - "status_capturing": { "type": "string", "default": "Capturing" }, - "status_captured": { "type": "string", "default": "Captured" }, - "status_approved": { "type": "string", "default": "Approved" }, - "status_authorized": { "type": "string", "default": "Authorized" }, - "status_pending": { "type": "string", "default": "Pending" }, - "status_completed": { "type": "string", "default": "Completed" }, - "status_problem": { "type": "string", "default": "Problem" }, - "status_pending_fraud_review": { - "type": "string", - "default": "Pending_fraud_review" - }, - "status_rejected": { "type": "string", "default": "Rejected" }, - "status_declined": { "type": "string", "default": "Declined" }, - "status_refunding": { "type": "string", "default": "Refunding" }, - "status_refunded": { "type": "string", "default": "Refunded" }, - "status_voided": { "type": "string", "default": "Voided" }, - "status_verified": { "type": "string", "default": "Verified" }, - "summary": { "type": "string", "default": "{{most_expensive_item.name}}" }, - "summary_plural": { - "type": "string", - "default": "{{most_expensive_item.name}} and {{count_minus_one}} more" - }, - "summary_payment_method_change": { - "type": "string", - "default": "Payment method change" - }, - "summary_subscription_modification": { - "type": "string", - "default": "Subscription modification" - }, - "summary_subscription_cancellation": { - "type": "string", - "default": "Subscription cancellation" - }, - "source_MIT": { - "type": "string", - "default": "This transaction was initiated by the merchant" - }, - "source_CIT": { - "type": "string", - "default": "This transaction was initiated by the customer" - }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No transactions" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "code", - "customer", - "description", - "price", - "time", - "status_capturing", - "status_captured", - "status_approved", - "status_authorized", - "status_pending", - "status_completed", - "status_problem", - "status_pending_fraud_review", - "status_rejected", - "status_declined", - "status_refunding", - "status_refunded", - "status_voided", - "status_verified", - "summary", - "summary_plural", - "summary_payment_method_change", - "summary_subscription_modification", - "summary_subscription_cancellation", - "source_MIT", - "source_CIT", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["label", "pagination"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "day", - "day_plural", - "week", - "week_plural", - "month", - "month_plural", - "year", - "year_plural", - "cancel", - "close", - "confirm", - "currency", - "daily", - "daily_plural", - "end_subscription", - "frequency", - "frequency_label", - "item_plural", - "monthly", - "monthly_plural", - "next_transaction_date", - "price_recurring", - "price_twice_a_month", - "subscription_active", - "subscription_cancelled", - "subscription_failed", - "subscription_inactive", - "subscription_will_be_cancelled", - "subscription_will_be_active", - "transaction_plural", - "twice_a_month", - "update_billing", - "update_items", - "undo_cancel", - "undo_confirm", - "undo_header", - "undo_message", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "items", - "transactions", - "spinner" - ] - } - }, - "required": [ - "address_plural", - "cancel", - "close", - "payment_method_plural", - "save", - "subscription_plural", - "transaction_plural", - "undo_cancel", - "undo_confirm", - "undo_header", - "undo_message", - "update", - "transactions-table", - "address-card", - "address-form", - "customer-form", - "payment-method-card", - "spinner", - "subscription-card", - "subscription-form" - ] - }, - "sign-in-form": { - "additionalProperties": false, - "properties": { - "email": { "type": "string", "default": "Email" }, - "invalid_credential_error": { - "type": "string", - "default": "Incorrect email or password. Please check your credentials and try again." - }, - "password": { "type": "string", "default": "Password" }, - "recover_access": { "type": "string", "default": "Get temporary password" }, - "sign_in": { "type": "string", "default": "Sign in" }, - "sign_in_hint": { "type": "string", "default": "Please enter your email and password" }, - "sign_up": { "type": "string", "default": "Create account" }, - "unknown_error": { - "type": "string", - "default": "An unknown error has occured. Please try again later." - }, - "v8n_invalid_email": { "type": "string", "default": "Invalid email" }, - "v8n_required": { "type": "string", "default": "Required" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "email", - "invalid_credential_error", - "password", - "recover_access", - "sign_in", - "sign_in_hint", - "sign_up", - "unknown_error", - "v8n_invalid_email", - "v8n_required", - "spinner" - ] - }, - "sign-up-form": { - "additionalProperties": false, - "properties": { - "sign_up": { "type": "string", "default": "Sign up" }, - "sign_up_hint": { "type": "string", "default": "Create an account to access the portal" }, - "go_back": { "type": "string", "default": "Go back" }, - "error": { - "additionalProperties": false, - "properties": { - "registration_disabled": { - "type": "string", - "default": "Customer registration is disabled for this store. If you're seeing this message as a customer, please contact the store owner." - }, - "verification_failed": { - "type": "string", - "default": "Client verification failed. If you are seeing this message as a customer, please contact the store owner." - }, - "email_already_used": { - "type": "string", - "default": "This email is already in use. Please use a different email or sign in instead." - } - }, - "required": ["registration_disabled", "verification_failed", "email_already_used"] - }, - "first-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "First name" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { "type": "string", "default": "Your given name, optional." }, - "v8n_too_long": { - "type": "string", - "default": "We can't store first names longer than 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "last-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last name" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { "type": "string", "default": "Your surname, optional." }, - "v8n_too_long": { - "type": "string", - "default": "We can't store last names longer than 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "email": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Email" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "We'll use this email as the login to the Checkout and Customer Portal." - }, - "v8n_too_long": { - "type": "string", - "default": "We can't store emails longer than 100 characters." - }, - "v8n_invalid_email": { "type": "string", "default": "This email is invalid." }, - "v8n_required": { "type": "string", "default": "Please fill out this field." } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_too_long", - "v8n_invalid_email", - "v8n_required" - ] - }, - "password": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Password" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "To generate a secure random password for this account, use the ✨ button." - }, - "v8n_too_long": { - "type": "string", - "default": "Please use a password that is no longer than 50 characters." - }, - "v8n_too_weak": { - "type": "string", - "default": "Please use a stronger password. To make this password stronger, make it at least 8 characters long and include a few upper and lower case letters, numbers, and special characters." - }, - "v8n_required": { "type": "string", "default": "Please fill out this field." } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_too_long", - "v8n_too_weak", - "v8n_required" - ] - }, - "legal-notice": { - "additionalProperties": false, - "properties": { - "text": { - "type": "string", - "default": "By creating an account, you agree to our Terms of Service." - }, - "link": { "type": "string", "default": "Click here to open them in a new tab." } - }, - "required": ["text", "link"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create account" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "sign_up", - "sign_up_hint", - "go_back", - "error", - "first-name", - "last-name", - "email", - "password", - "legal-notice", - "create", - "spinner" - ] - } - }, - "required": ["access-recovery-form", "customer", "sign-in-form", "sign-up-form"] -} diff --git a/src/static/schemas/customer.json b/src/static/schemas/customer.json deleted file mode 100644 index fd7bedd42..000000000 --- a/src/static/schemas/customer.json +++ /dev/null @@ -1,2863 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "address_plural": { "type": "string", "default": "Addresses" }, - "attribute_plural": { "type": "string", "default": "Attributes" }, - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "create": { "type": "string", "default": "Create" }, - "customer": { "type": "string", "default": "Customer" }, - "delete_prompt": { - "type": "string", - "default": "This resource will be permanently removed. Are you sure?" - }, - "payment_method_plural": { "type": "string", "default": "Payment methods" }, - "save": { "type": "string", "default": "Save" }, - "subscription_plural": { "type": "string", "default": "Subscriptions" }, - "transaction_plural": { "type": "string", "default": "Transactions" }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "update": { "type": "string", "default": "Update" }, - "address-card": { - "additionalProperties": false, - "properties": { - "default_billing_address": { "type": "string", "default": "Default billing address" }, - "default_shipping_address": { "type": "string", "default": "Default shipping address" }, - "full_address": { - "type": "string", - "default": "{{address1}} {{address2}} {{city}} {{region}} {{postal_code}}" - }, - "full_name": { "type": "string", "default": "{{first_name}} {{last_name}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "default_billing_address", - "default_shipping_address", - "full_address", - "full_name", - "spinner" - ] - }, - "address-form": { - "additionalProperties": false, - "properties": { - "address-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please enter address name" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten address name to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "first-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "First name" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store first names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "last-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last name" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store last names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "company": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Company" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store company names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "phone": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Phone" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "This phone number appears to be too long" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "address-one": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address Line 1" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Street address, P.O. box, company name, c/o" - }, - "v8n_required": { "type": "string", "default": "Please enter address line 1" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten address line 1 to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "address-two": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address Line 2" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "Apartment, suite, unit, building, floor, etc." - }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten address line 2 to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "city": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "City" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store city names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "postal-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Postal code" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "This postal code appears to be too long" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "country": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Country" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "region": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Region" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store region names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this address? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "country_af": { "type": "string", "default": "Afghanistan" }, - "country_ax": { "type": "string", "default": "Åland Islands" }, - "country_al": { "type": "string", "default": "Albania" }, - "country_dz": { "type": "string", "default": "Algeria" }, - "country_as": { "type": "string", "default": "American Samoa" }, - "country_ad": { "type": "string", "default": "Andorra" }, - "country_ao": { "type": "string", "default": "Angola" }, - "country_ai": { "type": "string", "default": "Anguilla" }, - "country_aq": { "type": "string", "default": "Antarctica" }, - "country_ag": { "type": "string", "default": "Antigua and Barbuda" }, - "country_ar": { "type": "string", "default": "Argentina" }, - "country_am": { "type": "string", "default": "Armenia" }, - "country_aw": { "type": "string", "default": "Aruba" }, - "country_au": { "type": "string", "default": "Australia" }, - "country_au_region_act": { "type": "string", "default": "Australian Capital Territory" }, - "country_au_region_nsw": { "type": "string", "default": "New South Wales" }, - "country_au_region_nt": { "type": "string", "default": "Northern Territory" }, - "country_au_region_qld": { "type": "string", "default": "Queensland" }, - "country_au_region_sa": { "type": "string", "default": "South Australia" }, - "country_au_region_tas": { "type": "string", "default": "Tasmania" }, - "country_au_region_vic": { "type": "string", "default": "Victoria" }, - "country_au_region_wa": { "type": "string", "default": "Western Australia" }, - "country_at": { "type": "string", "default": "Austria" }, - "country_at_region_bl": { "type": "string", "default": "Burgenland" }, - "country_at_region_kn": { "type": "string", "default": "Kaernten" }, - "country_at_region_no": { "type": "string", "default": "Niederoesterreich" }, - "country_at_region_oo": { "type": "string", "default": "Oberoesterreich" }, - "country_at_region_sb": { "type": "string", "default": "Salzburg" }, - "country_at_region_st": { "type": "string", "default": "Steiermark" }, - "country_at_region_ti": { "type": "string", "default": "Tirol" }, - "country_at_region_vb": { "type": "string", "default": "Voralberg" }, - "country_at_region_wi": { "type": "string", "default": "Wien" }, - "country_az": { "type": "string", "default": "Azerbaijan" }, - "country_bs": { "type": "string", "default": "Bahamas" }, - "country_bh": { "type": "string", "default": "Bahrain" }, - "country_bd": { "type": "string", "default": "Bangladesh" }, - "country_bb": { "type": "string", "default": "Barbados" }, - "country_by": { "type": "string", "default": "Belarus" }, - "country_be": { "type": "string", "default": "Belgium" }, - "country_bz": { "type": "string", "default": "Belize" }, - "country_bj": { "type": "string", "default": "Benin" }, - "country_bm": { "type": "string", "default": "Bermuda" }, - "country_bt": { "type": "string", "default": "Bhutan" }, - "country_bo": { "type": "string", "default": "Bolivia" }, - "country_bq": { "type": "string", "default": "Bonaire, Sint Eustatius and Saba" }, - "country_bq_region_bo": { "type": "string", "default": "Bonaire" }, - "country_bq_region_sa": { "type": "string", "default": "Saba" }, - "country_bq_region_se": { "type": "string", "default": "Sint Eustatius" }, - "country_ba": { "type": "string", "default": "Bosnia and Herzegovina" }, - "country_bw": { "type": "string", "default": "Botswana" }, - "country_bv": { "type": "string", "default": "Bouvet Island" }, - "country_br": { "type": "string", "default": "Brazil" }, - "country_io": { "type": "string", "default": "British Indian Ocean Territory" }, - "country_bn": { "type": "string", "default": "Brunei Darussalam" }, - "country_bg": { "type": "string", "default": "Bulgaria" }, - "country_bf": { "type": "string", "default": "Burkina Faso" }, - "country_bi": { "type": "string", "default": "Burundi" }, - "country_kh": { "type": "string", "default": "Cambodia" }, - "country_cm": { "type": "string", "default": "Cameroon" }, - "country_ca": { "type": "string", "default": "Canada" }, - "country_ca_region_ab": { "type": "string", "default": "Alberta" }, - "country_ca_region_bc": { "type": "string", "default": "British Columbia" }, - "country_ca_region_mb": { "type": "string", "default": "Manitoba" }, - "country_ca_region_nb": { "type": "string", "default": "New Brunswick" }, - "country_ca_region_nl": { "type": "string", "default": "Newfoundland and Labrador" }, - "country_ca_region_nt": { "type": "string", "default": "Northwest Territories" }, - "country_ca_region_ns": { "type": "string", "default": "Nova Scotia" }, - "country_ca_region_nu": { "type": "string", "default": "Nunavut" }, - "country_ca_region_on": { "type": "string", "default": "Ontario" }, - "country_ca_region_pe": { "type": "string", "default": "Prince Edward Island" }, - "country_ca_region_qc": { "type": "string", "default": "Quebec" }, - "country_ca_region_sk": { "type": "string", "default": "Saskatchewan" }, - "country_ca_region_yt": { "type": "string", "default": "Yukon" }, - "country_cv": { "type": "string", "default": "Cape Verde" }, - "country_cw": { "type": "string", "default": "Curaçao" }, - "country_ky": { "type": "string", "default": "Cayman Islands" }, - "country_cf": { "type": "string", "default": "Central African Republic" }, - "country_td": { "type": "string", "default": "Chad" }, - "country_cl": { "type": "string", "default": "Chile" }, - "country_cn": { "type": "string", "default": "China" }, - "country_cx": { "type": "string", "default": "Christmas Island" }, - "country_cc": { "type": "string", "default": "Cocos (Keeling) Islands" }, - "country_co": { "type": "string", "default": "Colombia" }, - "country_km": { "type": "string", "default": "Comoros" }, - "country_cg": { "type": "string", "default": "Congo" }, - "country_cd": { "type": "string", "default": "Congo, the Democratic Republic of the" }, - "country_ck": { "type": "string", "default": "Cook Islands" }, - "country_cr": { "type": "string", "default": "Costa Rica" }, - "country_ci": { "type": "string", "default": "Cote DIvoire" }, - "country_hr": { "type": "string", "default": "Croatia" }, - "country_cu": { "type": "string", "default": "Cuba" }, - "country_cy": { "type": "string", "default": "Cyprus" }, - "country_cz": { "type": "string", "default": "Czech Republic" }, - "country_dk": { "type": "string", "default": "Denmark" }, - "country_dj": { "type": "string", "default": "Djibouti" }, - "country_dm": { "type": "string", "default": "Dominica" }, - "country_do": { "type": "string", "default": "Dominican Republic" }, - "country_ec": { "type": "string", "default": "Ecuador" }, - "country_eg": { "type": "string", "default": "Egypt" }, - "country_sv": { "type": "string", "default": "El Salvador" }, - "country_sx": { "type": "string", "default": "Sint Maarten" }, - "country_gq": { "type": "string", "default": "Equatorial Guinea" }, - "country_er": { "type": "string", "default": "Eritrea" }, - "country_ee": { "type": "string", "default": "Estonia" }, - "country_et": { "type": "string", "default": "Ethiopia" }, - "country_fk": { "type": "string", "default": "Falkland Islands (Malvinas)" }, - "country_fo": { "type": "string", "default": "Faroe Islands" }, - "country_fj": { "type": "string", "default": "Fiji" }, - "country_fi": { "type": "string", "default": "Finland" }, - "country_fr": { "type": "string", "default": "France" }, - "country_gf": { "type": "string", "default": "French Guiana" }, - "country_pf": { "type": "string", "default": "French Polynesia" }, - "country_tf": { "type": "string", "default": "French Southern Territories" }, - "country_ga": { "type": "string", "default": "Gabon" }, - "country_gm": { "type": "string", "default": "Gambia" }, - "country_ge": { "type": "string", "default": "Georgia" }, - "country_de": { "type": "string", "default": "Germany" }, - "country_de_region_bw": { "type": "string", "default": "Baden-Wuerttemberg" }, - "country_de_region_by": { "type": "string", "default": "Bayern" }, - "country_de_region_be": { "type": "string", "default": "Berlin" }, - "country_de_region_bb": { "type": "string", "default": "Brandenburg" }, - "country_de_region_hb": { "type": "string", "default": "Bremen" }, - "country_de_region_hh": { "type": "string", "default": "Hamburg" }, - "country_de_region_he": { "type": "string", "default": "Hessen" }, - "country_de_region_mv": { "type": "string", "default": "Mecklenburg-Vorpommern" }, - "country_de_region_ni": { "type": "string", "default": "Niedersachsen" }, - "country_de_region_nw": { "type": "string", "default": "Nordrhein-Westfalen" }, - "country_de_region_rp": { "type": "string", "default": "Rheinland-Pfalz" }, - "country_de_region_sl": { "type": "string", "default": "Saarland" }, - "country_de_region_sn": { "type": "string", "default": "Sachsen" }, - "country_de_region_st": { "type": "string", "default": "Sachsen-Anhalt" }, - "country_de_region_sh": { "type": "string", "default": "Schleswig-Holstein" }, - "country_de_region_th": { "type": "string", "default": "Thueringen" }, - "country_gh": { "type": "string", "default": "Ghana" }, - "country_gi": { "type": "string", "default": "Gibraltar" }, - "country_gr": { "type": "string", "default": "Greece" }, - "country_gl": { "type": "string", "default": "Greenland" }, - "country_gd": { "type": "string", "default": "Grenada" }, - "country_gp": { "type": "string", "default": "Guadeloupe" }, - "country_gu": { "type": "string", "default": "Guam" }, - "country_gt": { "type": "string", "default": "Guatemala" }, - "country_gg": { "type": "string", "default": "Guernsey" }, - "country_gn": { "type": "string", "default": "Guinea" }, - "country_gw": { "type": "string", "default": "Guinea-bissau" }, - "country_gy": { "type": "string", "default": "Guyana" }, - "country_ht": { "type": "string", "default": "Haiti" }, - "country_hm": { "type": "string", "default": "Heard Island and McDonald Island" }, - "country_va": { "type": "string", "default": "Holy See (Vatican City State)" }, - "country_hn": { "type": "string", "default": "Honduras" }, - "country_hk": { "type": "string", "default": "Hong Kong" }, - "country_hu": { "type": "string", "default": "Hungary" }, - "country_is": { "type": "string", "default": "Iceland" }, - "country_in": { "type": "string", "default": "India" }, - "country_in_region_an": { "type": "string", "default": "Andaman and Nicobar Islands" }, - "country_in_region_ap": { "type": "string", "default": "Andhra Pradesh" }, - "country_in_region_ar": { "type": "string", "default": "Arunachal Pradesh" }, - "country_in_region_as": { "type": "string", "default": "Assam" }, - "country_in_region_br": { "type": "string", "default": "Bihar" }, - "country_in_region_ch": { "type": "string", "default": "Chandigarh" }, - "country_in_region_ct": { "type": "string", "default": "Chhattisgarh" }, - "country_in_region_dn": { "type": "string", "default": "Dadra and Nagar Haveli" }, - "country_in_region_dd": { "type": "string", "default": "Daman and Diu" }, - "country_in_region_dl": { "type": "string", "default": "Delhi" }, - "country_in_region_ga": { "type": "string", "default": "Goa" }, - "country_in_region_gj": { "type": "string", "default": "Gujarat" }, - "country_in_region_hr": { "type": "string", "default": "Haryana" }, - "country_in_region_hp": { "type": "string", "default": "Himachal Pradesh" }, - "country_in_region_jk": { "type": "string", "default": "Jammu and Kashmir" }, - "country_in_region_jh": { "type": "string", "default": "Jharkhand" }, - "country_in_region_ka": { "type": "string", "default": "Karnataka" }, - "country_in_region_kl": { "type": "string", "default": "Kerala" }, - "country_in_region_ld": { "type": "string", "default": "Lakshadweep" }, - "country_in_region_mp": { "type": "string", "default": "Madhya Pradesh" }, - "country_in_region_mh": { "type": "string", "default": "Maharashtra" }, - "country_in_region_mn": { "type": "string", "default": "Manipur" }, - "country_in_region_ml": { "type": "string", "default": "Meghalaya" }, - "country_in_region_mz": { "type": "string", "default": "Mizoram" }, - "country_in_region_nl": { "type": "string", "default": "Nagaland" }, - "country_in_region_or": { "type": "string", "default": "Odisha" }, - "country_in_region_py": { "type": "string", "default": "Puducherry" }, - "country_in_region_pb": { "type": "string", "default": "Punjab" }, - "country_in_region_rj": { "type": "string", "default": "Rajasthan" }, - "country_in_region_sk": { "type": "string", "default": "Sikkim" }, - "country_in_region_tn": { "type": "string", "default": "Tamil Nadu" }, - "country_in_region_tg": { "type": "string", "default": "Telangana" }, - "country_in_region_tr": { "type": "string", "default": "Tripura" }, - "country_in_region_ut": { "type": "string", "default": "Uttarakhand" }, - "country_in_region_up": { "type": "string", "default": "Uttar Pradesh" }, - "country_in_region_wb": { "type": "string", "default": "West Bengal" }, - "country_id": { "type": "string", "default": "Indonesia" }, - "country_ir": { "type": "string", "default": "Iran, Islamic Republic of" }, - "country_iq": { "type": "string", "default": "Iraq" }, - "country_ie": { "type": "string", "default": "Ireland" }, - "country_ie_region_cw": { "type": "string", "default": "Carlow" }, - "country_ie_region_cn": { "type": "string", "default": "Cavan" }, - "country_ie_region_ce": { "type": "string", "default": "Clare" }, - "country_ie_region_co": { "type": "string", "default": "Cork" }, - "country_ie_region_dl": { "type": "string", "default": "Donegal" }, - "country_ie_region_d": { "type": "string", "default": "Dublin" }, - "country_ie_region_g": { "type": "string", "default": "Galway" }, - "country_ie_region_ky": { "type": "string", "default": "Kerry" }, - "country_ie_region_ke": { "type": "string", "default": "Kildare" }, - "country_ie_region_kk": { "type": "string", "default": "Kilkenny" }, - "country_ie_region_ls": { "type": "string", "default": "Laois" }, - "country_ie_region_lm": { "type": "string", "default": "Leitrim" }, - "country_ie_region_lk": { "type": "string", "default": "Limerick" }, - "country_ie_region_ld": { "type": "string", "default": "Longford" }, - "country_ie_region_lh": { "type": "string", "default": "Louth" }, - "country_ie_region_mo": { "type": "string", "default": "Mayo" }, - "country_ie_region_mh": { "type": "string", "default": "Meath" }, - "country_ie_region_mn": { "type": "string", "default": "Monaghan" }, - "country_ie_region_oy": { "type": "string", "default": "Offaly" }, - "country_ie_region_rn": { "type": "string", "default": "Roscommon" }, - "country_ie_region_so": { "type": "string", "default": "Sligo" }, - "country_ie_region_ta": { "type": "string", "default": "Tipperary" }, - "country_ie_region_wd": { "type": "string", "default": "Waterford" }, - "country_ie_region_wh": { "type": "string", "default": "Westmeath" }, - "country_ie_region_wx": { "type": "string", "default": "Wexford" }, - "country_ie_region_ww": { "type": "string", "default": "Wicklow" }, - "country_im": { "type": "string", "default": "Isle of Man" }, - "country_il": { "type": "string", "default": "Israel" }, - "country_it": { "type": "string", "default": "Italy" }, - "country_jm": { "type": "string", "default": "Jamaica" }, - "country_jp": { "type": "string", "default": "Japan" }, - "country_jp_region_10": { "type": "string", "default": "Gunma" }, - "country_jp_region_11": { "type": "string", "default": "Saitama" }, - "country_jp_region_12": { "type": "string", "default": "Chiba" }, - "country_jp_region_13": { "type": "string", "default": "Tokyo" }, - "country_jp_region_14": { "type": "string", "default": "Kanagawa" }, - "country_jp_region_15": { "type": "string", "default": "Niigata" }, - "country_jp_region_16": { "type": "string", "default": "Toyama" }, - "country_jp_region_17": { "type": "string", "default": "Ishikawa" }, - "country_jp_region_18": { "type": "string", "default": "Fukui" }, - "country_jp_region_19": { "type": "string", "default": "Yamanashi" }, - "country_jp_region_20": { "type": "string", "default": "Nagano" }, - "country_jp_region_21": { "type": "string", "default": "Gifu" }, - "country_jp_region_22": { "type": "string", "default": "Shizuoka" }, - "country_jp_region_23": { "type": "string", "default": "Aichi" }, - "country_jp_region_24": { "type": "string", "default": "Mie" }, - "country_jp_region_25": { "type": "string", "default": "Shiga" }, - "country_jp_region_26": { "type": "string", "default": "Kyoto" }, - "country_jp_region_27": { "type": "string", "default": "Osaka" }, - "country_jp_region_28": { "type": "string", "default": "Hyogo" }, - "country_jp_region_29": { "type": "string", "default": "Nara" }, - "country_jp_region_30": { "type": "string", "default": "Wakayama" }, - "country_jp_region_31": { "type": "string", "default": "Tottori" }, - "country_jp_region_32": { "type": "string", "default": "Shimane" }, - "country_jp_region_33": { "type": "string", "default": "Okayama" }, - "country_jp_region_34": { "type": "string", "default": "Hiroshima" }, - "country_jp_region_35": { "type": "string", "default": "Yamaguchi" }, - "country_jp_region_36": { "type": "string", "default": "Tokushima" }, - "country_jp_region_37": { "type": "string", "default": "Kagawa" }, - "country_jp_region_38": { "type": "string", "default": "Ehime" }, - "country_jp_region_39": { "type": "string", "default": "Kochi" }, - "country_jp_region_40": { "type": "string", "default": "Fukuoka" }, - "country_jp_region_41": { "type": "string", "default": "Saga" }, - "country_jp_region_42": { "type": "string", "default": "Nagasaki" }, - "country_jp_region_43": { "type": "string", "default": "Kumamoto" }, - "country_jp_region_44": { "type": "string", "default": "Oita" }, - "country_jp_region_45": { "type": "string", "default": "Miyazaki" }, - "country_jp_region_46": { "type": "string", "default": "Kagoshima" }, - "country_jp_region_47": { "type": "string", "default": "Okinawa" }, - "country_jp_region_05": { "type": "string", "default": "Akita" }, - "country_jp_region_02": { "type": "string", "default": "Aomori" }, - "country_jp_region_07": { "type": "string", "default": "Fukushima" }, - "country_jp_region_01": { "type": "string", "default": "Hokkaido" }, - "country_jp_region_08": { "type": "string", "default": "Ibaraki" }, - "country_jp_region_03": { "type": "string", "default": "Iwate" }, - "country_jp_region_04": { "type": "string", "default": "Miyagi" }, - "country_jp_region_09": { "type": "string", "default": "Tochigi" }, - "country_jp_region_06": { "type": "string", "default": "Yamagata" }, - "country_je": { "type": "string", "default": "Jersey" }, - "country_jo": { "type": "string", "default": "Jordan" }, - "country_kz": { "type": "string", "default": "Kazakhstan" }, - "country_ke": { "type": "string", "default": "Kenya" }, - "country_ki": { "type": "string", "default": "Kiribati" }, - "country_kp": { "type": "string", "default": "Korea, Democratic People's Republic of" }, - "country_kr": { "type": "string", "default": "Korea, Republic of" }, - "country_kw": { "type": "string", "default": "Kuwait" }, - "country_kg": { "type": "string", "default": "Kyrgyzstan" }, - "country_la": { "type": "string", "default": "Lao People's Democratic Republic" }, - "country_lv": { "type": "string", "default": "Latvia" }, - "country_lb": { "type": "string", "default": "Lebanon" }, - "country_ls": { "type": "string", "default": "Lesotho" }, - "country_lr": { "type": "string", "default": "Liberia" }, - "country_ly": { "type": "string", "default": "Libya" }, - "country_li": { "type": "string", "default": "Liechtenstein" }, - "country_lt": { "type": "string", "default": "Lithuania" }, - "country_lu": { "type": "string", "default": "Luxembourg" }, - "country_mo": { - "type": "string", - "default": "Macau Special Administrative Region of China" - }, - "country_mk": { "type": "string", "default": "North Macedonia" }, - "country_mg": { "type": "string", "default": "Madagascar" }, - "country_mw": { "type": "string", "default": "Malawi" }, - "country_my": { "type": "string", "default": "Malaysia" }, - "country_mv": { "type": "string", "default": "Maldives" }, - "country_ml": { "type": "string", "default": "Mali" }, - "country_mt": { "type": "string", "default": "Malta" }, - "country_mh": { "type": "string", "default": "Marshall Islands" }, - "country_mq": { "type": "string", "default": "Martinique" }, - "country_mr": { "type": "string", "default": "Mauritania" }, - "country_mu": { "type": "string", "default": "Mauritius" }, - "country_yt": { "type": "string", "default": "Mayotte" }, - "country_mx": { "type": "string", "default": "Mexico" }, - "country_fm": { "type": "string", "default": "Micronesia, Federated States of" }, - "country_md": { "type": "string", "default": "Moldova, Republic of" }, - "country_mc": { "type": "string", "default": "Monaco" }, - "country_mn": { "type": "string", "default": "Mongolia" }, - "country_me": { "type": "string", "default": "Montenegro" }, - "country_ms": { "type": "string", "default": "Montserrat" }, - "country_ma": { "type": "string", "default": "Morocco" }, - "country_mz": { "type": "string", "default": "Mozambique" }, - "country_mm": { "type": "string", "default": "Myanmar" }, - "country_na": { "type": "string", "default": "Namibia" }, - "country_nr": { "type": "string", "default": "Nauru" }, - "country_np": { "type": "string", "default": "Nepal" }, - "country_nl": { "type": "string", "default": "Netherlands" }, - "country_nc": { "type": "string", "default": "New Caledonia" }, - "country_nz": { "type": "string", "default": "New Zealand" }, - "country_ni": { "type": "string", "default": "Nicaragua" }, - "country_ne": { "type": "string", "default": "Niger" }, - "country_ng": { "type": "string", "default": "Nigeria" }, - "country_nu": { "type": "string", "default": "Niue" }, - "country_nf": { "type": "string", "default": "Norfolk Island" }, - "country_mp": { "type": "string", "default": "Northern Mariana Islands" }, - "country_no": { "type": "string", "default": "Norway" }, - "country_no_region_10": { "type": "string", "default": "Vest-Agder" }, - "country_no_region_11": { "type": "string", "default": "Rogaland" }, - "country_no_region_12": { "type": "string", "default": "Hordaland" }, - "country_no_region_14": { "type": "string", "default": "Sogn og Fjordane" }, - "country_no_region_15": { "type": "string", "default": "Møre og Romsdal" }, - "country_no_region_16": { "type": "string", "default": "Sør-Trøndelag" }, - "country_no_region_17": { "type": "string", "default": "Nord-Trøndelag" }, - "country_no_region_18": { "type": "string", "default": "Nordland" }, - "country_no_region_19": { "type": "string", "default": "Troms" }, - "country_no_region_20": { "type": "string", "default": "Finnmark" }, - "country_no_region_30": { "type": "string", "default": "Viken" }, - "country_no_region_34": { "type": "string", "default": "Innlandet" }, - "country_no_region_38": { "type": "string", "default": "Vestfold og Telemark" }, - "country_no_region_42": { "type": "string", "default": "Agder" }, - "country_no_region_46": { "type": "string", "default": "Vestland" }, - "country_no_region_50": { "type": "string", "default": "Trøndelag" }, - "country_no_region_54": { "type": "string", "default": "Troms og Finnmark" }, - "country_no_region_01": { "type": "string", "default": "Østfold" }, - "country_no_region_02": { "type": "string", "default": "Akershus" }, - "country_no_region_03": { "type": "string", "default": "Oslo" }, - "country_no_region_04": { "type": "string", "default": "Hedmark" }, - "country_no_region_05": { "type": "string", "default": "Oppland" }, - "country_no_region_06": { "type": "string", "default": "Buskerud" }, - "country_no_region_07": { "type": "string", "default": "Vestfold" }, - "country_no_region_08": { "type": "string", "default": "Telemark" }, - "country_no_region_09": { "type": "string", "default": "Aust-Agder" }, - "country_om": { "type": "string", "default": "Oman" }, - "country_pk": { "type": "string", "default": "Pakistan" }, - "country_pw": { "type": "string", "default": "Palau" }, - "country_ps": { "type": "string", "default": "Palestine, State of" }, - "country_pa": { "type": "string", "default": "Panama" }, - "country_pg": { "type": "string", "default": "Papua New Guinea" }, - "country_py": { "type": "string", "default": "Paraguay" }, - "country_pe": { "type": "string", "default": "Peru" }, - "country_ph": { "type": "string", "default": "Philippines" }, - "country_pn": { "type": "string", "default": "Pitcairn" }, - "country_pl": { "type": "string", "default": "Poland" }, - "country_pt": { "type": "string", "default": "Portugal" }, - "country_pr": { "type": "string", "default": "Puerto Rico" }, - "country_qa": { "type": "string", "default": "Qatar" }, - "country_re": { "type": "string", "default": "Réunion" }, - "country_ro": { "type": "string", "default": "Romania" }, - "country_ru": { "type": "string", "default": "Russian Federation" }, - "country_rw": { "type": "string", "default": "Rwanda" }, - "country_bl": { "type": "string", "default": "Saint Barthélemy" }, - "country_sh": { - "type": "string", - "default": "Saint Helena, Ascension and Tristan da Cunha" - }, - "country_kn": { "type": "string", "default": "Saint Kitts and Nevis" }, - "country_lc": { "type": "string", "default": "Saint Lucia" }, - "country_mf": { "type": "string", "default": "Saint Martin" }, - "country_pm": { "type": "string", "default": "Saint Pierre and Miquelon" }, - "country_vc": { "type": "string", "default": "Saint Vincent and the Grenadines" }, - "country_ws": { "type": "string", "default": "Samoa" }, - "country_sm": { "type": "string", "default": "San Marino" }, - "country_ss": { "type": "string", "default": "South Sudan" }, - "country_st": { "type": "string", "default": "Sao Tome and Principe" }, - "country_sa": { "type": "string", "default": "Saudi Arabia" }, - "country_sn": { "type": "string", "default": "Senegal" }, - "country_rs": { "type": "string", "default": "Serbia" }, - "country_sc": { "type": "string", "default": "Seychelles" }, - "country_sl": { "type": "string", "default": "Sierra Leone" }, - "country_sg": { "type": "string", "default": "Singapore" }, - "country_sk": { "type": "string", "default": "Slovakia" }, - "country_si": { "type": "string", "default": "Slovenia" }, - "country_sb": { "type": "string", "default": "Solomon Islands" }, - "country_so": { "type": "string", "default": "Somalia" }, - "country_za": { "type": "string", "default": "South Africa" }, - "country_gs": { - "type": "string", - "default": "South Georgia and the South Sandwich Islands" - }, - "country_es": { "type": "string", "default": "Spain" }, - "country_es_region_a coruna": { "type": "string", "default": "A Coruna" }, - "country_es_region_alava": { "type": "string", "default": "Alava" }, - "country_es_region_albacete": { "type": "string", "default": "Albacete" }, - "country_es_region_alicante": { "type": "string", "default": "Alicante" }, - "country_es_region_almeria": { "type": "string", "default": "Almeria" }, - "country_es_region_asturias": { "type": "string", "default": "Asturias" }, - "country_es_region_avila": { "type": "string", "default": "Avila" }, - "country_es_region_badajoz": { "type": "string", "default": "Badajoz" }, - "country_es_region_baleares": { "type": "string", "default": "Baleares" }, - "country_es_region_barcelona": { "type": "string", "default": "Barcelona" }, - "country_es_region_burgos": { "type": "string", "default": "Burgos" }, - "country_es_region_caceres": { "type": "string", "default": "Caceres" }, - "country_es_region_cadiz": { "type": "string", "default": "Cadiz" }, - "country_es_region_cn": { "type": "string", "default": "Canarias" }, - "country_es_region_cantabria": { "type": "string", "default": "Cantabria" }, - "country_es_region_castellon": { "type": "string", "default": "Castellon" }, - "country_es_region_ceuta": { "type": "string", "default": "Ceuta" }, - "country_es_region_ciudad real": { "type": "string", "default": "Ciudad Real" }, - "country_es_region_cordoba": { "type": "string", "default": "Cordoba" }, - "country_es_region_cuenca": { "type": "string", "default": "Cuenca" }, - "country_es_region_gipuzkoa": { "type": "string", "default": "Gipuzkoa" }, - "country_es_region_girona": { "type": "string", "default": "Girona" }, - "country_es_region_granada": { "type": "string", "default": "Granada" }, - "country_es_region_guadalajara": { "type": "string", "default": "Guadalajara" }, - "country_es_region_guipuzcoa": { "type": "string", "default": "Guipuzcoa" }, - "country_es_region_huelva": { "type": "string", "default": "Huelva" }, - "country_es_region_huesca": { "type": "string", "default": "Huesca" }, - "country_es_region_jaen": { "type": "string", "default": "Jaen" }, - "country_es_region_la rioja": { "type": "string", "default": "La Rioja" }, - "country_es_region_las palmas": { "type": "string", "default": "Las Palmas" }, - "country_es_region_leon": { "type": "string", "default": "Leon" }, - "country_es_region_lleida": { "type": "string", "default": "Lleida" }, - "country_es_region_lugo": { "type": "string", "default": "Lugo" }, - "country_es_region_madrid": { "type": "string", "default": "Madrid" }, - "country_es_region_malaga": { "type": "string", "default": "Malaga" }, - "country_es_region_melilla": { "type": "string", "default": "Melilla" }, - "country_es_region_murcia": { "type": "string", "default": "Murcia" }, - "country_es_region_navarra": { "type": "string", "default": "Navarra" }, - "country_es_region_ourense": { "type": "string", "default": "Ourense" }, - "country_es_region_palencia": { "type": "string", "default": "Palencia" }, - "country_es_region_pontevedra": { "type": "string", "default": "Pontevedra" }, - "country_es_region_salamanca": { "type": "string", "default": "Salamanca" }, - "country_es_region_santa cruz de tenerife": { - "type": "string", - "default": "Santa Cruz de Tenerife" - }, - "country_es_region_segovia": { "type": "string", "default": "Segovia" }, - "country_es_region_sevilla": { "type": "string", "default": "Sevilla" }, - "country_es_region_soria": { "type": "string", "default": "Soria" }, - "country_es_region_tarragona": { "type": "string", "default": "Tarragona" }, - "country_es_region_teruel": { "type": "string", "default": "Teruel" }, - "country_es_region_toledo": { "type": "string", "default": "Toledo" }, - "country_es_region_valencia": { "type": "string", "default": "Valencia" }, - "country_es_region_valladolid": { "type": "string", "default": "Valladolid" }, - "country_es_region_vizcaya": { "type": "string", "default": "Biscay" }, - "country_es_region_zamora": { "type": "string", "default": "Zamora" }, - "country_es_region_zaragoza": { "type": "string", "default": "Zaragoza" }, - "country_lk": { "type": "string", "default": "Sri Lanka" }, - "country_sd": { "type": "string", "default": "Sudan" }, - "country_sr": { "type": "string", "default": "Suriname" }, - "country_sj": { "type": "string", "default": "Svalbard and Jan Mayen" }, - "country_sz": { "type": "string", "default": "Eswatini" }, - "country_se": { "type": "string", "default": "Sweden" }, - "country_ch": { "type": "string", "default": "Switzerland" }, - "country_ch_region_ag": { "type": "string", "default": "Aargau" }, - "country_ch_region_ar": { "type": "string", "default": "Appenzell Ausserrhoden" }, - "country_ch_region_ai": { "type": "string", "default": "Appenzell Innerrhoden" }, - "country_ch_region_bl": { "type": "string", "default": "Basel-Landschaft" }, - "country_ch_region_bs": { "type": "string", "default": "Basel-Stadt" }, - "country_ch_region_be": { "type": "string", "default": "Bern" }, - "country_ch_region_fr": { "type": "string", "default": "Freiburg" }, - "country_ch_region_ge": { "type": "string", "default": "Genf" }, - "country_ch_region_gl": { "type": "string", "default": "Glarus" }, - "country_ch_region_gr": { "type": "string", "default": "Graubuenden" }, - "country_ch_region_ju": { "type": "string", "default": "Jura" }, - "country_ch_region_lu": { "type": "string", "default": "Luzern" }, - "country_ch_region_ne": { "type": "string", "default": "Neuenburg" }, - "country_ch_region_nw": { "type": "string", "default": "Nidwalden" }, - "country_ch_region_ow": { "type": "string", "default": "Obwalden" }, - "country_ch_region_sh": { "type": "string", "default": "Schaffhausen" }, - "country_ch_region_sz": { "type": "string", "default": "Schwyz" }, - "country_ch_region_so": { "type": "string", "default": "Solothurn" }, - "country_ch_region_sg": { "type": "string", "default": "St. Gallen" }, - "country_ch_region_ti": { "type": "string", "default": "Tessin" }, - "country_ch_region_tg": { "type": "string", "default": "Thurgau" }, - "country_ch_region_ur": { "type": "string", "default": "Uri" }, - "country_ch_region_vs": { "type": "string", "default": "Valais" }, - "country_ch_region_vd": { "type": "string", "default": "Vaud" }, - "country_ch_region_zh": { "type": "string", "default": "Zurich" }, - "country_ch_region_zg": { "type": "string", "default": "Zug" }, - "country_sy": { "type": "string", "default": "Syrian Arab Republic" }, - "country_tw": { "type": "string", "default": "Taiwan" }, - "country_tj": { "type": "string", "default": "Tajikistan" }, - "country_tz": { "type": "string", "default": "Tanzania, United Republic of" }, - "country_th": { "type": "string", "default": "Thailand" }, - "country_tl": { "type": "string", "default": "Timor-Leste" }, - "country_tg": { "type": "string", "default": "Togo" }, - "country_tk": { "type": "string", "default": "Tokelau" }, - "country_to": { "type": "string", "default": "Tonga" }, - "country_tt": { "type": "string", "default": "Trinidad and Tobago" }, - "country_tn": { "type": "string", "default": "Tunisia" }, - "country_tr": { "type": "string", "default": "Turkey" }, - "country_tm": { "type": "string", "default": "Turkmenistan" }, - "country_tc": { "type": "string", "default": "Turks and Caicos Islands" }, - "country_tv": { "type": "string", "default": "Tuvalu" }, - "country_ug": { "type": "string", "default": "Uganda" }, - "country_ua": { "type": "string", "default": "Ukraine" }, - "country_ae": { "type": "string", "default": "United Arab Emirates" }, - "country_gb": { "type": "string", "default": "United Kingdom" }, - "country_us": { "type": "string", "default": "United States" }, - "country_us_region_al": { "type": "string", "default": "Alabama" }, - "country_us_region_ak": { "type": "string", "default": "Alaska" }, - "country_us_region_as": { "type": "string", "default": "American Samoa" }, - "country_us_region_az": { "type": "string", "default": "Arizona" }, - "country_us_region_ar": { "type": "string", "default": "Arkansas" }, - "country_us_region_af": { "type": "string", "default": "Armed Forces Africa" }, - "country_us_region_aa": { "type": "string", "default": "Armed Forces Americas" }, - "country_us_region_ac": { "type": "string", "default": "Armed Forces Canada" }, - "country_us_region_ae": { "type": "string", "default": "Armed Forces Europe" }, - "country_us_region_am": { "type": "string", "default": "Armed Forces Middle East" }, - "country_us_region_ap": { "type": "string", "default": "Armed Forces Pacific" }, - "country_us_region_ca": { "type": "string", "default": "California" }, - "country_us_region_co": { "type": "string", "default": "Colorado" }, - "country_us_region_ct": { "type": "string", "default": "Connecticut" }, - "country_us_region_de": { "type": "string", "default": "Delaware" }, - "country_us_region_dc": { "type": "string", "default": "Washington DC" }, - "country_us_region_fm": { "type": "string", "default": "Federated States Of Micronesia" }, - "country_us_region_fl": { "type": "string", "default": "Florida" }, - "country_us_region_ga": { "type": "string", "default": "Georgia" }, - "country_us_region_gu": { "type": "string", "default": "Guam" }, - "country_us_region_hi": { "type": "string", "default": "Hawaii" }, - "country_us_region_id": { "type": "string", "default": "Idaho" }, - "country_us_region_il": { "type": "string", "default": "Illinois" }, - "country_us_region_in": { "type": "string", "default": "Indiana" }, - "country_us_region_ia": { "type": "string", "default": "Iowa" }, - "country_us_region_ks": { "type": "string", "default": "Kansas" }, - "country_us_region_ky": { "type": "string", "default": "Kentucky" }, - "country_us_region_la": { "type": "string", "default": "Louisiana" }, - "country_us_region_me": { "type": "string", "default": "Maine" }, - "country_us_region_mh": { "type": "string", "default": "Marshall Islands" }, - "country_us_region_md": { "type": "string", "default": "Maryland" }, - "country_us_region_ma": { "type": "string", "default": "Massachusetts" }, - "country_us_region_mi": { "type": "string", "default": "Michigan" }, - "country_us_region_mn": { "type": "string", "default": "Minnesota" }, - "country_us_region_ms": { "type": "string", "default": "Mississippi" }, - "country_us_region_mo": { "type": "string", "default": "Missouri" }, - "country_us_region_mt": { "type": "string", "default": "Montana" }, - "country_us_region_ne": { "type": "string", "default": "Nebraska" }, - "country_us_region_nv": { "type": "string", "default": "Nevada" }, - "country_us_region_nh": { "type": "string", "default": "New Hampshire" }, - "country_us_region_nj": { "type": "string", "default": "New Jersey" }, - "country_us_region_nm": { "type": "string", "default": "New Mexico" }, - "country_us_region_ny": { "type": "string", "default": "New York" }, - "country_us_region_nc": { "type": "string", "default": "North Carolina" }, - "country_us_region_nd": { "type": "string", "default": "North Dakota" }, - "country_us_region_mp": { "type": "string", "default": "Northern Mariana Islands" }, - "country_us_region_oh": { "type": "string", "default": "Ohio" }, - "country_us_region_ok": { "type": "string", "default": "Oklahoma" }, - "country_us_region_or": { "type": "string", "default": "Oregon" }, - "country_us_region_pa": { "type": "string", "default": "Pennsylvania" }, - "country_us_region_pr": { "type": "string", "default": "Puerto Rico" }, - "country_us_region_ri": { "type": "string", "default": "Rhode Island" }, - "country_us_region_sc": { "type": "string", "default": "South Carolina" }, - "country_us_region_sd": { "type": "string", "default": "South Dakota" }, - "country_us_region_tn": { "type": "string", "default": "Tennessee" }, - "country_us_region_tx": { "type": "string", "default": "Texas" }, - "country_us_region_ut": { "type": "string", "default": "Utah" }, - "country_us_region_vt": { "type": "string", "default": "Vermont" }, - "country_us_region_vi": { "type": "string", "default": "Virgin Islands" }, - "country_us_region_va": { "type": "string", "default": "Virginia" }, - "country_us_region_wa": { "type": "string", "default": "Washington" }, - "country_us_region_wv": { "type": "string", "default": "West Virginia" }, - "country_us_region_wi": { "type": "string", "default": "Wisconsin" }, - "country_us_region_wy": { "type": "string", "default": "Wyoming" }, - "country_um": { "type": "string", "default": "United States Minor Outlying Islands" }, - "country_uy": { "type": "string", "default": "Uruguay" }, - "country_uz": { "type": "string", "default": "Uzbekistan" }, - "country_vu": { "type": "string", "default": "Vanuatu" }, - "country_ve": { "type": "string", "default": "Venezuela" }, - "country_vn": { "type": "string", "default": "Vietnam" }, - "country_vg": { "type": "string", "default": "Virgin Islands, British" }, - "country_vi": { "type": "string", "default": "Virgin Islands, U.S." }, - "country_wf": { "type": "string", "default": "Wallis and Futuna Islands" }, - "country_eh": { "type": "string", "default": "Western Sahara" }, - "country_ye": { "type": "string", "default": "Yemen" }, - "country_zm": { "type": "string", "default": "Zambia" }, - "country_zw": { "type": "string", "default": "Zimbabwe" } - }, - "required": [ - "address-name", - "first-name", - "last-name", - "company", - "phone", - "address-one", - "address-two", - "city", - "postal-code", - "country", - "region", - "timestamps", - "delete", - "create", - "spinner", - "country_af", - "country_ax", - "country_al", - "country_dz", - "country_as", - "country_ad", - "country_ao", - "country_ai", - "country_aq", - "country_ag", - "country_ar", - "country_am", - "country_aw", - "country_au", - "country_au_region_act", - "country_au_region_nsw", - "country_au_region_nt", - "country_au_region_qld", - "country_au_region_sa", - "country_au_region_tas", - "country_au_region_vic", - "country_au_region_wa", - "country_at", - "country_at_region_bl", - "country_at_region_kn", - "country_at_region_no", - "country_at_region_oo", - "country_at_region_sb", - "country_at_region_st", - "country_at_region_ti", - "country_at_region_vb", - "country_at_region_wi", - "country_az", - "country_bs", - "country_bh", - "country_bd", - "country_bb", - "country_by", - "country_be", - "country_bz", - "country_bj", - "country_bm", - "country_bt", - "country_bo", - "country_bq", - "country_bq_region_bo", - "country_bq_region_sa", - "country_bq_region_se", - "country_ba", - "country_bw", - "country_bv", - "country_br", - "country_io", - "country_bn", - "country_bg", - "country_bf", - "country_bi", - "country_kh", - "country_cm", - "country_ca", - "country_ca_region_ab", - "country_ca_region_bc", - "country_ca_region_mb", - "country_ca_region_nb", - "country_ca_region_nl", - "country_ca_region_nt", - "country_ca_region_ns", - "country_ca_region_nu", - "country_ca_region_on", - "country_ca_region_pe", - "country_ca_region_qc", - "country_ca_region_sk", - "country_ca_region_yt", - "country_cv", - "country_cw", - "country_ky", - "country_cf", - "country_td", - "country_cl", - "country_cn", - "country_cx", - "country_cc", - "country_co", - "country_km", - "country_cg", - "country_cd", - "country_ck", - "country_cr", - "country_ci", - "country_hr", - "country_cu", - "country_cy", - "country_cz", - "country_dk", - "country_dj", - "country_dm", - "country_do", - "country_ec", - "country_eg", - "country_sv", - "country_sx", - "country_gq", - "country_er", - "country_ee", - "country_et", - "country_fk", - "country_fo", - "country_fj", - "country_fi", - "country_fr", - "country_gf", - "country_pf", - "country_tf", - "country_ga", - "country_gm", - "country_ge", - "country_de", - "country_de_region_bw", - "country_de_region_by", - "country_de_region_be", - "country_de_region_bb", - "country_de_region_hb", - "country_de_region_hh", - "country_de_region_he", - "country_de_region_mv", - "country_de_region_ni", - "country_de_region_nw", - "country_de_region_rp", - "country_de_region_sl", - "country_de_region_sn", - "country_de_region_st", - "country_de_region_sh", - "country_de_region_th", - "country_gh", - "country_gi", - "country_gr", - "country_gl", - "country_gd", - "country_gp", - "country_gu", - "country_gt", - "country_gg", - "country_gn", - "country_gw", - "country_gy", - "country_ht", - "country_hm", - "country_va", - "country_hn", - "country_hk", - "country_hu", - "country_is", - "country_in", - "country_in_region_an", - "country_in_region_ap", - "country_in_region_ar", - "country_in_region_as", - "country_in_region_br", - "country_in_region_ch", - "country_in_region_ct", - "country_in_region_dn", - "country_in_region_dd", - "country_in_region_dl", - "country_in_region_ga", - "country_in_region_gj", - "country_in_region_hr", - "country_in_region_hp", - "country_in_region_jk", - "country_in_region_jh", - "country_in_region_ka", - "country_in_region_kl", - "country_in_region_ld", - "country_in_region_mp", - "country_in_region_mh", - "country_in_region_mn", - "country_in_region_ml", - "country_in_region_mz", - "country_in_region_nl", - "country_in_region_or", - "country_in_region_py", - "country_in_region_pb", - "country_in_region_rj", - "country_in_region_sk", - "country_in_region_tn", - "country_in_region_tg", - "country_in_region_tr", - "country_in_region_ut", - "country_in_region_up", - "country_in_region_wb", - "country_id", - "country_ir", - "country_iq", - "country_ie", - "country_ie_region_cw", - "country_ie_region_cn", - "country_ie_region_ce", - "country_ie_region_co", - "country_ie_region_dl", - "country_ie_region_d", - "country_ie_region_g", - "country_ie_region_ky", - "country_ie_region_ke", - "country_ie_region_kk", - "country_ie_region_ls", - "country_ie_region_lm", - "country_ie_region_lk", - "country_ie_region_ld", - "country_ie_region_lh", - "country_ie_region_mo", - "country_ie_region_mh", - "country_ie_region_mn", - "country_ie_region_oy", - "country_ie_region_rn", - "country_ie_region_so", - "country_ie_region_ta", - "country_ie_region_wd", - "country_ie_region_wh", - "country_ie_region_wx", - "country_ie_region_ww", - "country_im", - "country_il", - "country_it", - "country_jm", - "country_jp", - "country_jp_region_10", - "country_jp_region_11", - "country_jp_region_12", - "country_jp_region_13", - "country_jp_region_14", - "country_jp_region_15", - "country_jp_region_16", - "country_jp_region_17", - "country_jp_region_18", - "country_jp_region_19", - "country_jp_region_20", - "country_jp_region_21", - "country_jp_region_22", - "country_jp_region_23", - "country_jp_region_24", - "country_jp_region_25", - "country_jp_region_26", - "country_jp_region_27", - "country_jp_region_28", - "country_jp_region_29", - "country_jp_region_30", - "country_jp_region_31", - "country_jp_region_32", - "country_jp_region_33", - "country_jp_region_34", - "country_jp_region_35", - "country_jp_region_36", - "country_jp_region_37", - "country_jp_region_38", - "country_jp_region_39", - "country_jp_region_40", - "country_jp_region_41", - "country_jp_region_42", - "country_jp_region_43", - "country_jp_region_44", - "country_jp_region_45", - "country_jp_region_46", - "country_jp_region_47", - "country_jp_region_05", - "country_jp_region_02", - "country_jp_region_07", - "country_jp_region_01", - "country_jp_region_08", - "country_jp_region_03", - "country_jp_region_04", - "country_jp_region_09", - "country_jp_region_06", - "country_je", - "country_jo", - "country_kz", - "country_ke", - "country_ki", - "country_kp", - "country_kr", - "country_kw", - "country_kg", - "country_la", - "country_lv", - "country_lb", - "country_ls", - "country_lr", - "country_ly", - "country_li", - "country_lt", - "country_lu", - "country_mo", - "country_mk", - "country_mg", - "country_mw", - "country_my", - "country_mv", - "country_ml", - "country_mt", - "country_mh", - "country_mq", - "country_mr", - "country_mu", - "country_yt", - "country_mx", - "country_fm", - "country_md", - "country_mc", - "country_mn", - "country_me", - "country_ms", - "country_ma", - "country_mz", - "country_mm", - "country_na", - "country_nr", - "country_np", - "country_nl", - "country_nc", - "country_nz", - "country_ni", - "country_ne", - "country_ng", - "country_nu", - "country_nf", - "country_mp", - "country_no", - "country_no_region_10", - "country_no_region_11", - "country_no_region_12", - "country_no_region_14", - "country_no_region_15", - "country_no_region_16", - "country_no_region_17", - "country_no_region_18", - "country_no_region_19", - "country_no_region_20", - "country_no_region_30", - "country_no_region_34", - "country_no_region_38", - "country_no_region_42", - "country_no_region_46", - "country_no_region_50", - "country_no_region_54", - "country_no_region_01", - "country_no_region_02", - "country_no_region_03", - "country_no_region_04", - "country_no_region_05", - "country_no_region_06", - "country_no_region_07", - "country_no_region_08", - "country_no_region_09", - "country_om", - "country_pk", - "country_pw", - "country_ps", - "country_pa", - "country_pg", - "country_py", - "country_pe", - "country_ph", - "country_pn", - "country_pl", - "country_pt", - "country_pr", - "country_qa", - "country_re", - "country_ro", - "country_ru", - "country_rw", - "country_bl", - "country_sh", - "country_kn", - "country_lc", - "country_mf", - "country_pm", - "country_vc", - "country_ws", - "country_sm", - "country_ss", - "country_st", - "country_sa", - "country_sn", - "country_rs", - "country_sc", - "country_sl", - "country_sg", - "country_sk", - "country_si", - "country_sb", - "country_so", - "country_za", - "country_gs", - "country_es", - "country_es_region_a coruna", - "country_es_region_alava", - "country_es_region_albacete", - "country_es_region_alicante", - "country_es_region_almeria", - "country_es_region_asturias", - "country_es_region_avila", - "country_es_region_badajoz", - "country_es_region_baleares", - "country_es_region_barcelona", - "country_es_region_burgos", - "country_es_region_caceres", - "country_es_region_cadiz", - "country_es_region_cn", - "country_es_region_cantabria", - "country_es_region_castellon", - "country_es_region_ceuta", - "country_es_region_ciudad real", - "country_es_region_cordoba", - "country_es_region_cuenca", - "country_es_region_gipuzkoa", - "country_es_region_girona", - "country_es_region_granada", - "country_es_region_guadalajara", - "country_es_region_guipuzcoa", - "country_es_region_huelva", - "country_es_region_huesca", - "country_es_region_jaen", - "country_es_region_la rioja", - "country_es_region_las palmas", - "country_es_region_leon", - "country_es_region_lleida", - "country_es_region_lugo", - "country_es_region_madrid", - "country_es_region_malaga", - "country_es_region_melilla", - "country_es_region_murcia", - "country_es_region_navarra", - "country_es_region_ourense", - "country_es_region_palencia", - "country_es_region_pontevedra", - "country_es_region_salamanca", - "country_es_region_santa cruz de tenerife", - "country_es_region_segovia", - "country_es_region_sevilla", - "country_es_region_soria", - "country_es_region_tarragona", - "country_es_region_teruel", - "country_es_region_toledo", - "country_es_region_valencia", - "country_es_region_valladolid", - "country_es_region_vizcaya", - "country_es_region_zamora", - "country_es_region_zaragoza", - "country_lk", - "country_sd", - "country_sr", - "country_sj", - "country_sz", - "country_se", - "country_ch", - "country_ch_region_ag", - "country_ch_region_ar", - "country_ch_region_ai", - "country_ch_region_bl", - "country_ch_region_bs", - "country_ch_region_be", - "country_ch_region_fr", - "country_ch_region_ge", - "country_ch_region_gl", - "country_ch_region_gr", - "country_ch_region_ju", - "country_ch_region_lu", - "country_ch_region_ne", - "country_ch_region_nw", - "country_ch_region_ow", - "country_ch_region_sh", - "country_ch_region_sz", - "country_ch_region_so", - "country_ch_region_sg", - "country_ch_region_ti", - "country_ch_region_tg", - "country_ch_region_ur", - "country_ch_region_vs", - "country_ch_region_vd", - "country_ch_region_zh", - "country_ch_region_zg", - "country_sy", - "country_tw", - "country_tj", - "country_tz", - "country_th", - "country_tl", - "country_tg", - "country_tk", - "country_to", - "country_tt", - "country_tn", - "country_tr", - "country_tm", - "country_tc", - "country_tv", - "country_ug", - "country_ua", - "country_ae", - "country_gb", - "country_us", - "country_us_region_al", - "country_us_region_ak", - "country_us_region_as", - "country_us_region_az", - "country_us_region_ar", - "country_us_region_af", - "country_us_region_aa", - "country_us_region_ac", - "country_us_region_ae", - "country_us_region_am", - "country_us_region_ap", - "country_us_region_ca", - "country_us_region_co", - "country_us_region_ct", - "country_us_region_de", - "country_us_region_dc", - "country_us_region_fm", - "country_us_region_fl", - "country_us_region_ga", - "country_us_region_gu", - "country_us_region_hi", - "country_us_region_id", - "country_us_region_il", - "country_us_region_in", - "country_us_region_ia", - "country_us_region_ks", - "country_us_region_ky", - "country_us_region_la", - "country_us_region_me", - "country_us_region_mh", - "country_us_region_md", - "country_us_region_ma", - "country_us_region_mi", - "country_us_region_mn", - "country_us_region_ms", - "country_us_region_mo", - "country_us_region_mt", - "country_us_region_ne", - "country_us_region_nv", - "country_us_region_nh", - "country_us_region_nj", - "country_us_region_nm", - "country_us_region_ny", - "country_us_region_nc", - "country_us_region_nd", - "country_us_region_mp", - "country_us_region_oh", - "country_us_region_ok", - "country_us_region_or", - "country_us_region_pa", - "country_us_region_pr", - "country_us_region_ri", - "country_us_region_sc", - "country_us_region_sd", - "country_us_region_tn", - "country_us_region_tx", - "country_us_region_ut", - "country_us_region_vt", - "country_us_region_vi", - "country_us_region_va", - "country_us_region_wa", - "country_us_region_wv", - "country_us_region_wi", - "country_us_region_wy", - "country_um", - "country_uy", - "country_uz", - "country_vu", - "country_ve", - "country_vn", - "country_vg", - "country_vi", - "country_wf", - "country_eh", - "country_ye", - "country_zm", - "country_zw" - ] - }, - "attribute-card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - }, - "attribute-form": { - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Name of this attribute. It does not have to be unique." - }, - "v8n_required": { "type": "string", "default": "Please name this attribute." }, - "v8n_too_long": { - "type": "string", - "default": "Please choose a name that is 500 characters long or less." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Value of this attribute. Attribute values are automatically HTML-escaped." - }, - "v8n_required": { - "type": "string", - "default": "Please provide a value for this attribute." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store values that are more than 1000 characters long." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "visibility": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Visibility" }, - "option_public": { "type": "string", "default": "Everyone" }, - "option_restricted": { "type": "string", "default": "Store admins" }, - "option_private": { "type": "string", "default": "Only me" }, - "helper_text": { - "type": "string", - "default": "Controls who can see this attribute. Public attributes can be shown to anyone, including customers. Private attributes are more suitable for configuration or technical details which are irrelevant to the public. Restricted attributes can only be viewed with the OAuth client that created them." - } - }, - "required": [ - "label", - "option_public", - "option_restricted", - "option_private", - "helper_text" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": ["name", "value", "visibility", "timestamps", "delete", "create", "spinner"] - }, - "customer-form": { - "additionalProperties": false, - "properties": { - "status": { - "additionalProperties": false, - "properties": { - "password_change_success": { - "type": "string", - "default": "You have successfully set a new password for {{ email }}." - }, - "close": { "type": "string", "default": "Close" } - }, - "required": ["password_change_success", "close"] - }, - "error": { - "additionalProperties": false, - "properties": { - "email_already_used": { - "type": "string", - "default": "This email is already in use. Please use a different email." - } - }, - "required": ["email_already_used"] - }, - "first-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "First name" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { "type": "string", "default": "Customer's given name, optional." }, - "v8n_too_long": { - "type": "string", - "default": "We can't store first names longer than 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "last-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last name" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { "type": "string", "default": "Customer's surname, optional." }, - "v8n_too_long": { - "type": "string", - "default": "We can't store last names longer than 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "tax-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Tax ID" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { - "type": "string", - "default": "Tax identification number for this customer, optional." - }, - "v8n_too_long": { - "type": "string", - "default": "We can't store tax IDs longer than 50 characters." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "email": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Email" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "This email will be used as the login to the Checkout and Customer Portal." - }, - "helper_text_last_login_date": { - "type": "string", - "default": "This customer's login to the Checkout and Customer Portal. Last used on {{ date, date }} at {{ date, time }}." - }, - "v8n_too_long": { - "type": "string", - "default": "We can't store emails longer than 100 characters." - }, - "v8n_invalid_email": { "type": "string", "default": "This email is invalid." }, - "v8n_required": { "type": "string", "default": "Please fill out this field." } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "helper_text_last_login_date", - "v8n_too_long", - "v8n_invalid_email", - "v8n_required" - ] - }, - "is-anonymous": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Account type" }, - "helper_text": { - "type": "string", - "default": "Guest customers dont't have access to Customer Portal. Once the account type is set, it can not be changed." - }, - "option_true": { "type": "string", "default": "Guest" }, - "option_false": { "type": "string", "default": "Registered" } - }, - "required": ["label", "helper_text", "option_true", "option_false"] - }, - "password": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Password" }, - "placeholder": { "type": "string", "default": "Required" }, - "placeholder_new": { "type": "string", "default": "Keep current password" }, - "helper_text_new": { - "type": "string", - "default": "To change this customer's password, enter a new password here. If you leave it blank, their password will remain the same." - }, - "v8n_too_long": { - "type": "string", - "default": "Please use a password that is no longer than 50 characters." - }, - "v8n_too_weak": { - "type": "string", - "default": "Please use a stronger password. To make this password stronger, make it at least 8 characters long and include a few upper and lower case letters, numbers, and special characters." - }, - "v8n_required": { "type": "string", "default": "Please fill out this field." } - }, - "required": [ - "label", - "placeholder", - "placeholder_new", - "helper_text_new", - "v8n_too_long", - "v8n_too_weak", - "v8n_required" - ] - }, - "password-old": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Old password" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "Enter the old password to set a new password. If you're a store admin, you can leave this field blank." - }, - "v8n_required": { "type": "string", "default": "Please fill out this field." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "forgot-password": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "One-time code" }, - "placeholder": { "type": "string", "default": "Not set" }, - "helper_text": { - "type": "string", - "default": "Set a one-time code that this customer can use instead of a password to sign in. Keep in mind that this code will expire after 30 minutes." - }, - "helper_text_expired_on": { - "type": "string", - "default": "A one-time code that this customer can use instead of a password to sign in. This code expired on {{ expiresOn, date }} at {{ expiresOn, time }}." - }, - "helper_text_expires_in": { - "type": "string", - "default": "A one-time code that this customer can use instead of a password to sign in. This code will expire in {{ expiresInMin, relative }}." - }, - "v8n_too_long": { - "type": "string", - "default": "Please use a code that is no longer than 50 characters." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "helper_text_expired_on", - "helper_text_expires_in", - "v8n_too_long" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "This action is irreversible. Are you sure you want to delete this customer?" - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "status", - "error", - "first-name", - "last-name", - "tax-id", - "email", - "is-anonymous", - "password", - "password-old", - "forgot-password", - "timestamps", - "delete", - "create", - "spinner" - ] - }, - "payment-method-card": { - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "delete": { "type": "string", "default": "Delete" }, - "add": { "type": "string", "default": "Add payment method" }, - "update": { "type": "string", "default": "Update payment method" }, - "delete_prompt": { - "type": "string", - "default": "This payment method will be permanently deleted from your account. Would you like to continue?" - }, - "expires": { "type": "string", "default": "Expires" }, - "last_4_digits": { "type": "string", "default": "Last 4 digits" }, - "unknown": { "type": "string", "default": "Unknown" }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "dialog_header_add": { "type": "string", "default": "Add payment method" }, - "dialog_header_update": { "type": "string", "default": "Update payment method" }, - "update-payment-method-form": { - "additionalProperties": false, - "properties": { - "status": { - "additionalProperties": false, - "properties": { - "cc_token_success": { - "type": "string", - "default": "Card details saved successfully." - }, - "close": { "type": "string", "default": "Close" } - }, - "required": ["cc_token_success", "close"] - }, - "error": { - "additionalProperties": false, - "properties": { - "cc_token_invalid": { - "type": "string", - "default": "Unfortunately, we couldn't save your card details. Please try again later or use a different card." - } - }, - "required": ["cc_token_invalid"] - }, - "template-set": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Template set" }, - "dialog": { - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "header": { "type": "string", "default": "Choose a template set" }, - "selection": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "search": { "type": "string", "default": "Search" }, - "clear": { "type": "string", "default": "Clear" }, - "pagination": { - "additionalProperties": false, - "properties": { - "search_button_text": { "type": "string", "default": "Search" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { - "type": "string", - "default": "No template sets found" - }, - "loading_error": { - "type": "string", - "default": "Unknown error" - } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": [ - "search_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "query-builder": { - "additionalProperties": false, - "properties": { - "filters": { - "additionalProperties": false, - "properties": {}, - "required": [] - }, - "add_or_clause": { "type": "string", "default": "Add OR clause" }, - "add_value": { "type": "string", "default": "Add value" }, - "code": { "type": "string", "default": "Code" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "delete": { "type": "string", "default": "Delete" }, - "field": { "type": "string", "default": "Field" }, - "hidden": { "type": "string", "default": "Hidden" }, - "is_defined_false": { "type": "string", "default": "Not defined" }, - "is_defined_true": { "type": "string", "default": "Defined" }, - "name": { "type": "string", "default": "Name" }, - "operator_equal": { "type": "string", "default": "Equal" }, - "operator_greaterthan": { - "type": "string", - "default": "Greater than" - }, - "operator_greaterthanorequal": { - "type": "string", - "default": "Greater than or equal" - }, - "operator_in": { "type": "string", "default": "One of" }, - "operator_isdefined": { "type": "string", "default": "Is defined" }, - "operator_lessthan": { "type": "string", "default": "Less than" }, - "operator_lessthanorequal": { - "type": "string", - "default": "Less than or equal" - }, - "operator_not": { "type": "string", "default": "Not equal" }, - "or": { "type": "string", "default": "Or" }, - "query_builder_group": { - "type": "string", - "default": "Group of filters" - }, - "query_builder_rule": { "type": "string", "default": "Filter" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "type": { "type": "string", "default": "Type" }, - "type_any": { - "type": "string", - "default": "Field of unknown type" - }, - "type_attribute": { - "type": "string", - "default": "Key-value resource" - }, - "type_date": { "type": "string", "default": "Date field" }, - "type_here": { "type": "string", "default": "Type here..." }, - "type_number": { "type": "string", "default": "Numeric field" }, - "type_string": { "type": "string", "default": "Text field" }, - "used_codes": { "type": "string", "default": "Codes used" }, - "value": { "type": "string", "default": "Value" } - }, - "required": [ - "filters", - "add_or_clause", - "add_value", - "code", - "date", - "date_created", - "date_modified", - "delete", - "field", - "hidden", - "is_defined_false", - "is_defined_true", - "name", - "operator_equal", - "operator_greaterthan", - "operator_greaterthanorequal", - "operator_in", - "operator_isdefined", - "operator_lessthan", - "operator_lessthanorequal", - "operator_not", - "or", - "query_builder_group", - "query_builder_rule", - "range_from", - "range_to", - "type", - "type_any", - "type_attribute", - "type_date", - "type_here", - "type_number", - "type_string", - "used_codes", - "value" - ] - } - }, - "required": [ - "label", - "helper_text", - "search", - "clear", - "pagination", - "query-builder" - ] - } - }, - "required": ["cancel", "close", "header", "selection"] - }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "Click to select" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - }, - "helper_text": { - "type": "string", - "default": "Template set determines which payment gateway and tokenization service will be used to capture card details." - } - }, - "required": ["label", "dialog", "card", "helper_text"] - }, - "cc-token": { - "additionalProperties": false, - "properties": { - "tokenize": { "type": "string", "default": "Save card" }, - "payment-card-embed": { - "additionalProperties": false, - "properties": { - "stripe": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card details" }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Stripe. Visit https://stripe.com to learn more." - }, - "busy": { - "type": "string", - "default": "Encrypting your card details..." - }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "unsupported": { - "type": "string", - "default": "We don't support this card type. Please try another card." - } - }, - "required": ["idle", "busy", "fail", "unsupported"] - } - }, - "required": ["label", "status"] - }, - "square": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card details" }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Square. Visit https://squareup.com to learn more." - }, - "busy": { - "type": "string", - "default": "Encrypting your card details..." - }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "unsupported": { - "type": "string", - "default": "We don't support this card type. Please try another card." - } - }, - "required": ["idle", "busy", "fail", "unsupported"] - } - }, - "required": ["label", "status"] - }, - "default": { - "additionalProperties": false, - "properties": { - "cc-number": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card number" }, - "placeholder": { - "type": "string", - "default": "1234 1234 1234 1234" - }, - "v8n_required": { - "type": "string", - "default": "Enter a card number." - }, - "v8n_invalid": { - "type": "string", - "default": "Check your card number – it doesn't seem to be valid." - }, - "v8n_unsupported": { - "type": "string", - "default": "We don't support this card type." - } - }, - "required": [ - "label", - "placeholder", - "v8n_required", - "v8n_invalid", - "v8n_unsupported" - ] - }, - "cc-exp": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Expires on" }, - "placeholder": { "type": "string", "default": "MM/YYYY" }, - "v8n_required": { - "type": "string", - "default": "Enter an expiry date." - }, - "v8n_invalid": { - "type": "string", - "default": "Enter a date as MM/YYYY." - }, - "v8n_expired": { - "type": "string", - "default": "Your card has expired." - } - }, - "required": [ - "label", - "placeholder", - "v8n_required", - "v8n_invalid", - "v8n_expired" - ] - }, - "cc-csc": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "CSC" }, - "placeholder": { "type": "string", "default": "XXX" }, - "v8n_required": { - "type": "string", - "default": "Enter a security code." - }, - "v8n_invalid": { - "type": "string", - "default": "Enter a 3-4 digits code." - } - }, - "required": ["label", "placeholder", "v8n_required", "v8n_invalid"] - }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Foxy.io. Visit https://foxy.io to learn more." - }, - "busy": { - "type": "string", - "default": "Encrypting your card details..." - }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "misconfigured": { - "type": "string", - "default": "This form is not configured correctly. If you are seeing this message as a customer, please report this issue to the store support team." - } - }, - "required": ["idle", "busy", "fail", "misconfigured"] - } - }, - "required": ["cc-number", "cc-exp", "cc-csc", "status"] - } - }, - "required": ["stripe", "square", "default"] - } - }, - "required": ["tokenize", "payment-card-embed"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" }, - "loading_empty": { - "type": "string", - "default": "This form works only with existing payment methods" - } - }, - "required": ["refresh", "loading_busy", "loading_error", "loading_empty"] - } - }, - "required": ["status", "error", "template-set", "cc-token", "spinner"] - } - }, - "required": [ - "close", - "dialog_header_add", - "dialog_header_update", - "update-payment-method-form" - ] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No payment method" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "cancel", - "delete", - "add", - "update", - "delete_prompt", - "expires", - "last_4_digits", - "unknown", - "dialog", - "spinner" - ] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "subscription-form": { - "additionalProperties": false, - "properties": { - "day": { "type": "string", "default": "Day" }, - "day_plural": { "type": "string", "default": "Days" }, - "week": { "type": "string", "default": "Week" }, - "week_plural": { "type": "string", "default": "Weeks" }, - "month": { "type": "string", "default": "Month" }, - "month_plural": { "type": "string", "default": "Months" }, - "year": { "type": "string", "default": "Year" }, - "year_plural": { "type": "string", "default": "Years" }, - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "confirm": { "type": "string", "default": "Confirm" }, - "currency": { "type": "string", "default": "Currency" }, - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "end_date": { "type": "string", "default": "End date" }, - "frequency": { - "type": "string", - "default": "$t(subscription-form.{{units}}, { \"count\": {{count}}, \"ns\": \"customer\" })" - }, - "frequency_label": { "type": "string", "default": "Frequency" }, - "item_plural": { "type": "string", "default": "Items" }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "next_transaction_date": { "type": "string", "default": "Next transaction date" }, - "start_date": { "type": "string", "default": "Start date" }, - "price_recurring": { - "type": "string", - "default": "{{amount, price}} $t(subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer\" })" - }, - "price_twice_a_month": { - "type": "string", - "default": "{{amount, price}} $t(subscription-form.twice_a_month, { \"ns\": \"customer\" })" - }, - "subscription_active": { - "type": "string", - "default": "Including shipping, taxes, etc. Next payment on {{date, date}}." - }, - "subscription_cancelled": { - "type": "string", - "default": "Including shipping, taxes, etc. Ended on {{date, date}}." - }, - "subscription_failed": { - "type": "string", - "default": "Including shipping, taxes, etc. Payment failed on {{date, date}}." - }, - "subscription_inactive": { - "type": "string", - "default": "Including shipping, taxes, etc. Inactive." - }, - "subscription_will_be_cancelled": { - "type": "string", - "default": "Including shipping, taxes, etc. Ends on {{date, date}}." - }, - "subscription_will_be_active": { - "type": "string", - "default": "Including shipping, taxes, etc. Starts on {{date, date}}." - }, - "transaction_plural": { "type": "string", "default": "Transactions" }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "customer": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Customer" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_error"] - } - }, - "required": ["label", "spinner"] - }, - "past-due-amount": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Past due amount" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "If a subscription payment is missed, this amount will be increased by that payment. The next time the subscription runs, it may be charged automatically depending on your store's subscription settings." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "attributes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Attributes" }, - "delete_confirm": { "type": "string", "default": "Delete" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "delete_message": { - "type": "string", - "default": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." - }, - "delete_header": { "type": "string", "default": "Delete attribute?" }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add attribute +" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Remove" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No attributes" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "spinner"] - } - }, - "required": [ - "create_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "header_update": { "type": "string", "default": "Attribute" }, - "header_create": { "type": "string", "default": "New attribute" }, - "save": { "type": "string", "default": "Save" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "cancel": { "type": "string", "default": "Cancel" }, - "confirm": { "type": "string", "default": "Confirm" }, - "create": { "type": "string", "default": "Create" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "delete": { "type": "string", "default": "Delete" }, - "delete_prompt": { - "type": "string", - "default": "This attribute will be permanently removed. Are you sure?" - }, - "name": { "type": "string", "default": "Name" }, - "v8n_required": { "type": "string", "default": "Required" }, - "v8n_too_long": { "type": "string", "default": "Too long" }, - "value": { "type": "string", "default": "Value" }, - "visibility": { "type": "string", "default": "Visibility" }, - "visibility_private": { "type": "string", "default": "Only me" }, - "visibility_public": { "type": "string", "default": "Everyone" }, - "visibility_restricted": { "type": "string", "default": "Store admins" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "close", - "header_update", - "header_create", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "cancel", - "confirm", - "create", - "date", - "date_created", - "date_modified", - "delete", - "delete_prompt", - "name", - "v8n_required", - "v8n_too_long", - "value", - "visibility", - "visibility_private", - "visibility_public", - "visibility_restricted", - "spinner" - ] - } - }, - "required": [ - "label", - "delete_confirm", - "delete_cancel", - "delete_message", - "delete_header", - "pagination", - "dialog" - ] - }, - "items": { - "additionalProperties": false, - "properties": { - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t(subscription-form.pagination.card.{{units}}, { \"count\": {{count}}, \"ns\": \"customer\" })" - }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "subinfo_recurring": { - "type": "string", - "default": "$t(subscription-form.pagination.card.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer\" }) from {{startDate, date}}" - }, - "subinfo_twice_a_month": { - "type": "string", - "default": "$t(subscription-form.pagination.card.twice_a_month, { \"ns\": \"customer\" }) from {{startDate, date}}" - }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "no_code": { "type": "string", "default": "No SKU" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No items" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "subinfo_recurring", - "subinfo_twice_a_month", - "twice_a_month", - "no_code", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "price", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["pagination"] - }, - "transactions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Transactions" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "code": { "type": "string", "default": "Code" }, - "customer": { "type": "string", "default": "Customer" }, - "description": { "type": "string", "default": "Description" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "time": { "type": "string", "default": "{{value, date}}" }, - "status_capturing": { "type": "string", "default": "Capturing" }, - "status_captured": { "type": "string", "default": "Captured" }, - "status_approved": { "type": "string", "default": "Approved" }, - "status_authorized": { "type": "string", "default": "Authorized" }, - "status_pending": { "type": "string", "default": "Pending" }, - "status_completed": { "type": "string", "default": "Completed" }, - "status_problem": { "type": "string", "default": "Problem" }, - "status_pending_fraud_review": { - "type": "string", - "default": "Pending_fraud_review" - }, - "status_rejected": { "type": "string", "default": "Rejected" }, - "status_declined": { "type": "string", "default": "Declined" }, - "status_refunding": { "type": "string", "default": "Refunding" }, - "status_refunded": { "type": "string", "default": "Refunded" }, - "status_voided": { "type": "string", "default": "Voided" }, - "status_verified": { "type": "string", "default": "Verified" }, - "summary": { "type": "string", "default": "{{most_expensive_item.name}}" }, - "summary_plural": { - "type": "string", - "default": "{{most_expensive_item.name}} and {{count_minus_one}} more" - }, - "summary_payment_method_change": { - "type": "string", - "default": "Payment method change" - }, - "summary_subscription_modification": { - "type": "string", - "default": "Subscription modification" - }, - "summary_subscription_cancellation": { - "type": "string", - "default": "Subscription cancellation" - }, - "source_MIT": { - "type": "string", - "default": "This transaction was initiated by the merchant" - }, - "source_CIT": { - "type": "string", - "default": "This transaction was initiated by the customer" - }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No transactions" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "code", - "customer", - "description", - "price", - "time", - "status_capturing", - "status_captured", - "status_approved", - "status_authorized", - "status_pending", - "status_completed", - "status_problem", - "status_pending_fraud_review", - "status_rejected", - "status_declined", - "status_refunding", - "status_refunded", - "status_voided", - "status_verified", - "summary", - "summary_plural", - "summary_payment_method_change", - "summary_subscription_modification", - "summary_subscription_cancellation", - "source_MIT", - "source_CIT", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["label", "pagination"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - } - }, - "required": [ - "day", - "day_plural", - "week", - "week_plural", - "month", - "month_plural", - "year", - "year_plural", - "cancel", - "close", - "confirm", - "currency", - "daily", - "daily_plural", - "end_date", - "frequency", - "frequency_label", - "item_plural", - "monthly", - "monthly_plural", - "next_transaction_date", - "start_date", - "price_recurring", - "price_twice_a_month", - "subscription_active", - "subscription_cancelled", - "subscription_failed", - "subscription_inactive", - "subscription_will_be_cancelled", - "subscription_will_be_active", - "transaction_plural", - "twice_a_month", - "undo_cancel", - "undo_confirm", - "undo_header", - "undo_message", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "customer", - "past-due-amount", - "attributes", - "items", - "transactions", - "spinner", - "timestamps" - ] - }, - "subscriptions-table": { - "additionalProperties": false, - "properties": { - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t(subscriptions-table.{{units}}, { \"count\": {{count}}, \"ns\": \"customer\" })" - }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "price_recurring": { - "type": "string", - "default": "{{amount, price}} $t(subscriptions-table.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer\" })" - }, - "price_twice_a_month": { - "type": "string", - "default": "{{amount, price}} $t(subscriptions-table.twice_a_month, { \"ns\": \"customer\" })" - }, - "subscription_active": { "type": "string", "default": "Next payment on {{date, date}}" }, - "subscription_cancelled": { "type": "string", "default": "Ended on {{date, date}}" }, - "subscription_failed": { "type": "string", "default": "Payment failed on {{date, date}}" }, - "subscription_inactive": { "type": "string", "default": "Inactive" }, - "subscription_will_be_cancelled": { "type": "string", "default": "Ends on {{date, date}}" }, - "subscription_will_be_active": { "type": "string", "default": "Starts on {{date, date}}" }, - "transaction_summary": { "type": "string", "default": "{{most_expensive_item.name}}" }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "update": { "type": "string", "default": "Update" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "price_recurring", - "price_twice_a_month", - "subscription_active", - "subscription_cancelled", - "subscription_failed", - "subscription_inactive", - "subscription_will_be_cancelled", - "subscription_will_be_active", - "transaction_summary", - "twice_a_month", - "update", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "spinner" - ] - }, - "transactions-table": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "receipt": { "type": "string", "default": "Receipt" }, - "transaction_approved": { "type": "string", "default": "Approved" }, - "transaction_authorized": { "type": "string", "default": "Authorized" }, - "transaction_captured": { "type": "string", "default": "Captured" }, - "transaction_completed": { "type": "string", "default": "Completed" }, - "transaction_declined": { "type": "string", "default": "Declined" }, - "transaction_pending": { "type": "string", "default": "Pending" }, - "transaction_refunded": { "type": "string", "default": "Refunded" }, - "transaction_rejected": { "type": "string", "default": "Rejected" }, - "transaction_summary": { "type": "string", "default": "{{most_expensive_item.name}}" }, - "transaction_summary_plural": { - "type": "string", - "default": "{{most_expensive_item.name}} and {{count_minus_one}} more" - }, - "transaction_verified": { "type": "string", "default": "Verified" }, - "transaction_voided": { "type": "string", "default": "Voided" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "date", - "price", - "receipt", - "transaction_approved", - "transaction_authorized", - "transaction_captured", - "transaction_completed", - "transaction_declined", - "transaction_pending", - "transaction_refunded", - "transaction_rejected", - "transaction_summary", - "transaction_summary_plural", - "transaction_verified", - "transaction_voided", - "spinner" - ] - } - }, - "required": [ - "address_plural", - "attribute_plural", - "cancel", - "close", - "create", - "customer", - "delete_prompt", - "payment_method_plural", - "save", - "subscription_plural", - "transaction_plural", - "undo_cancel", - "undo_confirm", - "undo_header", - "undo_message", - "update", - "address-card", - "address-form", - "attribute-card", - "attribute-form", - "customer-form", - "payment-method-card", - "spinner", - "subscription-form", - "subscriptions-table", - "transactions-table" - ] -} diff --git a/src/static/schemas/customers-table.json b/src/static/schemas/customers-table.json deleted file mode 100644 index 37a460b53..000000000 --- a/src/static/schemas/customers-table.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" }, - "loading_empty": { "type": "string", "default": "No data" } - }, - "required": ["refresh", "loading_busy", "loading_error", "loading_empty"] - } - }, - "required": ["date", "date_created", "spinner"] -} diff --git a/src/static/schemas/discount-builder.json b/src/static/schemas/discount-builder.json deleted file mode 100644 index 6760d1c21..000000000 --- a/src/static/schemas/discount-builder.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "tier": { "type": "string", "default": "Tier" }, - "tier_by": { "type": "string", "default": "by" }, - "tier_if": { "type": "string", "default": "if" }, - "tier_allunits": { "type": "string", "default": "price of each item" }, - "tier_incremental": { "type": "string", "default": "price of additional items" }, - "tier_repeat": { "type": "string", "default": "price of next item" }, - "tier_single": { "type": "string", "default": "order total" }, - "tier_then": { "type": "string", "default": "then" }, - "quantity": { "type": "string", "default": "quantity" }, - "total": { "type": "string", "default": "total" }, - "reduce": { "type": "string", "default": "reduce" }, - "increase": { "type": "string", "default": "increase" } - }, - "required": [ - "tier", - "tier_by", - "tier_if", - "tier_allunits", - "tier_incremental", - "tier_repeat", - "tier_single", - "tier_then", - "quantity", - "total", - "reduce", - "increase" - ] -} diff --git a/src/static/schemas/discount-card.json b/src/static/schemas/discount-card.json deleted file mode 100644 index 753c9f0c9..000000000 --- a/src/static/schemas/discount-card.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "price": { "type": "string", "default": "{{amount, price}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["price", "spinner"] -} diff --git a/src/static/schemas/donation.json b/src/static/schemas/donation.json deleted file mode 100644 index 3e2f61305..000000000 --- a/src/static/schemas/donation.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "comment_placeholder": { "type": "string", "default": "Anything you'd like to let us know" }, - "comment_label": { "type": "string", "default": "Comment" }, - "designation": { "type": "string", "default": "Designation" }, - "anonymous": { "type": "string", "default": "Remain anonymous" }, - "amount": { "type": "string", "default": "Amount" }, - "donate": { "type": "string", "default": "Donate {{amount}}" }, - "donate_recurrently": { - "type": "string", - "default": "Donate {{amount}} {{frequency, lowercase}}" - } - }, - "required": [ - "comment_placeholder", - "comment_label", - "designation", - "anonymous", - "amount", - "donate", - "donate_recurrently" - ] -} diff --git a/src/static/schemas/downloadable-card.json b/src/static/schemas/downloadable-card.json deleted file mode 100644 index 5f175ab78..000000000 --- a/src/static/schemas/downloadable-card.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] -} diff --git a/src/static/schemas/downloadable-form.json b/src/static/schemas/downloadable-form.json deleted file mode 100644 index 393146c19..000000000 --- a/src/static/schemas/downloadable-form.json +++ /dev/null @@ -1,160 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "item-category-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Item category" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "The item category this product is part of (only categories with item delivery type of \"downloaded\" are displayed)." - }, - "v8n_required": { "type": "string", "default": "Please select an item category" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "The name of this downloadable. This will be shown to the customer in the cart." - }, - "v8n_required": { "type": "string", "default": "Please enter a name" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten the name to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "The code for this downloadable. When adding this item to the cart, this is the code which will be used." - }, - "v8n_required": { "type": "string", "default": "Please enter a code" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten the code to 50 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "price": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Price" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "The item total for this downloadable. This is the amount the customer will pay to purchase this downloadable item." - }, - "v8n_required": { "type": "string", "default": "Please enter a price" }, - "v8n_negative": { - "type": "string", - "default": "Downloadable products can't have a negative price" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_negative"] - }, - "upload": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "File" }, - "helper_text": { - "type": "string", - "default": "Any file you'd like your customers to have access to after purchasing this item. Maximum size is 500MB." - }, - "drop_label": { "type": "string", "default": "or drag it here" }, - "select_label": { "type": "string", "default": "Select file..." }, - "cancel": { "type": "string", "default": "Cancel" }, - "error_too_many_files": { "type": "string", "default": "Too many files" }, - "error_too_large": { "type": "string", "default": "File is too large" }, - "status_connecting": { "type": "string", "default": "Connecting..." }, - "status_stalled": { "type": "string", "default": "Stalled" }, - "status_processing": { "type": "string", "default": "Processing..." }, - "status_held": { "type": "string", "default": "Save changes to upload" }, - "status_complete": { "type": "string", "default": "Available for download" }, - "remaining_prefix": { "type": "string", "default": "remaining time: " }, - "remaining_unknown": { "type": "string", "default": "unknown remaining time" }, - "error_server_unavailable": { "type": "string", "default": "Server unavailable" }, - "error_unexpected_server_error": { "type": "string", "default": "Unexpected server error" }, - "error_forbidden": { "type": "string", "default": "Forbidden" } - }, - "required": [ - "label", - "helper_text", - "drop_label", - "select_label", - "cancel", - "error_too_many_files", - "error_too_large", - "status_connecting", - "status_stalled", - "status_processing", - "status_held", - "status_complete", - "remaining_prefix", - "remaining_unknown", - "error_server_unavailable", - "error_unexpected_server_error", - "error_forbidden" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this downloadable? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "item-category-uri", - "name", - "code", - "price", - "upload", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/email-template-card.json b/src/static/schemas/email-template-card.json deleted file mode 100644 index 3dec417f5..000000000 --- a/src/static/schemas/email-template-card.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "type_custom_url": { "type": "string", "default": "Custom (URL)" }, - "type_custom_text": { "type": "string", "default": "Custom (Text)" }, - "type_custom_html": { "type": "string", "default": "Custom (HTML)" }, - "type_mixed": { "type": "string", "default": "Mixed" }, - "type_default": { "type": "string", "default": "Default" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "type_custom_url", - "type_custom_text", - "type_custom_html", - "type_mixed", - "type_default", - "spinner" - ] -} diff --git a/src/static/schemas/email-template-form.json b/src/static/schemas/email-template-form.json deleted file mode 100644 index 4a1f25ee6..000000000 --- a/src/static/schemas/email-template-form.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "cache": { "type": "string", "default": "Sync" }, - "cancel": { "type": "string", "default": "Cancel" }, - "confirm": { "type": "string", "default": "Confirm" }, - "create": { "type": "string", "default": "Create" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "default": { "type": "string", "default": "Default" }, - "delete": { "type": "string", "default": "Delete" }, - "delete_prompt": { - "type": "string", - "default": "This resource will be permanently removed. Are you sure?" - }, - "description": { "type": "string", "default": "Description" }, - "html_template": { "type": "string", "default": "HTML template" }, - "template_clipboard": { "type": "string", "default": "Upload source code" }, - "template_default": { "type": "string", "default": "Use default template" }, - "template_url": { "type": "string", "default": "Pull from public URL" }, - "text_template": { "type": "string", "default": "Text template" }, - "url": { "type": "string", "default": "URL" }, - "url_source_label": { "type": "string", "default": "Cached source" }, - "url_source_placeholder": { - "type": "string", - "default": "Template markup will appear here once cached" - }, - "clipboard_source_label": { "type": "string", "default": "Source" }, - "clipboard_source_placeholder": { - "type": "string", - "default": "Enter your template markup here" - }, - "subject": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Subject" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "template-language": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Language" }, - "placeholder": { "type": "string", "default": "Default (Nunjucks)" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "cache", - "cancel", - "confirm", - "create", - "date", - "date_created", - "date_modified", - "default", - "delete", - "delete_prompt", - "description", - "html_template", - "template_clipboard", - "template_default", - "template_url", - "text_template", - "url", - "url_source_label", - "url_source_placeholder", - "clipboard_source_label", - "clipboard_source_placeholder", - "subject", - "template-language", - "spinner" - ] -} diff --git a/src/static/schemas/error-entry-card.json b/src/static/schemas/error-entry-card.json deleted file mode 100644 index 1910b4399..000000000 --- a/src/static/schemas/error-entry-card.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "client": { "type": "string", "default": "Client" }, - "customer": { "type": "string", "default": "Customer" }, - "cart": { "type": "string", "default": "Cart" }, - "subscription": { "type": "string", "default": "Subscription" }, - "transaction": { "type": "string", "default": "Transaction" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "error": { "type": "string", "default": "Error" }, - "request": { "type": "string", "default": "Request" }, - "time": { "type": "string", "default": "{{value, time}}" } - }, - "required": [ - "client", - "customer", - "cart", - "subscription", - "transaction", - "date", - "error", - "request", - "time" - ] -} diff --git a/src/static/schemas/filter-attribute-card.json b/src/static/schemas/filter-attribute-card.json deleted file mode 100644 index fa5446e88..000000000 --- a/src/static/schemas/filter-attribute-card.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "no_name": { "type": "string", "default": "Custom filter" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["no_name", "spinner"] -} diff --git a/src/static/schemas/filter-attribute-form.json b/src/static/schemas/filter-attribute-form.json deleted file mode 100644 index f246d36e6..000000000 --- a/src/static/schemas/filter-attribute-form.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "filter-query": { - "additionalProperties": false, - "properties": { - "add_or_clause": { "type": "string", "default": "Add OR clause" }, - "add_value": { "type": "string", "default": "Add value" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "delete": { "type": "string", "default": "Delete" }, - "field": { "type": "string", "default": "Field" }, - "hidden": { "type": "string", "default": "Hidden" }, - "is_defined_false": { "type": "string", "default": "Not defined" }, - "is_defined_true": { "type": "string", "default": "Defined" }, - "name": { "type": "string", "default": "Name" }, - "operator_equal": { "type": "string", "default": "Equal" }, - "operator_greaterthan": { "type": "string", "default": "Greater than" }, - "operator_greaterthanorequal": { "type": "string", "default": "Greater than or equal" }, - "operator_in": { "type": "string", "default": "One of" }, - "operator_isdefined": { "type": "string", "default": "Is defined" }, - "operator_lessthan": { "type": "string", "default": "Less than" }, - "operator_lessthanorequal": { "type": "string", "default": "Less than or equal" }, - "operator_not": { "type": "string", "default": "Not equal" }, - "or": { "type": "string", "default": "Or" }, - "query_builder_group": { "type": "string", "default": "Group of filters" }, - "query_builder_rule": { "type": "string", "default": "Filter" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "type": { "type": "string", "default": "Type" }, - "type_any": { "type": "string", "default": "Field of unknown type" }, - "type_attribute": { "type": "string", "default": "Key-value resource" }, - "type_date": { "type": "string", "default": "Date field" }, - "type_here": { "type": "string", "default": "Type here..." }, - "type_number": { "type": "string", "default": "Numeric field" }, - "type_string": { "type": "string", "default": "Text field" }, - "value": { "type": "string", "default": "Value" } - }, - "required": [ - "add_or_clause", - "add_value", - "date", - "delete", - "field", - "hidden", - "is_defined_false", - "is_defined_true", - "name", - "operator_equal", - "operator_greaterthan", - "operator_greaterthanorequal", - "operator_in", - "operator_isdefined", - "operator_lessthan", - "operator_lessthanorequal", - "operator_not", - "or", - "query_builder_group", - "query_builder_rule", - "range_from", - "range_to", - "type", - "type_any", - "type_attribute", - "type_date", - "type_here", - "type_number", - "type_string", - "value" - ] - }, - "filter-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "My custom filter" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "action": { - "additionalProperties": false, - "properties": { - "create": { "type": "string", "default": "Pin to sidebar" }, - "update": { "type": "string", "default": "Save changes" }, - "delete": { "type": "string", "default": "Unpin" }, - "reset": { "type": "string", "default": "Reset" } - }, - "required": ["create", "update", "delete", "reset"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": ["filter-query", "filter-name", "action", "spinner"] -} diff --git a/src/static/schemas/generate-codes-form.json b/src/static/schemas/generate-codes-form.json deleted file mode 100644 index 1ffd393a1..000000000 --- a/src/static/schemas/generate-codes-form.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "status": { - "additionalProperties": false, - "properties": { "success": { "type": "string", "default": "Codes generated successfully." } }, - "required": ["success"] - }, - "error": { - "additionalProperties": false, - "properties": { - "invalid_form": { - "type": "string", - "default": "These parameters won't generate any codes. Please make sure that the length of the code is greater than the length of the prefix, does not exceed 50 characters in total and that the code itself does not contain spaces." - } - }, - "required": ["invalid_form"] - }, - "length": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code length" }, - "placeholder": { "type": "string", "default": "6" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "number-of-codes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Number of codes" }, - "placeholder": { "type": "string", "default": "10" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "prefix": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Prefix" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "The length value is inclusive of this prefix." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "current-balance": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Initial balance" }, - "placeholder": { "type": "string", "default": "0" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "example": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Examples" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "This is what the generated codes will look like." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Generate" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "status", - "error", - "length", - "number-of-codes", - "prefix", - "current-balance", - "example", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/gift-card-card.json b/src/static/schemas/gift-card-card.json deleted file mode 100644 index 6eaf7a5c2..000000000 --- a/src/static/schemas/gift-card-card.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "expires_after_value": { "type": "string", "default": "Expires {{value, relative}}" }, - "never_expires": { "type": "string", "default": "Never expires" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["expires_after_value", "never_expires", "spinner"] -} diff --git a/src/static/schemas/gift-card-code-card.json b/src/static/schemas/gift-card-code-card.json deleted file mode 100644 index adc897b62..000000000 --- a/src/static/schemas/gift-card-code-card.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "line_1": { "type": "string", "default": "{{ code }}" }, - "line_2": { "type": "string", "default": "End date: {{ end_date, date }}" }, - "current_balance": { "type": "string", "default": "Balance: {{ value, price }}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["line_1", "line_2", "current_balance", "spinner"] -} diff --git a/src/static/schemas/gift-card-code-form.json b/src/static/schemas/gift-card-code-form.json deleted file mode 100644 index 31ccb6876..000000000 --- a/src/static/schemas/gift-card-code-form.json +++ /dev/null @@ -1,408 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The string value of this gift card code which your customer will add to their cart to use this gift card." - }, - "v8n_required": { "type": "string", "default": "Please enter a code" }, - "v8n_too_long": { - "type": "string", - "default": "Please enter a code with no more than 50 characters" - }, - "v8n_has_spaces": { "type": "string", "default": "Please enter a code without spaces" } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long", - "v8n_has_spaces" - ] - }, - "current-balance": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Current balance" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "The current balance of this gift card." }, - "v8n_required": { "type": "string", "default": "Please enter a current balance" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "end-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "End date" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "The date when this gift card will expire." } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "customer": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Customer" }, - "dialog": { - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "header": { "type": "string", "default": "Select a customer" }, - "selection": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Customers" }, - "helper_text": { - "type": "string", - "default": "Select a customer to assign this gift card code to them. You won't be able to clear this selection once saved but you will able able to reassign it to another customer." - }, - "search": { "type": "string", "default": "Search" }, - "clear": { "type": "string", "default": "Clear" }, - "pagination": { - "additionalProperties": false, - "properties": { - "search_button_text": { "type": "string", "default": "Search" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No customers found" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": [ - "search_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "query-builder": { - "additionalProperties": false, - "properties": { - "filters": { - "additionalProperties": false, - "properties": { - "id": { "type": "string", "default": "ID" }, - "tax_id": { "type": "string", "default": "Tax ID" }, - "email": { "type": "string", "default": "Email" }, - "first_name": { "type": "string", "default": "First name" }, - "last_name": { "type": "string", "default": "Last name" }, - "is_anonymous": { "type": "string", "default": "Anonymity" }, - "is_anonymous_true": { "type": "string", "default": "Anonymous" }, - "is_anonymous_false": { "type": "string", "default": "Registered" }, - "last_login_date": { "type": "string", "default": "Last login date" }, - "date_created": { "type": "string", "default": "Creation date" }, - "date_modified": { "type": "string", "default": "Last update date" } - }, - "required": [ - "id", - "tax_id", - "email", - "first_name", - "last_name", - "is_anonymous", - "is_anonymous_true", - "is_anonymous_false", - "last_login_date", - "date_created", - "date_modified" - ] - }, - "add_or_clause": { "type": "string", "default": "Add OR clause" }, - "add_value": { "type": "string", "default": "Add value" }, - "code": { "type": "string", "default": "Code" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "delete": { "type": "string", "default": "Delete" }, - "field": { "type": "string", "default": "Field" }, - "hidden": { "type": "string", "default": "Hidden" }, - "is_defined_false": { "type": "string", "default": "Not defined" }, - "is_defined_true": { "type": "string", "default": "Defined" }, - "name": { "type": "string", "default": "Name" }, - "operator_equal": { "type": "string", "default": "Equal" }, - "operator_greaterthan": { "type": "string", "default": "Greater than" }, - "operator_greaterthanorequal": { - "type": "string", - "default": "Greater than or equal" - }, - "operator_in": { "type": "string", "default": "One of" }, - "operator_isdefined": { "type": "string", "default": "Is defined" }, - "operator_lessthan": { "type": "string", "default": "Less than" }, - "operator_lessthanorequal": { - "type": "string", - "default": "Less than or equal" - }, - "operator_not": { "type": "string", "default": "Not equal" }, - "or": { "type": "string", "default": "Or" }, - "query_builder_group": { "type": "string", "default": "Group of filters" }, - "query_builder_rule": { "type": "string", "default": "Filter" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "type": { "type": "string", "default": "Type" }, - "type_any": { "type": "string", "default": "Field of unknown type" }, - "type_attribute": { "type": "string", "default": "Key-value resource" }, - "type_date": { "type": "string", "default": "Date field" }, - "type_here": { "type": "string", "default": "Type here..." }, - "type_number": { "type": "string", "default": "Numeric field" }, - "type_string": { "type": "string", "default": "Text field" }, - "used_codes": { "type": "string", "default": "Codes used" }, - "value": { "type": "string", "default": "Value" } - }, - "required": [ - "filters", - "add_or_clause", - "add_value", - "code", - "date", - "date_created", - "date_modified", - "delete", - "field", - "hidden", - "is_defined_false", - "is_defined_true", - "name", - "operator_equal", - "operator_greaterthan", - "operator_greaterthanorequal", - "operator_in", - "operator_isdefined", - "operator_lessthan", - "operator_lessthanorequal", - "operator_not", - "or", - "query_builder_group", - "query_builder_rule", - "range_from", - "range_to", - "type", - "type_any", - "type_attribute", - "type_date", - "type_here", - "type_number", - "type_string", - "used_codes", - "value" - ] - } - }, - "required": ["label", "helper_text", "search", "clear", "pagination", "query-builder"] - } - }, - "required": ["cancel", "close", "header", "selection"] - }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "Not assigned – click to select" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - }, - "helper_text": { - "type": "string", - "default": "Select a customer to assign this gift card code to them. You won't be able to clear this selection once saved but you will able able to reassign it to another customer." - } - }, - "required": ["label", "dialog", "card", "helper_text"] - }, - "cart-item": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Cart item" }, - "card": { - "additionalProperties": false, - "properties": { - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t({{units}}, { \"count\": {{count}}, \"ns\": \"item-card\" })" - }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "subinfo_recurring": { - "type": "string", - "default": "$t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"item-card\" }) from {{startDate, date}}" - }, - "subinfo_twice_a_month": { - "type": "string", - "default": "$t(twice_a_month, { \"ns\": \"item-card\" }) from {{startDate, date}}" - }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "no_code": { "type": "string", "default": "No SKU" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No info" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "subinfo_recurring", - "subinfo_twice_a_month", - "twice_a_month", - "no_code", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "price", - "spinner" - ] - } - }, - "required": ["label", "card"] - }, - "logs": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Timeline" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "title_updated_via_api": { "type": "string", "default": "Updated via API" }, - "title_used": { "type": "string", "default": "Used on checkout" }, - "subtitle_transaction": { - "type": "string", - "default": "Transaction #{{ transaction_id }}" - }, - "subtitle_no_transaction": { "type": "string", "default": "No transaction" }, - "date": { - "type": "string", - "default": "{{ date_created, date }} at {{ date_created, time }}" - }, - "adjustment": { "type": "string", "default": "{{ amount, price }}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No records" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "title_updated_via_api", - "title_used", - "subtitle_transaction", - "subtitle_no_transaction", - "date", - "adjustment", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["label", "pagination"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this gift card code? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "code", - "current-balance", - "end-date", - "customer", - "cart-item", - "logs", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/gift-card-code-log-card.json b/src/static/schemas/gift-card-code-log-card.json deleted file mode 100644 index 473455b5a..000000000 --- a/src/static/schemas/gift-card-code-log-card.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "title_updated_via_api": { "type": "string", "default": "Updated via API" }, - "title_used": { "type": "string", "default": "Used on checkout" }, - "subtitle_transaction": { "type": "string", "default": "Transaction #{{ transaction_id }}" }, - "subtitle_no_transaction": { "type": "string", "default": "No transaction" }, - "date": { "type": "string", "default": "{{ date_created, date }}" }, - "adjustment": { "type": "string", "default": "{{ amount, price }}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "title_updated_via_api", - "title_used", - "subtitle_transaction", - "subtitle_no_transaction", - "date", - "adjustment", - "spinner" - ] -} diff --git a/src/static/schemas/gift-card-codes-form.json b/src/static/schemas/gift-card-codes-form.json deleted file mode 100644 index a16d23118..000000000 --- a/src/static/schemas/gift-card-codes-form.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "status": { - "additionalProperties": false, - "properties": { - "success": { - "type": "string", - "default": "All done! We've imported your codes into the system." - }, - "close": { "type": "string", "default": "Close" } - }, - "required": ["success", "close"] - }, - "gift-card-codes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Codes" }, - "placeholder": { "type": "string", "default": "Enter or paste codes here..." }, - "helper_text": { - "type": "string", - "default": "Paste multiple space-separated codes in the field above to add all of them at once. Importing duplicate codes clears their usage stats." - }, - "v8n_required": { "type": "string", "default": "Please add at least one code" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "current-balance": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Initial balance" }, - "placeholder": { "type": "string", "default": "0" }, - "helper_text": { "type": "string", "default": "All imported codes will have this balance." } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Import" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": ["status", "gift-card-codes", "current-balance", "create", "spinner"] -} diff --git a/src/static/schemas/gift-card-form.json b/src/static/schemas/gift-card-form.json deleted file mode 100644 index cad263b73..000000000 --- a/src/static/schemas/gift-card-form.json +++ /dev/null @@ -1,1672 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "header": { - "additionalProperties": false, - "properties": { - "title_existing": { "type": "string", "default": "ID {{ id }}" }, - "title_new": { "type": "string", "default": "New gift card" }, - "subtitle": { "type": "string", "default": "{{ name }}, {{ currency_code }}" } - }, - "required": ["title_existing", "title_new", "subtitle"] - }, - "import": { - "additionalProperties": false, - "properties": { - "button_text": { "type": "string", "default": "Import codes" }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "header": { "type": "string", "default": "Import codes" }, - "save": { "type": "string", "default": "Import" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "gift-card-codes-form": { - "additionalProperties": false, - "properties": { - "status": { - "additionalProperties": false, - "properties": { - "success": { - "type": "string", - "default": "All done! We've imported your codes into the system." - }, - "close": { "type": "string", "default": "Close" } - }, - "required": ["success", "close"] - }, - "gift-card-codes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Codes" }, - "placeholder": { "type": "string", "default": "Enter or paste codes here..." }, - "helper_text": { - "type": "string", - "default": "Paste multiple space-separated codes in the field above to add all of them at once. Importing duplicate codes clears their usage stats." - }, - "v8n_required": { "type": "string", "default": "Please add at least one code" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "current-balance": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Initial balance" }, - "placeholder": { "type": "string", "default": "0" }, - "helper_text": { - "type": "string", - "default": "All imported codes will have this balance." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Import" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": ["status", "gift-card-codes", "current-balance", "create", "spinner"] - } - }, - "required": [ - "close", - "cancel", - "header", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "gift-card-codes-form" - ] - } - }, - "required": ["button_text", "dialog"] - }, - "generate": { - "additionalProperties": false, - "properties": { - "button_text": { "type": "string", "default": "Generate codes" }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "header": { "type": "string", "default": "Generate codes" }, - "save": { "type": "string", "default": "Generate" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "generate-codes-form": { - "additionalProperties": false, - "properties": { - "status": { - "additionalProperties": false, - "properties": { - "success": { "type": "string", "default": "Codes generated successfully." } - }, - "required": ["success"] - }, - "error": { - "additionalProperties": false, - "properties": { - "invalid_form": { - "type": "string", - "default": "These parameters won't generate any codes. Please make sure that the length of the code is greater than the length of the prefix, does not exceed 50 characters in total and that the code itself does not contain spaces." - } - }, - "required": ["invalid_form"] - }, - "length": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code length" }, - "placeholder": { "type": "string", "default": "6" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "number-of-codes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Number of codes" }, - "placeholder": { "type": "string", "default": "10" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "prefix": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Prefix" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "The length value is inclusive of this prefix." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "current-balance": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Initial balance" }, - "placeholder": { "type": "string", "default": "0" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "example": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Examples" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "This is what the generated codes will look like." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Generate" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "status", - "error", - "length", - "number-of-codes", - "prefix", - "current-balance", - "example", - "create", - "spinner" - ] - } - }, - "required": [ - "close", - "cancel", - "header", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "generate-codes-form" - ] - } - }, - "required": ["button_text", "dialog"] - }, - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Gift card name is visible to the customers." - }, - "v8n_required": { "type": "string", "default": "Please enter a name for this gift card." }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten the name to 50 characters or less." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "expires": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Expires after" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "Set to make the gift card codes expire after a certain period of time. Check with your local laws to ensure expiring gift cards is legal, according to your use case." - }, - "year": { "type": "string", "default": "Year" }, - "year_plural": { "type": "string", "default": "Years" }, - "month": { "type": "string", "default": "Month" }, - "month_plural": { "type": "string", "default": "Months" }, - "week": { "type": "string", "default": "Week" }, - "week_plural": { "type": "string", "default": "Weeks" }, - "day": { "type": "string", "default": "Day" }, - "day_plural": { "type": "string", "default": "Days" } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "year", - "year_plural", - "month", - "month_plural", - "week", - "week_plural", - "day", - "day_plural" - ] - }, - "currency": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Currency" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "Currency code for this gift card. Note that gift cards are only usable if the cart's currency matches." - }, - "code_aed": { "type": "string", "default": "United Arab Emirates Dirham (AED)" }, - "code_afn": { "type": "string", "default": "Afghan Afghani (AFN)" }, - "code_all": { "type": "string", "default": "Albanian Lek (ALL)" }, - "code_amd": { "type": "string", "default": "Armenian Dram (AMD)" }, - "code_ang": { "type": "string", "default": "Netherlands Antillean Guilder (ANG)" }, - "code_aoa": { "type": "string", "default": "Angolan Kwanza (AOA)" }, - "code_ars": { "type": "string", "default": "Argentine Peso (ARS)" }, - "code_aud": { "type": "string", "default": "Australian Dollar (AUD)" }, - "code_awg": { "type": "string", "default": "Aruban Florin (AWG)" }, - "code_azn": { "type": "string", "default": "Azerbaijani Manat (AZN)" }, - "code_bam": { "type": "string", "default": "Bosnia-Herzegovina Convertible Mark (BAM)" }, - "code_bbd": { "type": "string", "default": "Barbadian Dollar (BBD)" }, - "code_bdt": { "type": "string", "default": "Bangladeshi Taka (BDT)" }, - "code_bgn": { "type": "string", "default": "Bulgarian Lev (BGN)" }, - "code_bhd": { "type": "string", "default": "Bahraini Dinar (BHD)" }, - "code_bif": { "type": "string", "default": "Burundian Franc (BIF)" }, - "code_bmd": { "type": "string", "default": "Bermudan Dollar (BMD)" }, - "code_bnd": { "type": "string", "default": "Brunei Dollar (BND)" }, - "code_bob": { "type": "string", "default": "Bolivian Boliviano (BOB)" }, - "code_brl": { "type": "string", "default": "Brazilian Real (BRL)" }, - "code_bsd": { "type": "string", "default": "Bahamian Dollar (BSD)" }, - "code_btc": { "type": "string", "default": "Bitcoin (BTC)" }, - "code_btn": { "type": "string", "default": "Bhutanese Ngultrum (BTN)" }, - "code_bwp": { "type": "string", "default": "Botswanan Pula (BWP)" }, - "code_byn": { "type": "string", "default": "Belarusian Ruble (BYN)" }, - "code_bzd": { "type": "string", "default": "Belize Dollar (BZD)" }, - "code_cad": { "type": "string", "default": "Canadian Dollar (CAD)" }, - "code_cdf": { "type": "string", "default": "Congolese Franc (CDF)" }, - "code_chf": { "type": "string", "default": "Swiss Franc (CHF)" }, - "code_clf": { "type": "string", "default": "Chilean Unit of Account (UF) (CLF)" }, - "code_clp": { "type": "string", "default": "Chilean Peso (CLP)" }, - "code_cnh": { "type": "string", "default": "Chinese Yuan (Offshore) (CNH)" }, - "code_cny": { "type": "string", "default": "Chinese Yuan (CNY)" }, - "code_cop": { "type": "string", "default": "Colombian Peso (COP)" }, - "code_crc": { "type": "string", "default": "Costa Rican Colón (CRC)" }, - "code_cuc": { "type": "string", "default": "Cuban Convertible Peso (CUC)" }, - "code_cup": { "type": "string", "default": "Cuban Peso (CUP)" }, - "code_cve": { "type": "string", "default": "Cape Verdean Escudo (CVE)" }, - "code_czk": { "type": "string", "default": "Czech Republic Koruna (CZK)" }, - "code_djf": { "type": "string", "default": "Djiboutian Franc (DJF)" }, - "code_dkk": { "type": "string", "default": "Danish Krone (DKK)" }, - "code_dop": { "type": "string", "default": "Dominican Peso (DOP)" }, - "code_dzd": { "type": "string", "default": "Algerian Dinar (DZD)" }, - "code_egp": { "type": "string", "default": "Egyptian Pound (EGP)" }, - "code_ern": { "type": "string", "default": "Eritrean Nakfa (ERN)" }, - "code_etb": { "type": "string", "default": "Ethiopian Birr (ETB)" }, - "code_eur": { "type": "string", "default": "Euro (EUR)" }, - "code_fjd": { "type": "string", "default": "Fijian Dollar (FJD)" }, - "code_fkp": { "type": "string", "default": "Falkland Islands Pound (FKP)" }, - "code_gbp": { "type": "string", "default": "British Pound Sterling (GBP)" }, - "code_gel": { "type": "string", "default": "Georgian Lari (GEL)" }, - "code_ggp": { "type": "string", "default": "Guernsey Pound (GGP)" }, - "code_ghs": { "type": "string", "default": "Ghanaian Cedi (GHS)" }, - "code_gip": { "type": "string", "default": "Gibraltar Pound (GIP)" }, - "code_gmd": { "type": "string", "default": "Gambian Dalasi (GMD)" }, - "code_gnf": { "type": "string", "default": "Guinean Franc (GNF)" }, - "code_gtq": { "type": "string", "default": "Guatemalan Quetzal (GTQ)" }, - "code_gyd": { "type": "string", "default": "Guyanaese Dollar (GYD)" }, - "code_hkd": { "type": "string", "default": "Hong Kong Dollar (HKD)" }, - "code_hnl": { "type": "string", "default": "Honduran Lempira (HNL)" }, - "code_hrk": { "type": "string", "default": "Croatian Kuna (HRK)" }, - "code_htg": { "type": "string", "default": "Haitian Gourde (HTG)" }, - "code_huf": { "type": "string", "default": "Hungarian Forint (HUF)" }, - "code_idr": { "type": "string", "default": "Indonesian Rupiah (IDR)" }, - "code_ils": { "type": "string", "default": "Israeli New Sheqel (ILS)" }, - "code_imp": { "type": "string", "default": "Manx pound (IMP)" }, - "code_inr": { "type": "string", "default": "Indian Rupee (INR)" }, - "code_iqd": { "type": "string", "default": "Iraqi Dinar (IQD)" }, - "code_irr": { "type": "string", "default": "Iranian Rial (IRR)" }, - "code_isk": { "type": "string", "default": "Icelandic Króna (ISK)" }, - "code_jep": { "type": "string", "default": "Jersey Pound (JEP)" }, - "code_jmd": { "type": "string", "default": "Jamaican Dollar (JMD)" }, - "code_jod": { "type": "string", "default": "Jordanian Dinar (JOD)" }, - "code_jpy": { "type": "string", "default": "Japanese Yen (JPY)" }, - "code_kes": { "type": "string", "default": "Kenyan Shilling (KES)" }, - "code_kgs": { "type": "string", "default": "Kyrgystani Som (KGS)" }, - "code_khr": { "type": "string", "default": "Cambodian Riel (KHR)" }, - "code_kmf": { "type": "string", "default": "Comorian Franc (KMF)" }, - "code_kpw": { "type": "string", "default": "North Korean Won (KPW)" }, - "code_krw": { "type": "string", "default": "South Korean Won (KRW)" }, - "code_kwd": { "type": "string", "default": "Kuwaiti Dinar (KWD)" }, - "code_kyd": { "type": "string", "default": "Cayman Islands Dollar (KYD)" }, - "code_kzt": { "type": "string", "default": "Kazakhstani Tenge (KZT)" }, - "code_lak": { "type": "string", "default": "Laotian Kip (LAK)" }, - "code_lbp": { "type": "string", "default": "Lebanese Pound (LBP)" }, - "code_lkr": { "type": "string", "default": "Sri Lankan Rupee (LKR)" }, - "code_lrd": { "type": "string", "default": "Liberian Dollar (LRD)" }, - "code_lsl": { "type": "string", "default": "Lesotho Loti (LSL)" }, - "code_lyd": { "type": "string", "default": "Libyan Dinar (LYD)" }, - "code_mad": { "type": "string", "default": "Moroccan Dirham (MAD)" }, - "code_mdl": { "type": "string", "default": "Moldovan Leu (MDL)" }, - "code_mga": { "type": "string", "default": "Malagasy Ariary (MGA)" }, - "code_mkd": { "type": "string", "default": "Macedonian Denar (MKD)" }, - "code_mmk": { "type": "string", "default": "Myanma Kyat (MMK)" }, - "code_mnt": { "type": "string", "default": "Mongolian Tugrik (MNT)" }, - "code_mop": { "type": "string", "default": "Macanese Pataca (MOP)" }, - "code_mru": { "type": "string", "default": "Mauritanian Ouguiya (MRU)" }, - "code_mur": { "type": "string", "default": "Mauritian Rupee (MUR)" }, - "code_mvr": { "type": "string", "default": "Maldivian Rufiyaa (MVR)" }, - "code_mwk": { "type": "string", "default": "Malawian Kwacha (MWK)" }, - "code_mxn": { "type": "string", "default": "Mexican Peso (MXN)" }, - "code_myr": { "type": "string", "default": "Malaysian Ringgit (MYR)" }, - "code_mzn": { "type": "string", "default": "Mozambican Metical (MZN)" }, - "code_nad": { "type": "string", "default": "Namibian Dollar (NAD)" }, - "code_ngn": { "type": "string", "default": "Nigerian Naira (NGN)" }, - "code_nio": { "type": "string", "default": "Nicaraguan Córdoba (NIO)" }, - "code_nok": { "type": "string", "default": "Norwegian Krone (NOK)" }, - "code_npr": { "type": "string", "default": "Nepalese Rupee (NPR)" }, - "code_nzd": { "type": "string", "default": "New Zealand Dollar (NZD)" }, - "code_omr": { "type": "string", "default": "Omani Rial (OMR)" }, - "code_pab": { "type": "string", "default": "Panamanian Balboa (PAB)" }, - "code_pen": { "type": "string", "default": "Peruvian Nuevo Sol (PEN)" }, - "code_pgk": { "type": "string", "default": "Papua New Guinean Kina (PGK)" }, - "code_php": { "type": "string", "default": "Philippine Peso (PHP)" }, - "code_pkr": { "type": "string", "default": "Pakistani Rupee (PKR)" }, - "code_pln": { "type": "string", "default": "Polish Zloty (PLN)" }, - "code_pyg": { "type": "string", "default": "Paraguayan Guarani (PYG)" }, - "code_qar": { "type": "string", "default": "Qatari Rial (QAR)" }, - "code_ron": { "type": "string", "default": "Romanian Leu (RON)" }, - "code_rsd": { "type": "string", "default": "Serbian Dinar (RSD)" }, - "code_rub": { "type": "string", "default": "Russian Ruble (RUB)" }, - "code_rwf": { "type": "string", "default": "Rwandan Franc (RWF)" }, - "code_sar": { "type": "string", "default": "Saudi Riyal (SAR)" }, - "code_sbd": { "type": "string", "default": "Solomon Islands Dollar (SBD)" }, - "code_scr": { "type": "string", "default": "Seychellois Rupee (SCR)" }, - "code_sdg": { "type": "string", "default": "Sudanese Pound (SDG)" }, - "code_sek": { "type": "string", "default": "Swedish Krona (SEK)" }, - "code_sgd": { "type": "string", "default": "Singapore Dollar (SGD)" }, - "code_shp": { "type": "string", "default": "Saint Helena Pound (SHP)" }, - "code_sll": { "type": "string", "default": "Sierra Leonean Leone (SLL)" }, - "code_sos": { "type": "string", "default": "Somali Shilling (SOS)" }, - "code_srd": { "type": "string", "default": "Surinamese Dollar (SRD)" }, - "code_ssp": { "type": "string", "default": "South Sudanese Pound (SSP)" }, - "code_std": { "type": "string", "default": "São Tomé and Príncipe Dobra (pre-2018) (STD)" }, - "code_stn": { "type": "string", "default": "São Tomé and Príncipe Dobra (STN)" }, - "code_svc": { "type": "string", "default": "Salvadoran Colón (SVC)" }, - "code_syp": { "type": "string", "default": "Syrian Pound (SYP)" }, - "code_szl": { "type": "string", "default": "Swazi Lilangeni (SZL)" }, - "code_thb": { "type": "string", "default": "Thai Baht (THB)" }, - "code_tjs": { "type": "string", "default": "Tajikistani Somoni (TJS)" }, - "code_tmt": { "type": "string", "default": "Turkmenistani Manat (TMT)" }, - "code_tnd": { "type": "string", "default": "Tunisian Dinar (TND)" }, - "code_top": { "type": "string", "default": "Tongan Pa'anga (TOP)" }, - "code_try": { "type": "string", "default": "Turkish Lira (TRY)" }, - "code_ttd": { "type": "string", "default": "Trinidad and Tobago Dollar (TTD)" }, - "code_twd": { "type": "string", "default": "New Taiwan Dollar (TWD)" }, - "code_tzs": { "type": "string", "default": "Tanzanian Shilling (TZS)" }, - "code_uah": { "type": "string", "default": "Ukrainian Hryvnia (UAH)" }, - "code_ugx": { "type": "string", "default": "Ugandan Shilling (UGX)" }, - "code_usd": { "type": "string", "default": "United States Dollar (USD)" }, - "code_uyu": { "type": "string", "default": "Uruguayan Peso (UYU)" }, - "code_uzs": { "type": "string", "default": "Uzbekistan Som (UZS)" }, - "code_vef": { "type": "string", "default": "Venezuelan Bolívar Fuerte (Old) (VEF)" }, - "code_ves": { "type": "string", "default": "Venezuelan Bolívar Soberano (VES)" }, - "code_vnd": { "type": "string", "default": "Vietnamese Dong (VND)" }, - "code_vuv": { "type": "string", "default": "Vanuatu Vatu (VUV)" }, - "code_wst": { "type": "string", "default": "Samoan Tala (WST)" }, - "code_xaf": { "type": "string", "default": "CFA Franc BEAC (XAF)" }, - "code_xag": { "type": "string", "default": "Silver Ounce (XAG)" }, - "code_xau": { "type": "string", "default": "Gold Ounce (XAU)" }, - "code_xcd": { "type": "string", "default": "East Caribbean Dollar (XCD)" }, - "code_xdr": { "type": "string", "default": "Special Drawing Rights (XDR)" }, - "code_xof": { "type": "string", "default": "CFA Franc BCEAO (XOF)" }, - "code_xpd": { "type": "string", "default": "Palladium Ounce (XPD)" }, - "code_xpf": { "type": "string", "default": "CFP Franc (XPF)" }, - "code_xpt": { "type": "string", "default": "Platinum Ounce (XPT)" }, - "code_yer": { "type": "string", "default": "Yemeni Rial (YER)" }, - "code_zar": { "type": "string", "default": "South African Rand (ZAR)" }, - "code_zmw": { "type": "string", "default": "Zambian Kwacha (ZMW)" }, - "code_zwl": { "type": "string", "default": "Zimbabwean Dollar (ZWL)" } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "code_aed", - "code_afn", - "code_all", - "code_amd", - "code_ang", - "code_aoa", - "code_ars", - "code_aud", - "code_awg", - "code_azn", - "code_bam", - "code_bbd", - "code_bdt", - "code_bgn", - "code_bhd", - "code_bif", - "code_bmd", - "code_bnd", - "code_bob", - "code_brl", - "code_bsd", - "code_btc", - "code_btn", - "code_bwp", - "code_byn", - "code_bzd", - "code_cad", - "code_cdf", - "code_chf", - "code_clf", - "code_clp", - "code_cnh", - "code_cny", - "code_cop", - "code_crc", - "code_cuc", - "code_cup", - "code_cve", - "code_czk", - "code_djf", - "code_dkk", - "code_dop", - "code_dzd", - "code_egp", - "code_ern", - "code_etb", - "code_eur", - "code_fjd", - "code_fkp", - "code_gbp", - "code_gel", - "code_ggp", - "code_ghs", - "code_gip", - "code_gmd", - "code_gnf", - "code_gtq", - "code_gyd", - "code_hkd", - "code_hnl", - "code_hrk", - "code_htg", - "code_huf", - "code_idr", - "code_ils", - "code_imp", - "code_inr", - "code_iqd", - "code_irr", - "code_isk", - "code_jep", - "code_jmd", - "code_jod", - "code_jpy", - "code_kes", - "code_kgs", - "code_khr", - "code_kmf", - "code_kpw", - "code_krw", - "code_kwd", - "code_kyd", - "code_kzt", - "code_lak", - "code_lbp", - "code_lkr", - "code_lrd", - "code_lsl", - "code_lyd", - "code_mad", - "code_mdl", - "code_mga", - "code_mkd", - "code_mmk", - "code_mnt", - "code_mop", - "code_mru", - "code_mur", - "code_mvr", - "code_mwk", - "code_mxn", - "code_myr", - "code_mzn", - "code_nad", - "code_ngn", - "code_nio", - "code_nok", - "code_npr", - "code_nzd", - "code_omr", - "code_pab", - "code_pen", - "code_pgk", - "code_php", - "code_pkr", - "code_pln", - "code_pyg", - "code_qar", - "code_ron", - "code_rsd", - "code_rub", - "code_rwf", - "code_sar", - "code_sbd", - "code_scr", - "code_sdg", - "code_sek", - "code_sgd", - "code_shp", - "code_sll", - "code_sos", - "code_srd", - "code_ssp", - "code_std", - "code_stn", - "code_svc", - "code_syp", - "code_szl", - "code_thb", - "code_tjs", - "code_tmt", - "code_tnd", - "code_top", - "code_try", - "code_ttd", - "code_twd", - "code_tzs", - "code_uah", - "code_ugx", - "code_usd", - "code_uyu", - "code_uzs", - "code_vef", - "code_ves", - "code_vnd", - "code_vuv", - "code_wst", - "code_xaf", - "code_xag", - "code_xau", - "code_xcd", - "code_xdr", - "code_xof", - "code_xpd", - "code_xpf", - "code_xpt", - "code_yer", - "code_zar", - "code_zmw", - "code_zwl" - ] - }, - "provisioning": { - "additionalProperties": false, - "properties": { - "toggle": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Provisioning" }, - "text": { "type": "string", "default": "Allow customers to buy this gift card" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "text", "helper_text"] - }, - "sku": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "SKU" }, - "placeholder": { "type": "string", "default": "E.g. 100_usd" }, - "helper_text": { - "type": "string", - "default": "You'll use this value to add this gift card to a customer's online cart." - }, - "v8n_required": { "type": "string", "default": "SKU is required for auto-provisioning" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "min-balance": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Min balance" }, - "placeholder": { "type": "string", "default": "0" }, - "helper_text": { - "type": "string", - "default": "Customers won't be able to load this card with a balance less than this value." - }, - "v8n_negative": { "type": "string", "default": "Please enter a positive number" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_negative"] - }, - "max-balance": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Max balance" }, - "placeholder": { "type": "string", "default": "0" }, - "helper_text": { - "type": "string", - "default": "Customers won't be able to load this card with a balance greater than this value." - }, - "v8n_negative": { "type": "string", "default": "Please enter a positive number" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_negative"] - } - }, - "required": ["toggle", "sku", "min-balance", "max-balance"] - }, - "codes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Codes" }, - "delete_header": { "type": "string", "default": "Remove code?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this code from the gift card." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "search": { "type": "string", "default": "Search" }, - "clear": { "type": "string", "default": "Clear" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_create": { "type": "string", "default": "Create code" }, - "header_update": { "type": "string", "default": "Update code" }, - "close": { "type": "string", "default": "Close" }, - "save": { "type": "string", "default": "Save" }, - "cancel": { "type": "string", "default": "Cancel" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "gift-card-code-form": { - "additionalProperties": false, - "properties": { - "code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The string value of this gift card code which your customer will add to their cart to use this gift card." - }, - "v8n_required": { "type": "string", "default": "Please enter a code" }, - "v8n_too_long": { - "type": "string", - "default": "Please enter a code with no more than 50 characters" - }, - "v8n_has_spaces": { - "type": "string", - "default": "Please enter a code without spaces" - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long", - "v8n_has_spaces" - ] - }, - "current-balance": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Current balance" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The current balance of this gift card." - }, - "v8n_required": { - "type": "string", - "default": "Please enter a current balance" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "end-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "End date" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "The date when this gift card will expire." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "customer": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Customer" }, - "dialog": { - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "header": { "type": "string", "default": "Select a customer" }, - "selection": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Customers" }, - "helper_text": { - "type": "string", - "default": "Select a customer to assign this gift card code to them. You won't be able to clear this selection once saved but you will able able to reassign it to another customer." - }, - "search": { "type": "string", "default": "Search" }, - "clear": { "type": "string", "default": "Clear" }, - "pagination": { - "additionalProperties": false, - "properties": { - "search_button_text": { "type": "string", "default": "Search" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { - "type": "string", - "default": "No customers found" - }, - "loading_error": { - "type": "string", - "default": "Unknown error" - } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": [ - "search_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "query-builder": { - "additionalProperties": false, - "properties": { - "filters": { - "additionalProperties": false, - "properties": { - "id": { "type": "string", "default": "ID" }, - "tax_id": { "type": "string", "default": "Tax ID" }, - "email": { "type": "string", "default": "Email" }, - "first_name": { "type": "string", "default": "First name" }, - "last_name": { "type": "string", "default": "Last name" }, - "is_anonymous": { "type": "string", "default": "Anonymity" }, - "is_anonymous_true": { - "type": "string", - "default": "Anonymous" - }, - "is_anonymous_false": { - "type": "string", - "default": "Registered" - }, - "last_login_date": { - "type": "string", - "default": "Last login date" - }, - "date_created": { - "type": "string", - "default": "Creation date" - }, - "date_modified": { - "type": "string", - "default": "Last update date" - } - }, - "required": [ - "id", - "tax_id", - "email", - "first_name", - "last_name", - "is_anonymous", - "is_anonymous_true", - "is_anonymous_false", - "last_login_date", - "date_created", - "date_modified" - ] - }, - "add_or_clause": { "type": "string", "default": "Add OR clause" }, - "add_value": { "type": "string", "default": "Add value" }, - "code": { "type": "string", "default": "Code" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "delete": { "type": "string", "default": "Delete" }, - "field": { "type": "string", "default": "Field" }, - "hidden": { "type": "string", "default": "Hidden" }, - "is_defined_false": { "type": "string", "default": "Not defined" }, - "is_defined_true": { "type": "string", "default": "Defined" }, - "name": { "type": "string", "default": "Name" }, - "operator_equal": { "type": "string", "default": "Equal" }, - "operator_greaterthan": { - "type": "string", - "default": "Greater than" - }, - "operator_greaterthanorequal": { - "type": "string", - "default": "Greater than or equal" - }, - "operator_in": { "type": "string", "default": "One of" }, - "operator_isdefined": { "type": "string", "default": "Is defined" }, - "operator_lessthan": { "type": "string", "default": "Less than" }, - "operator_lessthanorequal": { - "type": "string", - "default": "Less than or equal" - }, - "operator_not": { "type": "string", "default": "Not equal" }, - "or": { "type": "string", "default": "Or" }, - "query_builder_group": { - "type": "string", - "default": "Group of filters" - }, - "query_builder_rule": { "type": "string", "default": "Filter" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "type": { "type": "string", "default": "Type" }, - "type_any": { - "type": "string", - "default": "Field of unknown type" - }, - "type_attribute": { - "type": "string", - "default": "Key-value resource" - }, - "type_date": { "type": "string", "default": "Date field" }, - "type_here": { "type": "string", "default": "Type here..." }, - "type_number": { "type": "string", "default": "Numeric field" }, - "type_string": { "type": "string", "default": "Text field" }, - "used_codes": { "type": "string", "default": "Codes used" }, - "value": { "type": "string", "default": "Value" } - }, - "required": [ - "filters", - "add_or_clause", - "add_value", - "code", - "date", - "date_created", - "date_modified", - "delete", - "field", - "hidden", - "is_defined_false", - "is_defined_true", - "name", - "operator_equal", - "operator_greaterthan", - "operator_greaterthanorequal", - "operator_in", - "operator_isdefined", - "operator_lessthan", - "operator_lessthanorequal", - "operator_not", - "or", - "query_builder_group", - "query_builder_rule", - "range_from", - "range_to", - "type", - "type_any", - "type_attribute", - "type_date", - "type_here", - "type_number", - "type_string", - "used_codes", - "value" - ] - } - }, - "required": [ - "label", - "helper_text", - "search", - "clear", - "pagination", - "query-builder" - ] - } - }, - "required": ["cancel", "close", "header", "selection"] - }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { - "type": "string", - "default": "Not assigned – click to select" - }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - }, - "helper_text": { - "type": "string", - "default": "Select a customer to assign this gift card code to them. You won't be able to clear this selection once saved but you will able able to reassign it to another customer." - } - }, - "required": ["label", "dialog", "card", "helper_text"] - }, - "cart-item": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Cart item" }, - "card": { - "additionalProperties": false, - "properties": { - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t({{units}}, { \"count\": {{count}}, \"ns\": \"item-card\" })" - }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "subinfo_recurring": { - "type": "string", - "default": "$t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"item-card\" }) from {{startDate, date}}" - }, - "subinfo_twice_a_month": { - "type": "string", - "default": "$t(twice_a_month, { \"ns\": \"item-card\" }) from {{startDate, date}}" - }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "no_code": { "type": "string", "default": "No SKU" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No info" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "subinfo_recurring", - "subinfo_twice_a_month", - "twice_a_month", - "no_code", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "price", - "spinner" - ] - } - }, - "required": ["label", "card"] - }, - "logs": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Timeline" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "title_updated_via_api": { - "type": "string", - "default": "Updated via API" - }, - "title_used": { "type": "string", "default": "Used on checkout" }, - "subtitle_transaction": { - "type": "string", - "default": "Transaction #{{ transaction_id }}" - }, - "subtitle_no_transaction": { - "type": "string", - "default": "No transaction" - }, - "date": { - "type": "string", - "default": "{{ date_created, date }} at {{ date_created, time }}" - }, - "adjustment": { "type": "string", "default": "{{ amount, price }}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No records" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "title_updated_via_api", - "title_used", - "subtitle_transaction", - "subtitle_no_transaction", - "date", - "adjustment", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["label", "pagination"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this gift card code? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "code", - "current-balance", - "end-date", - "customer", - "cart-item", - "logs", - "timestamps", - "delete", - "create", - "spinner" - ] - } - }, - "required": [ - "header_create", - "header_update", - "close", - "save", - "cancel", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "gift-card-code-form" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add code +" }, - "search_button_text": { "type": "string", "default": "Search codes" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Delete" }, - "copy_button_text": { "type": "string", "default": "Copy code" }, - "line_1": { "type": "string", "default": "{{ code }}" }, - "line_2": { "type": "string", "default": "End date: {{ end_date, date }}" }, - "current_balance": { "type": "string", "default": "Balance: {{ value, price }}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No codes" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "delete_button_text", - "copy_button_text", - "line_1", - "line_2", - "current_balance", - "spinner" - ] - }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": [ - "create_button_text", - "search_button_text", - "card", - "first", - "last", - "next", - "pagination", - "previous" - ] - }, - "query-builder": { - "additionalProperties": false, - "properties": { - "add_or_clause": { "type": "string", "default": "Add OR clause" }, - "add_value": { "type": "string", "default": "Add value" }, - "code": { "type": "string", "default": "Code" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "delete": { "type": "string", "default": "Delete" }, - "field": { "type": "string", "default": "Field" }, - "hidden": { "type": "string", "default": "Hidden" }, - "is_defined_false": { "type": "string", "default": "Not defined" }, - "is_defined_true": { "type": "string", "default": "Defined" }, - "name": { "type": "string", "default": "Name" }, - "operator_equal": { "type": "string", "default": "Equal" }, - "operator_greaterthan": { "type": "string", "default": "Greater than" }, - "operator_greaterthanorequal": { "type": "string", "default": "Greater than or equal" }, - "operator_in": { "type": "string", "default": "One of" }, - "operator_isdefined": { "type": "string", "default": "Is defined" }, - "operator_lessthan": { "type": "string", "default": "Less than" }, - "operator_lessthanorequal": { "type": "string", "default": "Less than or equal" }, - "operator_not": { "type": "string", "default": "Not equal" }, - "or": { "type": "string", "default": "Or" }, - "query_builder_group": { "type": "string", "default": "Group of filters" }, - "query_builder_rule": { "type": "string", "default": "Filter" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "type": { "type": "string", "default": "Type" }, - "type_any": { "type": "string", "default": "Field of unknown type" }, - "type_attribute": { "type": "string", "default": "Key-value resource" }, - "type_date": { "type": "string", "default": "Date field" }, - "type_here": { "type": "string", "default": "Type here..." }, - "type_number": { "type": "string", "default": "Numeric field" }, - "type_string": { "type": "string", "default": "Text field" }, - "used_codes": { "type": "string", "default": "Codes used" }, - "value": { "type": "string", "default": "Value" } - }, - "required": [ - "add_or_clause", - "add_value", - "code", - "date", - "date_created", - "date_modified", - "delete", - "field", - "hidden", - "is_defined_false", - "is_defined_true", - "name", - "operator_equal", - "operator_greaterthan", - "operator_greaterthanorequal", - "operator_in", - "operator_isdefined", - "operator_lessthan", - "operator_lessthanorequal", - "operator_not", - "or", - "query_builder_group", - "query_builder_rule", - "range_from", - "range_to", - "type", - "type_any", - "type_attribute", - "type_date", - "type_here", - "type_number", - "type_string", - "used_codes", - "value" - ] - } - }, - "required": [ - "label", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "search", - "clear", - "dialog", - "pagination", - "query-builder" - ] - }, - "product-code-restrictions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Product code restrictions" }, - "placeholder": { "type": "string", "default": "Enter a product code and hit Enter" }, - "helper_text": { - "type": "string", - "default": "We'll apply this gift card only if one of the rules in the list matches the product code. Wildcards are allowed." - }, - "unit_allow": { "type": "string", "default": "Allow" }, - "unit_block": { "type": "string", "default": "Block" }, - "label_allow": { "type": "string", "default": "Allow {{ value }}" }, - "label_block": { "type": "string", "default": "Block {{ value }}" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we are unable to store that many product code restrictions at the moment. Please reduce the number of rules in this section until this message disappears." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "unit_allow", - "unit_block", - "label_allow", - "label_block", - "v8n_too_long" - ] - }, - "category-restrictions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Item category restrictions" }, - "status_saving": { "type": "string", "default": "Saving..." }, - "status_loading": { "type": "string", "default": "Loading..." }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No restrictions" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - }, - "helper_text": { - "type": "string", - "default": "Limit which categories this gift card applies to. All changes are saved automatically." - } - }, - "required": ["label", "status_saving", "status_loading", "pagination", "helper_text"] - }, - "attributes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Attributes" }, - "delete_header": { "type": "string", "default": "Remove attribute?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this attribute from the gift card." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_create": { "type": "string", "default": "Create attribute" }, - "header_update": { "type": "string", "default": "Update attribute" }, - "close": { "type": "string", "default": "Close" }, - "save": { "type": "string", "default": "Save" }, - "cancel": { "type": "string", "default": "Cancel" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "attribute-form": { - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Name of this attribute. It does not have to be unique." - }, - "v8n_required": { "type": "string", "default": "Please name this attribute." }, - "v8n_too_long": { - "type": "string", - "default": "Please choose a name that is 500 characters long or less." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Value of this attribute. Attribute values are automatically HTML-escaped." - }, - "v8n_required": { - "type": "string", - "default": "Please provide a value for this attribute." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store values that are more than 1000 characters long." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "visibility": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Visibility" }, - "option_public": { "type": "string", "default": "Everyone" }, - "option_restricted": { "type": "string", "default": "Store admins" }, - "option_private": { "type": "string", "default": "Only me" }, - "helper_text": { - "type": "string", - "default": "Controls who can see this attribute. Public attributes can be shown to anyone, including customers. Private attributes are more suitable for configuration or technical details which are irrelevant to the public. Restricted attributes can only be viewed with the OAuth client that created them." - } - }, - "required": [ - "label", - "option_public", - "option_restricted", - "option_private", - "helper_text" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "name", - "value", - "visibility", - "timestamps", - "delete", - "create", - "spinner" - ] - } - }, - "required": [ - "header_create", - "header_update", - "close", - "save", - "cancel", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "attribute-form" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add attribute +" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Delete" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No attributes" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "spinner"] - }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": [ - "create_button_text", - "card", - "first", - "last", - "next", - "pagination", - "previous" - ] - } - }, - "required": [ - "label", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "dialog", - "pagination" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "This action is irreversible. Are you sure you want to delete this gift card?" - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "header", - "import", - "generate", - "name", - "expires", - "currency", - "provisioning", - "codes", - "product-code-restrictions", - "category-restrictions", - "attributes", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/global.json b/src/static/schemas/global.json deleted file mode 100644 index 3c36fe4f6..000000000 --- a/src/static/schemas/global.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "y": { "type": "string", "default": "Year" }, - "y_plural": { "type": "string", "default": "Years" }, - "m": { "type": "string", "default": "Month" }, - "m_plural": { "type": "string", "default": "Months" }, - "w": { "type": "string", "default": "Week" }, - "w_plural": { "type": "string", "default": "Weeks" }, - "d": { "type": "string", "default": "Day" }, - "d_plural": { "type": "string", "default": "Days" }, - "hour": { "type": "string", "default": "Hour" }, - "hour_plural": { "type": "string", "default": "Hours" }, - "minute": { "type": "string", "default": "Minute" }, - "minute_plural": { "type": "string", "default": "Minutes" }, - "duration": { "type": "string", "default": "{{count}} {{units, lowercase}}" }, - "frequency": { "type": "string", "default": "Every {{units, lowercase}}" }, - "frequency_0_5m": { "type": "string", "default": "Twice a month" }, - "frequency_once": { "type": "string", "default": "Just this once" }, - "frequency_plural": { "type": "string", "default": "Every {{count}} {{units, lowercase}}" }, - "and": { "type": "string", "default": "and" }, - "beta": { "type": "string", "default": "Beta" }, - "edit": { "type": "string", "default": "Edit" }, - "save": { "type": "string", "default": "Save changes" }, - "undo_all": { "type": "string", "default": "Undo all" }, - "email": { "type": "string", "default": "Email" }, - "password": { "type": "string", "default": "Password" }, - "password_new": { "type": "string", "default": "New password" }, - "sign_up": { "type": "string", "default": "Create account" }, - "sign_in": { "type": "string", "default": "Sign in" }, - "sign_in_reset": { - "type": "string", - "default": "We need you to update your password for security reasons. Please enter a new password and click Continue." - }, - "sign_in_error": { - "type": "string", - "default": "Your credentials are incorrect. Please check your email and password carefully and try again." - }, - "continue": { "type": "string", "default": "Continue" }, - "go_back": { "type": "string", "default": "Go back" }, - "remember_me": { "type": "string", "default": "Remember me" }, - "reset_password": { "type": "string", "default": "Reset password" }, - "required": { "type": "string", "default": "Please fill in this field" }, - "reload": { "type": "string", "default": "Reload" }, - "choice": { - "additionalProperties": false, - "properties": { - "other": { "type": "string", "default": "Other" }, - "other_placeholder": { "type": "string", "default": "Enter your choice" } - }, - "required": ["other", "other_placeholder"] - }, - "close": { "type": "string", "default": "Close" }, - "weekday-picker": { - "additionalProperties": false, - "properties": { - "hint": { "type": "string", "default": "Allow selecting only {{days, list}} of the month." } - }, - "required": ["hint"] - }, - "monthday-picker": { - "additionalProperties": false, - "properties": { - "hint": { - "type": "string", - "default": "Allow selecting only {{days, list}} of the month." - }, - "warning": { - "type": "string", - "default": "Please note that dates from 29 to 31 may not always be available depending on the month and year." - } - }, - "required": ["hint", "warning"] - }, - "password_reset": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Check your inbox!" }, - "message": { - "type": "string", - "default": "We've just sent you an email with further instructions. If you have trouble resetting your password, feel free to contact us." - }, - "action": { "type": "string", "default": "Contact us" } - }, - "required": ["title", "message", "action"] - }, - "errors": { - "additionalProperties": false, - "properties": { - "unknown": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Unknown error" }, - "message": { - "type": "string", - "default": "We've just detected an error that this element isn't prepared to handle. If you could take a moment and let us know what happened, we'd greatly appreciate your feedback." - }, - "action": { "type": "string", "default": "Contact us" }, - "href": { "type": "string", "default": "mailto:hello@foxy.io" } - }, - "required": ["title", "message", "action", "href"] - }, - "setup_needed": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Setup needed" }, - "message": { - "type": "string", - "default": "This element isn't configured to display any data yet. Please consult our docs for setup instructions." - }, - "action": { "type": "string", "default": "See docs" }, - "href": { "type": "string", "default": "https://docs.foxy.io" } - }, - "required": ["title", "message", "action", "href"] - } - }, - "required": ["unknown", "setup_needed"] - } - }, - "required": [ - "y", - "y_plural", - "m", - "m_plural", - "w", - "w_plural", - "d", - "d_plural", - "hour", - "hour_plural", - "minute", - "minute_plural", - "duration", - "frequency", - "frequency_0_5m", - "frequency_once", - "frequency_plural", - "and", - "beta", - "edit", - "save", - "undo_all", - "email", - "password", - "password_new", - "sign_up", - "sign_in", - "sign_in_reset", - "sign_in_error", - "continue", - "go_back", - "remember_me", - "reset_password", - "required", - "reload", - "choice", - "close", - "weekday-picker", - "monthday-picker", - "password_reset", - "errors" - ] -} diff --git a/src/static/schemas/i18n-editor.json b/src/static/schemas/i18n-editor.json deleted file mode 100644 index 057f6827d..000000000 --- a/src/static/schemas/i18n-editor.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "delete_button_title": { "type": "string", "default": "Restore default value" }, - "undo_button": { "type": "string", "default": "Undo" }, - "save_button": { "type": "string", "default": "Save" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_title", "undo_button", "save_button", "spinner"] -} diff --git a/src/static/schemas/integration-card.json b/src/static/schemas/integration-card.json deleted file mode 100644 index 0f8a1df46..000000000 --- a/src/static/schemas/integration-card.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "status_active": { "type": "string", "default": "Expires {{ date, date }}" }, - "status_expired": { "type": "string", "default": "Expired" }, - "no_description": { "type": "string", "default": "No description" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["status_active", "status_expired", "no_description", "spinner"] -} diff --git a/src/static/schemas/integration-form.json b/src/static/schemas/integration-form.json deleted file mode 100644 index f8d8beb6d..000000000 --- a/src/static/schemas/integration-form.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "header": { - "additionalProperties": false, - "properties": { "no_description": { "type": "string", "default": "No description" } }, - "required": ["no_description"] - }, - "message": { - "additionalProperties": false, - "properties": { - "text": { - "type": "string", - "default": "Please copy the highlighted values below to a safe place and treat them like your password. We will not show them again for security reasons." - }, - "action": { "type": "string", "default": "I've copied the values" } - }, - "required": ["text", "action"] - }, - "project-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Type here..." }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please name your integration to continue" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "project-description": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Description" }, - "placeholder": { "type": "string", "default": "Type here..." }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "table": { - "additionalProperties": false, - "properties": { - "expires_date": { "type": "string", "default": "{{ date, date }}" }, - "added_by": { "type": "string", "default": "Added by" }, - "contact": { "type": "string", "default": "Contact" }, - "company": { "type": "string", "default": "Company" }, - "expires": { "type": "string", "default": "Expires on" } - }, - "required": ["expires_date", "added_by", "contact", "company", "expires"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this token? All applications using this token will lose access to Foxy API immediately." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "header", - "message", - "project-name", - "project-description", - "table", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/item-card.json b/src/static/schemas/item-card.json deleted file mode 100644 index 526ca521b..000000000 --- a/src/static/schemas/item-card.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t({{units}}, { \"count\": {{count}}, \"ns\": \"item-card\" })" - }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "subinfo_recurring": { - "type": "string", - "default": "$t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"item-card\" }) from {{startDate, date}}" - }, - "subinfo_twice_a_month": { - "type": "string", - "default": "$t(twice_a_month, { \"ns\": \"item-card\" }) from {{startDate, date}}" - }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "no_code": { "type": "string", "default": "No SKU" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No items" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "subinfo_recurring", - "subinfo_twice_a_month", - "twice_a_month", - "no_code", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "price", - "spinner" - ] -} diff --git a/src/static/schemas/item-category-card.json b/src/static/schemas/item-category-card.json deleted file mode 100644 index 5f175ab78..000000000 --- a/src/static/schemas/item-category-card.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] -} diff --git a/src/static/schemas/item-category-form.json b/src/static/schemas/item-category-form.json deleted file mode 100644 index 08579347d..000000000 --- a/src/static/schemas/item-category-form.json +++ /dev/null @@ -1,420 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Books" }, - "helper_text": { "type": "string", "default": "Category description for admins." }, - "v8n_required": { "type": "string", "default": "Item category name is required" }, - "v8n_too_long": { - "type": "string", - "default": "Item category name can't exceed 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code" }, - "placeholder": { "type": "string", "default": "MY_BOOKS_CATEGORY" }, - "helper_text": { "type": "string", "default": "Unique identifier for the cart." }, - "v8n_required": { "type": "string", "default": "Item category code is required" }, - "v8n_too_long": { - "type": "string", - "default": "Item categoty code can't exceed 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "taxes": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Taxes" }, - "helper_text": { - "type": "string", - "default": "Select taxes that will apply to the products in this category. Changes here are saved immediately." - }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "tax-card": { - "additionalProperties": false, - "properties": { - "percent": { "type": "string", "default": "{{fraction, percent}}" }, - "tax_global": { "type": "string", "default": "Global tax" }, - "tax_rate_provider_default": { - "type": "string", - "default": "Default (Thomson Reuters; others)" - }, - "tax_union": { "type": "string", "default": "European Union tax" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "percent", - "tax_global", - "tax_rate_provider_default", - "tax_union", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "tax-card"] - } - }, - "required": ["title", "helper_text", "pagination"] - }, - "item-delivery-type": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Delivery" }, - "option_shipped": { "type": "string", "default": "Shipped using live rates" }, - "option_flat_rate": { "type": "string", "default": "Shipped using a flat rate" }, - "option_downloaded": { "type": "string", "default": "Downloaded by the customer" }, - "option_pickup": { "type": "string", "default": "Picked up by the customer" }, - "option_notshipped": { "type": "string", "default": "Not shipped" }, - "placeholder": { "type": "string", "default": "Select..." }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please select a delivery type" } - }, - "required": [ - "label", - "option_shipped", - "option_flat_rate", - "option_downloaded", - "option_pickup", - "option_notshipped", - "placeholder", - "helper_text", - "v8n_required" - ] - }, - "default-weight": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Default weight" }, - "placeholder": { "type": "string", "default": "1" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "This field is required" }, - "v8n_negative": { "type": "string", "default": "Please enter a positive number" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_negative"] - }, - "default-weight-unit": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Default weight unit" }, - "placeholder": { "type": "string", "default": "Select..." }, - "option_kgs": { "type": "string", "default": "KG" }, - "option_lbs": { "type": "string", "default": "LG" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please select a unit" } - }, - "required": [ - "label", - "placeholder", - "option_kgs", - "option_lbs", - "helper_text", - "v8n_required" - ] - }, - "default-length-unit": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Default length unit" }, - "placeholder": { "type": "string", "default": "Select..." }, - "option_cm": { "type": "string", "default": "CM" }, - "option_in": { "type": "string", "default": "IN" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please select a unit" } - }, - "required": ["label", "placeholder", "option_cm", "option_in", "helper_text", "v8n_required"] - }, - "max-downloads-per-customer": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Max downloads" }, - "placeholder": { "type": "string", "default": "3" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "This field is required" }, - "v8n_negative": { "type": "string", "default": "Please enter a positive number" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_negative"] - }, - "max-downloads-time-period": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Access duration (hrs)" }, - "placeholder": { "type": "string", "default": "24" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "This field is required" }, - "v8n_negative": { "type": "string", "default": "Please enter a positive number" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_negative"] - }, - "shipping-flat-rate": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Rate" }, - "placeholder": { "type": "string", "default": "0" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "This field is required" }, - "v8n_negative": { "type": "string", "default": "Please enter a positive number" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_negative"] - }, - "shipping-flat-rate-type": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Applies" }, - "placeholder": { "type": "string", "default": "Select..." }, - "option_per_order": { "type": "string", "default": "Per order" }, - "option_per_shipment": { "type": "string", "default": "Per shipment" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please select a value" } - }, - "required": [ - "label", - "placeholder", - "option_per_order", - "option_per_shipment", - "helper_text", - "v8n_required" - ] - }, - "customs-value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Customs value" }, - "placeholder": { "type": "string", "default": "0" }, - "helper_text": { - "type": "string", - "default": "Enter a dollar amount here for the declared customs value for international shipments. If you leave this blank, the sale price of the item will be used." - }, - "v8n_negative": { "type": "string", "default": "Please enter a positive number" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_negative"] - }, - "handling-fee-type": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Handling fee" }, - "option_none": { "type": "string", "default": "No handling fee" }, - "option_flat_per_order": { "type": "string", "default": "Flat fee per shipment" }, - "option_flat_per_item": { "type": "string", "default": "Flat fee per product" }, - "option_flat_percent": { - "type": "string", - "default": "Flat fee per shipment + % of price" - }, - "option_flat_percent_with_minimum": { - "type": "string", - "default": "Flat fee per shipment or % of price, whichever is greater" - }, - "placeholder": { "type": "string", "default": "Select..." }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please select a value" } - }, - "required": [ - "label", - "option_none", - "option_flat_per_order", - "option_flat_per_item", - "option_flat_percent", - "option_flat_percent_with_minimum", - "placeholder", - "helper_text", - "v8n_required" - ] - }, - "handling-fee": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Amount" }, - "placeholder": { "type": "string", "default": "0" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "This field is required" }, - "v8n_negative": { "type": "string", "default": "Please enter a positive number" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_negative"] - }, - "handling-fee-minimum": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Minimum fee" }, - "placeholder": { "type": "string", "default": "0" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "This field is required" }, - "v8n_negative": { "type": "string", "default": "Please enter a positive number" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_negative"] - }, - "handling-fee-percentage": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Percentage of price" }, - "placeholder": { "type": "string", "default": "0" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "This field is required" }, - "v8n_negative": { "type": "string", "default": "Please enter a positive number" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_negative"] - }, - "discount-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Discount" }, - "placeholder": { "type": "string", "default": "Name your discount to open the builder" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "discount-builder": { - "additionalProperties": false, - "properties": { - "tier": { "type": "string", "default": "Tier" }, - "tier_by": { "type": "string", "default": "by" }, - "tier_if": { "type": "string", "default": "if" }, - "tier_allunits": { "type": "string", "default": "price of each item" }, - "tier_incremental": { "type": "string", "default": "price of additional items" }, - "tier_repeat": { "type": "string", "default": "price of next item" }, - "tier_single": { "type": "string", "default": "order total" }, - "tier_then": { "type": "string", "default": "then" }, - "quantity": { "type": "string", "default": "quantity" }, - "total": { "type": "string", "default": "total" }, - "reduce": { "type": "string", "default": "reduce" }, - "increase": { "type": "string", "default": "increase" } - }, - "required": [ - "tier", - "tier_by", - "tier_if", - "tier_allunits", - "tier_incremental", - "tier_repeat", - "tier_single", - "tier_then", - "quantity", - "total", - "reduce", - "increase" - ] - }, - "admin-email-template-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Message to admin" }, - "placeholder": { "type": "string", "default": "None (don't send)" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "admin-email": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Send to" }, - "placeholder": { "type": "string", "default": "admin@example.com" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please enter an email" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "customer-email-template-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Message to customer" }, - "placeholder": { "type": "string", "default": "None (don't send)" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "gift-recipient-email-template-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Message to gift recipient" }, - "placeholder": { "type": "string", "default": "None (don't send)" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this item category? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "name", - "code", - "taxes", - "item-delivery-type", - "default-weight", - "default-weight-unit", - "default-length-unit", - "max-downloads-per-customer", - "max-downloads-time-period", - "shipping-flat-rate", - "shipping-flat-rate-type", - "customs-value", - "handling-fee-type", - "handling-fee", - "handling-fee-minimum", - "handling-fee-percentage", - "discount-name", - "discount-builder", - "admin-email-template-uri", - "admin-email", - "customer-email-template-uri", - "gift-recipient-email-template-uri", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/item-form.json b/src/static/schemas/item-form.json deleted file mode 100644 index fb6128e4e..000000000 --- a/src/static/schemas/item-form.json +++ /dev/null @@ -1,817 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "dimensions": { "type": "string", "default": "Dimensions" }, - "subscriptions": { "type": "string", "default": "Subscriptions" }, - "discount": { "type": "string", "default": "Discount" }, - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "helper_text": { "type": "string", "default": "Public name of this item." }, - "placeholder": { "type": "string", "default": "13' Laptop Case" }, - "v8n_required": { "type": "string", "default": "Name is required" }, - "v8n_too_long": { "type": "string", "default": "Name mustn't exceed 255 characters" } - }, - "required": ["label", "helper_text", "placeholder", "v8n_required", "v8n_too_long"] - }, - "price": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Price" }, - "helper_text": { "type": "string", "default": "Base price before option modifiers." }, - "placeholder": { "type": "string", "default": "25" }, - "v8n_required": { "type": "string", "default": "Price is required" }, - "v8n_negative": { "type": "string", "default": "Price can't be negative" } - }, - "required": ["label", "helper_text", "placeholder", "v8n_required", "v8n_negative"] - }, - "quantity": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Quantity" }, - "helper_text": { "type": "string", "default": "Number of items in the cart." }, - "placeholder": { "type": "string", "default": "1 by default" }, - "v8n_less_than_one": { "type": "string", "default": "Quantity must be 1 or more" } - }, - "required": ["label", "helper_text", "placeholder", "v8n_less_than_one"] - }, - "subscription-frequency": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Subscription frequency" }, - "helper_text": { - "type": "string", - "default": "This determines how often this subscription will be processed. To modify this value for an existing subscription, you must modify the subscription directly." - }, - "day": { "type": "string", "default": "Day" }, - "day_plural": { "type": "string", "default": "Days" }, - "week": { "type": "string", "default": "Week" }, - "week_plural": { "type": "string", "default": "Weeks" }, - "month": { "type": "string", "default": "Month" }, - "month_plural": { "type": "string", "default": "Months" }, - "year": { "type": "string", "default": "Year" }, - "year_plural": { "type": "string", "default": "Years" } - }, - "required": [ - "label", - "helper_text", - "day", - "day_plural", - "week", - "week_plural", - "month", - "month_plural", - "year", - "year_plural" - ] - }, - "subscription-start-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Subscription start" }, - "helper_text": { - "type": "string", - "default": "The original date this subscription began or will begin if set in the future. To modify this value for an existing subscription, you must modify the subscription directly." - }, - "placeholder": { "type": "string", "default": "01/01/2022" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "subscription-end-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Subscription end" }, - "helper_text": { - "type": "string", - "default": "If set, the date this subscription will end. The subscription will not run on this day." - }, - "placeholder": { "type": "string", "default": "01/01/2022" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "discount-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Discount name" }, - "helper_text": { - "type": "string", - "default": "The name of the line item discount if it is included on this item." - }, - "placeholder": { "type": "string", "default": "One-off 10% discount" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "discount-builder": { - "additionalProperties": false, - "properties": { - "tier": { "type": "string", "default": "Tier" }, - "tier_by": { "type": "string", "default": "by" }, - "tier_if": { "type": "string", "default": "if" }, - "tier_allunits": { "type": "string", "default": "price of each item" }, - "tier_incremental": { "type": "string", "default": "price of additional items" }, - "tier_repeat": { "type": "string", "default": "price of next item" }, - "tier_single": { "type": "string", "default": "order total" }, - "tier_then": { "type": "string", "default": "then" }, - "quantity": { "type": "string", "default": "quantity" }, - "total": { "type": "string", "default": "total" }, - "reduce": { "type": "string", "default": "reduce" }, - "increase": { "type": "string", "default": "increase" } - }, - "required": [ - "tier", - "tier_by", - "tier_if", - "tier_allunits", - "tier_incremental", - "tier_repeat", - "tier_single", - "tier_then", - "quantity", - "total", - "reduce", - "increase" - ] - }, - "expires": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Expires" }, - "helper_text": { - "type": "string", - "default": "Date when this item will be removed from the cart (optional)." - }, - "placeholder": { "type": "string", "default": "01/01/2022" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "image": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Image" }, - "helper_text": { - "type": "string", - "default": "URL of the image to display for this item in the cart and checkout." - }, - "placeholder": { "type": "string", "default": "https://picsum.photos/256" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "URL" }, - "helper_text": { - "type": "string", - "default": "Full URL for the customer to view this item on the store website." - }, - "placeholder": { "type": "string", "default": "https://example.com/products/123" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "quantity-min": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Min quantity" }, - "helper_text": { "type": "string", "default": "Minimum quantity per cart." }, - "placeholder": { "type": "string", "default": "1" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "quantity-max": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Max quantity" }, - "helper_text": { "type": "string", "default": "Maximum quantity per cart." }, - "placeholder": { "type": "string", "default": "25" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "shipto": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Shipping address" }, - "helper_text": { - "type": "string", - "default": "Used for multiship to assign this item to a specific shipment." - }, - "placeholder": { "type": "string", "default": "Select address to ship this item to..." } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "width": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Width" }, - "helper_text": { - "type": "string", - "default": "This is currently a placeholder for future use." - }, - "placeholder": { "type": "string", "default": "16" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "height": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Height" }, - "helper_text": { - "type": "string", - "default": "This is currently a placeholder for future use." - }, - "placeholder": { "type": "string", "default": "8" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "length": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Width" }, - "helper_text": { - "type": "string", - "default": "This is currently a placeholder for future use." - }, - "placeholder": { "type": "string", "default": "32" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "weight": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Weight" }, - "helper_text": { - "type": "string", - "default": "Per-item weight, used for shipping rate requests." - }, - "placeholder": { "type": "string", "default": "24" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "item-category-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Item category" }, - "helper_text": { "type": "string", "default": "Item category associated with this item." }, - "placeholder": { "type": "string", "default": "Select item category..." } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code" }, - "helper_text": { "type": "string", "default": "Unique item code such as SKU or barcode." }, - "placeholder": { "type": "string", "default": "MY-PRODUCT-001" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "parent-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Parent code" }, - "helper_text": { - "type": "string", - "default": "Used if this should be a child product in a bundle." - }, - "placeholder": { "type": "string", "default": "MY-BUNDLE-001" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "discount-details": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Discount details" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["title", "pagination"] - }, - "coupon-details": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Coupon details" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["title", "pagination"] - }, - "attributes": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Attributes" }, - "delete_header": { "type": "string", "default": "Remove attribute?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this attribute from the item." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_create": { "type": "string", "default": "Create attribute" }, - "header_update": { "type": "string", "default": "Update attribute" }, - "close": { "type": "string", "default": "Close" }, - "save": { "type": "string", "default": "Save" }, - "cancel": { "type": "string", "default": "Cancel" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "attribute-form": { - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Name of this attribute. It does not have to be unique." - }, - "v8n_required": { "type": "string", "default": "Please name this attribute." }, - "v8n_too_long": { - "type": "string", - "default": "Please choose a name that is 500 characters long or less." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Value of this attribute. Attribute values are automatically HTML-escaped." - }, - "v8n_required": { - "type": "string", - "default": "Please provide a value for this attribute." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store values that are more than 1000 characters long." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "visibility": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Visibility" }, - "option_public": { "type": "string", "default": "Everyone" }, - "option_restricted": { "type": "string", "default": "Store admins" }, - "option_private": { "type": "string", "default": "Only me" }, - "helper_text": { - "type": "string", - "default": "Controls who can see this attribute. Public attributes can be shown to anyone, including customers. Private attributes are more suitable for configuration or technical details which are irrelevant to the public. Restricted attributes can only be viewed with the OAuth client that created them." - } - }, - "required": [ - "label", - "option_public", - "option_restricted", - "option_private", - "helper_text" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "name", - "value", - "visibility", - "timestamps", - "delete", - "create", - "spinner" - ] - } - }, - "required": [ - "header_create", - "header_update", - "close", - "save", - "cancel", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "attribute-form" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add attribute +" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Delete" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "spinner"] - }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": [ - "create_button_text", - "card", - "first", - "last", - "next", - "pagination", - "previous" - ] - } - }, - "required": [ - "title", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "dialog", - "pagination" - ] - }, - "item-options": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Item options" }, - "delete_header": { "type": "string", "default": "Remove item option?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this item option from the item." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_create": { "type": "string", "default": "Create option" }, - "header_update": { "type": "string", "default": "Update option" }, - "close": { "type": "string", "default": "Close" }, - "save": { "type": "string", "default": "Save" }, - "cancel": { "type": "string", "default": "Cancel" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "item-option-form": { - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "helper_text": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "Color" }, - "v8n_required": { "type": "string", "default": "Name is required" }, - "v8n_too_long": { - "type": "string", - "default": "Name mustn't exceed 100 characters" - } - }, - "required": [ - "label", - "helper_text", - "placeholder", - "v8n_required", - "v8n_too_long" - ] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "helper_text": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "Red" }, - "v8n_required": { "type": "string", "default": "Value is required" }, - "v8n_too_long": { - "type": "string", - "default": "Value mustn't exceed 1024 characters" - } - }, - "required": [ - "label", - "helper_text", - "placeholder", - "v8n_required", - "v8n_too_long" - ] - }, - "price-mod": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Price" }, - "helper_text": { "type": "string", "default": "Same currency as item" }, - "placeholder": { "type": "string", "default": "10" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "weight-mod": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Weight" }, - "helper_text": { "type": "string", "default": "Arbitrary units" }, - "placeholder": { "type": "string", "default": "5" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this item option? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - } - }, - "required": [ - "name", - "value", - "price-mod", - "weight-mod", - "timestamps", - "spinner", - "delete", - "create" - ] - } - }, - "required": [ - "header_create", - "header_update", - "close", - "save", - "cancel", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "item-option-form" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Delete" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "spinner"] - }, - "create_button_text": { "type": "string", "default": "Add option +" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": [ - "card", - "create_button_text", - "first", - "last", - "next", - "pagination", - "previous" - ] - } - }, - "required": [ - "title", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "dialog", - "pagination" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this item? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "dimensions", - "subscriptions", - "discount", - "name", - "price", - "quantity", - "subscription-frequency", - "subscription-start-date", - "subscription-end-date", - "discount-name", - "discount-builder", - "expires", - "image", - "url", - "quantity-min", - "quantity-max", - "shipto", - "width", - "height", - "length", - "weight", - "item-category-uri", - "code", - "parent-code", - "discount-details", - "coupon-details", - "attributes", - "item-options", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/item-option-form.json b/src/static/schemas/item-option-form.json deleted file mode 100644 index 843a31fb8..000000000 --- a/src/static/schemas/item-option-form.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "helper_text": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "Color" }, - "v8n_required": { "type": "string", "default": "Name is required" }, - "v8n_too_long": { "type": "string", "default": "Name mustn't exceed 100 characters" } - }, - "required": ["label", "helper_text", "placeholder", "v8n_required", "v8n_too_long"] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "helper_text": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "Red" }, - "v8n_required": { "type": "string", "default": "Value is required" }, - "v8n_too_long": { "type": "string", "default": "Value mustn't exceed 1024 characters" } - }, - "required": ["label", "helper_text", "placeholder", "v8n_required", "v8n_too_long"] - }, - "price-mod": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Price" }, - "helper_text": { "type": "string", "default": "Same currency as item" }, - "placeholder": { "type": "string", "default": "10" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "weight-mod": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Weight" }, - "helper_text": { "type": "string", "default": "Arbitrary units" }, - "placeholder": { "type": "string", "default": "5" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this item option? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - } - }, - "required": [ - "name", - "value", - "price-mod", - "weight-mod", - "timestamps", - "spinner", - "delete", - "create" - ] -} diff --git a/src/static/schemas/items-form.json b/src/static/schemas/items-form.json deleted file mode 100644 index 9773595b5..000000000 --- a/src/static/schemas/items-form.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "checkout": { - "additionalProperties": false, - "properties": { - "buy": { "type": "string", "default": "Buy for {{value}}" }, - "subscribe_single_unit": { - "type": "string", - "default": "Subscribe for {{value}}/{{period}}" - }, - "subscribe_muiltiple_units": { - "type": "string", - "default": "Subscribe for {{value}} {{period}}" - } - }, - "required": ["buy", "subscribe_single_unit", "subscribe_muiltiple_units"] - }, - "freq": { - "additionalProperties": false, - "properties": { - "just_this_once": { "type": "string", "default": "Just this once" }, - "day": { "type": "string", "default": "day" }, - "week": { "type": "string", "default": "week" }, - "month": { "type": "string", "default": "month" }, - "year": { "type": "string", "default": "year" } - }, - "required": ["just_this_once", "day", "week", "month", "year"] - }, - "error": { - "additionalProperties": false, - "properties": { - "invalid_start_date": { "type": "string", "default": "Invalid start date." }, - "invalid_frequency": { "type": "string", "default": "Invalid frequency." }, - "invalid_end_date": { "type": "string", "default": "Invalid end date" }, - "frequency_options_must_be_array": { - "type": "string", - "default": "Frequency options must be an array." - }, - "no_currency": { "type": "string", "default": "No currency available." } - }, - "required": [ - "invalid_start_date", - "invalid_frequency", - "invalid_end_date", - "frequency_options_must_be_array", - "no_currency" - ] - }, - "item": { - "additionalProperties": false, - "properties": { - "remove": { "type": "string", "default": "Remove" }, - "items": { "type": "string", "default": "{{quantity}} items" } - }, - "required": ["remove", "items"] - }, - "price": { - "additionalProperties": false, - "properties": { "total": { "type": "string", "default": "{{ amount }} total" } }, - "required": ["total"] - } - }, - "required": ["checkout", "freq", "error", "item", "price"] -} diff --git a/src/static/schemas/native-integration-card.json b/src/static/schemas/native-integration-card.json deleted file mode 100644 index ec042d03e..000000000 --- a/src/static/schemas/native-integration-card.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "image_alt": { "type": "string", "default": "Native integration logo" }, - "title_avalara": { "type": "string", "default": "Avalara" }, - "title_taxjar": { "type": "string", "default": "TaxJar" }, - "title_onesource": { "type": "string", "default": "ONESOURCE" }, - "title_webflow": { "type": "string", "default": "Webflow" }, - "title_zapier": { "type": "string", "default": "Zapier" }, - "title_webhook": { "type": "string", "default": "{{ title }}" }, - "title_apple_pay": { "type": "string", "default": "Apple Pay" }, - "title_custom_tax": { "type": "string", "default": "Custom Tax Endpoint" }, - "subtitle_avalara": { "type": "string", "default": "Account #{{ id }} • {{ service_url }}" }, - "subtitle_taxjar": { - "type": "string", - "default": "SmartCalcs API token ends in ****{{ api_token }}" - }, - "subtitle_onesource": { "type": "string", "default": "{{ service_url }}" }, - "subtitle_webflow": { "type": "string", "default": "{{ site_name }} • ID {{ site_id }}" }, - "subtitle_zapier": { "type": "string", "default": "{{ url }}" }, - "subtitle_webhook": { "type": "string", "default": "{{ url }}" }, - "subtitle_apple_pay": { "type": "string", "default": "Merchant #{{ merchantID }}" }, - "subtitle_custom_tax": { "type": "string", "default": "{{ url }}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "image_alt", - "title_avalara", - "title_taxjar", - "title_onesource", - "title_webflow", - "title_zapier", - "title_webhook", - "title_apple_pay", - "title_custom_tax", - "subtitle_avalara", - "subtitle_taxjar", - "subtitle_onesource", - "subtitle_webflow", - "subtitle_zapier", - "subtitle_webhook", - "subtitle_apple_pay", - "subtitle_custom_tax", - "spinner" - ] -} diff --git a/src/static/schemas/native-integration-form.json b/src/static/schemas/native-integration-form.json deleted file mode 100644 index fd359c3b7..000000000 --- a/src/static/schemas/native-integration-form.json +++ /dev/null @@ -1,673 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "error": { - "additionalProperties": false, - "properties": { - "already_configured": { - "type": "string", - "default": "This integration is already configured. Please edit the existing integration instead." - } - }, - "required": ["already_configured"] - }, - "provider": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Provider" }, - "option_avalara": { "type": "string", "default": "Avalara" }, - "option_taxjar": { "type": "string", "default": "TaxJar" }, - "option_onesource": { "type": "string", "default": "ONESOURCE" }, - "option_webflow": { "type": "string", "default": "Webflow" }, - "option_zapier": { "type": "string", "default": "Zapier" }, - "helper_text": { - "type": "string", - "default": "Changing service provider is not possible after creation." - }, - "v8n_required": { "type": "string", "default": "Please select a provider." } - }, - "required": [ - "label", - "option_avalara", - "option_taxjar", - "option_onesource", - "option_webflow", - "option_zapier", - "helper_text", - "v8n_required" - ] - }, - "avalara-service-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Service URL" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "If in test mode, it should be https://development.avalara.net. If in production, it should be https://avatax.avalara.net unless a different Service URL has been provided to you by Avalara." - }, - "v8n_required": { "type": "string", "default": "Please enter a service URL." }, - "v8n_invalid": { "type": "string", "default": "Please enter a valid URL." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_invalid"] - }, - "avalara-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Account number" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Be sure to use either a development or production value based on your Service URL." - }, - "v8n_required": { "type": "string", "default": "Please enter an account number." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "avalara-key": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "License key" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Be sure to use either a development or production value based on your Service URL." - }, - "v8n_required": { "type": "string", "default": "Please enter a license key." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "avalara-company-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Company code" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Be sure to use either a development or production value based on your Service URL." - }, - "v8n_required": { "type": "string", "default": "Please enter a company code." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "avalara-options": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Options" }, - "option_use_ava_tax": { "type": "string", "default": "Use for live taxes" }, - "option_enable_colorado_delivery_fee": { - "type": "string", - "default": "Enable Colorado Delivery Fee" - }, - "option_create_invoice": { "type": "string", "default": "Enable Committed Sales Invoice" }, - "option_use_address_validation": { - "type": "string", - "default": "Validate customer addresses" - }, - "helper_text": { "type": "string", "default": "" } - }, - "required": [ - "label", - "option_use_ava_tax", - "option_enable_colorado_delivery_fee", - "option_create_invoice", - "option_use_address_validation", - "helper_text" - ] - }, - "avalara-address-validation-countries": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address validation countries" }, - "option_US": { "type": "string", "default": "United States" }, - "option_CA": { "type": "string", "default": "Canada" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "option_US", "option_CA", "helper_text"] - }, - "avalara-category-to-product-tax-code-mappings": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Category to product tax code mappings" }, - "helper_text": { - "type": "string", - "default": "Replace Foxy category codes with AvaTax tax codes when sending data to Avalara. If left empty, the category code will be sent to AvaTax instead." - }, - "placeholder": { "type": "string", "default": "foxy_category_code:avatax_tax_code" }, - "v8n_required": { "type": "string", "default": "Please add at least one tax code mapping." } - }, - "required": ["label", "helper_text", "placeholder", "v8n_required"] - }, - "taxjar-api-token": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "API token" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Your SmartCalcs API token obtained from TaxJar." - }, - "v8n_required": { "type": "string", "default": "Please enter an API token." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "taxjar-category-to-product-tax-code-mappings": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Category to product tax code mappings" }, - "helper_text": { - "type": "string", - "default": "Replace Foxy category codes with TaxJar tax codes when sending data to TaxJar. If left empty, the category code will be sent to TaxJar instead." - }, - "placeholder": { "type": "string", "default": "foxy_category_code:taxjar_tax_code" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "taxjar-options": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Options" }, - "option_create_invoice": { "type": "string", "default": "Enable Committed Sales Invoice" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "option_create_invoice", "helper_text"] - }, - "onesource-service-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Service URL" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The ONESOURCE service URL you want to connect to." - }, - "v8n_required": { "type": "string", "default": "Please enter a service URL." }, - "v8n_invalid": { "type": "string", "default": "Please enter a valid URL." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_invalid"] - }, - "onesource-external-company-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "External company ID" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "External company ID mapping to the Determination company owning the audit data." - }, - "v8n_required": { "type": "string", "default": "Please enter an external company ID." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "onesource-calling-system-number": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Calling system number" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "A unique identifier for your ERP system. The combination of Calling System Number, Host System, and Unique Invoice Number form a unique key for an invoice in the Audit Database." - }, - "v8n_required": { "type": "string", "default": "Please enter a calling system number." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "onesource-from-city": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "From city" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "This city should match the postal code and country you have configured in your settings." - }, - "v8n_required": { "type": "string", "default": "Please enter a city." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "onesource-host-system": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Host system" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "A unique name for your ERP system. The combination of Calling System Number, Host System, and Unique Invoice Number form a unique key for an invoice in the Audit Database." - }, - "v8n_required": { "type": "string", "default": "Please enter a host system." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "onesource-company-role": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Company role" }, - "option_buyer": { "type": "string", "default": "Buyer" }, - "option_seller": { "type": "string", "default": "Seller" }, - "option_middleman": { "type": "string", "default": "Middleman" }, - "helper_text": { - "type": "string", - "default": "The role the company plays in a given transaction. Each role results in different transaction tax and reporting requirements." - } - }, - "required": ["label", "option_buyer", "option_seller", "option_middleman", "helper_text"] - }, - "onesource-part-number-product-option": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Custom product option name" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "If you use a custom product option name to specify your part number such as SKU or ISBN, enter that name here here. You can also set it to \"code\" to use the standard product code attribute." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "onesource-product-order-priority": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Custom product order" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "The PRODUCT_CODE field in ONESOURCE is populated via the Foxy category code. The first shippable product will have the RELATED_LINE_NUMBER associated with it. To control which product is listed first, add a list of Foxy category codes here based on the order priority you'd like." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "onesource-audit-settings": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Audit" }, - "option_capture_only": { "type": "string", "default": "On capture" }, - "option_auth_and_capture": { "type": "string", "default": "On auth and capture" }, - "option_never": { "type": "string", "default": "Never" }, - "helper_text": { - "type": "string", - "default": "When completing a transaction, use this setting to determine if the information sent to Onesource will be audited and reported." - } - }, - "required": [ - "label", - "option_capture_only", - "option_auth_and_capture", - "option_never", - "helper_text" - ] - }, - "webhook-service": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Payload format" }, - "option_json": { "type": "string", "default": "JSON" }, - "option_legacy_xml": { "type": "string", "default": "XML" }, - "helper_text": { - "type": "string", - "default": "Use JSON for new services. XML webhooks are deprecated and may be removed in the future." - } - }, - "required": ["label", "option_json", "option_legacy_xml", "helper_text"] - }, - "webhook-json-title": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Provider" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "A descriptive title that identies your custom service." - }, - "v8n_required": { "type": "string", "default": "Please enter a title." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "webhook-json-encryption-key": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Encryption key" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "This value is used as they key to encrypt the and verify the payload sent for the webhook." - }, - "v8n_required": { "type": "string", "default": "Please enter an encryption key." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "webhook-json-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Webhook URL" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The absolute URL (beginning with https:// or http://) to which Foxy will send the webhook on selected events." - }, - "v8n_required": { "type": "string", "default": "Please enter a webhook URL." }, - "v8n_invalid": { "type": "string", "default": "Please enter a valid URL." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_invalid"] - }, - "webhook-json-events": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Events" }, - "option_transaction_created": { "type": "string", "default": "Transaction created" }, - "option_subscription_cancelled": { "type": "string", "default": "Subscription cancelled" }, - "helper_text": { - "type": "string", - "default": "Select at least one event that will trigger this webhook." - } - }, - "required": [ - "label", - "option_transaction_created", - "option_subscription_cancelled", - "helper_text" - ] - }, - "webhook-warning": { - "additionalProperties": false, - "properties": { - "warning_text": { - "type": "string", - "default": "We are winding down support for custom services that rely on legacy webhooks and XML datafeed. Please consider using the new JSON webhooks instead." - }, - "link_text": { "type": "string", "default": "Read the announcement" } - }, - "required": ["warning_text", "link_text"] - }, - "webhook-legacy-xml-title": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Provider" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "A descriptive title that identies your custom service." - }, - "v8n_required": { "type": "string", "default": "Please enter a title." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "webhook-legacy-xml-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Webhook URL" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The absolute URL (beginning with https:// or http://) to which Foxy will send the webhook on selected events." - }, - "v8n_required": { "type": "string", "default": "Please enter a webhook URL." }, - "v8n_invalid": { "type": "string", "default": "Please enter a valid URL." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_invalid"] - }, - "webflow-site-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Site ID" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "The Site ID of your Webflow site." }, - "v8n_required": { "type": "string", "default": "Please enter a site ID." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "webflow-site-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Site name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "The name of your Webflow site." }, - "v8n_required": { "type": "string", "default": "Please enter a site name." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "webflow-collection-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Collection ID" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The ID of the collection that products are stored in." - }, - "v8n_required": { "type": "string", "default": "Please enter a collection ID." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "webflow-collection-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Collection name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "The name of your products collection." }, - "v8n_required": { "type": "string", "default": "Please enter a collection name." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "webflow-sku-field-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "SKU field ID" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The ID of the code field in your products collection." - }, - "v8n_required": { "type": "string", "default": "Please enter a SKU field ID." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "webflow-sku-field-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "SKU field name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The name of the code field in your products collection." - }, - "v8n_required": { "type": "string", "default": "Please enter a SKU field name." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "webflow-inventory-field-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Inventory field ID" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The ID of the inventory field in your products collection." - }, - "v8n_required": { "type": "string", "default": "Please enter an inventory field ID." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "webflow-inventory-field-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Inventory field name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The name of the inventory field in your products collection." - }, - "v8n_required": { "type": "string", "default": "Please enter an inventory field name." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "webflow-auth": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Token" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "The OAuth2 authorization token for your Webflow site." - }, - "v8n_required": { "type": "string", "default": "Please enter an authorization token." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "zapier-event": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Event" }, - "placeholder": { "type": "string", "default": "Defined by Zapier" }, - "helper_text": { "type": "string", "default": "The event this zap is subscribed to." } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "zapier-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "URL" }, - "placeholder": { "type": "string", "default": "Defined by Zapier" }, - "helper_text": { "type": "string", "default": "The Zapier webhook subscription URL." } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "zapier-warning": { - "additionalProperties": false, - "properties": { - "warning_text": { - "type": "string", - "default": "Zapier webhooks are read-only and can not be created or modified in the Foxy Admin. Please connect your Zapier webhooks at zapier.com." - } - }, - "required": ["warning_text"] - }, - "apple-pay-merchant-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Merchant ID" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "This identifier is configured automatically when you enable Apple Pay in your store settings." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "apple-pay-warning": { - "additionalProperties": false, - "properties": { - "warning_text": { - "type": "string", - "default": "Apple Pay native integration entry on this page is informational. To configure Apple Pay, please go to your gateway settings." - } - }, - "required": ["warning_text"] - }, - "custom-tax-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "URL" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "The URL of your custom tax service." } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "custom-tax-warning": { - "additionalProperties": false, - "properties": { - "warning_text": { - "type": "string", - "default": "It is currently not possible to configure this integration in this new admin app. Please use the legacy app at admin.foxycart.com to make changes." - } - }, - "required": ["warning_text"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Please confirm that you want to delete this integration. This action cannot be undone." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "error", - "provider", - "avalara-service-url", - "avalara-id", - "avalara-key", - "avalara-company-code", - "avalara-options", - "avalara-address-validation-countries", - "avalara-category-to-product-tax-code-mappings", - "taxjar-api-token", - "taxjar-category-to-product-tax-code-mappings", - "taxjar-options", - "onesource-service-url", - "onesource-external-company-id", - "onesource-calling-system-number", - "onesource-from-city", - "onesource-host-system", - "onesource-company-role", - "onesource-part-number-product-option", - "onesource-product-order-priority", - "onesource-audit-settings", - "webhook-service", - "webhook-json-title", - "webhook-json-encryption-key", - "webhook-json-url", - "webhook-json-events", - "webhook-warning", - "webhook-legacy-xml-title", - "webhook-legacy-xml-url", - "webflow-site-id", - "webflow-site-name", - "webflow-collection-id", - "webflow-collection-name", - "webflow-sku-field-id", - "webflow-sku-field-name", - "webflow-inventory-field-id", - "webflow-inventory-field-name", - "webflow-auth", - "zapier-event", - "zapier-url", - "zapier-warning", - "apple-pay-merchant-id", - "apple-pay-warning", - "custom-tax-url", - "custom-tax-warning", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/pagination.json b/src/static/schemas/pagination.json deleted file mode 100644 index e0f8206d5..000000000 --- a/src/static/schemas/pagination.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": ["first", "last", "next", "pagination", "previous"] -} diff --git a/src/static/schemas/passkey-card.json b/src/static/schemas/passkey-card.json deleted file mode 100644 index 1097a2ea1..000000000 --- a/src/static/schemas/passkey-card.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "subtitle_no_data": { - "type": "string", - "default": "Usage data is not available for this passkey" - }, - "subtitle": { - "type": "string", - "default": "Last used on {{ last_login_date, date }} in {{ last_login_ua }}" - }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["subtitle_no_data", "subtitle", "spinner"] -} diff --git a/src/static/schemas/passkey-form.json b/src/static/schemas/passkey-form.json deleted file mode 100644 index 76bcb8cc6..000000000 --- a/src/static/schemas/passkey-form.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "credential-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Credential ID" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "Unique identifier of your passkey. You might be able to find this passkey by Credential ID in your password manager." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "last-login-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last login date" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "The last time this passkey was used to sign in to your Foxy Account." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "last-login-ua": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last browser" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "User agent string of the browser that was last used to sign in to your Foxy Account with this passkey." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Once deleted, this passkey will no longer be accepted on login but will remain in your password manager. Sessions created with this passkey will stay active." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "credential-id", - "last-login-date", - "last-login-ua", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/payment-card-embed.json b/src/static/schemas/payment-card-embed.json deleted file mode 100644 index 5e18c04b5..000000000 --- a/src/static/schemas/payment-card-embed.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "stripe": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card details" }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Stripe. Visit https://stripe.com to learn more." - }, - "busy": { "type": "string", "default": "Encrypting your card details..." }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "unsupported": { - "type": "string", - "default": "We don't support this card type. Please try another card." - } - }, - "required": ["idle", "busy", "fail", "unsupported"] - } - }, - "required": ["label", "status"] - }, - "square": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card details" }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Square. Visit https://squareup.com to learn more." - }, - "busy": { "type": "string", "default": "Encrypting your card details..." }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "unsupported": { - "type": "string", - "default": "We don't support this card type. Please try another card." - } - }, - "required": ["idle", "busy", "fail", "unsupported"] - } - }, - "required": ["label", "status"] - }, - "default": { - "additionalProperties": false, - "properties": { - "cc-number": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card number" }, - "placeholder": { "type": "string", "default": "1234 1234 1234 1234" }, - "v8n_required": { "type": "string", "default": "Enter a card number." }, - "v8n_invalid": { - "type": "string", - "default": "Check your card number – it doesn't seem to be valid." - }, - "v8n_unsupported": { "type": "string", "default": "We don't support this card type." } - }, - "required": ["label", "placeholder", "v8n_required", "v8n_invalid", "v8n_unsupported"] - }, - "cc-exp": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Expires on" }, - "placeholder": { "type": "string", "default": "MM/YYYY" }, - "v8n_required": { "type": "string", "default": "Enter an expiry date." }, - "v8n_invalid": { "type": "string", "default": "Enter a date as MM/YYYY." }, - "v8n_expired": { "type": "string", "default": "Your card has expired." } - }, - "required": ["label", "placeholder", "v8n_required", "v8n_invalid", "v8n_expired"] - }, - "cc-csc": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "CSC" }, - "placeholder": { "type": "string", "default": "XXX" }, - "v8n_required": { "type": "string", "default": "Enter a security code." }, - "v8n_invalid": { "type": "string", "default": "Enter a 3-4 digits code." } - }, - "required": ["label", "placeholder", "v8n_required", "v8n_invalid"] - }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Foxy.io. Visit https://foxy.io to learn more." - }, - "busy": { "type": "string", "default": "Encrypting your card details..." }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "misconfigured": { - "type": "string", - "default": "This form is not configured correctly. If you are seeing this message as a customer, please report this issue to the store support team." - } - }, - "required": ["idle", "busy", "fail", "misconfigured"] - } - }, - "required": ["cc-number", "cc-exp", "cc-csc", "status"] - } - }, - "required": ["stripe", "square", "default"] -} diff --git a/src/static/schemas/payment-card.json b/src/static/schemas/payment-card.json deleted file mode 100644 index fe498cae7..000000000 --- a/src/static/schemas/payment-card.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "code": { "type": "string", "default": "Code" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "fraud_risk": { "type": "string", "default": "Fraud risk: {{ score }}" }, - "processor_response": { "type": "string", "default": "{{ processor_response }}" }, - "purchase_order": { "type": "string", "default": "PO {{ purchase_order }}" }, - "paypal_payer_id": { "type": "string", "default": "PayPal Payer ID {{ paypal_payer_id }}" }, - "third_party_id": { "type": "string", "default": "External ID {{ third_party_id }}" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "unknown": { "type": "string", "default": "Unknown" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "code", - "date", - "fraud_risk", - "processor_response", - "purchase_order", - "paypal_payer_id", - "third_party_id", - "price", - "unknown", - "spinner" - ] -} diff --git a/src/static/schemas/payment-method-card.json b/src/static/schemas/payment-method-card.json deleted file mode 100644 index 1291d38ed..000000000 --- a/src/static/schemas/payment-method-card.json +++ /dev/null @@ -1,439 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "delete": { "type": "string", "default": "Delete" }, - "add": { "type": "string", "default": "Add payment method" }, - "update": { "type": "string", "default": "Update payment method" }, - "delete_prompt": { - "type": "string", - "default": "This payment method will be permanently deleted from your account. Would you like to continue?" - }, - "expires": { "type": "string", "default": "Expires" }, - "last_4_digits": { "type": "string", "default": "Last 4 digits" }, - "unknown": { "type": "string", "default": "Unknown" }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "dialog_header_add": { "type": "string", "default": "Add payment method" }, - "dialog_header_update": { "type": "string", "default": "Update payment method" }, - "update-payment-method-form": { - "additionalProperties": false, - "properties": { - "status": { - "additionalProperties": false, - "properties": { - "cc_token_success": { - "type": "string", - "default": "Card details saved successfully." - }, - "close": { "type": "string", "default": "Close" } - }, - "required": ["cc_token_success", "close"] - }, - "error": { - "additionalProperties": false, - "properties": { - "cc_token_invalid": { - "type": "string", - "default": "Unfortunately, we couldn't save your card details. Please try again later or use a different card." - } - }, - "required": ["cc_token_invalid"] - }, - "template-set": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Template set" }, - "dialog": { - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "header": { "type": "string", "default": "Choose a template set" }, - "selection": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "search": { "type": "string", "default": "Search" }, - "clear": { "type": "string", "default": "Clear" }, - "pagination": { - "additionalProperties": false, - "properties": { - "search_button_text": { "type": "string", "default": "Search" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { - "type": "string", - "default": "No template sets found" - }, - "loading_error": { - "type": "string", - "default": "Unknown error" - } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": [ - "search_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "query-builder": { - "additionalProperties": false, - "properties": { - "filters": { - "additionalProperties": false, - "properties": {}, - "required": [] - }, - "add_or_clause": { "type": "string", "default": "Add OR clause" }, - "add_value": { "type": "string", "default": "Add value" }, - "code": { "type": "string", "default": "Code" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "delete": { "type": "string", "default": "Delete" }, - "field": { "type": "string", "default": "Field" }, - "hidden": { "type": "string", "default": "Hidden" }, - "is_defined_false": { "type": "string", "default": "Not defined" }, - "is_defined_true": { "type": "string", "default": "Defined" }, - "name": { "type": "string", "default": "Name" }, - "operator_equal": { "type": "string", "default": "Equal" }, - "operator_greaterthan": { "type": "string", "default": "Greater than" }, - "operator_greaterthanorequal": { - "type": "string", - "default": "Greater than or equal" - }, - "operator_in": { "type": "string", "default": "One of" }, - "operator_isdefined": { "type": "string", "default": "Is defined" }, - "operator_lessthan": { "type": "string", "default": "Less than" }, - "operator_lessthanorequal": { - "type": "string", - "default": "Less than or equal" - }, - "operator_not": { "type": "string", "default": "Not equal" }, - "or": { "type": "string", "default": "Or" }, - "query_builder_group": { - "type": "string", - "default": "Group of filters" - }, - "query_builder_rule": { "type": "string", "default": "Filter" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "type": { "type": "string", "default": "Type" }, - "type_any": { "type": "string", "default": "Field of unknown type" }, - "type_attribute": { "type": "string", "default": "Key-value resource" }, - "type_date": { "type": "string", "default": "Date field" }, - "type_here": { "type": "string", "default": "Type here..." }, - "type_number": { "type": "string", "default": "Numeric field" }, - "type_string": { "type": "string", "default": "Text field" }, - "used_codes": { "type": "string", "default": "Codes used" }, - "value": { "type": "string", "default": "Value" } - }, - "required": [ - "filters", - "add_or_clause", - "add_value", - "code", - "date", - "date_created", - "date_modified", - "delete", - "field", - "hidden", - "is_defined_false", - "is_defined_true", - "name", - "operator_equal", - "operator_greaterthan", - "operator_greaterthanorequal", - "operator_in", - "operator_isdefined", - "operator_lessthan", - "operator_lessthanorequal", - "operator_not", - "or", - "query_builder_group", - "query_builder_rule", - "range_from", - "range_to", - "type", - "type_any", - "type_attribute", - "type_date", - "type_here", - "type_number", - "type_string", - "used_codes", - "value" - ] - } - }, - "required": [ - "label", - "helper_text", - "search", - "clear", - "pagination", - "query-builder" - ] - } - }, - "required": ["cancel", "close", "header", "selection"] - }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "Click to select" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - }, - "helper_text": { - "type": "string", - "default": "Template set determines which payment gateway and tokenization service will be used to capture card details." - } - }, - "required": ["label", "dialog", "card", "helper_text"] - }, - "cc-token": { - "additionalProperties": false, - "properties": { - "tokenize": { "type": "string", "default": "Save card" }, - "payment-card-embed": { - "additionalProperties": false, - "properties": { - "stripe": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card details" }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Stripe. Visit https://stripe.com to learn more." - }, - "busy": { - "type": "string", - "default": "Encrypting your card details..." - }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "unsupported": { - "type": "string", - "default": "We don't support this card type. Please try another card." - } - }, - "required": ["idle", "busy", "fail", "unsupported"] - } - }, - "required": ["label", "status"] - }, - "square": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card details" }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Square. Visit https://squareup.com to learn more." - }, - "busy": { - "type": "string", - "default": "Encrypting your card details..." - }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "unsupported": { - "type": "string", - "default": "We don't support this card type. Please try another card." - } - }, - "required": ["idle", "busy", "fail", "unsupported"] - } - }, - "required": ["label", "status"] - }, - "default": { - "additionalProperties": false, - "properties": { - "cc-number": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card number" }, - "placeholder": { "type": "string", "default": "1234 1234 1234 1234" }, - "v8n_required": { "type": "string", "default": "Enter a card number." }, - "v8n_invalid": { - "type": "string", - "default": "Check your card number – it doesn't seem to be valid." - }, - "v8n_unsupported": { - "type": "string", - "default": "We don't support this card type." - } - }, - "required": [ - "label", - "placeholder", - "v8n_required", - "v8n_invalid", - "v8n_unsupported" - ] - }, - "cc-exp": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Expires on" }, - "placeholder": { "type": "string", "default": "MM/YYYY" }, - "v8n_required": { - "type": "string", - "default": "Enter an expiry date." - }, - "v8n_invalid": { - "type": "string", - "default": "Enter a date as MM/YYYY." - }, - "v8n_expired": { "type": "string", "default": "Your card has expired." } - }, - "required": [ - "label", - "placeholder", - "v8n_required", - "v8n_invalid", - "v8n_expired" - ] - }, - "cc-csc": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "CSC" }, - "placeholder": { "type": "string", "default": "XXX" }, - "v8n_required": { - "type": "string", - "default": "Enter a security code." - }, - "v8n_invalid": { - "type": "string", - "default": "Enter a 3-4 digits code." - } - }, - "required": ["label", "placeholder", "v8n_required", "v8n_invalid"] - }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Foxy.io. Visit https://foxy.io to learn more." - }, - "busy": { - "type": "string", - "default": "Encrypting your card details..." - }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "misconfigured": { - "type": "string", - "default": "This form is not configured correctly. If you are seeing this message as a customer, please report this issue to the store support team." - } - }, - "required": ["idle", "busy", "fail", "misconfigured"] - } - }, - "required": ["cc-number", "cc-exp", "cc-csc", "status"] - } - }, - "required": ["stripe", "square", "default"] - } - }, - "required": ["tokenize", "payment-card-embed"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" }, - "loading_empty": { - "type": "string", - "default": "This form works only with existing payment methods" - } - }, - "required": ["refresh", "loading_busy", "loading_error", "loading_empty"] - } - }, - "required": ["status", "error", "template-set", "cc-token", "spinner"] - } - }, - "required": [ - "close", - "dialog_header_add", - "dialog_header_update", - "update-payment-method-form" - ] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No payment method" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "cancel", - "delete", - "add", - "update", - "delete_prompt", - "expires", - "last_4_digits", - "unknown", - "dialog", - "spinner" - ] -} diff --git a/src/static/schemas/payment-method-form.json b/src/static/schemas/payment-method-form.json deleted file mode 100644 index 253149f09..000000000 --- a/src/static/schemas/payment-method-form.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "tab_0": { "type": "string", "default": "Use the saved card" }, - "tab_1": { "type": "string", "default": "Add a new card" }, - "cc-number": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card number" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "cc-exp": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Expires on" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "cc-csc": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "CSC" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "cc-token": { - "additionalProperties": false, - "properties": { - "cc-number": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card number" }, - "placeholder": { "type": "string", "default": "1234 1234 1234 1234" }, - "v8n_required": { "type": "string", "default": "Enter a card number" }, - "v8n_invalid": { - "type": "string", - "default": "Check your card number – it doesn't seem to be valid" - }, - "v8n_unsupported": { "type": "string", "default": "We don't support this card type" } - }, - "required": ["label", "placeholder", "v8n_required", "v8n_invalid", "v8n_unsupported"] - }, - "cc-exp": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Expires on" }, - "placeholder": { "type": "string", "default": "MM/YYYY" }, - "v8n_required": { "type": "string", "default": "Enter an expiry date" }, - "v8n_invalid": { "type": "string", "default": "Enter a date as MM/YYYY" }, - "v8n_expired": { "type": "string", "default": "Your card has expired" } - }, - "required": ["label", "placeholder", "v8n_required", "v8n_invalid", "v8n_expired"] - }, - "cc-csc": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "CSC" }, - "placeholder": { "type": "string", "default": "XXX" }, - "v8n_required": { "type": "string", "default": "Enter a security code" }, - "v8n_invalid": { "type": "string", "default": "Enter a 3-4 digits code" } - }, - "required": ["label", "placeholder", "v8n_required", "v8n_invalid"] - }, - "supported-cards": { - "additionalProperties": false, - "properties": { "label": { "type": "string", "default": "Accepted cards" } }, - "required": ["label"] - }, - "status-message": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are protected with SSL and a NSA-approved encryption algorithm." - }, - "busy": { "type": "string", "default": "Encrypting your card details..." }, - "fail_5xx": { - "type": "string", - "default": "Card tokenization service is currently unavailable. Please try again later." - }, - "fail_4xx": { - "type": "string", - "default": "This card doesn't appear to be valid. Please check the details and try again." - } - }, - "required": ["idle", "busy", "fail_5xx", "fail_4xx"] - } - }, - "required": ["cc-number", "cc-exp", "cc-csc", "supported-cards", "status-message"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Added on" }, - "date_modified": { "type": "string", "default": "Last updated" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "If you have any active subscriptions, they will fail on next payment date. Are you sure you'd like to remove this card?" - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Add card" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Failed to load" } - }, - "required": ["loading_busy", "loading_error"] - } - }, - "required": [ - "tab_0", - "tab_1", - "cc-number", - "cc-exp", - "cc-csc", - "cc-token", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/payments-api-fraud-protection-card.json b/src/static/schemas/payments-api-fraud-protection-card.json deleted file mode 100644 index 3c366bf10..000000000 --- a/src/static/schemas/payments-api-fraud-protection-card.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "image_alt": { "type": "string", "default": "Fraud protection logo" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["image_alt", "spinner"] -} diff --git a/src/static/schemas/payments-api-fraud-protection-form.json b/src/static/schemas/payments-api-fraud-protection-form.json deleted file mode 100644 index 9c32a61ee..000000000 --- a/src/static/schemas/payments-api-fraud-protection-form.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "default_additional_field_placeholder": { "type": "string", "default": "None" }, - "select_protection_title": { - "type": "string", - "default": "Select a fraud protection type to get started" - }, - "select_another_button_label": { "type": "string", "default": "Back to fraud protections" }, - "score-threshold-reject": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Rejection threshold" }, - "placeholder": { "type": "string", "default": "Default" }, - "helper_text": { - "type": "string", - "default": "A number between 0 and 100. 0 will disable minFraud and 100 will turn it on for logging but still allow all transactions to go through." - }, - "v8n_out_of_range": { - "type": "string", - "default": "Please enter a whole number between 0 and 100 (inclusive)." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_out_of_range"] - }, - "description": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Description" }, - "placeholder": { "type": "string", "default": "None" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Please reduce this description to a 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Remove" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this fraud protection? You'll need to configure it again if you decide to add it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Add fraud protection" } }, - "required": ["create"] - } - }, - "required": [ - "default_additional_field_placeholder", - "select_protection_title", - "select_another_button_label", - "score-threshold-reject", - "description", - "timestamps", - "spinner", - "delete", - "create" - ] -} diff --git a/src/static/schemas/payments-api-payment-method-card.json b/src/static/schemas/payments-api-payment-method-card.json deleted file mode 100644 index ce4bc93d6..000000000 --- a/src/static/schemas/payments-api-payment-method-card.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "image_alt": { "type": "string", "default": "Payment gateway logo" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["image_alt", "spinner"] -} diff --git a/src/static/schemas/payments-api-payment-method-form.json b/src/static/schemas/payments-api-payment-method-form.json deleted file mode 100644 index 3c1f2656a..000000000 --- a/src/static/schemas/payments-api-payment-method-form.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "select_method_title": { "type": "string", "default": "Select a payment method" }, - "select_another_button_label": { "type": "string", "default": "Select another" }, - "default_additional_field_placeholder": { "type": "string", "default": "None" }, - "conflict_message": { "type": "string", "default": "Remove {{ name }} to use this method" }, - "tab_live": { "type": "string", "default": "Live setup" }, - "tab_test": { "type": "string", "default": "Test setup" }, - "account-id": { - "additionalProperties": false, - "properties": { "label": { "type": "string", "default": "Account ID" } }, - "required": ["label"] - }, - "account-key": { - "additionalProperties": false, - "properties": { "label": { "type": "string", "default": "Account Key" } }, - "required": ["label"] - }, - "third-party-key": { - "additionalProperties": false, - "properties": { "label": { "type": "string", "default": "3rd-party key" } }, - "required": ["label"] - }, - "test-account-id": { - "additionalProperties": false, - "properties": { "label": { "type": "string", "default": "Account ID" } }, - "required": ["label"] - }, - "test-account-key": { - "additionalProperties": false, - "properties": { "label": { "type": "string", "default": "Account Key" } }, - "required": ["label"] - }, - "test-third-party-key": { - "additionalProperties": false, - "properties": { "label": { "type": "string", "default": "3rd-party key" } }, - "required": ["label"] - }, - "three-d-secure-toggle": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "3D Secure" }, - "option_off": { "type": "string", "default": "Off" }, - "option_all_cards": { "type": "string", "default": "On for all cards" }, - "option_maestro_only": { "type": "string", "default": "On for Maestro cards" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "option_off", "option_all_cards", "option_maestro_only", "helper_text"] - }, - "three-d-secure-response": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "3D Secure Response" }, - "option_valid_only": { "type": "string", "default": "Require valid response" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "option_valid_only", "helper_text"] - }, - "description": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Description" }, - "placeholder": { "type": "string", "default": "Defaults to the gateway name" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Please reduce this description to a 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Remove" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this payment method? You'll need to configure it again if you decide to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - } - }, - "required": [ - "select_method_title", - "select_another_button_label", - "default_additional_field_placeholder", - "conflict_message", - "tab_live", - "tab_test", - "account-id", - "account-key", - "third-party-key", - "test-account-id", - "test-account-key", - "test-third-party-key", - "three-d-secure-toggle", - "three-d-secure-response", - "description", - "timestamps", - "spinner", - "delete", - "create" - ] -} diff --git a/src/static/schemas/payments-api-payment-preset-card.json b/src/static/schemas/payments-api-payment-preset-card.json deleted file mode 100644 index ed38a3f04..000000000 --- a/src/static/schemas/payments-api-payment-preset-card.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "status_test": { "type": "string", "default": "Test" }, - "status_live": { "type": "string", "default": "Live" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["status_test", "status_live", "spinner"] -} diff --git a/src/static/schemas/payments-api-payment-preset-form.json b/src/static/schemas/payments-api-payment-preset-form.json deleted file mode 100644 index 92ca81462..000000000 --- a/src/static/schemas/payments-api-payment-preset-form.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "description": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Description" }, - "placeholder": { "type": "string", "default": "E.g. EU & UK Payment Options" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please describe this payment method set" }, - "v8n_too_long": { - "type": "string", - "default": "Please reduce this description to a 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "is-live": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "option_live": { "type": "string", "default": "Use live credentials" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "option_live", "helper_text"] - }, - "is-purchase-order-enabled": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "option_true": { "type": "string", "default": "Allow purchase orders" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "option_true", "helper_text"] - }, - "payment-methods": { - "additionalProperties": false, - "properties": { - "delete_header": { "type": "string", "default": "Remove payment method" }, - "delete_message": { - "type": "string", - "default": "Are you sure you'd like to remove this payment method? You'll need to configure it again if you decide to bring it back." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "label": { "type": "string", "default": "Payment methods" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_update": { "type": "string", "default": "Payment method" }, - "header_create": { "type": "string", "default": "New payment method" }, - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "save": { "type": "string", "default": "Save" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" } - }, - "required": [ - "header_update", - "header_create", - "close", - "cancel", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add payment method +" }, - "card": { - "additionalProperties": false, - "properties": { "delete_button_text": { "type": "string", "default": "Remove" } }, - "required": ["delete_button_text"] - } - }, - "required": ["create_button_text", "card"] - } - }, - "required": [ - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "label", - "dialog", - "pagination" - ] - }, - "fraud-protections": { - "additionalProperties": false, - "properties": { - "delete_header": { "type": "string", "default": "Remove fraud protection" }, - "delete_message": { - "type": "string", - "default": "Are you sure you'd like to remove this fraud protection? You'll need to configure it again if you decide to bring it back." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "label": { "type": "string", "default": "Fraud protections" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_update": { "type": "string", "default": "Fraud protection" }, - "header_create": { "type": "string", "default": "New fraud protection" }, - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "save": { "type": "string", "default": "Save" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" } - }, - "required": [ - "header_update", - "header_create", - "close", - "cancel", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add fraud protection +" }, - "card": { - "additionalProperties": false, - "properties": { "delete_button_text": { "type": "string", "default": "Remove" } }, - "required": ["delete_button_text"] - } - }, - "required": ["create_button_text", "card"] - } - }, - "required": [ - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "label", - "dialog", - "pagination" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this payment method set? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - } - }, - "required": [ - "description", - "is-live", - "is-purchase-order-enabled", - "payment-methods", - "fraud-protections", - "timestamps", - "spinner", - "delete", - "create" - ] -} diff --git a/src/static/schemas/query-builder.json b/src/static/schemas/query-builder.json deleted file mode 100644 index 4bece82d5..000000000 --- a/src/static/schemas/query-builder.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "add_or_clause": { "type": "string", "default": "Add OR clause" }, - "add_value": { "type": "string", "default": "Add value" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "delete": { "type": "string", "default": "Delete" }, - "field": { "type": "string", "default": "Field" }, - "hidden": { "type": "string", "default": "Hidden" }, - "is_defined_false": { "type": "string", "default": "Not defined" }, - "is_defined_true": { "type": "string", "default": "Defined" }, - "name": { "type": "string", "default": "Name" }, - "operator_equal": { "type": "string", "default": "Equal" }, - "operator_greaterthan": { "type": "string", "default": "Greater than" }, - "operator_greaterthanorequal": { "type": "string", "default": "Greater than or equal" }, - "operator_in": { "type": "string", "default": "One of" }, - "operator_isdefined": { "type": "string", "default": "Is defined" }, - "operator_lessthan": { "type": "string", "default": "Less than" }, - "operator_lessthanorequal": { "type": "string", "default": "Less than or equal" }, - "operator_not": { "type": "string", "default": "Not equal" }, - "or": { "type": "string", "default": "Or" }, - "query_builder_group": { "type": "string", "default": "Group of filters" }, - "query_builder_rule": { "type": "string", "default": "Filter" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "type": { "type": "string", "default": "Type" }, - "type_any": { "type": "string", "default": "Field of unknown type" }, - "type_attribute": { "type": "string", "default": "Key-value resource" }, - "type_date": { "type": "string", "default": "Date field" }, - "type_here": { "type": "string", "default": "Type here..." }, - "type_number": { "type": "string", "default": "Numeric field" }, - "type_string": { "type": "string", "default": "Text field" }, - "value": { "type": "string", "default": "Value" } - }, - "required": [ - "add_or_clause", - "add_value", - "date", - "delete", - "field", - "hidden", - "is_defined_false", - "is_defined_true", - "name", - "operator_equal", - "operator_greaterthan", - "operator_greaterthanorequal", - "operator_in", - "operator_isdefined", - "operator_lessthan", - "operator_lessthanorequal", - "operator_not", - "or", - "query_builder_group", - "query_builder_rule", - "range_from", - "range_to", - "type", - "type_any", - "type_attribute", - "type_date", - "type_here", - "type_number", - "type_string", - "value" - ] -} diff --git a/src/static/schemas/region.json b/src/static/schemas/region.json deleted file mode 100644 index e28858e80..000000000 --- a/src/static/schemas/region.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "AL": { "type": "string", "default": "Alabama" }, - "AK": { "type": "string", "default": "Alaska" }, - "AS": { "type": "string", "default": "American Samoa" }, - "AZ": { "type": "string", "default": "Arizona" }, - "AR": { "type": "string", "default": "Arkansas" }, - "AF": { "type": "string", "default": "Armed Forces Africa" }, - "AA": { "type": "string", "default": "Armed Forces Americas" }, - "AC": { "type": "string", "default": "Armed Forces Canada" }, - "AE": { "type": "string", "default": "Armed Forces Europe" }, - "AM": { "type": "string", "default": "Armed Forces Middle East" }, - "AP": { "type": "string", "default": "Armed Forces Pacific" }, - "CA": { "type": "string", "default": "California" }, - "CO": { "type": "string", "default": "Colorado" }, - "CT": { "type": "string", "default": "Connecticut" }, - "DE": { "type": "string", "default": "Delaware" }, - "DC": { "type": "string", "default": "Washington DC" }, - "FM": { "type": "string", "default": "Federated States Of Micronesia" }, - "FL": { "type": "string", "default": "Florida" }, - "GA": { "type": "string", "default": "Georgia" }, - "GU": { "type": "string", "default": "Guam" }, - "HI": { "type": "string", "default": "Hawaii" }, - "ID": { "type": "string", "default": "Idaho" }, - "IL": { "type": "string", "default": "Illinois" }, - "IN": { "type": "string", "default": "Indiana" }, - "IA": { "type": "string", "default": "Iowa" }, - "KS": { "type": "string", "default": "Kansas" }, - "KY": { "type": "string", "default": "Kentucky" }, - "LA": { "type": "string", "default": "Louisiana" }, - "ME": { "type": "string", "default": "Maine" }, - "MH": { "type": "string", "default": "Marshall Islands" }, - "MD": { "type": "string", "default": "Maryland" }, - "MA": { "type": "string", "default": "Massachusetts" }, - "MI": { "type": "string", "default": "Michigan" }, - "MN": { "type": "string", "default": "Minnesota" }, - "MS": { "type": "string", "default": "Mississippi" }, - "MO": { "type": "string", "default": "Missouri" }, - "MT": { "type": "string", "default": "Montana" }, - "NE": { "type": "string", "default": "Nebraska" }, - "NV": { "type": "string", "default": "Nevada" }, - "NH": { "type": "string", "default": "New Hampshire" }, - "NJ": { "type": "string", "default": "New Jersey" }, - "NM": { "type": "string", "default": "New Mexico" }, - "NY": { "type": "string", "default": "New York" }, - "NC": { "type": "string", "default": "North Carolina" }, - "ND": { "type": "string", "default": "North Dakota" }, - "MP": { "type": "string", "default": "Northern Mariana Islands" }, - "OH": { "type": "string", "default": "Ohio" }, - "OK": { "type": "string", "default": "Oklahoma" }, - "OR": { "type": "string", "default": "Oregon" }, - "PA": { "type": "string", "default": "Pennsylvania" }, - "PR": { "type": "string", "default": "Puerto Rico" }, - "RI": { "type": "string", "default": "Rhode Island" }, - "SC": { "type": "string", "default": "South Carolina" }, - "SD": { "type": "string", "default": "South Dakota" }, - "TN": { "type": "string", "default": "Tennessee" }, - "TX": { "type": "string", "default": "Texas" }, - "UT": { "type": "string", "default": "Utah" }, - "VT": { "type": "string", "default": "Vermont" }, - "VI": { "type": "string", "default": "Virgin Islands" }, - "VA": { "type": "string", "default": "Virginia" }, - "WA": { "type": "string", "default": "Washington" }, - "WV": { "type": "string", "default": "West Virginia" }, - "WI": { "type": "string", "default": "Wisconsin" }, - "WY": { "type": "string", "default": "Wyoming" } - }, - "required": [ - "AL", - "AK", - "AS", - "AZ", - "AR", - "AF", - "AA", - "AC", - "AE", - "AM", - "AP", - "CA", - "CO", - "CT", - "DE", - "DC", - "FM", - "FL", - "GA", - "GU", - "HI", - "ID", - "IL", - "IN", - "IA", - "KS", - "KY", - "LA", - "ME", - "MH", - "MD", - "MA", - "MI", - "MN", - "MS", - "MO", - "MT", - "NE", - "NV", - "NH", - "NJ", - "NM", - "NY", - "NC", - "ND", - "MP", - "OH", - "OK", - "OR", - "PA", - "PR", - "RI", - "SC", - "SD", - "TN", - "TX", - "UT", - "VT", - "VI", - "VA", - "WA", - "WV", - "WI", - "WY" - ] -} diff --git a/src/static/schemas/report-form.json b/src/static/schemas/report-form.json deleted file mode 100644 index 569dce3f3..000000000 --- a/src/static/schemas/report-form.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "create": { "type": "string", "default": "Create" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "datetime_end_required": { "type": "string", "default": "End date is required" }, - "datetime_start_required": { "type": "string", "default": "Start date is required" }, - "delete": { "type": "string", "default": "Delete" }, - "delete_prompt": { - "type": "string", - "default": "If you proceed, this report will be deleted forever. Are you sure?" - }, - "end": { "type": "string", "default": "End" }, - "name": { "type": "string", "default": "Name" }, - "name_complete": { "type": "string", "default": "Complete" }, - "name_complete_explainer": { - "type": "string", - "default": "Transactions, coupon usage, subscription forecasts etc." - }, - "name_customers": { "type": "string", "default": "Customers" }, - "name_customers_explainer": { - "type": "string", - "default": "Exports customers to import somewhere else." - }, - "name_customers_ltv": { "type": "string", "default": "Lifetime value" }, - "name_customers_ltv_explainer": { - "type": "string", - "default": "Customers with lifetime value info." - }, - "preset": { "type": "string", "default": "Preset" }, - "preset_custom": { "type": "string", "default": "Custom" }, - "preset_last_30_days": { "type": "string", "default": "Last 30 days" }, - "preset_last_365_days": { "type": "string", "default": "Last 365 days" }, - "preset_previous_month": { "type": "string", "default": "Previous month" }, - "preset_previous_quarter": { "type": "string", "default": "Previous quarter" }, - "preset_previous_year": { "type": "string", "default": "Previous year" }, - "preset_this_month": { "type": "string", "default": "This month" }, - "preset_this_quarter": { "type": "string", "default": "This quarter" }, - "preset_this_year": { "type": "string", "default": "This year" }, - "range": { "type": "string", "default": "Range" }, - "select_date": { "type": "string", "default": "DD/MM/YYYY" }, - "select_time": { "type": "string", "default": "HH:MM:SS" }, - "start": { "type": "string", "default": "Start" }, - "use_precise_time": { "type": "string", "default": "Use precise time" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "cancel", - "create", - "date", - "date_created", - "date_modified", - "datetime_end_required", - "datetime_start_required", - "delete", - "delete_prompt", - "end", - "name", - "name_complete", - "name_complete_explainer", - "name_customers", - "name_customers_explainer", - "name_customers_ltv", - "name_customers_ltv_explainer", - "preset", - "preset_custom", - "preset_last_30_days", - "preset_last_365_days", - "preset_previous_month", - "preset_previous_quarter", - "preset_previous_year", - "preset_this_month", - "preset_this_quarter", - "preset_this_year", - "range", - "select_date", - "select_time", - "start", - "use_precise_time", - "spinner" - ] -} diff --git a/src/static/schemas/reports-table.json b/src/static/schemas/reports-table.json deleted file mode 100644 index 4822e17fa..000000000 --- a/src/static/schemas/reports-table.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "created_on": { "type": "string", "default": "Created on" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "download": { "type": "string", "default": "Download" }, - "link": { "type": "string", "default": "Link" }, - "range_end": { "type": "string", "default": "End" }, - "range_start": { "type": "string", "default": "Start" }, - "report_name": { "type": "string", "default": "Name" }, - "report_name_complete": { "type": "string", "default": "Complete" }, - "report_name_customers": { "type": "string", "default": "Customers" }, - "report_name_customers_ltv": { "type": "string", "default": "Lifetime value" }, - "link-spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Preparing" }, - "loading_error": { "type": "string", "default": "Failed to create" } - }, - "required": ["loading_busy", "loading_error"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "created_on", - "date", - "download", - "link", - "range_end", - "range_start", - "report_name", - "report_name_complete", - "report_name_customers", - "report_name_customers_ltv", - "link-spinner", - "spinner" - ] -} diff --git a/src/static/schemas/shared.json b/src/static/schemas/shared.json deleted file mode 100644 index 0c832f552..000000000 --- a/src/static/schemas/shared.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "demo_key": { "type": "string", "default": "Hello" }, - "demo_date": { "type": "string", "default": "This is a date: {{ value, date }}" } - }, - "required": ["demo_key", "demo_date"] -} diff --git a/src/static/schemas/shipment-card.json b/src/static/schemas/shipment-card.json deleted file mode 100644 index 39a0c8e29..000000000 --- a/src/static/schemas/shipment-card.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "full_address": { - "type": "string", - "default": "{{ address1 }} {{ address2 }} {{ city }} {{ region }} {{ postal_code }}" - }, - "quantity": { "type": "string", "default": "Qty: {{ count }}" }, - "no_code": { "type": "string", "default": "No SKU" }, - "price": { "type": "string", "default": "{{ amount, price }}" }, - "item": { "type": "string", "default": "{{ count }} item" }, - "item_plural": { "type": "string", "default": "{{ count }} items" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No shipments" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["full_address", "quantity", "no_code", "price", "item", "item_plural", "spinner"] -} diff --git a/src/static/schemas/shipping-method-card.json b/src/static/schemas/shipping-method-card.json deleted file mode 100644 index 975e76465..000000000 --- a/src/static/schemas/shipping-method-card.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "image_alt": { "type": "string", "default": "Shipping method logo" }, - "status_active": { "type": "string", "default": "Active" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["image_alt", "status_active", "spinner"] -} diff --git a/src/static/schemas/sign-in-form.json b/src/static/schemas/sign-in-form.json deleted file mode 100644 index e6d34550a..000000000 --- a/src/static/schemas/sign-in-form.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "email": { "type": "string", "default": "Email" }, - "invalid_credential_error": { - "type": "string", - "default": "Incorrect email or password. Please check your credentials and try again." - }, - "mfa_remember_device": { "type": "string", "default": "Trust this device" }, - "mfa_remember_device_hint": { - "type": "string", - "default": "Don't require a verification code when signing in from this device in the future" - }, - "mfa_totp_code": { "type": "string", "default": "One-time code" }, - "mfa_totp_code_hint": { - "type": "string", - "default": "Scan the image below with your authenticator app to receive the verification code" - }, - "mfa_totp_code_invalid_error": { - "type": "string", - "default": "The one-time code you entered is invalid. Please try again." - }, - "new_password": { "type": "string", "default": "New password" }, - "new_password_format_error": { - "type": "string", - "default": "The new password you've chosen is too weak. Please enter a secure new password." - }, - "new_password_required_error": { - "type": "string", - "default": "To keep your account secure, please change your password before logging in this time." - }, - "password": { "type": "string", "default": "Password" }, - "sign_in": { "type": "string", "default": "Sign in" }, - "unknown_error": { - "type": "string", - "default": "An unknown error has occured. Please try again later." - }, - "v8n_invalid_email": { "type": "string", "default": "Invalid email" }, - "v8n_required": { "type": "string", "default": "Required" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "email", - "invalid_credential_error", - "mfa_remember_device", - "mfa_remember_device_hint", - "mfa_totp_code", - "mfa_totp_code_hint", - "mfa_totp_code_invalid_error", - "new_password", - "new_password_format_error", - "new_password_required_error", - "password", - "sign_in", - "unknown_error", - "v8n_invalid_email", - "v8n_required", - "spinner" - ] -} diff --git a/src/static/schemas/spinner.json b/src/static/schemas/spinner.json deleted file mode 100644 index fad351bd5..000000000 --- a/src/static/schemas/spinner.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_end": { "type": "string", "default": "No more data" }, - "loading_error": { "type": "string", "default": "Unknown error" }, - "loading_paused": { "type": "string", "default": "Paused" } - }, - "required": ["loading_busy", "loading_empty", "loading_end", "loading_error", "loading_paused"] -} diff --git a/src/static/schemas/store-card.json b/src/static/schemas/store-card.json deleted file mode 100644 index 5f175ab78..000000000 --- a/src/static/schemas/store-card.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] -} diff --git a/src/static/schemas/store-form.json b/src/static/schemas/store-form.json deleted file mode 100644 index ca61d4435..000000000 --- a/src/static/schemas/store-form.json +++ /dev/null @@ -1,793 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "maintenance_mode_on_explainer": { - "type": "string", - "default": "Maintenance mode is on. Your customers can't make purchases or use the checkout page in any way. Once you're done making changes, disable this mode to continue getting orders." - }, - "maintenance_mode_off_explainer": { - "type": "string", - "default": "If you're about to make changes that may disrupt the checkout process, we recommend enabling the maintenance mode first. In this mode the checkout page will be completely non-functioning and the customers will see a message asking them to come back later." - }, - "enable_maintenance_mode": { "type": "string", "default": "Enable maintenance mode" }, - "disable_maintenance_mode": { "type": "string", "default": "Disable maintenance mode" }, - "store-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "My Store" }, - "helper_text": { - "type": "string", - "default": "The name of your store as you'd like it displayed to your customers and our system." - }, - "v8n_required": { "type": "string", "default": "Please enter the name of your store" }, - "v8n_too_long": { - "type": "string", - "default": "Please reduce the name of your store to 50 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "store-email": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Emails" }, - "placeholder": { "type": "string", "default": "Enter an email and press Enter" }, - "helper_text": { - "type": "string", - "default": "Email addresses used for billing and communication with Foxy." - }, - "submit": { "type": "string", "default": "Submit" }, - "delete": { "type": "string", "default": "Delete" }, - "v8n_required": { "type": "string", "default": "Please enter at least one email" }, - "v8n_too_long": { - "type": "string", - "default": "All emails for this store must fit within 300 characters when comma-separated" - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "submit", - "delete", - "v8n_required", - "v8n_too_long" - ] - }, - "store-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Website" }, - "placeholder": { "type": "string", "default": "https://my.store.example.com" }, - "helper_text": { "type": "string", "default": "The URL of your online store." }, - "v8n_required": { - "type": "string", - "default": "Please enter the URL of your online store" - }, - "v8n_too_long": { - "type": "string", - "default": "Please use a URL that is 300 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "store-domain": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Domain" }, - "placeholder": { "type": "string", "default": "my-store.foxycart.com" }, - "helper_text": { - "type": "string", - "default": "Unique Foxy subdomain or a custom domain for your cart, checkout, and receipt." - }, - "custom_domain_note": { - "type": "string", - "default": "IMPORTANT: to use a custom domain, you must purchase an SSL certificate through Foxy. This option is only for developers who have full control of their domain settings and may take a few days to fully process." - }, - "v8n_required": { "type": "string", "default": "Please enter the domain of your store" }, - "v8n_too_long": { - "type": "string", - "default": "Please use a domain that is 100 characters or less" - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "custom_domain_note", - "v8n_required", - "v8n_too_long" - ] - }, - "logo-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Logo" }, - "placeholder": { "type": "string", "default": "https://example.com/logo.png" }, - "helper_text": { - "type": "string", - "default": "URL to your store's logo that may be used in your store's templates." - }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this link to 200 characters of less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "timezone": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Timezone" }, - "placeholder": { "type": "string", "default": "(GMT-08:00) Pacific Time (US and Canada)" }, - "helper_text": { - "type": "string", - "default": "The timezone of your store. This will impact how dates are shown to customers and within the admin." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "from-email": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "FROM email" }, - "placeholder": { "type": "string", "default": "Defaults to the first store email" }, - "helper_text": { - "type": "string", - "default": "If you'd like us to send messages from an address other than the first one of your store emails, list it here." - }, - "v8n_too_long": { - "type": "string", - "default": "Please use an email that is 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "bcc-on-receipt-email": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "option_checked": { - "type": "string", - "default": "Send a copy of each receipt to the store email" - } - }, - "required": ["label", "helper_text", "option_checked"] - }, - "use-email-dns": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "option_checked": { "type": "string", "default": "Improve email deliverability with DNS" } - }, - "required": ["label", "helper_text", "option_checked"] - }, - "use_email_dns_helper_text": { - "type": "string", - "default": "Before saving your changes, make sure the DNS records for your domain list our servers. To learn more, see our Wiki:" - }, - "use-smtp-config": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "option_checked": { "type": "string", "default": "Use custom mail server" }, - "v8n_too_long": { - "type": "string", - "default": "This configuration must fit within 1000 characters when JSON-encoded" - } - }, - "required": ["label", "helper_text", "option_checked", "v8n_too_long"] - }, - "smtp-config-host": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Host" }, - "helper_text": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "smtp.example.com" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "smtp-config-port": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Port" }, - "helper_text": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "465" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "smtp-config-username": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Username" }, - "helper_text": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "sender@example.com" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "smtp-config-password": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Password" }, - "helper_text": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "Required" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "smtp-config-security": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "option_ssl": { "type": "string", "default": "Use SSL" }, - "option_tls": { "type": "string", "default": "Use TLS" }, - "option_none": { "type": "string", "default": "Don't encrypt" } - }, - "required": ["label", "helper_text", "option_ssl", "option_tls", "option_none"] - }, - "country": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Country" }, - "placeholder": { "type": "string", "default": "Select country..." }, - "helper_text": { - "type": "string", - "default": "The country your store is located in. We'll use this information to calculate shipping costs if you sell shippable items." - }, - "v8n_required": { "type": "string", "default": "Please select the country of your store" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "region": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Region" }, - "placeholder": { "type": "string", "default": "Select region..." }, - "helper_text": { - "type": "string", - "default": "The region, province or state your store is located in. We'll use this information to calculate shipping costs if you sell shippable items." - }, - "v8n_required": { "type": "string", "default": "Please select the region of your store" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten the region name to 50 characters of less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "postal-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Postal code" }, - "placeholder": { "type": "string", "default": "012345" }, - "helper_text": { - "type": "string", - "default": "The postal code (or zip code) of the area your store is located in. We'll use this information to calculate shipping costs if you sell shippable items." - }, - "v8n_required": { - "type": "string", - "default": "Please enter the postal code of your store" - }, - "v8n_too_long": { "type": "string", "default": "Postal code can't exceed 50 characters" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "shipping-address-type": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Rate calculation" }, - "placeholder": { "type": "string", "default": "Rate based on Company field" }, - "helper_text": { - "type": "string", - "default": "Used for determining the type of the customer address used when calculating shipping costs." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "require-signed-shipping-rates": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "option_checked": { "type": "string", "default": "Prevent shipping rate tampering" } - }, - "required": ["label", "helper_text", "option_checked"] - }, - "require_signed_shipping_rates_helper_text": { - "type": "string", - "default": "Enabling shipping rate signing for your store ensures that the rate the customer selects is carried through and not altered in any way. If you're intending to make use of javascript snippets on your store to alter the price or label of shipping rates or add custom rates dynamically, disable this setting as it will block those rates from being applied." - }, - "features-multiship": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "option_checked": { "type": "string", "default": "Allow multiple destinations per order" } - }, - "required": ["label", "helper_text", "option_checked"] - }, - "language": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Language" }, - "placeholder": { "type": "string", "default": "English" }, - "helper_text": { - "type": "string", - "default": "The default language for your store's cart, checkout, and receipt strings." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "locale-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Locale code" }, - "placeholder": { "type": "string", "default": "en_US" }, - "helper_text": { - "type": "string", - "default": "The locale code for your store's locale. This will be used to format strings for your store." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "currency_style_label": { "type": "string", "default": "Currency display" }, - "currency_style_helper_text": { - "type": "string", - "default": "Choose how you'd like all prices and totals to appear across your store's cart, checkout, receipt and admin." - }, - "receipt-continue-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Return URL" }, - "placeholder": { "type": "string", "default": "https://example.com/thank-you" }, - "helper_text": { - "type": "string", - "default": "By default, the continue button on the receipt sends the customer to the store domain after completing a purchase. Instead, you can set a specific URL here." - }, - "v8n_too_long": { - "type": "string", - "default": "Please use a URL that is 300 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "app-session-time": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Clear cart after" }, - "helper_text": { - "type": "string", - "default": "If your store sells products which collect personal or sensitive information as product attributes, you may want to consider lowering your cart session lifespan." - }, - "second": { "type": "string", "default": "Second" }, - "second_plural": { "type": "string", "default": "Seconds" }, - "minute": { "type": "string", "default": "Minute" }, - "minute_plural": { "type": "string", "default": "Minutes" }, - "hour": { "type": "string", "default": "Hour" }, - "hour_plural": { "type": "string", "default": "Hours" }, - "day": { "type": "string", "default": "Day" }, - "day_plural": { "type": "string", "default": "Days" } - }, - "required": [ - "label", - "helper_text", - "second", - "second_plural", - "minute", - "minute_plural", - "hour", - "hour_plural", - "day", - "day_plural" - ] - }, - "products-require-expires-property": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "option_checked": { "type": "string", "default": "My products have limited availability" } - }, - "required": ["label", "helper_text", "option_checked"] - }, - "products_require_expires_property_helper_text": { - "type": "string", - "default": "All products added to the cart for your store will need to contain the expires property to ensure stale products can't be purchased." - }, - "use-cart-validation": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "option_checked": { "type": "string", "default": "Prevent product link and form tampering" } - }, - "required": ["label", "helper_text", "option_checked"] - }, - "use_cart_validation_helper_text": { - "type": "string", - "default": "Enabling this option will require all cart links and forms to pass HMAC-based verification before products can be added to the cart. You will need to sign your HTML to use this feature. See our docs for more info:" - }, - "custom-display-id-config-enabled": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "option_checked": { "type": "string", "default": "Customize Transaction ID" }, - "v8n_too_long": { - "type": "string", - "default": "This configuration must fit within 100 characters when JSON-encoded" - } - }, - "required": ["label", "helper_text", "option_checked", "v8n_too_long"] - }, - "custom-display-id-config-transaction-journal-entries-enabled": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "option_checked": { "type": "string", "default": "Customize Transaction Journal entry ID" } - }, - "required": ["label", "helper_text", "option_checked"] - }, - "custom-display-id-config-length": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Length" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "custom-display-id-config-start": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Start" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "custom-display-id-config-prefix": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Prefix" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "custom-display-id-config-suffix": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Suffix" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "custom-display-id-config-first-example": { "type": "string", "default": "First:" }, - "custom-display-id-config-random-example": { "type": "string", "default": "Random:" }, - "custom-display-id-config-transaction-journal-entries-transaction-separator": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Separator" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-authcapture-prefix": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Authorization prefix" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-capture-prefix": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Capture prefix" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-void-prefix": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Void prefix" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-refund-prefix": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Refund prefix" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "custom-display-id-config-transaction-journal-entries-authcapture-example": { - "type": "string", - "default": "When authorized:" - }, - "custom-display-id-config-transaction-journal-entries-capture-example": { - "type": "string", - "default": "When captured:" - }, - "custom-display-id-config-transaction-journal-entries-void-example": { - "type": "string", - "default": "When voided:" - }, - "custom-display-id-config-transaction-journal-entries-refund-example": { - "type": "string", - "default": "When refunded:" - }, - "webhook-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "XML webhook endpoint" }, - "placeholder": { "type": "string", "default": "https://example.com/xml-webhook" }, - "helper_text": { - "type": "string", - "default": "Foxy will encrypt order info and POST it to this URL on each purchase as XML. When using this webhook, make sure to configure the encryption key for your store." - }, - "v8n_required": { "type": "string", "default": "Please enter the XML webhook endpoint" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this URL to 300 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "webhook-key-cart-signing": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "HMAC encryption key" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "We'll use this key to encrypt webhook payloads as well as to sign cart links and product forms." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "webhook-key-xml-datafeed": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "XML webhook encryption key" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "We'll use this key to encrypt legacy XML webhook payloads." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "webhook-key-api-legacy": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Legacy API key" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "API key you can use to access the legacy API." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "webhook-key-sso": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "SSO secret" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "We'll use this value to validate session tokens generated by your SSO setup." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "single-sign-on-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "SSO endpoint" }, - "placeholder": { "type": "string", "default": "https://example.com/sso" }, - "helper_text": { - "type": "string", - "default": "When configured, Foxy will redirect customers to this URL prior to hitting the checkout page. You can use this to validate items or to log customers in via your own auth provider." - }, - "v8n_required": { "type": "string", "default": "Please enter your SSO endpoint URL" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten this URL to 300 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "unified-order-entry-password": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Unified order entry password" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "Set a master password here if you would like to be able to check out as your customers without having to know their password." - }, - "v8n_required": { - "type": "string", - "default": "Please reduce your UOE password to 100 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "store-version-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Version" }, - "placeholder": { "type": "string", "default": "Defaults to latest" }, - "helper_text": { - "type": "string", - "default": "Store version including templates, libraries, payment options and more. It's recommended to upgrade your integration to the newest version as soon as it becomes available." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "checkout-type": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "New accounts" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "The preferred configuration of your customer checkout experience, such as defaulting to guest checkout or requiring account creation with each checkout." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "customer-password-hash-type": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Password hashing method (advanced)" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "When saving a customer to Foxy, this is the password hashing method that will be used." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "customer-password-hash-config": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Password hashing configuration (advanced)" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "Configuration settings for the selected hashing method." - }, - "v8n_too_long": { - "type": "string", - "default": "Please reduce your configuration settings to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this store? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - } - }, - "required": [ - "maintenance_mode_on_explainer", - "maintenance_mode_off_explainer", - "enable_maintenance_mode", - "disable_maintenance_mode", - "store-name", - "store-email", - "store-url", - "store-domain", - "logo-url", - "timezone", - "from-email", - "bcc-on-receipt-email", - "use-email-dns", - "use_email_dns_helper_text", - "use-smtp-config", - "smtp-config-host", - "smtp-config-port", - "smtp-config-username", - "smtp-config-password", - "smtp-config-security", - "country", - "region", - "postal-code", - "shipping-address-type", - "require-signed-shipping-rates", - "require_signed_shipping_rates_helper_text", - "features-multiship", - "language", - "locale-code", - "currency_style_label", - "currency_style_helper_text", - "receipt-continue-url", - "app-session-time", - "products-require-expires-property", - "products_require_expires_property_helper_text", - "use-cart-validation", - "use_cart_validation_helper_text", - "custom-display-id-config-enabled", - "custom-display-id-config-transaction-journal-entries-enabled", - "custom-display-id-config-length", - "custom-display-id-config-start", - "custom-display-id-config-prefix", - "custom-display-id-config-suffix", - "custom-display-id-config-first-example", - "custom-display-id-config-random-example", - "custom-display-id-config-transaction-journal-entries-transaction-separator", - "custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-authcapture-prefix", - "custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-capture-prefix", - "custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-void-prefix", - "custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-refund-prefix", - "custom-display-id-config-transaction-journal-entries-authcapture-example", - "custom-display-id-config-transaction-journal-entries-capture-example", - "custom-display-id-config-transaction-journal-entries-void-example", - "custom-display-id-config-transaction-journal-entries-refund-example", - "webhook-url", - "webhook-key-cart-signing", - "webhook-key-xml-datafeed", - "webhook-key-api-legacy", - "webhook-key-sso", - "single-sign-on-url", - "unified-order-entry-password", - "store-version-uri", - "checkout-type", - "customer-password-hash-type", - "customer-password-hash-config", - "timestamps", - "spinner", - "delete", - "create" - ] -} diff --git a/src/static/schemas/store-shipping-method-form.json b/src/static/schemas/store-shipping-method-form.json deleted file mode 100644 index 7e919eb6c..000000000 --- a/src/static/schemas/store-shipping-method-form.json +++ /dev/null @@ -1,210 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "shipping-method-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Shipping Method" }, - "placeholder": { "type": "string", "default": "Select service" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please select a shipping method." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "shipping-container-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Container" }, - "placeholder": { "type": "string", "default": "Select container" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please select a shipping method." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "shipping-drop-type-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Drop Type" }, - "placeholder": { "type": "string", "default": "Select pickup" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please select a drop type." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "destinations": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Destinations" }, - "domestic": { "type": "string", "default": "Domestic" }, - "international": { "type": "string", "default": "International" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "domestic", "international", "helper_text"] - }, - "authentication-key": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Authentication Key" }, - "placeholder": { "type": "string", "default": "N/A" }, - "helper_text": { - "type": "string", - "default": "If using account specific rates, enter your shipping account authentication key here, if applicable." - }, - "v8n_too_long": { - "type": "string", - "default": "Authentication key must be 50 characters or less." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "meter-number": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Meter Number" }, - "placeholder": { "type": "string", "default": "N/A" }, - "helper_text": { - "type": "string", - "default": "If using account specific rates, enter your shipping account meter number here, if applicable." - }, - "v8n_too_long": { - "type": "string", - "default": "Meter number must be 50 characters or less." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "accountid": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Account ID" }, - "placeholder": { "type": "string", "default": "N/A" }, - "helper_text": { - "type": "string", - "default": "If using account specific rates, enter your shipping account id here." - }, - "v8n_too_long": { "type": "string", "default": "Account ID must be 50 characters or less." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "endpoint": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Endpoint URL" }, - "placeholder": { "type": "string", "default": "https://example.com/rates" }, - "helper_text": { - "type": "string", - "default": "Enter a URL that we'll poll for shipping rates." - }, - "v8n_required": { "type": "string", "default": "Please enter a valid endpoint URL." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "password": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Password" }, - "placeholder": { "type": "string", "default": "N/A" }, - "helper_text": { - "type": "string", - "default": "If using account specific rates, enter your shipping account password here." - }, - "v8n_too_long": { "type": "string", "default": "Password must be 50 characters or less." } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "custom-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Custom Code" }, - "placeholder": { "type": "string", "default": "Paste your code here" }, - "helper_text": { - "type": "string", - "default": "JavaScript used to create and modify shipping rates." - }, - "v8n_too_long": { - "type": "string", - "default": "Please reduce the size of your custom code to 64KB or less." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "services": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Additional services" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" }, - "international_only": { "type": "string", "default": "– international only" } - }, - "required": [ - "label", - "first", - "last", - "next", - "pagination", - "previous", - "loading_busy", - "loading_error", - "international_only" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this shipping method? You won't be able to undo if you click Delete." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "shipping-method-uri", - "shipping-container-uri", - "shipping-drop-type-uri", - "destinations", - "authentication-key", - "meter-number", - "accountid", - "endpoint", - "password", - "custom-code", - "services", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/subscription-card.json b/src/static/schemas/subscription-card.json deleted file mode 100644 index ca1473ad4..000000000 --- a/src/static/schemas/subscription-card.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t({{units}}, { \"count\": {{count}}, \"ns\": \"subscription-card\" })" - }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "price_recurring": { - "type": "string", - "default": "{{amount, price}} $t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"subscription-card\" })" - }, - "price_twice_a_month": { - "type": "string", - "default": "{{amount, price}} $t(twice_a_month, { \"ns\": \"subscription-card\" })" - }, - "subscription_active": { "type": "string", "default": "Next payment on {{date, date}}" }, - "subscription_cancelled": { "type": "string", "default": "Ended on {{date, date}}" }, - "subscription_failed": { "type": "string", "default": "Payment failed on {{date, date}}" }, - "subscription_inactive": { "type": "string", "default": "Inactive" }, - "subscription_plural": { "type": "string", "default": "Subscriptions" }, - "subscription_will_be_cancelled": { "type": "string", "default": "Ends on {{date, date}}" }, - "subscription_will_be_active": { "type": "string", "default": "Starts on {{date, date}}" }, - "transaction_summary": { "type": "string", "default": "{{most_expensive_item.name}}" }, - "fees_hint": { "type": "string", "default": "inc. shipping, taxes, etc." }, - "fees_explainer": { - "type": "string", - "default": "Taxes, shipping, and discounts may change the amount charged." - }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "price_recurring", - "price_twice_a_month", - "subscription_active", - "subscription_cancelled", - "subscription_failed", - "subscription_inactive", - "subscription_plural", - "subscription_will_be_cancelled", - "subscription_will_be_active", - "transaction_summary", - "fees_hint", - "fees_explainer", - "twice_a_month", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "spinner" - ] -} diff --git a/src/static/schemas/subscription-form.json b/src/static/schemas/subscription-form.json deleted file mode 100644 index d6176aa72..000000000 --- a/src/static/schemas/subscription-form.json +++ /dev/null @@ -1,478 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "day": { "type": "string", "default": "Day" }, - "day_plural": { "type": "string", "default": "Days" }, - "week": { "type": "string", "default": "Week" }, - "week_plural": { "type": "string", "default": "Weeks" }, - "month": { "type": "string", "default": "Month" }, - "month_plural": { "type": "string", "default": "Months" }, - "year": { "type": "string", "default": "Year" }, - "year_plural": { "type": "string", "default": "Years" }, - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "confirm": { "type": "string", "default": "Confirm" }, - "currency": { "type": "string", "default": "Currency" }, - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "end_date": { "type": "string", "default": "End date" }, - "frequency": { - "type": "string", - "default": "$t({{units}}, { \"count\": {{count}}, \"ns\": \"subscription-form\" })" - }, - "frequency_label": { "type": "string", "default": "Frequency" }, - "item_plural": { "type": "string", "default": "Items" }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "next_transaction_date": { "type": "string", "default": "Next transaction date" }, - "start_date": { "type": "string", "default": "Start date" }, - "price_recurring": { - "type": "string", - "default": "{{amount, price}} $t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"subscription-form\" })" - }, - "price_twice_a_month": { - "type": "string", - "default": "{{amount, price}} $t(twice_a_month, { \"ns\": \"subscription-form\" })" - }, - "subscription_active": { - "type": "string", - "default": "Including shipping, taxes, etc. Next payment on {{date, date}}." - }, - "subscription_cancelled": { - "type": "string", - "default": "Including shipping, taxes, etc. Ended on {{date, date}}." - }, - "subscription_failed": { - "type": "string", - "default": "Including shipping, taxes, etc. Payment failed on {{date, date}}." - }, - "subscription_inactive": { - "type": "string", - "default": "Including shipping, taxes, etc. Inactive." - }, - "subscription_will_be_cancelled": { - "type": "string", - "default": "Including shipping, taxes, etc. Ends on {{date, date}}." - }, - "subscription_will_be_active": { - "type": "string", - "default": "Including shipping, taxes, etc. Starts on {{date, date}}." - }, - "transaction_plural": { "type": "string", "default": "Transactions" }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "customer": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Customer" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_error"] - } - }, - "required": ["label", "spinner"] - }, - "past-due-amount": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Past due amount" }, - "placeholder": { "type": "string", "default": "" }, - "helper_text": { - "type": "string", - "default": "If a subscription payment is missed, this amount will be increased by that payment. The next time the subscription runs, it may be charged automatically depending on your store's subscription settings." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "attributes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Attributes" }, - "delete_confirm": { "type": "string", "default": "Delete" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "delete_message": { - "type": "string", - "default": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." - }, - "delete_header": { "type": "string", "default": "Delete attribute?" }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add attribute +" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Remove" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No attributes" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "spinner"] - } - }, - "required": [ - "create_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "header_update": { "type": "string", "default": "Attribute" }, - "header_create": { "type": "string", "default": "New attribute" }, - "save": { "type": "string", "default": "Save" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "cancel": { "type": "string", "default": "Cancel" }, - "confirm": { "type": "string", "default": "Confirm" }, - "create": { "type": "string", "default": "Create" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "delete": { "type": "string", "default": "Delete" }, - "delete_prompt": { - "type": "string", - "default": "This attribute will be permanently removed. Are you sure?" - }, - "name": { "type": "string", "default": "Name" }, - "v8n_required": { "type": "string", "default": "Required" }, - "v8n_too_long": { "type": "string", "default": "Too long" }, - "value": { "type": "string", "default": "Value" }, - "visibility": { "type": "string", "default": "Visibility" }, - "visibility_private": { "type": "string", "default": "Only me" }, - "visibility_public": { "type": "string", "default": "Everyone" }, - "visibility_restricted": { "type": "string", "default": "Store admins" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "close", - "header_update", - "header_create", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "cancel", - "confirm", - "create", - "date", - "date_created", - "date_modified", - "delete", - "delete_prompt", - "name", - "v8n_required", - "v8n_too_long", - "value", - "visibility", - "visibility_private", - "visibility_public", - "visibility_restricted", - "spinner" - ] - } - }, - "required": [ - "label", - "delete_confirm", - "delete_cancel", - "delete_message", - "delete_header", - "pagination", - "dialog" - ] - }, - "items": { - "additionalProperties": false, - "properties": { - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t(items.pagination.card.{{units}}, { \"count\": {{count}}, \"ns\": \"subscription-form\" })" - }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "subinfo_recurring": { - "type": "string", - "default": "$t(items.pagination.card.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"subscription-form\" }) from {{startDate, date}}" - }, - "subinfo_twice_a_month": { - "type": "string", - "default": "$t(items.pagination.card.twice_a_month, { \"ns\": \"subscription-form\" }) from {{startDate, date}}" - }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "no_code": { "type": "string", "default": "No SKU" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No items" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "subinfo_recurring", - "subinfo_twice_a_month", - "twice_a_month", - "no_code", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "price", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["pagination"] - }, - "transactions": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Transactions" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "code": { "type": "string", "default": "Code" }, - "customer": { "type": "string", "default": "Customer" }, - "description": { "type": "string", "default": "Description" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "time": { "type": "string", "default": "{{value, date}}" }, - "status_capturing": { "type": "string", "default": "Capturing" }, - "status_captured": { "type": "string", "default": "Captured" }, - "status_approved": { "type": "string", "default": "Approved" }, - "status_authorized": { "type": "string", "default": "Authorized" }, - "status_pending": { "type": "string", "default": "Pending" }, - "status_completed": { "type": "string", "default": "Completed" }, - "status_problem": { "type": "string", "default": "Problem" }, - "status_pending_fraud_review": { - "type": "string", - "default": "Pending_fraud_review" - }, - "status_rejected": { "type": "string", "default": "Rejected" }, - "status_declined": { "type": "string", "default": "Declined" }, - "status_refunding": { "type": "string", "default": "Refunding" }, - "status_refunded": { "type": "string", "default": "Refunded" }, - "status_voided": { "type": "string", "default": "Voided" }, - "status_verified": { "type": "string", "default": "Verified" }, - "summary": { "type": "string", "default": "{{most_expensive_item.name}}" }, - "summary_plural": { - "type": "string", - "default": "{{most_expensive_item.name}} and {{count_minus_one}} more" - }, - "summary_payment_method_change": { - "type": "string", - "default": "Payment method change" - }, - "summary_subscription_modification": { - "type": "string", - "default": "Subscription modification" - }, - "summary_subscription_cancellation": { - "type": "string", - "default": "Subscription cancellation" - }, - "source_MIT": { - "type": "string", - "default": "This transaction was initiated by the merchant" - }, - "source_CIT": { - "type": "string", - "default": "This transaction was initiated by the customer" - }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No transactions" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "code", - "customer", - "description", - "price", - "time", - "status_capturing", - "status_captured", - "status_approved", - "status_authorized", - "status_pending", - "status_completed", - "status_problem", - "status_pending_fraud_review", - "status_rejected", - "status_declined", - "status_refunding", - "status_refunded", - "status_voided", - "status_verified", - "summary", - "summary_plural", - "summary_payment_method_change", - "summary_subscription_modification", - "summary_subscription_cancellation", - "source_MIT", - "source_CIT", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["label", "pagination"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - } - }, - "required": [ - "day", - "day_plural", - "week", - "week_plural", - "month", - "month_plural", - "year", - "year_plural", - "cancel", - "close", - "confirm", - "currency", - "daily", - "daily_plural", - "end_date", - "frequency", - "frequency_label", - "item_plural", - "monthly", - "monthly_plural", - "next_transaction_date", - "start_date", - "price_recurring", - "price_twice_a_month", - "subscription_active", - "subscription_cancelled", - "subscription_failed", - "subscription_inactive", - "subscription_will_be_cancelled", - "subscription_will_be_active", - "transaction_plural", - "twice_a_month", - "undo_cancel", - "undo_confirm", - "undo_header", - "undo_message", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "customer", - "past-due-amount", - "attributes", - "items", - "transactions", - "spinner", - "timestamps" - ] -} diff --git a/src/static/schemas/subscription-settings-form.json b/src/static/schemas/subscription-settings-form.json deleted file mode 100644 index b7eb9f9c3..000000000 --- a/src/static/schemas/subscription-settings-form.json +++ /dev/null @@ -1,242 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "day": { "type": "string", "default": "{{ count }} day" }, - "day_plural": { "type": "string", "default": "{{ count }} days" }, - "day_suffix": { "type": "string", "default": "day" }, - "day_suffix_plural": { "type": "string", "default": "days" }, - "modification-url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Modification URL" }, - "placeholder": { "type": "string", "default": "https://example.com/edit-subscription" }, - "helper_text": { - "type": "string", - "default": "Enter a full URL or a path to the page under your Store URL where customers can modify their subscription. If present, subscriptions in the Customer Portal will show an Edit link that will send subscribers to this page." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "past-due-amount-handling": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Past due amount value" }, - "option_increment": { - "type": "string", - "default": "Contains the sum of all missed payments" - }, - "option_replace": { - "type": "string", - "default": "Contains the last missed payment amount" - }, - "option_ignore": { "type": "string", "default": "Doesn't change" }, - "helper_text": { - "type": "string", - "default": "This setting determines how you'd like to handle past due amounts when we try to process a subscription and that subscritpion fails." - } - }, - "required": ["label", "option_increment", "option_replace", "option_ignore", "helper_text"] - }, - "automatically-charge-past-due-amount": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "option_checked": { - "type": "string", - "default": "Charge past due amount with subscription payment" - }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "option_checked", "helper_text"] - }, - "clear-past-due-amounts-on-success": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "option_checked": { - "type": "string", - "default": "Clear past due amount on successful payment" - }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "option_checked", "helper_text"] - }, - "reset-nextdate-on-makeup-payment": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "option_checked": { - "type": "string", - "default": "Reset next transaction date on make-up payment" - }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "option_checked", "helper_text"] - }, - "reattempt-schedule": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Reattempt schedule" }, - "placeholder": { "type": "string", "default": "Period in days, e.g. 14" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "This schedule is too large. Please reduce the number of entries." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "reminder-email-schedule": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Failed subscription payment email schedule" }, - "placeholder": { "type": "string", "default": "Period in days, e.g. 14" }, - "helper_text": { - "type": "string", - "default": "Number of days after the initial failure that an email notification to the customer should be sent. This only happens for active subscriptions which still have a past due amount. If a reattempt is successful, no additional reminder email will be sent." - }, - "v8n_too_long": { - "type": "string", - "default": "This schedule is too large. Please reduce the number of entries." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "expiring-soon-payment-reminder-schedule": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Payment method expiration email schedule" }, - "placeholder": { "type": "string", "default": "Period in days, e.g. 14" }, - "helper_text": { - "type": "string", - "default": "Number of days until the payment card expires that an email notification should be sent to the customer. This only happens for customers with active subscriptions." - }, - "v8n_too_long": { - "type": "string", - "default": "This schedule is too large. Please reduce the number of entries." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "cancellation-schedule": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Cancel failed subscriptions after" }, - "placeholder": { "type": "string", "default": "Don't cancel" }, - "helper_text": { - "type": "string", - "default": "A single number representing the number of days after the initial failure that a subscription should be set to cancel (assuming a successful payment hasn't been made in the meantime)." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "send-email-receipts-for-automated-billing": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "option_checked": { - "type": "string", - "default": "Send email receipts for automated billing" - }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "option_checked", "helper_text"] - }, - "reattempt-bypass": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Reattempt behavior" }, - "helper_text": { - "type": "string", - "default": "Determines whether Foxy should reattempt the subscription charge if the transaction's previous error string does or doesn't contain specific text." - }, - "option_reattempt_if_exists": { - "type": "string", - "default": "Reattempt on certain errors" - }, - "option_skip_if_exists": { "type": "string", "default": "Skip on certain errors" }, - "option_always_reattempt": { "type": "string", "default": "Always reattempt" }, - "option_never_reattempt": { "type": "string", "default": "Never reattempt" }, - "reattempt-bypass-strings": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "Add errors..." }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "This list is too large. Please reduce the number of entries." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - } - }, - "required": [ - "label", - "helper_text", - "option_reattempt_if_exists", - "option_skip_if_exists", - "option_always_reattempt", - "option_never_reattempt", - "reattempt-bypass-strings" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove these subscription settings? You won't be able to bring them back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - } - }, - "required": [ - "day", - "day_plural", - "day_suffix", - "day_suffix_plural", - "modification-url", - "past-due-amount-handling", - "automatically-charge-past-due-amount", - "clear-past-due-amounts-on-success", - "reset-nextdate-on-makeup-payment", - "reattempt-schedule", - "reminder-email-schedule", - "expiring-soon-payment-reminder-schedule", - "cancellation-schedule", - "send-email-receipts-for-automated-billing", - "reattempt-bypass", - "timestamps", - "spinner", - "delete", - "create" - ] -} diff --git a/src/static/schemas/subscriptions-table.json b/src/static/schemas/subscriptions-table.json deleted file mode 100644 index 74ab8bcb0..000000000 --- a/src/static/schemas/subscriptions-table.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t({{units}}, { \"count\": {{count}}, \"ns\": \"subscriptions-table\" })" - }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "price_recurring": { - "type": "string", - "default": "{{amount, price}} $t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"subscriptions-table\" })" - }, - "price_twice_a_month": { - "type": "string", - "default": "{{amount, price}} $t(twice_a_month, { \"ns\": \"subscriptions-table\" })" - }, - "subscription_active": { "type": "string", "default": "Next payment on {{date, date}}" }, - "subscription_cancelled": { "type": "string", "default": "Ended on {{date, date}}" }, - "subscription_failed": { "type": "string", "default": "Payment failed on {{date, date}}" }, - "subscription_inactive": { "type": "string", "default": "Inactive" }, - "subscription_will_be_cancelled": { "type": "string", "default": "Ends on {{date, date}}" }, - "subscription_will_be_active": { "type": "string", "default": "Starts on {{date, date}}" }, - "transaction_summary": { "type": "string", "default": "{{most_expensive_item.name}}" }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "update": { "type": "string", "default": "Update" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "price_recurring", - "price_twice_a_month", - "subscription_active", - "subscription_cancelled", - "subscription_failed", - "subscription_inactive", - "subscription_will_be_cancelled", - "subscription_will_be_active", - "transaction_summary", - "twice_a_month", - "update", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "spinner" - ] -} diff --git a/src/static/schemas/tax-card.json b/src/static/schemas/tax-card.json deleted file mode 100644 index 5daa3a8fd..000000000 --- a/src/static/schemas/tax-card.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "percent": { "type": "string", "default": "{{fraction, percent}}" }, - "tax_global": { "type": "string", "default": "Global tax" }, - "tax_rate_provider_default": { - "type": "string", - "default": "Default (Thomson Reuters; others)" - }, - "tax_union": { "type": "string", "default": "European Union tax" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["percent", "tax_global", "tax_rate_provider_default", "tax_union", "spinner"] -} diff --git a/src/static/schemas/tax-form.json b/src/static/schemas/tax-form.json deleted file mode 100644 index 56db2996c..000000000 --- a/src/static/schemas/tax-form.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "city": { "type": "string", "default": "City" }, - "country": { "type": "string", "default": "Country" }, - "create": { "type": "string", "default": "Create" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "default": { "type": "string", "default": "Default" }, - "delete": { "type": "string", "default": "Delete" }, - "delete_prompt": { - "type": "string", - "default": "This resource will be permanently removed. Are you sure?" - }, - "error": { "type": "string", "default": "Error" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "name": { "type": "string", "default": "Name" }, - "region": { "type": "string", "default": "Region" }, - "tax_apply_to_shipping": { "type": "string", "default": "Apply to shipping" }, - "tax_apply_to_shipping_explainer": { - "type": "string", - "default": "Check to apply this tax to the shipping costs." - }, - "tax_country": { "type": "string", "default": "Country tax" }, - "tax_exempt_all_customer_tax_ids": { - "type": "string", - "default": "Exempt all customers with Tax ID" - }, - "tax_exempt_all_customer_tax_ids_explainer": { - "type": "string", - "default": "Check to skip tax collection for customers with Tax ID on file." - }, - "tax_global": { "type": "string", "default": "Global tax" }, - "tax_local": { "type": "string", "default": "Local tax" }, - "tax_rate": { "type": "string", "default": "Rate (%)" }, - "tax_rate_provider": { "type": "string", "default": "Rate provider" }, - "tax_rate_provider_default": { - "type": "string", - "default": "Default (Thomson Reuters; others)" - }, - "tax_rate_provider_none": { "type": "string", "default": "None (custom rate)" }, - "tax_region": { "type": "string", "default": "Regional tax" }, - "tax_union": { "type": "string", "default": "European Union tax" }, - "tax_use_origin_rates": { "type": "string", "default": "Use origin tax rates" }, - "tax_use_origin_rates_explainer": { - "type": "string", - "default": "Check to use the tax rate of your country regardless of where customers are located." - }, - "type": { "type": "string", "default": "Type" }, - "v8n_required": { "type": "string", "default": "Required" }, - "v8n_too_long": { "type": "string", "default": "Too long" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "cancel", - "city", - "country", - "create", - "date", - "date_created", - "date_modified", - "default", - "delete", - "delete_prompt", - "error", - "loading_busy", - "name", - "region", - "tax_apply_to_shipping", - "tax_apply_to_shipping_explainer", - "tax_country", - "tax_exempt_all_customer_tax_ids", - "tax_exempt_all_customer_tax_ids_explainer", - "tax_global", - "tax_local", - "tax_rate", - "tax_rate_provider", - "tax_rate_provider_default", - "tax_rate_provider_none", - "tax_region", - "tax_union", - "tax_use_origin_rates", - "tax_use_origin_rates_explainer", - "type", - "v8n_required", - "v8n_too_long", - "spinner" - ] -} diff --git a/src/static/schemas/template-config-form.json b/src/static/schemas/template-config-form.json deleted file mode 100644 index 5370baf66..000000000 --- a/src/static/schemas/template-config-form.json +++ /dev/null @@ -1,321 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "add_country": { "type": "string", "default": "Add country" }, - "add_field": { "type": "string", "default": "Add field" }, - "add_region": { "type": "string", "default": "Add region" }, - "address1": { "type": "string", "default": "Address Line 1" }, - "address2": { "type": "string", "default": "Address Line 2" }, - "allow": { "type": "string", "default": "Allow" }, - "allowlist": { "type": "string", "default": "Allow specific locations" }, - "billing": { "type": "string", "default": "Billing" }, - "block": { "type": "string", "default": "Block" }, - "blocklist": { "type": "string", "default": "Block specific locations" }, - "cart_controls": { "type": "string", "default": "Quantity" }, - "cart_type": { "type": "string", "default": "Cart display" }, - "cart_type_custom": { "type": "string", "default": "Custom" }, - "cart_type_custom_explainer": { - "type": "string", - "default": "Build your own JSONP cart with included config" - }, - "cart_type_default": { "type": "string", "default": "Sidecart" }, - "cart_type_default_explainer": { - "type": "string", - "default": "Default cart appearance in version 2.0" - }, - "cart_type_fullpage": { "type": "string", "default": "Full page" }, - "cart_type_fullpage_explainer": { - "type": "string", - "default": "Send all customers to a full page cart while still including minicart functionality" - }, - "checked_by_default": { "type": "string", "default": "Checked by default" }, - "checkout_type": { "type": "string", "default": "Accounts" }, - "checkout_type_account_only": { "type": "string", "default": "Allow customer accounts only" }, - "checkout_type_default_account": { - "type": "string", - "default": "Allow both, default to customer" - }, - "checkout_type_default_guest": { "type": "string", "default": "Allow both, default to guest" }, - "checkout_type_guest_only": { "type": "string", "default": "Allow guests only" }, - "checkout_type_helper_text": { - "type": "string", - "default": "If you select Allow guests only, your store will not be able to use subscriptions." - }, - "city": { "type": "string", "default": "City" }, - "close": { "type": "string", "default": "Close" }, - "close_icon": { "type": "string", "default": "Close icon" }, - "company": { "type": "string", "default": "Company" }, - "consent": { "type": "string", "default": "Consent" }, - "copy": { "type": "string", "default": "Copy" }, - "country": { "type": "string", "default": "Country" }, - "coupon_entry": { "type": "string", "default": "Coupon code" }, - "create": { "type": "string", "default": "Create" }, - "custom_config": { "type": "string", "default": "Custom config" }, - "custom_config_helper_text": { - "type": "string", - "default": "If you have any custom values you'd like to make available to your twig template, you can add them here as a valid JSON string." - }, - "custom_fields": { "type": "string", "default": "Custom fields" }, - "custom_fields_helper_text": { - "type": "string", - "default": "If you have information you'd like to collect from the customer on the checkout page, you can add custom form fields here which will be added to the checkout form. We recommend you follow the same HTML container structure used on other checkout fields for consistency. You can use Twig syntax here." - }, - "custom_footer": { "type": "string", "default": "Custom footer" }, - "custom_footer_helper_text": { - "type": "string", - "default": "Any JS snippets or conversion scripts you need to add to the footer can be put here and will be inserted before the tag. You can use Twig syntax here. For conversion scripts you only want to display once on the receipt page, use {% if first_receipt_display %} {# conversion script content here #} {% endif %}." - }, - "custom_header": { "type": "string", "default": "Custom header" }, - "custom_header_helper_text": { - "type": "string", - "default": "Any CSS or JS you need to add to the header can be put here and will be inserted before the tag of your templates. Keep in mind all script file references must be through https or run through the Foxy caching system. Twig syntax is not available in the header." - }, - "default": { "type": "string", "default": "Default" }, - "delete": { "type": "string", "default": "Delete" }, - "delete_prompt": { - "type": "string", - "default": "This resource will be permanently removed. Are you sure?" - }, - "disabled": { "type": "string", "default": "Disabled" }, - "display_sdta": { - "type": "string", - "default": "Display a Secure Data Transfer agreement to EU customers" - }, - "display_sdta_explainer": { - "type": "string", - "default": "If you have customers in the European Union, enable this feature so they can opt in to sending their data to our secure servers in the United States." - }, - "display_tos_link": { "type": "string", "default": "Display a link to Terms & Conditions" }, - "display_tos_link_explainer": { - "type": "string", - "default": "Include a checkbox to ask your customers to agree to your Terms of Service." - }, - "enable_postcode_lookup": { - "type": "string", - "default": "Offer city and state suggestions based on postcode" - }, - "enabled": { "type": "string", "default": "Enabled" }, - "error": { "type": "string", "default": "Error" }, - "field_plural": { "type": "string", "default": "Fields" }, - "first_name": { "type": "string", "default": "First name" }, - "foxycomplete": { "type": "string", "default": "Location autocomplete" }, - "foxycomplete_combobox": { "type": "string", "default": "Combo Box" }, - "foxycomplete_combobox_explainer": { - "type": "string", - "default": "Expand to browse options, type to search" - }, - "foxycomplete_disabled": { "type": "string", "default": "Disabled" }, - "foxycomplete_disabled_explainer": { - "type": "string", - "default": "Let customers pick an option from a list" - }, - "foxycomplete_search": { "type": "string", "default": "Search" }, - "foxycomplete_search_explainer": { - "type": "string", - "default": "Display a «search as you type» field" - }, - "ga_account_id": { "type": "string", "default": "Account ID" }, - "ga_account_id_explainer": { - "type": "string", - "default": "You can find the ID in the Admin section of your Analytics in Tracking info > Tracking code." - }, - "ga_include_on_site": { "type": "string", "default": "Include via loader.js" }, - "ga_include_on_site_explainer": { - "type": "string", - "default": "Enable Google Analytics on any page where the loader.js file is included." - }, - "ga_deprecation_notice": { - "type": "string", - "default": "Google has ended support for this integration in July 2023. Please use the newer Google Tag integration below." - }, - "gt_account_id": { "type": "string", "default": "Tag ID" }, - "gt_account_id_explainer": { - "type": "string", - "default": "Tag ID prefixed with G- or AW-. Values prefixed with GT- are not fully supported at this time." - }, - "gt_send_to": { "type": "string", "default": "Ads send to" }, - "gt_send_to_explainer": { - "type": "string", - "default": "Optional. Setting this value will trigger the conversion event to be tracked on the receipt." - }, - "gt_usage_notice": { - "type": "string", - "default": "Enabling the Google Tag for your store requires some additional configuration on your store and within your tag administration to make the data logged through this functionality useful." - }, - "gt_docs_link": { "type": "string", "default": "See our docs for more info" }, - "hidden": { "type": "string", "default": "Hidden" }, - "hidden_fields": { "type": "string", "default": "Hidden fields" }, - "last_name": { "type": "string", "default": "Last name" }, - "location_plural": { "type": "string", "default": "Locations" }, - "location_url": { "type": "string", "default": "Location (URL)" }, - "newsletter_subscribe": { - "type": "string", - "default": "Allow users to sign up for your newsletter" - }, - "newsletter_subscribe_explainer": { - "type": "string", - "default": "This includes a checkbox on your checkout to allow customers to choose to sign up to your newsletter, available in the transaction reports, the API and webhooks." - }, - "open_icon": { "type": "string", "default": "Open icon" }, - "optional": { "type": "string", "default": "Optional" }, - "phone": { "type": "string", "default": "Phone" }, - "postal_code": { "type": "string", "default": "Postal code" }, - "product_category": { "type": "string", "default": "Product category" }, - "product_code": { "type": "string", "default": "Product code" }, - "product_options": { "type": "string", "default": "Product options" }, - "product_weight": { "type": "string", "default": "Product weight" }, - "region": { "type": "string", "default": "Region" }, - "require_consent": { "type": "string", "default": "Require consent to proceed" }, - "required": { "type": "string", "default": "Required" }, - "same_as_shipping": { "type": "string", "default": "Same as shipping" }, - "shipping": { "type": "string", "default": "Shipping" }, - "show_country_flags": { "type": "string", "default": "Show country flags" }, - "sio_account_id": { "type": "string", "default": "Write Key" }, - "sio_account_id_explainer": { - "type": "string", - "default": "You can find the write key in your project set up guide or in the source’s settings." - }, - "skip_csc_for_saved": { "type": "string", "default": "Skip CSC for saved cards" }, - "skip_csc_for_sso": { "type": "string", "default": "Skip CSC for single sign-on" }, - "sub_enddate": { "type": "string", "default": "Subscription end date" }, - "sub_frequency": { "type": "string", "default": "Subscription frequency" }, - "sub_nextdate": { "type": "string", "default": "Subscription next date" }, - "sub_startdate": { "type": "string", "default": "Subscription start date" }, - "supported_cards": { "type": "string", "default": "Cards" }, - "supported_cards_disclaimer": { - "type": "string", - "default": "Applies only to payment gateways where the customer enters their payment card information directly on the Foxy checkout. Exceptions: Adyen Embedded, Amazon Pay, Apple Pay, Klarna, Square and Stripe." - }, - "tax_id": { "type": "string", "default": "Tax ID" }, - "troubleshooting": { "type": "string", "default": "Troubleshooting" }, - "troubleshooting_debug": { - "type": "string", - "default": "Log debug messages in the browser console" - }, - "troubleshooting_debug_explainer": { - "type": "string", - "default": "Enable this option to trigger console.log() calls for our JS, which can assist with troubleshooting your store." - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "add_country", - "add_field", - "add_region", - "address1", - "address2", - "allow", - "allowlist", - "billing", - "block", - "blocklist", - "cart_controls", - "cart_type", - "cart_type_custom", - "cart_type_custom_explainer", - "cart_type_default", - "cart_type_default_explainer", - "cart_type_fullpage", - "cart_type_fullpage_explainer", - "checked_by_default", - "checkout_type", - "checkout_type_account_only", - "checkout_type_default_account", - "checkout_type_default_guest", - "checkout_type_guest_only", - "checkout_type_helper_text", - "city", - "close", - "close_icon", - "company", - "consent", - "copy", - "country", - "coupon_entry", - "create", - "custom_config", - "custom_config_helper_text", - "custom_fields", - "custom_fields_helper_text", - "custom_footer", - "custom_footer_helper_text", - "custom_header", - "custom_header_helper_text", - "default", - "delete", - "delete_prompt", - "disabled", - "display_sdta", - "display_sdta_explainer", - "display_tos_link", - "display_tos_link_explainer", - "enable_postcode_lookup", - "enabled", - "error", - "field_plural", - "first_name", - "foxycomplete", - "foxycomplete_combobox", - "foxycomplete_combobox_explainer", - "foxycomplete_disabled", - "foxycomplete_disabled_explainer", - "foxycomplete_search", - "foxycomplete_search_explainer", - "ga_account_id", - "ga_account_id_explainer", - "ga_include_on_site", - "ga_include_on_site_explainer", - "ga_deprecation_notice", - "gt_account_id", - "gt_account_id_explainer", - "gt_send_to", - "gt_send_to_explainer", - "gt_usage_notice", - "gt_docs_link", - "hidden", - "hidden_fields", - "last_name", - "location_plural", - "location_url", - "newsletter_subscribe", - "newsletter_subscribe_explainer", - "open_icon", - "optional", - "phone", - "postal_code", - "product_category", - "product_code", - "product_options", - "product_weight", - "region", - "require_consent", - "required", - "same_as_shipping", - "shipping", - "show_country_flags", - "sio_account_id", - "sio_account_id_explainer", - "skip_csc_for_saved", - "skip_csc_for_sso", - "sub_enddate", - "sub_frequency", - "sub_nextdate", - "sub_startdate", - "supported_cards", - "supported_cards_disclaimer", - "tax_id", - "troubleshooting", - "troubleshooting_debug", - "troubleshooting_debug_explainer", - "spinner" - ] -} diff --git a/src/static/schemas/template-form.json b/src/static/schemas/template-form.json deleted file mode 100644 index 7f2864021..000000000 --- a/src/static/schemas/template-form.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "cache": { "type": "string", "default": "Sync" }, - "cancel": { "type": "string", "default": "Cancel" }, - "create": { "type": "string", "default": "Create" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "default": { "type": "string", "default": "Default" }, - "delete": { "type": "string", "default": "Delete" }, - "delete_prompt": { - "type": "string", - "default": "This resource will be permanently removed. Are you sure?" - }, - "description": { "type": "string", "default": "Description" }, - "template": { "type": "string", "default": "Template" }, - "template_clipboard": { "type": "string", "default": "Upload source code" }, - "template_default": { "type": "string", "default": "Use default template" }, - "template_url": { "type": "string", "default": "Pull from public URL" }, - "url": { "type": "string", "default": "URL" }, - "url_source_label": { "type": "string", "default": "Cached source" }, - "url_source_placeholder": { - "type": "string", - "default": "Template markup will appear here once cached" - }, - "clipboard_source_label": { "type": "string", "default": "Source" }, - "clipboard_source_placeholder": { - "type": "string", - "default": "Enter your template markup here" - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "cache", - "cancel", - "create", - "date", - "date_created", - "date_modified", - "default", - "delete", - "delete_prompt", - "description", - "template", - "template_clipboard", - "template_default", - "template_url", - "url", - "url_source_label", - "url_source_placeholder", - "clipboard_source_label", - "clipboard_source_placeholder", - "spinner" - ] -} diff --git a/src/static/schemas/template-set-card.json b/src/static/schemas/template-set-card.json deleted file mode 100644 index 5f175ab78..000000000 --- a/src/static/schemas/template-set-card.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] -} diff --git a/src/static/schemas/template-set-form.json b/src/static/schemas/template-set-form.json deleted file mode 100644 index cd73cf125..000000000 --- a/src/static/schemas/template-set-form.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "description": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Description" }, - "placeholder": { "type": "string", "default": "Required - e.g. My Template Set" }, - "helper_text": { - "type": "string", - "default": "Any label that will help you identify this template set in the admin. We won't show this text to the customers." - }, - "v8n_required": { "type": "string", "default": "Please enter a description for this set" }, - "v8n_too_long": { - "type": "string", - "default": "Please reduce this description to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code" }, - "placeholder": { "type": "string", "default": "Required - e.g. MY-TEMPLATE-SET" }, - "helper_text": { - "type": "string", - "default": "The template set code for applying this template set to the cart. Your customers might see this code in the URL." - }, - "v8n_required": { "type": "string", "default": "Please enter a code for this set" }, - "v8n_too_long": { - "type": "string", - "default": "Please reduce this code to 50 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "language": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Language" }, - "placeholder": { "type": "string", "default": "Select language" }, - "helper_text": { - "type": "string", - "default": "We'll apply this language to our cart, checkout and receipt pages." - }, - "v8n_required": { "type": "string", "default": "Please select a language for this set" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "locale-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Locale" }, - "placeholder": { "type": "string", "default": "Select locale" }, - "helper_text": { - "type": "string", - "default": "We'll use this locale to format prices and dates for your customers." - }, - "v8n_required": { "type": "string", "default": "Please select a locale for this set" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "payment-method-set-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Payment method set" }, - "placeholder": { "type": "string", "default": "Default payment method set" }, - "helper_text": { - "type": "string", - "default": "With this template set applied, your customers will see payment methods from the selected set." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "language-overrides": { - "additionalProperties": false, - "properties": { - "delete_button_title": { "type": "string", "default": "Restore default value" }, - "save_button": { "type": "string", "default": "Save" }, - "undo_button": { "type": "string", "default": "Undo" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_title", "save_button", "undo_button", "spinner"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this template set? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "description", - "code", - "language", - "locale-code", - "payment-method-set-uri", - "language-overrides", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/transaction-card.json b/src/static/schemas/transaction-card.json deleted file mode 100644 index ca94b287e..000000000 --- a/src/static/schemas/transaction-card.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "code": { "type": "string", "default": "Code" }, - "customer": { "type": "string", "default": "Customer" }, - "description": { "type": "string", "default": "Description" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "time": { "type": "string", "default": "{{value, date}} at {{value, time}}" }, - "status_capturing": { "type": "string", "default": "Capturing" }, - "status_captured": { "type": "string", "default": "Captured" }, - "status_approved": { "type": "string", "default": "Approved" }, - "status_authorized": { "type": "string", "default": "Authorized" }, - "status_pending": { "type": "string", "default": "Pending" }, - "status_completed": { "type": "string", "default": "Completed" }, - "status_problem": { "type": "string", "default": "Problem" }, - "status_pending_fraud_review": { "type": "string", "default": "Pending_fraud_review" }, - "status_rejected": { "type": "string", "default": "Rejected" }, - "status_declined": { "type": "string", "default": "Declined" }, - "status_refunding": { "type": "string", "default": "Refunding" }, - "status_refunded": { "type": "string", "default": "Refunded" }, - "status_voided": { "type": "string", "default": "Voided" }, - "status_verified": { "type": "string", "default": "Verified" }, - "summary": { "type": "string", "default": "{{most_expensive_item.name}}" }, - "summary_plural": { - "type": "string", - "default": "{{most_expensive_item.name}} and {{count_minus_one}} more" - }, - "summary_payment_method_change": { "type": "string", "default": "Payment method change" }, - "summary_subscription_modification": { - "type": "string", - "default": "Subscription modification" - }, - "summary_subscription_cancellation": { - "type": "string", - "default": "Subscription cancellation" - }, - "source_MIT": { "type": "string", "default": "This transaction was initiated by the merchant" }, - "source_CIT": { "type": "string", "default": "This transaction was initiated by the customer" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "code", - "customer", - "description", - "price", - "time", - "status_capturing", - "status_captured", - "status_approved", - "status_authorized", - "status_pending", - "status_completed", - "status_problem", - "status_pending_fraud_review", - "status_rejected", - "status_declined", - "status_refunding", - "status_refunded", - "status_voided", - "status_verified", - "summary", - "summary_plural", - "summary_payment_method_change", - "summary_subscription_modification", - "summary_subscription_cancellation", - "source_MIT", - "source_CIT", - "spinner" - ] -} diff --git a/src/static/schemas/transaction.json b/src/static/schemas/transaction.json deleted file mode 100644 index 10b508629..000000000 --- a/src/static/schemas/transaction.json +++ /dev/null @@ -1,3281 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "header": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "ID {{ display_id }}" }, - "subtitle": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • {{ ip_country }}" - }, - "subtitle_customer_changed_payment_method": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • {{ ip_country }} • Customer changed payment method" - }, - "subtitle_admin_changed_payment_method_with_uoe": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Store admin used UOE password to change payment method" - }, - "subtitle_integration_changed_payment_method": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Integration changed payment method" - }, - "subtitle_admin_changed_payment_method": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Store admin changed payment method" - }, - "subtitle_customer_changed_subscription": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • {{ ip_country }} • Customer made changes to subscription" - }, - "subtitle_admin_changed_subscription_with_uoe": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Store admin used UOE password to make changes to subscription" - }, - "subtitle_integration_changed_subscription": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Integration made changes to subscription" - }, - "subtitle_admin_changed_subscription": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Store admin made changes to subscription" - }, - "subtitle_subscription_renewal_attempt": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Subscription renewal attempt" - }, - "subtitle_subscription_renewal_automated_reattempt": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Automated subscription renewal reattempt" - }, - "subtitle_subscription_renewal_manual_reattempt": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Store admin attempted to renew subscription" - }, - "subtitle_customer_canceled_subscription": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • {{ ip_country }} • Customer cancelled subscription" - }, - "subtitle_admin_canceled_subscription": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Store admin cancelled subscription" - }, - "subtitle_customer_subscribed": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • {{ ip_country }} • Customer bought a subscription" - }, - "subtitle_admin_subscribed_with_uoe": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Store admin used UOE password to buy a subscription" - }, - "subtitle_integration_subscribed": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Integration placed an order for customer" - }, - "subtitle_customer_placed_order": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • {{ ip_country }} • Customer placed an order" - }, - "subtitle_admin_placed_order_with_uoe": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Store admin used UOE password to place an order" - }, - "subtitle_integration_placed_order": { - "type": "string", - "default": "{{ transaction_date, date }} at {{ transaction_date, time }} • Integration bought a subscription" - }, - "alert_status_problem": { - "type": "string", - "default": "We were unable to complete this transaction because the amount that was sent to the payment gateway did not match the final total amount." - }, - "alert_status_pending_fraud_review": { - "type": "string", - "default": "The payment gateway flagged this transaction as potentially fraudulent. Please log in to your gateway’s dashboard and look for this transaction to review." - }, - "alert_status_rejected": { - "type": "string", - "default": "The payment gateway refused to process this transaction based on its internal policy. You may be able to get more information about this error by logging in to your gateway’s dashboard and looking for this transaction." - }, - "alert_status_declined": { - "type": "string", - "default": "The payment method used for this transaction was declined. This could be due to insufficient funds, an expired card, or a different reason. You may be able to get more information about this error in your gateway’s dashboard." - } - }, - "required": [ - "title", - "subtitle", - "subtitle_customer_changed_payment_method", - "subtitle_admin_changed_payment_method_with_uoe", - "subtitle_integration_changed_payment_method", - "subtitle_admin_changed_payment_method", - "subtitle_customer_changed_subscription", - "subtitle_admin_changed_subscription_with_uoe", - "subtitle_integration_changed_subscription", - "subtitle_admin_changed_subscription", - "subtitle_subscription_renewal_attempt", - "subtitle_subscription_renewal_automated_reattempt", - "subtitle_subscription_renewal_manual_reattempt", - "subtitle_customer_canceled_subscription", - "subtitle_admin_canceled_subscription", - "subtitle_customer_subscribed", - "subtitle_admin_subscribed_with_uoe", - "subtitle_integration_subscribed", - "subtitle_customer_placed_order", - "subtitle_admin_placed_order_with_uoe", - "subtitle_integration_placed_order", - "alert_status_problem", - "alert_status_pending_fraud_review", - "alert_status_rejected", - "alert_status_declined" - ] - }, - "customer": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Customer" }, - "copy_email_caption": { "type": "string", "default": "Copy email" }, - "copy_id_caption": { "type": "string", "default": "Copy ID" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No customer" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["label", "copy_email_caption", "copy_id_caption", "spinner"] - }, - "items": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Items" }, - "delete_header": { "type": "string", "default": "Remove item?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this item from the transaction." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add item +" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Remove" }, - "daily": { "type": "string", "default": "Daily" }, - "daily_plural": { "type": "string", "default": "Every {{count}} days" }, - "frequency": { - "type": "string", - "default": "$t(items.pagination.card.{{units}}, { \"count\": {{count}}, \"ns\": \"transaction\" })" - }, - "monthly": { "type": "string", "default": "Monthly" }, - "monthly_plural": { "type": "string", "default": "Every {{count}} months" }, - "subinfo_recurring": { - "type": "string", - "default": "$t(items.pagination.card.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"transaction\" }) from {{startDate, date}}" - }, - "subinfo_twice_a_month": { - "type": "string", - "default": "$t(items.pagination.card.twice_a_month, { \"ns\": \"transaction\" }) from {{startDate, date}}" - }, - "twice_a_month": { "type": "string", "default": "Twice a month" }, - "no_code": { "type": "string", "default": "No SKU" }, - "weekly": { "type": "string", "default": "Weekly" }, - "weekly_plural": { "type": "string", "default": "Every {{count}} weeks" }, - "yearly": { "type": "string", "default": "Yearly" }, - "yearly_plural": { "type": "string", "default": "Every {{count}} years" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No items" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "delete_button_text", - "daily", - "daily_plural", - "frequency", - "monthly", - "monthly_plural", - "subinfo_recurring", - "subinfo_twice_a_month", - "twice_a_month", - "no_code", - "weekly", - "weekly_plural", - "yearly", - "yearly_plural", - "price", - "spinner" - ] - } - }, - "required": [ - "create_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "header_update": { "type": "string", "default": "Item" }, - "header_create": { "type": "string", "default": "New item" }, - "save": { "type": "string", "default": "Save" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "item-form": { - "additionalProperties": false, - "properties": { - "dimensions": { "type": "string", "default": "Dimensions" }, - "subscriptions": { "type": "string", "default": "Subscriptions" }, - "discount": { "type": "string", "default": "Discount" }, - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "helper_text": { "type": "string", "default": "Public name of this item." }, - "placeholder": { "type": "string", "default": "13' Laptop Case" }, - "v8n_required": { "type": "string", "default": "Name is required" }, - "v8n_too_long": { - "type": "string", - "default": "Name mustn't exceed 255 characters" - } - }, - "required": [ - "label", - "helper_text", - "placeholder", - "v8n_required", - "v8n_too_long" - ] - }, - "price": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Price" }, - "helper_text": { - "type": "string", - "default": "Base price before option modifiers." - }, - "placeholder": { "type": "string", "default": "25" }, - "v8n_required": { "type": "string", "default": "Price is required" }, - "v8n_negative": { "type": "string", "default": "Price can't be negative" } - }, - "required": [ - "label", - "helper_text", - "placeholder", - "v8n_required", - "v8n_negative" - ] - }, - "quantity": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Quantity" }, - "helper_text": { "type": "string", "default": "Number of items in the cart." }, - "placeholder": { "type": "string", "default": "1 by default" }, - "v8n_less_than_one": { - "type": "string", - "default": "Quantity must be 1 or more" - } - }, - "required": ["label", "helper_text", "placeholder", "v8n_less_than_one"] - }, - "subscription-frequency": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Subscription frequency" }, - "day": { "type": "string", "default": "Day" }, - "day_plural": { "type": "string", "default": "Days" }, - "week": { "type": "string", "default": "Week" }, - "week_plural": { "type": "string", "default": "Weeks" }, - "month": { "type": "string", "default": "Month" }, - "month_plural": { "type": "string", "default": "Months" }, - "year": { "type": "string", "default": "Year" }, - "year_plural": { "type": "string", "default": "Years" }, - "helper_text": { - "type": "string", - "default": "This determines how often this subscription will be processed. To modify this value for an existing subscription, you must modify the subscription directly." - } - }, - "required": [ - "label", - "day", - "day_plural", - "week", - "week_plural", - "month", - "month_plural", - "year", - "year_plural", - "helper_text" - ] - }, - "subscription-start-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Subscription start" }, - "helper_text": { - "type": "string", - "default": "The original date this subscription began or will begin if set in the future. To modify this value for an existing subscription, you must modify the subscription directly." - }, - "placeholder": { "type": "string", "default": "01/01/2022" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "subscription-end-date": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Subscription end" }, - "helper_text": { - "type": "string", - "default": "If set, the date this subscription will end. The subscription will not run on this day." - }, - "placeholder": { "type": "string", "default": "01/01/2022" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "discount-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Discount name" }, - "helper_text": { - "type": "string", - "default": "The name of the line item discount if it is included on this item." - }, - "placeholder": { "type": "string", "default": "One-off 10% discount" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "discount-builder": { - "additionalProperties": false, - "properties": { - "tier": { "type": "string", "default": "Tier" }, - "tier_by": { "type": "string", "default": "by" }, - "tier_if": { "type": "string", "default": "if" }, - "tier_allunits": { "type": "string", "default": "price of each item" }, - "tier_incremental": { - "type": "string", - "default": "price of additional items" - }, - "tier_repeat": { "type": "string", "default": "price of next item" }, - "tier_single": { "type": "string", "default": "order total" }, - "tier_then": { "type": "string", "default": "then" }, - "quantity": { "type": "string", "default": "quantity" }, - "total": { "type": "string", "default": "total" }, - "reduce": { "type": "string", "default": "reduce" }, - "increase": { "type": "string", "default": "increase" } - }, - "required": [ - "tier", - "tier_by", - "tier_if", - "tier_allunits", - "tier_incremental", - "tier_repeat", - "tier_single", - "tier_then", - "quantity", - "total", - "reduce", - "increase" - ] - }, - "expires": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Expires" }, - "helper_text": { - "type": "string", - "default": "Date when this item will be removed from the cart (optional)." - }, - "placeholder": { "type": "string", "default": "01/01/2022" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "image": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Image" }, - "helper_text": { - "type": "string", - "default": "URL of the image to display for this item in the cart and checkout." - }, - "placeholder": { "type": "string", "default": "https://picsum.photos/256" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "URL" }, - "helper_text": { - "type": "string", - "default": "Full URL for the customer to view this item on the store website." - }, - "placeholder": { - "type": "string", - "default": "https://example.com/products/123" - } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "quantity-min": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Min quantity" }, - "helper_text": { "type": "string", "default": "Minimum quantity per cart." }, - "placeholder": { "type": "string", "default": "1" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "quantity-max": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Max quantity" }, - "helper_text": { "type": "string", "default": "Maximum quantity per cart." }, - "placeholder": { "type": "string", "default": "25" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "shipto": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Shipping address" }, - "helper_text": { - "type": "string", - "default": "Used for multiship to assign this item to a specific shipment." - }, - "placeholder": { - "type": "string", - "default": "Select address to ship this item to..." - } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "width": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Width" }, - "helper_text": { - "type": "string", - "default": "This is currently a placeholder for future use." - }, - "placeholder": { "type": "string", "default": "16" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "height": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Height" }, - "helper_text": { - "type": "string", - "default": "This is currently a placeholder for future use." - }, - "placeholder": { "type": "string", "default": "8" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "length": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Width" }, - "helper_text": { - "type": "string", - "default": "This is currently a placeholder for future use." - }, - "placeholder": { "type": "string", "default": "32" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "weight": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Weight" }, - "helper_text": { - "type": "string", - "default": "Per-item weight, used for shipping rate requests." - }, - "placeholder": { "type": "string", "default": "24" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "item-category-uri": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Item category" }, - "helper_text": { - "type": "string", - "default": "Item category associated with this item." - }, - "placeholder": { "type": "string", "default": "Select item category..." } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Code" }, - "helper_text": { - "type": "string", - "default": "Unique item code such as SKU or barcode." - }, - "placeholder": { "type": "string", "default": "MY-PRODUCT-001" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "parent-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Parent code" }, - "helper_text": { - "type": "string", - "default": "Used if this should be a child product in a bundle." - }, - "placeholder": { "type": "string", "default": "MY-BUNDLE-001" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "discount-details": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Discounts" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No discounts" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["title", "pagination"] - }, - "coupon-details": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Coupons" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No coupons" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["title", "pagination"] - }, - "attributes": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Attributes" }, - "delete_header": { "type": "string", "default": "Remove attribute?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this attribute from the item." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_create": { "type": "string", "default": "Create attribute" }, - "header_update": { "type": "string", "default": "Update attribute" }, - "close": { "type": "string", "default": "Close" }, - "save": { "type": "string", "default": "Save" }, - "cancel": { "type": "string", "default": "Cancel" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "attribute-form": { - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Name of this attribute. It does not have to be unique." - }, - "v8n_required": { - "type": "string", - "default": "Please name this attribute." - }, - "v8n_too_long": { - "type": "string", - "default": "Please choose a name that is 500 characters long or less." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Value of this attribute. Attribute values are automatically HTML-escaped." - }, - "v8n_required": { - "type": "string", - "default": "Please provide a value for this attribute." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store values that are more than 1000 characters long." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "visibility": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Visibility" }, - "option_public": { "type": "string", "default": "Everyone" }, - "option_restricted": { - "type": "string", - "default": "Store admins" - }, - "option_private": { "type": "string", "default": "Only me" }, - "helper_text": { - "type": "string", - "default": "Controls who can see this attribute. Public attributes can be shown to anyone, including customers. Private attributes are more suitable for configuration or technical details which are irrelevant to the public. Restricted attributes can only be viewed with the OAuth client that created them." - } - }, - "required": [ - "label", - "option_public", - "option_restricted", - "option_private", - "helper_text" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "name", - "value", - "visibility", - "timestamps", - "delete", - "create", - "spinner" - ] - } - }, - "required": [ - "header_create", - "header_update", - "close", - "save", - "cancel", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "attribute-form" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add attribute +" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Delete" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No attributes" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "spinner"] - }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": [ - "create_button_text", - "card", - "first", - "last", - "next", - "pagination", - "previous" - ] - } - }, - "required": [ - "title", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "dialog", - "pagination" - ] - }, - "item-options": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Item options" }, - "delete_header": { "type": "string", "default": "Remove item option?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this item option from the item." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "dialog": { - "additionalProperties": false, - "properties": { - "header_create": { "type": "string", "default": "Create option" }, - "header_update": { "type": "string", "default": "Update option" }, - "close": { "type": "string", "default": "Close" }, - "save": { "type": "string", "default": "Save" }, - "cancel": { "type": "string", "default": "Cancel" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "item-option-form": { - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "helper_text": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "Color" }, - "v8n_required": { "type": "string", "default": "Name is required" }, - "v8n_too_long": { - "type": "string", - "default": "Name mustn't exceed 100 characters" - } - }, - "required": [ - "label", - "helper_text", - "placeholder", - "v8n_required", - "v8n_too_long" - ] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "helper_text": { "type": "string", "default": "" }, - "placeholder": { "type": "string", "default": "Red" }, - "v8n_required": { - "type": "string", - "default": "Value is required" - }, - "v8n_too_long": { - "type": "string", - "default": "Value mustn't exceed 1024 characters" - } - }, - "required": [ - "label", - "helper_text", - "placeholder", - "v8n_required", - "v8n_too_long" - ] - }, - "price-mod": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Price" }, - "helper_text": { - "type": "string", - "default": "Same currency as item" - }, - "placeholder": { "type": "string", "default": "10" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "weight-mod": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Weight" }, - "helper_text": { "type": "string", "default": "Arbitrary units" }, - "placeholder": { "type": "string", "default": "5" } - }, - "required": ["label", "helper_text", "placeholder"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this item option? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - } - }, - "required": [ - "name", - "value", - "price-mod", - "weight-mod", - "timestamps", - "spinner", - "delete", - "create" - ] - } - }, - "required": [ - "header_create", - "header_update", - "close", - "save", - "cancel", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "item-option-form" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Delete" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No item options" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "spinner"] - }, - "create_button_text": { "type": "string", "default": "Add option +" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" } - }, - "required": [ - "card", - "create_button_text", - "first", - "last", - "next", - "pagination", - "previous" - ] - } - }, - "required": [ - "title", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "dialog", - "pagination" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this item? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "dimensions", - "subscriptions", - "discount", - "name", - "price", - "quantity", - "subscription-frequency", - "subscription-start-date", - "subscription-end-date", - "discount-name", - "discount-builder", - "expires", - "image", - "url", - "quantity-min", - "quantity-max", - "shipto", - "width", - "height", - "length", - "weight", - "item-category-uri", - "code", - "parent-code", - "discount-details", - "coupon-details", - "attributes", - "item-options", - "timestamps", - "delete", - "create", - "spinner" - ] - } - }, - "required": [ - "close", - "cancel", - "header_update", - "header_create", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "item-form" - ] - } - }, - "required": [ - "label", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "pagination", - "dialog" - ] - }, - "custom-fields": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Custom fields" }, - "delete_header": { "type": "string", "default": "Remove custom field?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this custom field from the item." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "header_update": { "type": "string", "default": "Custom field" }, - "header_create": { "type": "string", "default": "New custom field" }, - "save": { "type": "string", "default": "Save" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "custom-field-form": { - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "Maximum 100 characters." }, - "v8n_required": { - "type": "string", - "default": "Please name this custom field." - }, - "v8n_too_long": { - "type": "string", - "default": "Please choose a name that is 100 characters long or less." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "Maximum 700 characters." }, - "v8n_required": { - "type": "string", - "default": "Please provide a value for this custom field." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store values that are more than 700 characters long." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "visibility": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Visibility" }, - "option_hidden": { "type": "string", "default": "Hide in receipts" }, - "helper_text": { - "type": "string", - "default": "Whether or not this custom field is visible on the receipt and email receipt. This correlates to custom fields with a \"h:\" prefix when added to the cart." - } - }, - "required": ["label", "option_hidden", "helper_text"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this custom field? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "name", - "value", - "visibility", - "timestamps", - "delete", - "create", - "spinner" - ] - } - }, - "required": [ - "close", - "cancel", - "header_update", - "header_create", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "custom-field-form" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add custom field +" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Remove" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No custom fields" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "spinner"] - } - }, - "required": [ - "create_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - } - }, - "required": [ - "label", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "dialog", - "pagination" - ] - }, - "attributes": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Attributes" }, - "delete_header": { "type": "string", "default": "Remove attribute?" }, - "delete_message": { - "type": "string", - "default": "Please confirm that you'd like to remove this attribute from the item." - }, - "delete_confirm": { "type": "string", "default": "Remove" }, - "delete_cancel": { "type": "string", "default": "Cancel" }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "header_update": { "type": "string", "default": "Attribute" }, - "header_create": { "type": "string", "default": "New attribute" }, - "save": { "type": "string", "default": "Save" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "attribute-form": { - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Name of this attribute. It does not have to be unique." - }, - "v8n_required": { "type": "string", "default": "Please name this attribute." }, - "v8n_too_long": { - "type": "string", - "default": "Please choose a name that is 500 characters long or less." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "value": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Value" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Value of this attribute. Attribute values are automatically HTML-escaped." - }, - "v8n_required": { - "type": "string", - "default": "Please provide a value for this attribute." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store values that are more than 1000 characters long." - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "visibility": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Visibility" }, - "option_public": { "type": "string", "default": "Everyone" }, - "option_restricted": { "type": "string", "default": "Store admins" }, - "option_private": { "type": "string", "default": "Only me" }, - "helper_text": { - "type": "string", - "default": "Controls who can see this attribute. Public attributes can be shown to anyone, including customers. Private attributes are more suitable for configuration or technical details which are irrelevant to the public. Restricted attributes can only be viewed with the OAuth client that created them." - } - }, - "required": [ - "label", - "option_public", - "option_restricted", - "option_private", - "helper_text" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "name", - "value", - "visibility", - "timestamps", - "delete", - "create", - "spinner" - ] - } - }, - "required": [ - "close", - "cancel", - "header_update", - "header_create", - "save", - "undo_header", - "undo_message", - "undo_cancel", - "undo_confirm", - "attribute-form" - ] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "create_button_text": { "type": "string", "default": "Add attribute +" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "delete_button_text": { "type": "string", "default": "Remove" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No attributes" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["delete_button_text", "spinner"] - } - }, - "required": [ - "create_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - } - }, - "required": [ - "label", - "delete_header", - "delete_message", - "delete_confirm", - "delete_cancel", - "dialog", - "pagination" - ] - }, - "summary": { - "additionalProperties": false, - "properties": { - "total_shipping": { "type": "string", "default": "Shipping" }, - "total_tax": { "type": "string", "default": "Tax" }, - "subtotal": { "type": "string", "default": "Subtotal" }, - "total": { "type": "string", "default": "Total" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "status_capturing": { "type": "string", "default": "Capturing" }, - "status_captured": { "type": "string", "default": "Captured" }, - "status_approved": { "type": "string", "default": "Approved" }, - "status_authorized": { "type": "string", "default": "Authorized" }, - "status_pending": { "type": "string", "default": "Pending" }, - "status_completed": { "type": "string", "default": "Completed" }, - "status_problem": { "type": "string", "default": "Problem" }, - "status_pending_fraud_review": { "type": "string", "default": "Pending_fraud_review" }, - "status_rejected": { "type": "string", "default": "Rejected" }, - "status_declined": { "type": "string", "default": "Declined" }, - "status_refunding": { "type": "string", "default": "Refunding" }, - "status_refunded": { "type": "string", "default": "Refunded" }, - "status_voided": { "type": "string", "default": "Voided" }, - "status_verified": { "type": "string", "default": "Verified" } - }, - "required": [ - "total_shipping", - "total_tax", - "subtotal", - "total", - "price", - "status_capturing", - "status_captured", - "status_approved", - "status_authorized", - "status_pending", - "status_completed", - "status_problem", - "status_pending_fraud_review", - "status_rejected", - "status_declined", - "status_refunding", - "status_refunded", - "status_voided", - "status_verified" - ] - }, - "payments": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Payments" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "code": { "type": "string", "default": "Code" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "fraud_risk": { "type": "string", "default": "Fraud risk: {{ score }}" }, - "processor_response": { "type": "string", "default": "{{ processor_response }}" }, - "purchase_order": { "type": "string", "default": "PO {{ purchase_order }}" }, - "paypal_payer_id": { - "type": "string", - "default": "PayPal Payer ID {{ paypal_payer_id }}" - }, - "third_party_id": { - "type": "string", - "default": "External ID {{ third_party_id }}" - }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "unknown": { "type": "string", "default": "Unknown" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No payments" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "code", - "date", - "fraud_risk", - "processor_response", - "purchase_order", - "paypal_payer_id", - "third_party_id", - "price", - "unknown", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["label", "pagination"] - }, - "billing-addresses": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Billing addresses" }, - "dialog": { - "additionalProperties": false, - "properties": { - "close": { "type": "string", "default": "Close" }, - "cancel": { "type": "string", "default": "Cancel" }, - "header_update": { "type": "string", "default": "Billing address" }, - "address-form": { - "additionalProperties": false, - "properties": { - "address-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please enter address name" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten address name to 100 characters or less" - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "first-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "First name" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store first names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "last-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last name" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store last names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "company": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Company" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store company names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "phone": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Phone" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "This phone number appears to be too long" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "address-one": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address Line 1" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "Street address, P.O. box, company name, c/o" - }, - "v8n_required": { "type": "string", "default": "Please enter address line 1" }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten address line 1 to 100 characters or less" - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_too_long" - ] - }, - "address-two": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Address Line 2" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "Apartment, suite, unit, building, floor, etc." - }, - "v8n_too_long": { - "type": "string", - "default": "Please shorten address line 2 to 100 characters or less" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "city": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "City" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store city names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "postal-code": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Postal code" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "This postal code appears to be too long" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "country": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Country" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "region": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Region" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store region names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" } - }, - "required": ["date", "date_created", "date_modified"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this address? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - }, - "country_af": { "type": "string", "default": "Afghanistan" }, - "country_ax": { "type": "string", "default": "Åland Islands" }, - "country_al": { "type": "string", "default": "Albania" }, - "country_dz": { "type": "string", "default": "Algeria" }, - "country_as": { "type": "string", "default": "American Samoa" }, - "country_ad": { "type": "string", "default": "Andorra" }, - "country_ao": { "type": "string", "default": "Angola" }, - "country_ai": { "type": "string", "default": "Anguilla" }, - "country_aq": { "type": "string", "default": "Antarctica" }, - "country_ag": { "type": "string", "default": "Antigua and Barbuda" }, - "country_ar": { "type": "string", "default": "Argentina" }, - "country_am": { "type": "string", "default": "Armenia" }, - "country_aw": { "type": "string", "default": "Aruba" }, - "country_au": { "type": "string", "default": "Australia" }, - "country_au_region_act": { - "type": "string", - "default": "Australian Capital Territory" - }, - "country_au_region_nsw": { "type": "string", "default": "New South Wales" }, - "country_au_region_nt": { "type": "string", "default": "Northern Territory" }, - "country_au_region_qld": { "type": "string", "default": "Queensland" }, - "country_au_region_sa": { "type": "string", "default": "South Australia" }, - "country_au_region_tas": { "type": "string", "default": "Tasmania" }, - "country_au_region_vic": { "type": "string", "default": "Victoria" }, - "country_au_region_wa": { "type": "string", "default": "Western Australia" }, - "country_at": { "type": "string", "default": "Austria" }, - "country_at_region_bl": { "type": "string", "default": "Burgenland" }, - "country_at_region_kn": { "type": "string", "default": "Kaernten" }, - "country_at_region_no": { "type": "string", "default": "Niederoesterreich" }, - "country_at_region_oo": { "type": "string", "default": "Oberoesterreich" }, - "country_at_region_sb": { "type": "string", "default": "Salzburg" }, - "country_at_region_st": { "type": "string", "default": "Steiermark" }, - "country_at_region_ti": { "type": "string", "default": "Tirol" }, - "country_at_region_vb": { "type": "string", "default": "Voralberg" }, - "country_at_region_wi": { "type": "string", "default": "Wien" }, - "country_az": { "type": "string", "default": "Azerbaijan" }, - "country_bs": { "type": "string", "default": "Bahamas" }, - "country_bh": { "type": "string", "default": "Bahrain" }, - "country_bd": { "type": "string", "default": "Bangladesh" }, - "country_bb": { "type": "string", "default": "Barbados" }, - "country_by": { "type": "string", "default": "Belarus" }, - "country_be": { "type": "string", "default": "Belgium" }, - "country_bz": { "type": "string", "default": "Belize" }, - "country_bj": { "type": "string", "default": "Benin" }, - "country_bm": { "type": "string", "default": "Bermuda" }, - "country_bt": { "type": "string", "default": "Bhutan" }, - "country_bo": { "type": "string", "default": "Bolivia" }, - "country_bq": { "type": "string", "default": "Bonaire, Sint Eustatius and Saba" }, - "country_bq_region_bo": { "type": "string", "default": "Bonaire" }, - "country_bq_region_sa": { "type": "string", "default": "Saba" }, - "country_bq_region_se": { "type": "string", "default": "Sint Eustatius" }, - "country_ba": { "type": "string", "default": "Bosnia and Herzegovina" }, - "country_bw": { "type": "string", "default": "Botswana" }, - "country_bv": { "type": "string", "default": "Bouvet Island" }, - "country_br": { "type": "string", "default": "Brazil" }, - "country_io": { "type": "string", "default": "British Indian Ocean Territory" }, - "country_bn": { "type": "string", "default": "Brunei Darussalam" }, - "country_bg": { "type": "string", "default": "Bulgaria" }, - "country_bf": { "type": "string", "default": "Burkina Faso" }, - "country_bi": { "type": "string", "default": "Burundi" }, - "country_kh": { "type": "string", "default": "Cambodia" }, - "country_cm": { "type": "string", "default": "Cameroon" }, - "country_ca": { "type": "string", "default": "Canada" }, - "country_ca_region_ab": { "type": "string", "default": "Alberta" }, - "country_ca_region_bc": { "type": "string", "default": "British Columbia" }, - "country_ca_region_mb": { "type": "string", "default": "Manitoba" }, - "country_ca_region_nb": { "type": "string", "default": "New Brunswick" }, - "country_ca_region_nl": { - "type": "string", - "default": "Newfoundland and Labrador" - }, - "country_ca_region_nt": { "type": "string", "default": "Northwest Territories" }, - "country_ca_region_ns": { "type": "string", "default": "Nova Scotia" }, - "country_ca_region_nu": { "type": "string", "default": "Nunavut" }, - "country_ca_region_on": { "type": "string", "default": "Ontario" }, - "country_ca_region_pe": { "type": "string", "default": "Prince Edward Island" }, - "country_ca_region_qc": { "type": "string", "default": "Quebec" }, - "country_ca_region_sk": { "type": "string", "default": "Saskatchewan" }, - "country_ca_region_yt": { "type": "string", "default": "Yukon" }, - "country_cv": { "type": "string", "default": "Cape Verde" }, - "country_cw": { "type": "string", "default": "Curaçao" }, - "country_ky": { "type": "string", "default": "Cayman Islands" }, - "country_cf": { "type": "string", "default": "Central African Republic" }, - "country_td": { "type": "string", "default": "Chad" }, - "country_cl": { "type": "string", "default": "Chile" }, - "country_cn": { "type": "string", "default": "China" }, - "country_cx": { "type": "string", "default": "Christmas Island" }, - "country_cc": { "type": "string", "default": "Cocos (Keeling) Islands" }, - "country_co": { "type": "string", "default": "Colombia" }, - "country_km": { "type": "string", "default": "Comoros" }, - "country_cg": { "type": "string", "default": "Congo" }, - "country_cd": { - "type": "string", - "default": "Congo, the Democratic Republic of the" - }, - "country_ck": { "type": "string", "default": "Cook Islands" }, - "country_cr": { "type": "string", "default": "Costa Rica" }, - "country_ci": { "type": "string", "default": "Cote DIvoire" }, - "country_hr": { "type": "string", "default": "Croatia" }, - "country_cu": { "type": "string", "default": "Cuba" }, - "country_cy": { "type": "string", "default": "Cyprus" }, - "country_cz": { "type": "string", "default": "Czech Republic" }, - "country_dk": { "type": "string", "default": "Denmark" }, - "country_dj": { "type": "string", "default": "Djibouti" }, - "country_dm": { "type": "string", "default": "Dominica" }, - "country_do": { "type": "string", "default": "Dominican Republic" }, - "country_ec": { "type": "string", "default": "Ecuador" }, - "country_eg": { "type": "string", "default": "Egypt" }, - "country_sv": { "type": "string", "default": "El Salvador" }, - "country_sx": { "type": "string", "default": "Sint Maarten" }, - "country_gq": { "type": "string", "default": "Equatorial Guinea" }, - "country_er": { "type": "string", "default": "Eritrea" }, - "country_ee": { "type": "string", "default": "Estonia" }, - "country_et": { "type": "string", "default": "Ethiopia" }, - "country_fk": { "type": "string", "default": "Falkland Islands (Malvinas)" }, - "country_fo": { "type": "string", "default": "Faroe Islands" }, - "country_fj": { "type": "string", "default": "Fiji" }, - "country_fi": { "type": "string", "default": "Finland" }, - "country_fr": { "type": "string", "default": "France" }, - "country_gf": { "type": "string", "default": "French Guiana" }, - "country_pf": { "type": "string", "default": "French Polynesia" }, - "country_tf": { "type": "string", "default": "French Southern Territories" }, - "country_ga": { "type": "string", "default": "Gabon" }, - "country_gm": { "type": "string", "default": "Gambia" }, - "country_ge": { "type": "string", "default": "Georgia" }, - "country_de": { "type": "string", "default": "Germany" }, - "country_de_region_bw": { "type": "string", "default": "Baden-Wuerttemberg" }, - "country_de_region_by": { "type": "string", "default": "Bayern" }, - "country_de_region_be": { "type": "string", "default": "Berlin" }, - "country_de_region_bb": { "type": "string", "default": "Brandenburg" }, - "country_de_region_hb": { "type": "string", "default": "Bremen" }, - "country_de_region_hh": { "type": "string", "default": "Hamburg" }, - "country_de_region_he": { "type": "string", "default": "Hessen" }, - "country_de_region_mv": { "type": "string", "default": "Mecklenburg-Vorpommern" }, - "country_de_region_ni": { "type": "string", "default": "Niedersachsen" }, - "country_de_region_nw": { "type": "string", "default": "Nordrhein-Westfalen" }, - "country_de_region_rp": { "type": "string", "default": "Rheinland-Pfalz" }, - "country_de_region_sl": { "type": "string", "default": "Saarland" }, - "country_de_region_sn": { "type": "string", "default": "Sachsen" }, - "country_de_region_st": { "type": "string", "default": "Sachsen-Anhalt" }, - "country_de_region_sh": { "type": "string", "default": "Schleswig-Holstein" }, - "country_de_region_th": { "type": "string", "default": "Thueringen" }, - "country_gh": { "type": "string", "default": "Ghana" }, - "country_gi": { "type": "string", "default": "Gibraltar" }, - "country_gr": { "type": "string", "default": "Greece" }, - "country_gl": { "type": "string", "default": "Greenland" }, - "country_gd": { "type": "string", "default": "Grenada" }, - "country_gp": { "type": "string", "default": "Guadeloupe" }, - "country_gu": { "type": "string", "default": "Guam" }, - "country_gt": { "type": "string", "default": "Guatemala" }, - "country_gg": { "type": "string", "default": "Guernsey" }, - "country_gn": { "type": "string", "default": "Guinea" }, - "country_gw": { "type": "string", "default": "Guinea-bissau" }, - "country_gy": { "type": "string", "default": "Guyana" }, - "country_ht": { "type": "string", "default": "Haiti" }, - "country_hm": { "type": "string", "default": "Heard Island and McDonald Island" }, - "country_va": { "type": "string", "default": "Holy See (Vatican City State)" }, - "country_hn": { "type": "string", "default": "Honduras" }, - "country_hk": { "type": "string", "default": "Hong Kong" }, - "country_hu": { "type": "string", "default": "Hungary" }, - "country_is": { "type": "string", "default": "Iceland" }, - "country_in": { "type": "string", "default": "India" }, - "country_in_region_an": { - "type": "string", - "default": "Andaman and Nicobar Islands" - }, - "country_in_region_ap": { "type": "string", "default": "Andhra Pradesh" }, - "country_in_region_ar": { "type": "string", "default": "Arunachal Pradesh" }, - "country_in_region_as": { "type": "string", "default": "Assam" }, - "country_in_region_br": { "type": "string", "default": "Bihar" }, - "country_in_region_ch": { "type": "string", "default": "Chandigarh" }, - "country_in_region_ct": { "type": "string", "default": "Chhattisgarh" }, - "country_in_region_dn": { "type": "string", "default": "Dadra and Nagar Haveli" }, - "country_in_region_dd": { "type": "string", "default": "Daman and Diu" }, - "country_in_region_dl": { "type": "string", "default": "Delhi" }, - "country_in_region_ga": { "type": "string", "default": "Goa" }, - "country_in_region_gj": { "type": "string", "default": "Gujarat" }, - "country_in_region_hr": { "type": "string", "default": "Haryana" }, - "country_in_region_hp": { "type": "string", "default": "Himachal Pradesh" }, - "country_in_region_jk": { "type": "string", "default": "Jammu and Kashmir" }, - "country_in_region_jh": { "type": "string", "default": "Jharkhand" }, - "country_in_region_ka": { "type": "string", "default": "Karnataka" }, - "country_in_region_kl": { "type": "string", "default": "Kerala" }, - "country_in_region_ld": { "type": "string", "default": "Lakshadweep" }, - "country_in_region_mp": { "type": "string", "default": "Madhya Pradesh" }, - "country_in_region_mh": { "type": "string", "default": "Maharashtra" }, - "country_in_region_mn": { "type": "string", "default": "Manipur" }, - "country_in_region_ml": { "type": "string", "default": "Meghalaya" }, - "country_in_region_mz": { "type": "string", "default": "Mizoram" }, - "country_in_region_nl": { "type": "string", "default": "Nagaland" }, - "country_in_region_or": { "type": "string", "default": "Odisha" }, - "country_in_region_py": { "type": "string", "default": "Puducherry" }, - "country_in_region_pb": { "type": "string", "default": "Punjab" }, - "country_in_region_rj": { "type": "string", "default": "Rajasthan" }, - "country_in_region_sk": { "type": "string", "default": "Sikkim" }, - "country_in_region_tn": { "type": "string", "default": "Tamil Nadu" }, - "country_in_region_tg": { "type": "string", "default": "Telangana" }, - "country_in_region_tr": { "type": "string", "default": "Tripura" }, - "country_in_region_ut": { "type": "string", "default": "Uttarakhand" }, - "country_in_region_up": { "type": "string", "default": "Uttar Pradesh" }, - "country_in_region_wb": { "type": "string", "default": "West Bengal" }, - "country_id": { "type": "string", "default": "Indonesia" }, - "country_ir": { "type": "string", "default": "Iran, Islamic Republic of" }, - "country_iq": { "type": "string", "default": "Iraq" }, - "country_ie": { "type": "string", "default": "Ireland" }, - "country_ie_region_cw": { "type": "string", "default": "Carlow" }, - "country_ie_region_cn": { "type": "string", "default": "Cavan" }, - "country_ie_region_ce": { "type": "string", "default": "Clare" }, - "country_ie_region_co": { "type": "string", "default": "Cork" }, - "country_ie_region_dl": { "type": "string", "default": "Donegal" }, - "country_ie_region_d": { "type": "string", "default": "Dublin" }, - "country_ie_region_g": { "type": "string", "default": "Galway" }, - "country_ie_region_ky": { "type": "string", "default": "Kerry" }, - "country_ie_region_ke": { "type": "string", "default": "Kildare" }, - "country_ie_region_kk": { "type": "string", "default": "Kilkenny" }, - "country_ie_region_ls": { "type": "string", "default": "Laois" }, - "country_ie_region_lm": { "type": "string", "default": "Leitrim" }, - "country_ie_region_lk": { "type": "string", "default": "Limerick" }, - "country_ie_region_ld": { "type": "string", "default": "Longford" }, - "country_ie_region_lh": { "type": "string", "default": "Louth" }, - "country_ie_region_mo": { "type": "string", "default": "Mayo" }, - "country_ie_region_mh": { "type": "string", "default": "Meath" }, - "country_ie_region_mn": { "type": "string", "default": "Monaghan" }, - "country_ie_region_oy": { "type": "string", "default": "Offaly" }, - "country_ie_region_rn": { "type": "string", "default": "Roscommon" }, - "country_ie_region_so": { "type": "string", "default": "Sligo" }, - "country_ie_region_ta": { "type": "string", "default": "Tipperary" }, - "country_ie_region_wd": { "type": "string", "default": "Waterford" }, - "country_ie_region_wh": { "type": "string", "default": "Westmeath" }, - "country_ie_region_wx": { "type": "string", "default": "Wexford" }, - "country_ie_region_ww": { "type": "string", "default": "Wicklow" }, - "country_im": { "type": "string", "default": "Isle of Man" }, - "country_il": { "type": "string", "default": "Israel" }, - "country_it": { "type": "string", "default": "Italy" }, - "country_jm": { "type": "string", "default": "Jamaica" }, - "country_jp": { "type": "string", "default": "Japan" }, - "country_jp_region_10": { "type": "string", "default": "Gunma" }, - "country_jp_region_11": { "type": "string", "default": "Saitama" }, - "country_jp_region_12": { "type": "string", "default": "Chiba" }, - "country_jp_region_13": { "type": "string", "default": "Tokyo" }, - "country_jp_region_14": { "type": "string", "default": "Kanagawa" }, - "country_jp_region_15": { "type": "string", "default": "Niigata" }, - "country_jp_region_16": { "type": "string", "default": "Toyama" }, - "country_jp_region_17": { "type": "string", "default": "Ishikawa" }, - "country_jp_region_18": { "type": "string", "default": "Fukui" }, - "country_jp_region_19": { "type": "string", "default": "Yamanashi" }, - "country_jp_region_20": { "type": "string", "default": "Nagano" }, - "country_jp_region_21": { "type": "string", "default": "Gifu" }, - "country_jp_region_22": { "type": "string", "default": "Shizuoka" }, - "country_jp_region_23": { "type": "string", "default": "Aichi" }, - "country_jp_region_24": { "type": "string", "default": "Mie" }, - "country_jp_region_25": { "type": "string", "default": "Shiga" }, - "country_jp_region_26": { "type": "string", "default": "Kyoto" }, - "country_jp_region_27": { "type": "string", "default": "Osaka" }, - "country_jp_region_28": { "type": "string", "default": "Hyogo" }, - "country_jp_region_29": { "type": "string", "default": "Nara" }, - "country_jp_region_30": { "type": "string", "default": "Wakayama" }, - "country_jp_region_31": { "type": "string", "default": "Tottori" }, - "country_jp_region_32": { "type": "string", "default": "Shimane" }, - "country_jp_region_33": { "type": "string", "default": "Okayama" }, - "country_jp_region_34": { "type": "string", "default": "Hiroshima" }, - "country_jp_region_35": { "type": "string", "default": "Yamaguchi" }, - "country_jp_region_36": { "type": "string", "default": "Tokushima" }, - "country_jp_region_37": { "type": "string", "default": "Kagawa" }, - "country_jp_region_38": { "type": "string", "default": "Ehime" }, - "country_jp_region_39": { "type": "string", "default": "Kochi" }, - "country_jp_region_40": { "type": "string", "default": "Fukuoka" }, - "country_jp_region_41": { "type": "string", "default": "Saga" }, - "country_jp_region_42": { "type": "string", "default": "Nagasaki" }, - "country_jp_region_43": { "type": "string", "default": "Kumamoto" }, - "country_jp_region_44": { "type": "string", "default": "Oita" }, - "country_jp_region_45": { "type": "string", "default": "Miyazaki" }, - "country_jp_region_46": { "type": "string", "default": "Kagoshima" }, - "country_jp_region_47": { "type": "string", "default": "Okinawa" }, - "country_jp_region_05": { "type": "string", "default": "Akita" }, - "country_jp_region_02": { "type": "string", "default": "Aomori" }, - "country_jp_region_07": { "type": "string", "default": "Fukushima" }, - "country_jp_region_01": { "type": "string", "default": "Hokkaido" }, - "country_jp_region_08": { "type": "string", "default": "Ibaraki" }, - "country_jp_region_03": { "type": "string", "default": "Iwate" }, - "country_jp_region_04": { "type": "string", "default": "Miyagi" }, - "country_jp_region_09": { "type": "string", "default": "Tochigi" }, - "country_jp_region_06": { "type": "string", "default": "Yamagata" }, - "country_je": { "type": "string", "default": "Jersey" }, - "country_jo": { "type": "string", "default": "Jordan" }, - "country_kz": { "type": "string", "default": "Kazakhstan" }, - "country_ke": { "type": "string", "default": "Kenya" }, - "country_ki": { "type": "string", "default": "Kiribati" }, - "country_kp": { - "type": "string", - "default": "Korea, Democratic People's Republic of" - }, - "country_kr": { "type": "string", "default": "Korea, Republic of" }, - "country_kw": { "type": "string", "default": "Kuwait" }, - "country_kg": { "type": "string", "default": "Kyrgyzstan" }, - "country_la": { "type": "string", "default": "Lao People's Democratic Republic" }, - "country_lv": { "type": "string", "default": "Latvia" }, - "country_lb": { "type": "string", "default": "Lebanon" }, - "country_ls": { "type": "string", "default": "Lesotho" }, - "country_lr": { "type": "string", "default": "Liberia" }, - "country_ly": { "type": "string", "default": "Libya" }, - "country_li": { "type": "string", "default": "Liechtenstein" }, - "country_lt": { "type": "string", "default": "Lithuania" }, - "country_lu": { "type": "string", "default": "Luxembourg" }, - "country_mo": { - "type": "string", - "default": "Macau Special Administrative Region of China" - }, - "country_mk": { "type": "string", "default": "North Macedonia" }, - "country_mg": { "type": "string", "default": "Madagascar" }, - "country_mw": { "type": "string", "default": "Malawi" }, - "country_my": { "type": "string", "default": "Malaysia" }, - "country_mv": { "type": "string", "default": "Maldives" }, - "country_ml": { "type": "string", "default": "Mali" }, - "country_mt": { "type": "string", "default": "Malta" }, - "country_mh": { "type": "string", "default": "Marshall Islands" }, - "country_mq": { "type": "string", "default": "Martinique" }, - "country_mr": { "type": "string", "default": "Mauritania" }, - "country_mu": { "type": "string", "default": "Mauritius" }, - "country_yt": { "type": "string", "default": "Mayotte" }, - "country_mx": { "type": "string", "default": "Mexico" }, - "country_fm": { "type": "string", "default": "Micronesia, Federated States of" }, - "country_md": { "type": "string", "default": "Moldova, Republic of" }, - "country_mc": { "type": "string", "default": "Monaco" }, - "country_mn": { "type": "string", "default": "Mongolia" }, - "country_me": { "type": "string", "default": "Montenegro" }, - "country_ms": { "type": "string", "default": "Montserrat" }, - "country_ma": { "type": "string", "default": "Morocco" }, - "country_mz": { "type": "string", "default": "Mozambique" }, - "country_mm": { "type": "string", "default": "Myanmar" }, - "country_na": { "type": "string", "default": "Namibia" }, - "country_nr": { "type": "string", "default": "Nauru" }, - "country_np": { "type": "string", "default": "Nepal" }, - "country_nl": { "type": "string", "default": "Netherlands" }, - "country_nc": { "type": "string", "default": "New Caledonia" }, - "country_nz": { "type": "string", "default": "New Zealand" }, - "country_ni": { "type": "string", "default": "Nicaragua" }, - "country_ne": { "type": "string", "default": "Niger" }, - "country_ng": { "type": "string", "default": "Nigeria" }, - "country_nu": { "type": "string", "default": "Niue" }, - "country_nf": { "type": "string", "default": "Norfolk Island" }, - "country_mp": { "type": "string", "default": "Northern Mariana Islands" }, - "country_no": { "type": "string", "default": "Norway" }, - "country_no_region_10": { "type": "string", "default": "Vest-Agder" }, - "country_no_region_11": { "type": "string", "default": "Rogaland" }, - "country_no_region_12": { "type": "string", "default": "Hordaland" }, - "country_no_region_14": { "type": "string", "default": "Sogn og Fjordane" }, - "country_no_region_15": { "type": "string", "default": "Møre og Romsdal" }, - "country_no_region_16": { "type": "string", "default": "Sør-Trøndelag" }, - "country_no_region_17": { "type": "string", "default": "Nord-Trøndelag" }, - "country_no_region_18": { "type": "string", "default": "Nordland" }, - "country_no_region_19": { "type": "string", "default": "Troms" }, - "country_no_region_20": { "type": "string", "default": "Finnmark" }, - "country_no_region_30": { "type": "string", "default": "Viken" }, - "country_no_region_34": { "type": "string", "default": "Innlandet" }, - "country_no_region_38": { "type": "string", "default": "Vestfold og Telemark" }, - "country_no_region_42": { "type": "string", "default": "Agder" }, - "country_no_region_46": { "type": "string", "default": "Vestland" }, - "country_no_region_50": { "type": "string", "default": "Trøndelag" }, - "country_no_region_54": { "type": "string", "default": "Troms og Finnmark" }, - "country_no_region_01": { "type": "string", "default": "Østfold" }, - "country_no_region_02": { "type": "string", "default": "Akershus" }, - "country_no_region_03": { "type": "string", "default": "Oslo" }, - "country_no_region_04": { "type": "string", "default": "Hedmark" }, - "country_no_region_05": { "type": "string", "default": "Oppland" }, - "country_no_region_06": { "type": "string", "default": "Buskerud" }, - "country_no_region_07": { "type": "string", "default": "Vestfold" }, - "country_no_region_08": { "type": "string", "default": "Telemark" }, - "country_no_region_09": { "type": "string", "default": "Aust-Agder" }, - "country_om": { "type": "string", "default": "Oman" }, - "country_pk": { "type": "string", "default": "Pakistan" }, - "country_pw": { "type": "string", "default": "Palau" }, - "country_ps": { "type": "string", "default": "Palestine, State of" }, - "country_pa": { "type": "string", "default": "Panama" }, - "country_pg": { "type": "string", "default": "Papua New Guinea" }, - "country_py": { "type": "string", "default": "Paraguay" }, - "country_pe": { "type": "string", "default": "Peru" }, - "country_ph": { "type": "string", "default": "Philippines" }, - "country_pn": { "type": "string", "default": "Pitcairn" }, - "country_pl": { "type": "string", "default": "Poland" }, - "country_pt": { "type": "string", "default": "Portugal" }, - "country_pr": { "type": "string", "default": "Puerto Rico" }, - "country_qa": { "type": "string", "default": "Qatar" }, - "country_re": { "type": "string", "default": "Réunion" }, - "country_ro": { "type": "string", "default": "Romania" }, - "country_ru": { "type": "string", "default": "Russian Federation" }, - "country_rw": { "type": "string", "default": "Rwanda" }, - "country_bl": { "type": "string", "default": "Saint Barthélemy" }, - "country_sh": { - "type": "string", - "default": "Saint Helena, Ascension and Tristan da Cunha" - }, - "country_kn": { "type": "string", "default": "Saint Kitts and Nevis" }, - "country_lc": { "type": "string", "default": "Saint Lucia" }, - "country_mf": { "type": "string", "default": "Saint Martin" }, - "country_pm": { "type": "string", "default": "Saint Pierre and Miquelon" }, - "country_vc": { "type": "string", "default": "Saint Vincent and the Grenadines" }, - "country_ws": { "type": "string", "default": "Samoa" }, - "country_sm": { "type": "string", "default": "San Marino" }, - "country_ss": { "type": "string", "default": "South Sudan" }, - "country_st": { "type": "string", "default": "Sao Tome and Principe" }, - "country_sa": { "type": "string", "default": "Saudi Arabia" }, - "country_sn": { "type": "string", "default": "Senegal" }, - "country_rs": { "type": "string", "default": "Serbia" }, - "country_sc": { "type": "string", "default": "Seychelles" }, - "country_sl": { "type": "string", "default": "Sierra Leone" }, - "country_sg": { "type": "string", "default": "Singapore" }, - "country_sk": { "type": "string", "default": "Slovakia" }, - "country_si": { "type": "string", "default": "Slovenia" }, - "country_sb": { "type": "string", "default": "Solomon Islands" }, - "country_so": { "type": "string", "default": "Somalia" }, - "country_za": { "type": "string", "default": "South Africa" }, - "country_gs": { - "type": "string", - "default": "South Georgia and the South Sandwich Islands" - }, - "country_es": { "type": "string", "default": "Spain" }, - "country_es_region_a coruna": { "type": "string", "default": "A Coruna" }, - "country_es_region_alava": { "type": "string", "default": "Alava" }, - "country_es_region_albacete": { "type": "string", "default": "Albacete" }, - "country_es_region_alicante": { "type": "string", "default": "Alicante" }, - "country_es_region_almeria": { "type": "string", "default": "Almeria" }, - "country_es_region_asturias": { "type": "string", "default": "Asturias" }, - "country_es_region_avila": { "type": "string", "default": "Avila" }, - "country_es_region_badajoz": { "type": "string", "default": "Badajoz" }, - "country_es_region_baleares": { "type": "string", "default": "Baleares" }, - "country_es_region_barcelona": { "type": "string", "default": "Barcelona" }, - "country_es_region_burgos": { "type": "string", "default": "Burgos" }, - "country_es_region_caceres": { "type": "string", "default": "Caceres" }, - "country_es_region_cadiz": { "type": "string", "default": "Cadiz" }, - "country_es_region_cn": { "type": "string", "default": "Canarias" }, - "country_es_region_cantabria": { "type": "string", "default": "Cantabria" }, - "country_es_region_castellon": { "type": "string", "default": "Castellon" }, - "country_es_region_ceuta": { "type": "string", "default": "Ceuta" }, - "country_es_region_ciudad real": { "type": "string", "default": "Ciudad Real" }, - "country_es_region_cordoba": { "type": "string", "default": "Cordoba" }, - "country_es_region_cuenca": { "type": "string", "default": "Cuenca" }, - "country_es_region_gipuzkoa": { "type": "string", "default": "Gipuzkoa" }, - "country_es_region_girona": { "type": "string", "default": "Girona" }, - "country_es_region_granada": { "type": "string", "default": "Granada" }, - "country_es_region_guadalajara": { "type": "string", "default": "Guadalajara" }, - "country_es_region_guipuzcoa": { "type": "string", "default": "Guipuzcoa" }, - "country_es_region_huelva": { "type": "string", "default": "Huelva" }, - "country_es_region_huesca": { "type": "string", "default": "Huesca" }, - "country_es_region_jaen": { "type": "string", "default": "Jaen" }, - "country_es_region_la rioja": { "type": "string", "default": "La Rioja" }, - "country_es_region_las palmas": { "type": "string", "default": "Las Palmas" }, - "country_es_region_leon": { "type": "string", "default": "Leon" }, - "country_es_region_lleida": { "type": "string", "default": "Lleida" }, - "country_es_region_lugo": { "type": "string", "default": "Lugo" }, - "country_es_region_madrid": { "type": "string", "default": "Madrid" }, - "country_es_region_malaga": { "type": "string", "default": "Malaga" }, - "country_es_region_melilla": { "type": "string", "default": "Melilla" }, - "country_es_region_murcia": { "type": "string", "default": "Murcia" }, - "country_es_region_navarra": { "type": "string", "default": "Navarra" }, - "country_es_region_ourense": { "type": "string", "default": "Ourense" }, - "country_es_region_palencia": { "type": "string", "default": "Palencia" }, - "country_es_region_pontevedra": { "type": "string", "default": "Pontevedra" }, - "country_es_region_salamanca": { "type": "string", "default": "Salamanca" }, - "country_es_region_santa cruz de tenerife": { - "type": "string", - "default": "Santa Cruz de Tenerife" - }, - "country_es_region_segovia": { "type": "string", "default": "Segovia" }, - "country_es_region_sevilla": { "type": "string", "default": "Sevilla" }, - "country_es_region_soria": { "type": "string", "default": "Soria" }, - "country_es_region_tarragona": { "type": "string", "default": "Tarragona" }, - "country_es_region_teruel": { "type": "string", "default": "Teruel" }, - "country_es_region_toledo": { "type": "string", "default": "Toledo" }, - "country_es_region_valencia": { "type": "string", "default": "Valencia" }, - "country_es_region_valladolid": { "type": "string", "default": "Valladolid" }, - "country_es_region_vizcaya": { "type": "string", "default": "Biscay" }, - "country_es_region_zamora": { "type": "string", "default": "Zamora" }, - "country_es_region_zaragoza": { "type": "string", "default": "Zaragoza" }, - "country_lk": { "type": "string", "default": "Sri Lanka" }, - "country_sd": { "type": "string", "default": "Sudan" }, - "country_sr": { "type": "string", "default": "Suriname" }, - "country_sj": { "type": "string", "default": "Svalbard and Jan Mayen" }, - "country_sz": { "type": "string", "default": "Eswatini" }, - "country_se": { "type": "string", "default": "Sweden" }, - "country_ch": { "type": "string", "default": "Switzerland" }, - "country_ch_region_ag": { "type": "string", "default": "Aargau" }, - "country_ch_region_ar": { "type": "string", "default": "Appenzell Ausserrhoden" }, - "country_ch_region_ai": { "type": "string", "default": "Appenzell Innerrhoden" }, - "country_ch_region_bl": { "type": "string", "default": "Basel-Landschaft" }, - "country_ch_region_bs": { "type": "string", "default": "Basel-Stadt" }, - "country_ch_region_be": { "type": "string", "default": "Bern" }, - "country_ch_region_fr": { "type": "string", "default": "Freiburg" }, - "country_ch_region_ge": { "type": "string", "default": "Genf" }, - "country_ch_region_gl": { "type": "string", "default": "Glarus" }, - "country_ch_region_gr": { "type": "string", "default": "Graubuenden" }, - "country_ch_region_ju": { "type": "string", "default": "Jura" }, - "country_ch_region_lu": { "type": "string", "default": "Luzern" }, - "country_ch_region_ne": { "type": "string", "default": "Neuenburg" }, - "country_ch_region_nw": { "type": "string", "default": "Nidwalden" }, - "country_ch_region_ow": { "type": "string", "default": "Obwalden" }, - "country_ch_region_sh": { "type": "string", "default": "Schaffhausen" }, - "country_ch_region_sz": { "type": "string", "default": "Schwyz" }, - "country_ch_region_so": { "type": "string", "default": "Solothurn" }, - "country_ch_region_sg": { "type": "string", "default": "St. Gallen" }, - "country_ch_region_ti": { "type": "string", "default": "Tessin" }, - "country_ch_region_tg": { "type": "string", "default": "Thurgau" }, - "country_ch_region_ur": { "type": "string", "default": "Uri" }, - "country_ch_region_vs": { "type": "string", "default": "Valais" }, - "country_ch_region_vd": { "type": "string", "default": "Vaud" }, - "country_ch_region_zh": { "type": "string", "default": "Zurich" }, - "country_ch_region_zg": { "type": "string", "default": "Zug" }, - "country_sy": { "type": "string", "default": "Syrian Arab Republic" }, - "country_tw": { "type": "string", "default": "Taiwan" }, - "country_tj": { "type": "string", "default": "Tajikistan" }, - "country_tz": { "type": "string", "default": "Tanzania, United Republic of" }, - "country_th": { "type": "string", "default": "Thailand" }, - "country_tl": { "type": "string", "default": "Timor-Leste" }, - "country_tg": { "type": "string", "default": "Togo" }, - "country_tk": { "type": "string", "default": "Tokelau" }, - "country_to": { "type": "string", "default": "Tonga" }, - "country_tt": { "type": "string", "default": "Trinidad and Tobago" }, - "country_tn": { "type": "string", "default": "Tunisia" }, - "country_tr": { "type": "string", "default": "Turkey" }, - "country_tm": { "type": "string", "default": "Turkmenistan" }, - "country_tc": { "type": "string", "default": "Turks and Caicos Islands" }, - "country_tv": { "type": "string", "default": "Tuvalu" }, - "country_ug": { "type": "string", "default": "Uganda" }, - "country_ua": { "type": "string", "default": "Ukraine" }, - "country_ae": { "type": "string", "default": "United Arab Emirates" }, - "country_gb": { "type": "string", "default": "United Kingdom" }, - "country_us": { "type": "string", "default": "United States" }, - "country_us_region_al": { "type": "string", "default": "Alabama" }, - "country_us_region_ak": { "type": "string", "default": "Alaska" }, - "country_us_region_as": { "type": "string", "default": "American Samoa" }, - "country_us_region_az": { "type": "string", "default": "Arizona" }, - "country_us_region_ar": { "type": "string", "default": "Arkansas" }, - "country_us_region_af": { "type": "string", "default": "Armed Forces Africa" }, - "country_us_region_aa": { "type": "string", "default": "Armed Forces Americas" }, - "country_us_region_ac": { "type": "string", "default": "Armed Forces Canada" }, - "country_us_region_ae": { "type": "string", "default": "Armed Forces Europe" }, - "country_us_region_am": { "type": "string", "default": "Armed Forces Middle East" }, - "country_us_region_ap": { "type": "string", "default": "Armed Forces Pacific" }, - "country_us_region_ca": { "type": "string", "default": "California" }, - "country_us_region_co": { "type": "string", "default": "Colorado" }, - "country_us_region_ct": { "type": "string", "default": "Connecticut" }, - "country_us_region_de": { "type": "string", "default": "Delaware" }, - "country_us_region_dc": { "type": "string", "default": "Washington DC" }, - "country_us_region_fm": { - "type": "string", - "default": "Federated States Of Micronesia" - }, - "country_us_region_fl": { "type": "string", "default": "Florida" }, - "country_us_region_ga": { "type": "string", "default": "Georgia" }, - "country_us_region_gu": { "type": "string", "default": "Guam" }, - "country_us_region_hi": { "type": "string", "default": "Hawaii" }, - "country_us_region_id": { "type": "string", "default": "Idaho" }, - "country_us_region_il": { "type": "string", "default": "Illinois" }, - "country_us_region_in": { "type": "string", "default": "Indiana" }, - "country_us_region_ia": { "type": "string", "default": "Iowa" }, - "country_us_region_ks": { "type": "string", "default": "Kansas" }, - "country_us_region_ky": { "type": "string", "default": "Kentucky" }, - "country_us_region_la": { "type": "string", "default": "Louisiana" }, - "country_us_region_me": { "type": "string", "default": "Maine" }, - "country_us_region_mh": { "type": "string", "default": "Marshall Islands" }, - "country_us_region_md": { "type": "string", "default": "Maryland" }, - "country_us_region_ma": { "type": "string", "default": "Massachusetts" }, - "country_us_region_mi": { "type": "string", "default": "Michigan" }, - "country_us_region_mn": { "type": "string", "default": "Minnesota" }, - "country_us_region_ms": { "type": "string", "default": "Mississippi" }, - "country_us_region_mo": { "type": "string", "default": "Missouri" }, - "country_us_region_mt": { "type": "string", "default": "Montana" }, - "country_us_region_ne": { "type": "string", "default": "Nebraska" }, - "country_us_region_nv": { "type": "string", "default": "Nevada" }, - "country_us_region_nh": { "type": "string", "default": "New Hampshire" }, - "country_us_region_nj": { "type": "string", "default": "New Jersey" }, - "country_us_region_nm": { "type": "string", "default": "New Mexico" }, - "country_us_region_ny": { "type": "string", "default": "New York" }, - "country_us_region_nc": { "type": "string", "default": "North Carolina" }, - "country_us_region_nd": { "type": "string", "default": "North Dakota" }, - "country_us_region_mp": { "type": "string", "default": "Northern Mariana Islands" }, - "country_us_region_oh": { "type": "string", "default": "Ohio" }, - "country_us_region_ok": { "type": "string", "default": "Oklahoma" }, - "country_us_region_or": { "type": "string", "default": "Oregon" }, - "country_us_region_pa": { "type": "string", "default": "Pennsylvania" }, - "country_us_region_pr": { "type": "string", "default": "Puerto Rico" }, - "country_us_region_ri": { "type": "string", "default": "Rhode Island" }, - "country_us_region_sc": { "type": "string", "default": "South Carolina" }, - "country_us_region_sd": { "type": "string", "default": "South Dakota" }, - "country_us_region_tn": { "type": "string", "default": "Tennessee" }, - "country_us_region_tx": { "type": "string", "default": "Texas" }, - "country_us_region_ut": { "type": "string", "default": "Utah" }, - "country_us_region_vt": { "type": "string", "default": "Vermont" }, - "country_us_region_vi": { "type": "string", "default": "Virgin Islands" }, - "country_us_region_va": { "type": "string", "default": "Virginia" }, - "country_us_region_wa": { "type": "string", "default": "Washington" }, - "country_us_region_wv": { "type": "string", "default": "West Virginia" }, - "country_us_region_wi": { "type": "string", "default": "Wisconsin" }, - "country_us_region_wy": { "type": "string", "default": "Wyoming" }, - "country_um": { - "type": "string", - "default": "United States Minor Outlying Islands" - }, - "country_uy": { "type": "string", "default": "Uruguay" }, - "country_uz": { "type": "string", "default": "Uzbekistan" }, - "country_vu": { "type": "string", "default": "Vanuatu" }, - "country_ve": { "type": "string", "default": "Venezuela" }, - "country_vn": { "type": "string", "default": "Vietnam" }, - "country_vg": { "type": "string", "default": "Virgin Islands, British" }, - "country_vi": { "type": "string", "default": "Virgin Islands, U.S." }, - "country_wf": { "type": "string", "default": "Wallis and Futuna Islands" }, - "country_eh": { "type": "string", "default": "Western Sahara" }, - "country_ye": { "type": "string", "default": "Yemen" }, - "country_zm": { "type": "string", "default": "Zambia" }, - "country_zw": { "type": "string", "default": "Zimbabwe" } - }, - "required": [ - "address-name", - "first-name", - "last-name", - "company", - "phone", - "address-one", - "address-two", - "city", - "postal-code", - "country", - "region", - "timestamps", - "delete", - "create", - "spinner", - "country_af", - "country_ax", - "country_al", - "country_dz", - "country_as", - "country_ad", - "country_ao", - "country_ai", - "country_aq", - "country_ag", - "country_ar", - "country_am", - "country_aw", - "country_au", - "country_au_region_act", - "country_au_region_nsw", - "country_au_region_nt", - "country_au_region_qld", - "country_au_region_sa", - "country_au_region_tas", - "country_au_region_vic", - "country_au_region_wa", - "country_at", - "country_at_region_bl", - "country_at_region_kn", - "country_at_region_no", - "country_at_region_oo", - "country_at_region_sb", - "country_at_region_st", - "country_at_region_ti", - "country_at_region_vb", - "country_at_region_wi", - "country_az", - "country_bs", - "country_bh", - "country_bd", - "country_bb", - "country_by", - "country_be", - "country_bz", - "country_bj", - "country_bm", - "country_bt", - "country_bo", - "country_bq", - "country_bq_region_bo", - "country_bq_region_sa", - "country_bq_region_se", - "country_ba", - "country_bw", - "country_bv", - "country_br", - "country_io", - "country_bn", - "country_bg", - "country_bf", - "country_bi", - "country_kh", - "country_cm", - "country_ca", - "country_ca_region_ab", - "country_ca_region_bc", - "country_ca_region_mb", - "country_ca_region_nb", - "country_ca_region_nl", - "country_ca_region_nt", - "country_ca_region_ns", - "country_ca_region_nu", - "country_ca_region_on", - "country_ca_region_pe", - "country_ca_region_qc", - "country_ca_region_sk", - "country_ca_region_yt", - "country_cv", - "country_cw", - "country_ky", - "country_cf", - "country_td", - "country_cl", - "country_cn", - "country_cx", - "country_cc", - "country_co", - "country_km", - "country_cg", - "country_cd", - "country_ck", - "country_cr", - "country_ci", - "country_hr", - "country_cu", - "country_cy", - "country_cz", - "country_dk", - "country_dj", - "country_dm", - "country_do", - "country_ec", - "country_eg", - "country_sv", - "country_sx", - "country_gq", - "country_er", - "country_ee", - "country_et", - "country_fk", - "country_fo", - "country_fj", - "country_fi", - "country_fr", - "country_gf", - "country_pf", - "country_tf", - "country_ga", - "country_gm", - "country_ge", - "country_de", - "country_de_region_bw", - "country_de_region_by", - "country_de_region_be", - "country_de_region_bb", - "country_de_region_hb", - "country_de_region_hh", - "country_de_region_he", - "country_de_region_mv", - "country_de_region_ni", - "country_de_region_nw", - "country_de_region_rp", - "country_de_region_sl", - "country_de_region_sn", - "country_de_region_st", - "country_de_region_sh", - "country_de_region_th", - "country_gh", - "country_gi", - "country_gr", - "country_gl", - "country_gd", - "country_gp", - "country_gu", - "country_gt", - "country_gg", - "country_gn", - "country_gw", - "country_gy", - "country_ht", - "country_hm", - "country_va", - "country_hn", - "country_hk", - "country_hu", - "country_is", - "country_in", - "country_in_region_an", - "country_in_region_ap", - "country_in_region_ar", - "country_in_region_as", - "country_in_region_br", - "country_in_region_ch", - "country_in_region_ct", - "country_in_region_dn", - "country_in_region_dd", - "country_in_region_dl", - "country_in_region_ga", - "country_in_region_gj", - "country_in_region_hr", - "country_in_region_hp", - "country_in_region_jk", - "country_in_region_jh", - "country_in_region_ka", - "country_in_region_kl", - "country_in_region_ld", - "country_in_region_mp", - "country_in_region_mh", - "country_in_region_mn", - "country_in_region_ml", - "country_in_region_mz", - "country_in_region_nl", - "country_in_region_or", - "country_in_region_py", - "country_in_region_pb", - "country_in_region_rj", - "country_in_region_sk", - "country_in_region_tn", - "country_in_region_tg", - "country_in_region_tr", - "country_in_region_ut", - "country_in_region_up", - "country_in_region_wb", - "country_id", - "country_ir", - "country_iq", - "country_ie", - "country_ie_region_cw", - "country_ie_region_cn", - "country_ie_region_ce", - "country_ie_region_co", - "country_ie_region_dl", - "country_ie_region_d", - "country_ie_region_g", - "country_ie_region_ky", - "country_ie_region_ke", - "country_ie_region_kk", - "country_ie_region_ls", - "country_ie_region_lm", - "country_ie_region_lk", - "country_ie_region_ld", - "country_ie_region_lh", - "country_ie_region_mo", - "country_ie_region_mh", - "country_ie_region_mn", - "country_ie_region_oy", - "country_ie_region_rn", - "country_ie_region_so", - "country_ie_region_ta", - "country_ie_region_wd", - "country_ie_region_wh", - "country_ie_region_wx", - "country_ie_region_ww", - "country_im", - "country_il", - "country_it", - "country_jm", - "country_jp", - "country_jp_region_10", - "country_jp_region_11", - "country_jp_region_12", - "country_jp_region_13", - "country_jp_region_14", - "country_jp_region_15", - "country_jp_region_16", - "country_jp_region_17", - "country_jp_region_18", - "country_jp_region_19", - "country_jp_region_20", - "country_jp_region_21", - "country_jp_region_22", - "country_jp_region_23", - "country_jp_region_24", - "country_jp_region_25", - "country_jp_region_26", - "country_jp_region_27", - "country_jp_region_28", - "country_jp_region_29", - "country_jp_region_30", - "country_jp_region_31", - "country_jp_region_32", - "country_jp_region_33", - "country_jp_region_34", - "country_jp_region_35", - "country_jp_region_36", - "country_jp_region_37", - "country_jp_region_38", - "country_jp_region_39", - "country_jp_region_40", - "country_jp_region_41", - "country_jp_region_42", - "country_jp_region_43", - "country_jp_region_44", - "country_jp_region_45", - "country_jp_region_46", - "country_jp_region_47", - "country_jp_region_05", - "country_jp_region_02", - "country_jp_region_07", - "country_jp_region_01", - "country_jp_region_08", - "country_jp_region_03", - "country_jp_region_04", - "country_jp_region_09", - "country_jp_region_06", - "country_je", - "country_jo", - "country_kz", - "country_ke", - "country_ki", - "country_kp", - "country_kr", - "country_kw", - "country_kg", - "country_la", - "country_lv", - "country_lb", - "country_ls", - "country_lr", - "country_ly", - "country_li", - "country_lt", - "country_lu", - "country_mo", - "country_mk", - "country_mg", - "country_mw", - "country_my", - "country_mv", - "country_ml", - "country_mt", - "country_mh", - "country_mq", - "country_mr", - "country_mu", - "country_yt", - "country_mx", - "country_fm", - "country_md", - "country_mc", - "country_mn", - "country_me", - "country_ms", - "country_ma", - "country_mz", - "country_mm", - "country_na", - "country_nr", - "country_np", - "country_nl", - "country_nc", - "country_nz", - "country_ni", - "country_ne", - "country_ng", - "country_nu", - "country_nf", - "country_mp", - "country_no", - "country_no_region_10", - "country_no_region_11", - "country_no_region_12", - "country_no_region_14", - "country_no_region_15", - "country_no_region_16", - "country_no_region_17", - "country_no_region_18", - "country_no_region_19", - "country_no_region_20", - "country_no_region_30", - "country_no_region_34", - "country_no_region_38", - "country_no_region_42", - "country_no_region_46", - "country_no_region_50", - "country_no_region_54", - "country_no_region_01", - "country_no_region_02", - "country_no_region_03", - "country_no_region_04", - "country_no_region_05", - "country_no_region_06", - "country_no_region_07", - "country_no_region_08", - "country_no_region_09", - "country_om", - "country_pk", - "country_pw", - "country_ps", - "country_pa", - "country_pg", - "country_py", - "country_pe", - "country_ph", - "country_pn", - "country_pl", - "country_pt", - "country_pr", - "country_qa", - "country_re", - "country_ro", - "country_ru", - "country_rw", - "country_bl", - "country_sh", - "country_kn", - "country_lc", - "country_mf", - "country_pm", - "country_vc", - "country_ws", - "country_sm", - "country_ss", - "country_st", - "country_sa", - "country_sn", - "country_rs", - "country_sc", - "country_sl", - "country_sg", - "country_sk", - "country_si", - "country_sb", - "country_so", - "country_za", - "country_gs", - "country_es", - "country_es_region_a coruna", - "country_es_region_alava", - "country_es_region_albacete", - "country_es_region_alicante", - "country_es_region_almeria", - "country_es_region_asturias", - "country_es_region_avila", - "country_es_region_badajoz", - "country_es_region_baleares", - "country_es_region_barcelona", - "country_es_region_burgos", - "country_es_region_caceres", - "country_es_region_cadiz", - "country_es_region_cn", - "country_es_region_cantabria", - "country_es_region_castellon", - "country_es_region_ceuta", - "country_es_region_ciudad real", - "country_es_region_cordoba", - "country_es_region_cuenca", - "country_es_region_gipuzkoa", - "country_es_region_girona", - "country_es_region_granada", - "country_es_region_guadalajara", - "country_es_region_guipuzcoa", - "country_es_region_huelva", - "country_es_region_huesca", - "country_es_region_jaen", - "country_es_region_la rioja", - "country_es_region_las palmas", - "country_es_region_leon", - "country_es_region_lleida", - "country_es_region_lugo", - "country_es_region_madrid", - "country_es_region_malaga", - "country_es_region_melilla", - "country_es_region_murcia", - "country_es_region_navarra", - "country_es_region_ourense", - "country_es_region_palencia", - "country_es_region_pontevedra", - "country_es_region_salamanca", - "country_es_region_santa cruz de tenerife", - "country_es_region_segovia", - "country_es_region_sevilla", - "country_es_region_soria", - "country_es_region_tarragona", - "country_es_region_teruel", - "country_es_region_toledo", - "country_es_region_valencia", - "country_es_region_valladolid", - "country_es_region_vizcaya", - "country_es_region_zamora", - "country_es_region_zaragoza", - "country_lk", - "country_sd", - "country_sr", - "country_sj", - "country_sz", - "country_se", - "country_ch", - "country_ch_region_ag", - "country_ch_region_ar", - "country_ch_region_ai", - "country_ch_region_bl", - "country_ch_region_bs", - "country_ch_region_be", - "country_ch_region_fr", - "country_ch_region_ge", - "country_ch_region_gl", - "country_ch_region_gr", - "country_ch_region_ju", - "country_ch_region_lu", - "country_ch_region_ne", - "country_ch_region_nw", - "country_ch_region_ow", - "country_ch_region_sh", - "country_ch_region_sz", - "country_ch_region_so", - "country_ch_region_sg", - "country_ch_region_ti", - "country_ch_region_tg", - "country_ch_region_ur", - "country_ch_region_vs", - "country_ch_region_vd", - "country_ch_region_zh", - "country_ch_region_zg", - "country_sy", - "country_tw", - "country_tj", - "country_tz", - "country_th", - "country_tl", - "country_tg", - "country_tk", - "country_to", - "country_tt", - "country_tn", - "country_tr", - "country_tm", - "country_tc", - "country_tv", - "country_ug", - "country_ua", - "country_ae", - "country_gb", - "country_us", - "country_us_region_al", - "country_us_region_ak", - "country_us_region_as", - "country_us_region_az", - "country_us_region_ar", - "country_us_region_af", - "country_us_region_aa", - "country_us_region_ac", - "country_us_region_ae", - "country_us_region_am", - "country_us_region_ap", - "country_us_region_ca", - "country_us_region_co", - "country_us_region_ct", - "country_us_region_de", - "country_us_region_dc", - "country_us_region_fm", - "country_us_region_fl", - "country_us_region_ga", - "country_us_region_gu", - "country_us_region_hi", - "country_us_region_id", - "country_us_region_il", - "country_us_region_in", - "country_us_region_ia", - "country_us_region_ks", - "country_us_region_ky", - "country_us_region_la", - "country_us_region_me", - "country_us_region_mh", - "country_us_region_md", - "country_us_region_ma", - "country_us_region_mi", - "country_us_region_mn", - "country_us_region_ms", - "country_us_region_mo", - "country_us_region_mt", - "country_us_region_ne", - "country_us_region_nv", - "country_us_region_nh", - "country_us_region_nj", - "country_us_region_nm", - "country_us_region_ny", - "country_us_region_nc", - "country_us_region_nd", - "country_us_region_mp", - "country_us_region_oh", - "country_us_region_ok", - "country_us_region_or", - "country_us_region_pa", - "country_us_region_pr", - "country_us_region_ri", - "country_us_region_sc", - "country_us_region_sd", - "country_us_region_tn", - "country_us_region_tx", - "country_us_region_ut", - "country_us_region_vt", - "country_us_region_vi", - "country_us_region_va", - "country_us_region_wa", - "country_us_region_wv", - "country_us_region_wi", - "country_us_region_wy", - "country_um", - "country_uy", - "country_uz", - "country_vu", - "country_ve", - "country_vn", - "country_vg", - "country_vi", - "country_wf", - "country_eh", - "country_ye", - "country_zm", - "country_zw" - ] - } - }, - "required": ["close", "cancel", "header_update", "address-form"] - }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "full_address": { - "type": "string", - "default": "{{address1}} {{address2}} {{city}} {{region}} {{country}} {{postal_code}}" - }, - "full_name": { "type": "string", "default": "{{first_name}} {{last_name}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No addresses" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["full_address", "full_name", "spinner"] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["label", "dialog", "pagination"] - }, - "shipments": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Shipments" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "full_address": { - "type": "string", - "default": "{{ address1 }} {{ address2 }} {{ city }} {{ region }} {{ postal_code }}" - }, - "quantity": { "type": "string", "default": "Qty: {{ count }}" }, - "no_code": { "type": "string", "default": "No SKU" }, - "price": { "type": "string", "default": "{{ amount, price }}" }, - "item": { "type": "string", "default": "{{ count }} item" }, - "item_plural": { "type": "string", "default": "{{ count }} items" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No shipments" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "full_address", - "quantity", - "no_code", - "price", - "item", - "item_plural", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["label", "pagination"] - }, - "actions": { - "additionalProperties": false, - "properties": { - "capture": { - "additionalProperties": false, - "properties": { - "idle": { "type": "string", "default": "Capture" }, - "busy": { "type": "string", "default": "Capturing..." }, - "fail": { "type": "string", "default": "Failed to capture" }, - "confirm": { - "additionalProperties": false, - "properties": { - "header": { "type": "string", "default": "Capture" }, - "message": { - "type": "string", - "default": "Are you sure you'd like to capture this transaction?" - }, - "confirm": { "type": "string", "default": "Yes" }, - "cancel": { "type": "string", "default": "No" } - }, - "required": ["header", "message", "confirm", "cancel"] - } - }, - "required": ["idle", "busy", "fail", "confirm"] - }, - "void": { - "additionalProperties": false, - "properties": { - "idle": { "type": "string", "default": "Void" }, - "busy": { "type": "string", "default": "Voiding..." }, - "fail": { "type": "string", "default": "Failed to void" }, - "confirm": { - "additionalProperties": false, - "properties": { - "header": { "type": "string", "default": "Void" }, - "message": { - "type": "string", - "default": "Are you sure you'd like to void this transaction?" - }, - "confirm": { "type": "string", "default": "Yes" }, - "cancel": { "type": "string", "default": "No" } - }, - "required": ["header", "message", "confirm", "cancel"] - } - }, - "required": ["idle", "busy", "fail", "confirm"] - }, - "refund": { - "additionalProperties": false, - "properties": { - "idle": { "type": "string", "default": "Refund" }, - "busy": { "type": "string", "default": "Refunding..." }, - "fail": { "type": "string", "default": "Failed to refund" }, - "confirm": { - "additionalProperties": false, - "properties": { - "header": { "type": "string", "default": "Refund" }, - "message": { - "type": "string", - "default": "Are you sure you'd like to refund this transaction?" - }, - "confirm": { "type": "string", "default": "Yes" }, - "cancel": { "type": "string", "default": "No" } - }, - "required": ["header", "message", "confirm", "cancel"] - } - }, - "required": ["idle", "busy", "fail", "confirm"] - }, - "send-emails": { - "additionalProperties": false, - "properties": { - "idle": { "type": "string", "default": "Resend emails" }, - "busy": { "type": "string", "default": "Resending emails..." }, - "fail": { "type": "string", "default": "Failed to resend emails" }, - "confirm": { - "additionalProperties": false, - "properties": { - "header": { "type": "string", "default": "Send emails" }, - "message": { - "type": "string", - "default": "Are you sure you'd like to send emails for this transaction?" - }, - "confirm": { "type": "string", "default": "Yes" }, - "cancel": { "type": "string", "default": "No" } - }, - "required": ["header", "message", "confirm", "cancel"] - } - }, - "required": ["idle", "busy", "fail", "confirm"] - }, - "subscription": { - "additionalProperties": false, - "properties": { "caption": { "type": "string", "default": "Go to subscription" } }, - "required": ["caption"] - } - }, - "required": ["capture", "void", "refund", "send-emails", "subscription"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "header", - "customer", - "items", - "custom-fields", - "attributes", - "summary", - "payments", - "billing-addresses", - "shipments", - "actions", - "spinner" - ] -} diff --git a/src/static/schemas/transactions-table.json b/src/static/schemas/transactions-table.json deleted file mode 100644 index af038e0d4..000000000 --- a/src/static/schemas/transactions-table.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "price": { "type": "string", "default": "{{amount, price}}" }, - "receipt": { "type": "string", "default": "Receipt" }, - "transaction_approved": { "type": "string", "default": "Approved" }, - "transaction_authorized": { "type": "string", "default": "Authorized" }, - "transaction_captured": { "type": "string", "default": "Captured" }, - "transaction_completed": { "type": "string", "default": "Completed" }, - "transaction_declined": { "type": "string", "default": "Declined" }, - "transaction_pending": { "type": "string", "default": "Pending" }, - "transaction_refunded": { "type": "string", "default": "Refunded" }, - "transaction_rejected": { "type": "string", "default": "Rejected" }, - "transaction_summary": { "type": "string", "default": "{{most_expensive_item.name}}" }, - "transaction_summary_plural": { - "type": "string", - "default": "{{most_expensive_item.name}} and {{count_minus_one}} more" - }, - "transaction_verified": { "type": "string", "default": "Verified" }, - "transaction_voided": { "type": "string", "default": "Voided" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_empty", "loading_error"] - } - }, - "required": [ - "date", - "price", - "receipt", - "transaction_approved", - "transaction_authorized", - "transaction_captured", - "transaction_completed", - "transaction_declined", - "transaction_pending", - "transaction_refunded", - "transaction_rejected", - "transaction_summary", - "transaction_summary_plural", - "transaction_verified", - "transaction_voided", - "spinner" - ] -} diff --git a/src/static/schemas/update-payment-method-form.json b/src/static/schemas/update-payment-method-form.json deleted file mode 100644 index d40857b8f..000000000 --- a/src/static/schemas/update-payment-method-form.json +++ /dev/null @@ -1,341 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "status": { - "additionalProperties": false, - "properties": { - "cc_token_success": { "type": "string", "default": "Card details saved successfully." }, - "close": { "type": "string", "default": "Close" } - }, - "required": ["cc_token_success", "close"] - }, - "error": { - "additionalProperties": false, - "properties": { - "cc_token_invalid": { - "type": "string", - "default": "Unfortunately, we couldn't save your card details. Please try again later or use a different card." - } - }, - "required": ["cc_token_invalid"] - }, - "template-set": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Template set" }, - "dialog": { - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "header": { "type": "string", "default": "Choose a template set" }, - "selection": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "" }, - "helper_text": { "type": "string", "default": "" }, - "search": { "type": "string", "default": "Search" }, - "clear": { "type": "string", "default": "Clear" }, - "pagination": { - "additionalProperties": false, - "properties": { - "search_button_text": { "type": "string", "default": "Search" }, - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { - "type": "string", - "default": "{{from}}-{{to}} out of {{total}}" - }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { - "type": "string", - "default": "No template sets found" - }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - } - }, - "required": [ - "search_button_text", - "first", - "last", - "next", - "pagination", - "previous", - "card" - ] - }, - "query-builder": { - "additionalProperties": false, - "properties": { - "filters": { "additionalProperties": false, "properties": {}, "required": [] }, - "add_or_clause": { "type": "string", "default": "Add OR clause" }, - "add_value": { "type": "string", "default": "Add value" }, - "code": { "type": "string", "default": "Code" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "delete": { "type": "string", "default": "Delete" }, - "field": { "type": "string", "default": "Field" }, - "hidden": { "type": "string", "default": "Hidden" }, - "is_defined_false": { "type": "string", "default": "Not defined" }, - "is_defined_true": { "type": "string", "default": "Defined" }, - "name": { "type": "string", "default": "Name" }, - "operator_equal": { "type": "string", "default": "Equal" }, - "operator_greaterthan": { "type": "string", "default": "Greater than" }, - "operator_greaterthanorequal": { - "type": "string", - "default": "Greater than or equal" - }, - "operator_in": { "type": "string", "default": "One of" }, - "operator_isdefined": { "type": "string", "default": "Is defined" }, - "operator_lessthan": { "type": "string", "default": "Less than" }, - "operator_lessthanorequal": { - "type": "string", - "default": "Less than or equal" - }, - "operator_not": { "type": "string", "default": "Not equal" }, - "or": { "type": "string", "default": "Or" }, - "query_builder_group": { "type": "string", "default": "Group of filters" }, - "query_builder_rule": { "type": "string", "default": "Filter" }, - "range_from": { "type": "string", "default": "From" }, - "range_to": { "type": "string", "default": "To" }, - "type": { "type": "string", "default": "Type" }, - "type_any": { "type": "string", "default": "Field of unknown type" }, - "type_attribute": { "type": "string", "default": "Key-value resource" }, - "type_date": { "type": "string", "default": "Date field" }, - "type_here": { "type": "string", "default": "Type here..." }, - "type_number": { "type": "string", "default": "Numeric field" }, - "type_string": { "type": "string", "default": "Text field" }, - "used_codes": { "type": "string", "default": "Codes used" }, - "value": { "type": "string", "default": "Value" } - }, - "required": [ - "filters", - "add_or_clause", - "add_value", - "code", - "date", - "date_created", - "date_modified", - "delete", - "field", - "hidden", - "is_defined_false", - "is_defined_true", - "name", - "operator_equal", - "operator_greaterthan", - "operator_greaterthanorequal", - "operator_in", - "operator_isdefined", - "operator_lessthan", - "operator_lessthanorequal", - "operator_not", - "or", - "query_builder_group", - "query_builder_rule", - "range_from", - "range_to", - "type", - "type_any", - "type_attribute", - "type_date", - "type_here", - "type_number", - "type_string", - "used_codes", - "value" - ] - } - }, - "required": ["label", "helper_text", "search", "clear", "pagination", "query-builder"] - } - }, - "required": ["cancel", "close", "header", "selection"] - }, - "card": { - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "Click to select" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["spinner"] - }, - "helper_text": { - "type": "string", - "default": "Template set determines which payment gateway and tokenization service will be used to capture card details." - } - }, - "required": ["label", "dialog", "card", "helper_text"] - }, - "cc-token": { - "additionalProperties": false, - "properties": { - "tokenize": { "type": "string", "default": "Save card" }, - "payment-card-embed": { - "additionalProperties": false, - "properties": { - "stripe": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card details" }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Stripe. Visit https://stripe.com to learn more." - }, - "busy": { "type": "string", "default": "Encrypting your card details..." }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "unsupported": { - "type": "string", - "default": "We don't support this card type. Please try a different card." - } - }, - "required": ["idle", "busy", "fail", "unsupported"] - } - }, - "required": ["label", "status"] - }, - "square": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card details" }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Square. Visit https://squareup.com to learn more." - }, - "busy": { "type": "string", "default": "Encrypting your card details..." }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "unsupported": { - "type": "string", - "default": "We don't support this card type. Please try a different card." - } - }, - "required": ["idle", "busy", "fail", "unsupported"] - } - }, - "required": ["label", "status"] - }, - "default": { - "additionalProperties": false, - "properties": { - "cc-number": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Card number" }, - "placeholder": { "type": "string", "default": "1234 1234 1234 1234" }, - "v8n_required": { "type": "string", "default": "Enter a card number." }, - "v8n_invalid": { - "type": "string", - "default": "Check your card number – it doesn't seem to be valid." - }, - "v8n_unsupported": { - "type": "string", - "default": "We don't support this card type." - } - }, - "required": [ - "label", - "placeholder", - "v8n_required", - "v8n_invalid", - "v8n_unsupported" - ] - }, - "cc-exp": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Expires on" }, - "placeholder": { "type": "string", "default": "MM/YYYY" }, - "v8n_required": { "type": "string", "default": "Enter an expiry date." }, - "v8n_invalid": { "type": "string", "default": "Enter a date as MM/YYYY." }, - "v8n_expired": { "type": "string", "default": "Your card has expired." } - }, - "required": ["label", "placeholder", "v8n_required", "v8n_invalid", "v8n_expired"] - }, - "cc-csc": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "CSC" }, - "placeholder": { "type": "string", "default": "XXX" }, - "v8n_required": { "type": "string", "default": "Enter a security code." }, - "v8n_invalid": { "type": "string", "default": "Enter a 3-4 digits code." } - }, - "required": ["label", "placeholder", "v8n_required", "v8n_invalid"] - }, - "status": { - "additionalProperties": false, - "properties": { - "idle": { - "type": "string", - "default": "Your card details are securely processed by Foxy.io. Visit https://foxy.io to learn more." - }, - "busy": { "type": "string", "default": "Encrypting your card details..." }, - "fail": { - "type": "string", - "default": "This service is currently unavailable. Please try again later." - }, - "misconfigured": { - "type": "string", - "default": "This form is not configured correctly. If you are seeing this message as a customer, please report this issue to the store support team." - } - }, - "required": ["idle", "busy", "fail", "misconfigured"] - } - }, - "required": ["cc-number", "cc-exp", "cc-csc", "status"] - } - }, - "required": ["stripe", "square", "default"] - } - }, - "required": ["tokenize", "payment-card-embed"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" }, - "loading_empty": { - "type": "string", - "default": "This form works only with existing payment methods" - } - }, - "required": ["refresh", "loading_busy", "loading_error", "loading_empty"] - } - }, - "required": ["status", "error", "template-set", "cc-token", "spinner"] -} diff --git a/src/static/schemas/user-card.json b/src/static/schemas/user-card.json deleted file mode 100644 index c299b8e34..000000000 --- a/src/static/schemas/user-card.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "no_name": { "type": "string", "default": "No name" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["loading_busy", "loading_empty", "loading_error"] - } - }, - "required": ["no_name", "spinner"] -} diff --git a/src/static/schemas/user-form.json b/src/static/schemas/user-form.json deleted file mode 100644 index d30faeaca..000000000 --- a/src/static/schemas/user-form.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "first-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "First name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please enter your first name" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store first names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "last-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { - "type": "string", - "default": "Please enter your last name. If you don't have a last name, put any character in this field." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store last names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "email": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Email" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "This email is your login to Foxy Admin. We'll also send important notifications to this address." - }, - "v8n_required": { "type": "string", "default": "Please enter your email address" }, - "v8n_invalid_email": { "type": "string", "default": "Please enter a valid email address" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store email addresses longer than 100 characters" - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_invalid_email", - "v8n_too_long" - ] - }, - "phone": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Phone" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "We'll only use this number to contact you about your account." - }, - "v8n_too_long": { - "type": "string", - "default": "This phone number appears to be too long. Please make sure you entered it correctly." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "affiliate-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Affiliate ID" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "This value can only be set during user creation. Contact us if you need this value changed later." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "role": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Role" }, - "helper_text": { - "type": "string", - "default": "If you contact us for help, your role will help us understand how to best assist you." - }, - "option_merchant": { "type": "string", "default": "Merchant" }, - "option_backend_developer": { "type": "string", "default": "Backend Developer" }, - "option_frontend_developer": { "type": "string", "default": "Frontend Developer" }, - "option_designer": { "type": "string", "default": "Designer" } - }, - "required": [ - "label", - "helper_text", - "option_merchant", - "option_backend_developer", - "option_frontend_developer", - "option_designer" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this account? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "first-name", - "last-name", - "email", - "phone", - "affiliate-id", - "role", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/users-table.json b/src/static/schemas/users-table.json deleted file mode 100644 index ea3169d2c..000000000 --- a/src/static/schemas/users-table.json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "cancel": { "type": "string", "default": "Cancel" }, - "close": { "type": "string", "default": "Close" }, - "confirm": { "type": "string", "default": "Confirm" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "save": { "type": "string", "default": "Save" }, - "time": { "type": "string", "default": "{{value, time}}" }, - "undo_cancel": { "type": "string", "default": "Review" }, - "undo_confirm": { "type": "string", "default": "Discard" }, - "undo_header": { "type": "string", "default": "Unsaved changes" }, - "undo_message": { - "type": "string", - "default": "Looks like you didn't save your changes! What would you like to do with them?" - }, - "update": { "type": "string", "default": "Update" }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_empty": { "type": "string", "default": "No data" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_empty", "loading_error"] - }, - "user-form": { - "additionalProperties": false, - "properties": { - "first-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "First name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { "type": "string", "default": "Please enter your first name" }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store first names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "last-name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Last name" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { "type": "string", "default": "" }, - "v8n_required": { - "type": "string", - "default": "Please enter your last name. If you don't have a last name, put any character in this field." - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store last names longer than 50 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "email": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Email" }, - "placeholder": { "type": "string", "default": "Required" }, - "helper_text": { - "type": "string", - "default": "This email is your login to Foxy Admin. We'll also send important notifications to this address." - }, - "v8n_required": { "type": "string", "default": "Please enter your email address" }, - "v8n_invalid_email": { - "type": "string", - "default": "Please enter a valid email address" - }, - "v8n_too_long": { - "type": "string", - "default": "Unfortunately we can't store email addresses longer than 100 characters" - } - }, - "required": [ - "label", - "placeholder", - "helper_text", - "v8n_required", - "v8n_invalid_email", - "v8n_too_long" - ] - }, - "phone": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Phone" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "We'll only use this number to contact you about your account." - }, - "v8n_too_long": { - "type": "string", - "default": "This phone number appears to be too long. Please make sure you entered it correctly." - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "affiliate-id": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Affiliate ID" }, - "placeholder": { "type": "string", "default": "Optional" }, - "helper_text": { - "type": "string", - "default": "This value can only be set during user creation. Contact us if you need this value changed later." - } - }, - "required": ["label", "placeholder", "helper_text"] - }, - "role": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Role" }, - "helper_text": { - "type": "string", - "default": "If you contact us for help, your role will help us understand how to best assist you." - }, - "option_merchant": { "type": "string", "default": "Merchant" }, - "option_backend_developer": { "type": "string", "default": "Backend Developer" }, - "option_frontend_developer": { "type": "string", "default": "Frontend Developer" }, - "option_designer": { "type": "string", "default": "Designer" } - }, - "required": [ - "label", - "helper_text", - "option_merchant", - "option_backend_developer", - "option_frontend_developer", - "option_designer" - ] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this account? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "first-name", - "last-name", - "email", - "phone", - "affiliate-id", - "role", - "timestamps", - "delete", - "create", - "spinner" - ] - } - }, - "required": [ - "cancel", - "close", - "confirm", - "date", - "save", - "time", - "undo_cancel", - "undo_confirm", - "undo_header", - "undo_message", - "update", - "spinner", - "user-form" - ] -} diff --git a/src/static/schemas/webhook-card.json b/src/static/schemas/webhook-card.json deleted file mode 100644 index c4d939f8e..000000000 --- a/src/static/schemas/webhook-card.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" }, - "loading_empty": { "type": "string", "default": "No data" } - }, - "required": ["loading_busy", "loading_error", "loading_empty"] - } - }, - "required": ["spinner"] -} diff --git a/src/static/schemas/webhook-form.json b/src/static/schemas/webhook-form.json deleted file mode 100644 index a17cdd86d..000000000 --- a/src/static/schemas/webhook-form.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "name": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Name" }, - "placeholder": { "type": "string", "default": "My JSON Webhook" }, - "helper_text": { "type": "string", "default": "The name of this webhook." }, - "v8n_required": { "type": "string", "default": "Webhook name is required" }, - "v8n_too_long": { "type": "string", "default": "Webhook name cannot exceed 255 characters" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required", "v8n_too_long"] - }, - "format": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Format" }, - "helper_text": { "type": "string", "default": "The type of this webhook." }, - "v8n_required": { "type": "string", "default": "Please select a format" } - }, - "required": ["label", "helper_text", "v8n_required"] - }, - "version": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Version" }, - "placeholder": { "type": "string", "default": "2" }, - "helper_text": { - "type": "string", - "default": "Version of the webhook. Enter 2 for latest or use other if you have specific instructions from Foxy." - }, - "v8n_required": { "type": "string", "default": "Version is required" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_required"] - }, - "url": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "URL" }, - "placeholder": { "type": "string", "default": "https://example.com/webhook" }, - "helper_text": { - "type": "string", - "default": "The endpoint where we will send the webhook data." - }, - "v8n_too_long": { "type": "string", "default": "URL cannot exceed 1000 characters" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "query": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Query" }, - "placeholder": { "type": "string", "default": "zoom=items,items:options,customer" }, - "helper_text": { - "type": "string", - "default": "The webhook payload mirrors the API, and you can include more or less data according to your needs using zoom and other modifiers." - }, - "v8n_too_long": { "type": "string", "default": "Query cannot exceed 1000 characters" } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "encryption-key": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Encryption key" }, - "placeholder": { "type": "string", "default": "HNL978XVXXCM66DM5N2T78D5MT66BC6D" }, - "helper_text": { - "type": "string", - "default": "The JSON webhooks are encrypted in certain situations. This key is also used to generate a signature to verify the integrity of the payload." - }, - "v8n_too_long": { - "type": "string", - "default": "Encryption key cannot exceed 1000 characters" - } - }, - "required": ["label", "placeholder", "helper_text", "v8n_too_long"] - }, - "event-resource": { - "additionalProperties": false, - "properties": { - "label": { "type": "string", "default": "Resource" }, - "helper_text": { - "type": "string", - "default": "Changes in selected resource type will trigger this webhook. Resource type cannot be changed after the webhook has been created." - }, - "event_resource_subscription": { "type": "string", "default": "Subscription" }, - "event_resource_transaction": { "type": "string", "default": "Transaction" }, - "event_resource_customer": { "type": "string", "default": "Customer" } - }, - "required": [ - "label", - "helper_text", - "event_resource_subscription", - "event_resource_transaction", - "event_resource_customer" - ] - }, - "statuses": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Statuses" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "status_successful": { "type": "string", "default": "Successful" }, - "status_pending": { "type": "string", "default": "Pending" }, - "status_failed": { "type": "string", "default": "Failed" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" }, - "loading_empty": { "type": "string", "default": "No data" } - }, - "required": ["loading_busy", "loading_error", "loading_empty"] - } - }, - "required": [ - "status_successful", - "status_pending", - "status_failed", - "date", - "spinner" - ] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["title", "pagination"] - }, - "logs": { - "additionalProperties": false, - "properties": { - "title": { "type": "string", "default": "Logs" }, - "pagination": { - "additionalProperties": false, - "properties": { - "first": { "type": "string", "default": "First" }, - "last": { "type": "string", "default": "Last" }, - "next": { "type": "string", "default": "Next" }, - "pagination": { "type": "string", "default": "{{from}}-{{to}} out of {{total}}" }, - "previous": { "type": "string", "default": "Previous" }, - "card": { - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" }, - "loading_empty": { "type": "string", "default": "No data" } - }, - "required": ["loading_busy", "loading_error", "loading_empty"] - } - }, - "required": ["date", "spinner"] - } - }, - "required": ["first", "last", "next", "pagination", "previous", "card"] - } - }, - "required": ["title", "pagination"] - }, - "timestamps": { - "additionalProperties": false, - "properties": { - "date_created": { "type": "string", "default": "Created on" }, - "date_modified": { "type": "string", "default": "Last updated on" }, - "date": { "type": "string", "default": "{{value, date}}" } - }, - "required": ["date_created", "date_modified", "date"] - }, - "delete": { - "additionalProperties": false, - "properties": { - "delete": { "type": "string", "default": "Delete" }, - "cancel": { "type": "string", "default": "Cancel" }, - "delete_prompt": { - "type": "string", - "default": "Are you sure you'd like to remove this webhook? You won't be able to bring it back." - } - }, - "required": ["delete", "cancel", "delete_prompt"] - }, - "create": { - "additionalProperties": false, - "properties": { "create": { "type": "string", "default": "Create" } }, - "required": ["create"] - }, - "spinner": { - "additionalProperties": false, - "properties": { - "refresh": { "type": "string", "default": "Refresh" }, - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" } - }, - "required": ["refresh", "loading_busy", "loading_error"] - } - }, - "required": [ - "name", - "format", - "version", - "url", - "query", - "encryption-key", - "event-resource", - "statuses", - "logs", - "timestamps", - "delete", - "create", - "spinner" - ] -} diff --git a/src/static/schemas/webhook-log-card.json b/src/static/schemas/webhook-log-card.json deleted file mode 100644 index e8c7dcb56..000000000 --- a/src/static/schemas/webhook-log-card.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "date": { "type": "string", "default": "{{value, date}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" }, - "loading_empty": { "type": "string", "default": "No data" } - }, - "required": ["loading_busy", "loading_error", "loading_empty"] - } - }, - "required": ["date", "spinner"] -} diff --git a/src/static/schemas/webhook-status-card.json b/src/static/schemas/webhook-status-card.json deleted file mode 100644 index 9ba378b39..000000000 --- a/src/static/schemas/webhook-status-card.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "properties": { - "status_successful": { "type": "string", "default": "Successful" }, - "status_pending": { "type": "string", "default": "Pending" }, - "status_failed": { "type": "string", "default": "Failed" }, - "date": { "type": "string", "default": "{{value, date}}" }, - "spinner": { - "additionalProperties": false, - "properties": { - "loading_busy": { "type": "string", "default": "Loading" }, - "loading_error": { "type": "string", "default": "Unknown error" }, - "loading_empty": { "type": "string", "default": "No data" } - }, - "required": ["loading_busy", "loading_error", "loading_empty"] - } - }, - "required": ["status_successful", "status_pending", "status_failed", "date", "spinner"] -} diff --git a/src/static/translations/address-form/en.json b/src/static/translations/address-form/en.json index c681cd313..d39bdd1e7 100644 --- a/src/static/translations/address-form/en.json +++ b/src/static/translations/address-form/en.json @@ -1,4 +1,27 @@ { + "header": { + "title_existing": "Customer address #{{ id }}", + "title_new": "New customer address", + "subtitle_default_shipping": "Default shipping address", + "subtitle_default_billing": "Default billing address", + "subtitle_custom": "Custom address", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, + "error": { + "country_banned": "Store settings prohibit addresses in this country. Please adjust your store settings or use the Ignore address restrictions option.", + "address_name_exists": "Another address with the same name already exists. Please choose a unique name." + }, "address-name": { "label": "Address name", "placeholder": "Required", @@ -66,6 +89,11 @@ "helper_text": "", "v8n_too_long": "Unfortunately we can't store region names longer than 50 characters" }, + "ignore-address-restrictions": { + "label": "Advanced", + "option_true": "Ignore address restrictions", + "helper_text": "By default, the country value must be valid according to the store's location filtering settings. Checking this box will remove this restriction." + }, "timestamps": { "date": "{{value, date}}", "date_created": "Created on", @@ -76,8 +104,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this address? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -661,4 +695,4 @@ "country_ye": "Yemen", "country_zm": "Zambia", "country_zw": "Zimbabwe" -} +} \ No newline at end of file diff --git a/src/static/translations/api-browser/en.json b/src/static/translations/api-browser/en.json index 063a64861..cd1317f7e 100644 --- a/src/static/translations/api-browser/en.json +++ b/src/static/translations/api-browser/en.json @@ -11,7 +11,7 @@ "next": "Next", "pagination": "{{from}}-{{to}} out of {{total}}", "previous": "Previous", - "undo": "Undo", + "caption": "Undo", "editor": { "label": "Resource JSON", "placeholder": "Enter resource JSON here and click Submit to save" @@ -30,7 +30,13 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this resource? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Submit" + "caption": "Submit" } -} +} \ No newline at end of file diff --git a/src/static/translations/applied-coupon-code-form/en.json b/src/static/translations/applied-coupon-code-form/en.json index d05e553f9..3b662c4e7 100644 --- a/src/static/translations/applied-coupon-code-form/en.json +++ b/src/static/translations/applied-coupon-code-form/en.json @@ -1,4 +1,21 @@ { + "header": { + "title_existing": "Applied coupon code #{{ id }}", + "title_new": "Apply coupon code", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "code": { "label": "Coupon code", "placeholder": "MY-COUPON-123", @@ -16,12 +33,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this coupon code? This might affect the cart total." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Apply" + "caption": "Apply" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/attribute-form/en.json b/src/static/translations/attribute-form/en.json index 92c36b91e..ac1896755 100644 --- a/src/static/translations/attribute-form/en.json +++ b/src/static/translations/attribute-form/en.json @@ -1,4 +1,23 @@ { + "header": { + "title_existing": "Attribute #{{ id }}", + "title_new": "New attribute", + "subtitle_private": "Visible only to you", + "subtitle_restricted": "Visible to store admins", + "subtitle_public": "Visible to everyone", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "placeholder": "Required", @@ -30,12 +49,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/cart-form/en.json b/src/static/translations/cart-form/en.json index 310585c74..ba9a1a0ac 100644 --- a/src/static/translations/cart-form/en.json +++ b/src/static/translations/cart-form/en.json @@ -1,4 +1,21 @@ { + "header": { + "title_existing": "Cart #{{ id }}", + "title_new": "New cart", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "order_section_title": "Order", "order_section_description": "Cart items, discounts and metadata", "billing_section_title": "Billing", @@ -64,6 +81,24 @@ "undo_message": "Looks like you didn't save your changes! What would you like to do with them?", "undo_cancel": "Review", "undo_confirm": "Discard", + "header": { + "title_existing": "Item #{{ id }}", + "title_new": "New item", + "subtitle_future_line_item": "This item is part of a future subscription", + "subtitle_regular": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "dimensions": "Dimensions", "subscriptions": "Subscriptions", "discount": "Discount", @@ -156,7 +191,7 @@ }, "shipto": { "label": "Shipping address", - "helper_text": "Used for multiship to assign this item to a specific shipment.", + "helper_text": "Used for multiship to assign this item to a specific shipment. This value will be the address name of the shipment.", "placeholder": "Select address to ship this item to..." }, "width": { @@ -181,8 +216,40 @@ }, "item-category-uri": { "label": "Item category", - "helper_text": "Item category associated with this item.", - "placeholder": "Select item category..." + "dialog": { + "cancel": "Cancel", + "close": "Close", + "header": "Select an item category", + "selection": { + "label": "Item categories", + "helper_text": "Select an item category to use with this item.", + "search": "Search", + "clear": "Clear", + "pagination": { + "search_button_text": "Search", + "first": "First", + "last": "Last", + "next": "Next", + "pagination": "{{from}}-{{to}} out of {{total}}", + "previous": "Previous", + "card": { + "spinner": { + "loading_busy": "Loading", + "loading_empty": "No item categories found", + "loading_error": "Unknown error" + } + } + } + } + }, + "card": { + "spinner": { + "loading_busy": "Loading", + "loading_empty": "Not assigned – click to select", + "loading_error": "Unknown error" + } + }, + "helper_text": "Item category associated with this item." }, "code": { "label": "Code", @@ -245,6 +312,25 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "attribute-form": { + "header": { + "title_existing": "Item attribute #{{ id }}", + "title_new": "New item attribute", + "subtitle_private": "Visible only to you", + "subtitle_restricted": "Visible to store admins", + "subtitle_public": "Visible to everyone", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "placeholder": "Required", @@ -276,8 +362,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -320,6 +412,23 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "item-option-form": { + "header": { + "title_existing": "Item option #{{ id }}", + "title_new": "New item option", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "helper_text": "", @@ -359,8 +468,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this item option? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" } } }, @@ -391,8 +506,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this item? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -434,7 +555,57 @@ "undo_header": "Unsaved changes", "undo_message": "Looks like you didn't save your changes! What would you like to do with them?", "undo_cancel": "Review", - "undo_confirm": "Discard" + "undo_confirm": "Discard", + "applied-coupon-code-form": { + "header": { + "title_existing": "Applied coupon code #{{ id }}", + "title_new": "Apply coupon code", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, + "code": { + "label": "Coupon code", + "placeholder": "MY-COUPON-123", + "helper_text_new": "To find the right code, go to the Coupons page, select a coupon and scroll down to the Codes section.", + "helper_text_existing": "Applied codes can't be modified. To replace this code, remove it using the button below and then add a new one.", + "v8n_required": "Please enter a coupon code." + }, + "ignore-usage-limits": { + "label": "", + "helper_text": "", + "option_checked": "Ignore usage limits" + }, + "delete": { + "delete": "Remove", + "cancel": "Cancel", + "delete_prompt": "Are you sure you'd like to remove this coupon code? This might affect the cart total." + }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, + "create": { + "caption": "Apply" + }, + "spinner": { + "refresh": "Refresh", + "loading_busy": "Loading", + "loading_error": "Unknown error" + } + } } }, "totals": { @@ -620,7 +791,69 @@ "undo_header": "Unsaved changes", "undo_message": "Looks like you didn't save your changes! What would you like to do with them?", "undo_cancel": "Review", - "undo_confirm": "Discard" + "undo_confirm": "Discard", + "custom-field-form": { + "header": { + "title_existing": "Cart custom field #{{ id }}", + "title_new": "New cart custom field", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, + "name": { + "label": "Name", + "placeholder": "Required", + "helper_text": "Maximum 100 characters.", + "v8n_required": "Please name this custom field.", + "v8n_too_long": "Please choose a name that is 100 characters long or less." + }, + "value": { + "label": "Value", + "placeholder": "Required", + "helper_text": "Maximum 700 characters.", + "v8n_required": "Please provide a value for this custom field.", + "v8n_too_long": "Unfortunately we can't store values that are more than 700 characters long." + }, + "visibility": { + "label": "Visibility", + "option_hidden": "Hide in receipts", + "helper_text": "Whether or not this custom field is visible on the receipt and email receipt. This correlates to custom fields with a \"h:\" prefix when added to the cart." + }, + "timestamps": { + "date": "{{value, date}}", + "date_created": "Created on", + "date_modified": "Last updated on" + }, + "delete": { + "delete": "Delete", + "cancel": "Cancel", + "delete_prompt": "Are you sure you'd like to remove this custom field? You won't be able to bring it back." + }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, + "create": { + "caption": "Create" + }, + "spinner": { + "refresh": "Refresh", + "loading_busy": "Loading", + "loading_error": "Unknown error" + } + } } }, "attributes": { @@ -674,12 +907,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this cart? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/client-form/en.json b/src/static/translations/client-form/en.json index e83da8560..6adfc5f2b 100644 --- a/src/static/translations/client-form/en.json +++ b/src/static/translations/client-form/en.json @@ -1,4 +1,21 @@ { + "header": { + "title_existing": "Client #{{ id }}", + "title_new": "New client", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "client-id": { "label": "Client ID", "placeholder": "", @@ -64,12 +81,18 @@ "cancel": "Cancel", "delete_prompt": "Once deleted, applications using this client will no longer be able to access Foxy stores and users." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/coupon-code-form/en.json b/src/static/translations/coupon-code-form/en.json index d541d959f..21a17eb02 100644 --- a/src/static/translations/coupon-code-form/en.json +++ b/src/static/translations/coupon-code-form/en.json @@ -1,4 +1,21 @@ { + "header": { + "title_existing": "Coupon code #{{ id }}", + "title_new": "New coupon code", + "subtitle": "Number of uses: {{ number_of_uses_to_date }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "code": { "label": "Code", "placeholder": "Required", @@ -7,10 +24,6 @@ "v8n_too_long": "Coupon code must be 50 characters or less", "v8n_has_spaces": "Please remove spaces from the coupon code" }, - "number-of-uses-to-date": { - "label": "Number of uses", - "helper_text": "For informational purposes, this shows you how many times this coupon code has already been used." - }, "transactions": { "label": "Transactions", "pagination": { @@ -64,12 +77,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this coupon code? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/coupon-codes-form/en.json b/src/static/translations/coupon-codes-form/en.json index 5ae5da28e..1ab7db9c2 100644 --- a/src/static/translations/coupon-codes-form/en.json +++ b/src/static/translations/coupon-codes-form/en.json @@ -8,12 +8,18 @@ "helper_text": "Paste multiple space-separated codes in the field above to add all of them at once. Importing duplicate codes clears their usage stats.", "v8n_required": "Please add at least one code" }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Import" + "caption": "Import" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/coupon-form/en.json b/src/static/translations/coupon-form/en.json index a5234278d..061419515 100644 --- a/src/static/translations/coupon-form/en.json +++ b/src/static/translations/coupon-form/en.json @@ -1,8 +1,20 @@ { "header": { - "title_existing": "ID {{ id }}", + "title_existing": "{{ name }}", "title_new": "New coupon", - "subtitle": "Used {{ number_of_uses_to_date }} times (see individual codes for more info)" + "subtitle": "Uses to date: {{ number_of_uses_to_date }} • #{{ id }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } }, "import": { "button_text": "Import codes", @@ -25,8 +37,14 @@ "helper_text": "Paste multiple space-separated codes in the field above to add all of them at once. Importing duplicate codes clears their usage stats.", "v8n_required": "Please add at least one code" }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Import" + "caption": "Import" }, "spinner": { "refresh": "Refresh", @@ -79,8 +97,14 @@ "placeholder": "", "helper_text": "This is what the generated codes will look like." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Generate" + "caption": "Generate" }, "spinner": { "refresh": "Refresh", @@ -162,6 +186,23 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "coupon-code-form": { + "header": { + "title_existing": "Coupon code #{{ id }}", + "title_new": "New coupon code", + "subtitle": "Number of uses: {{ number_of_uses_to_date }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "code": { "label": "Code", "placeholder": "Required", @@ -170,10 +211,6 @@ "v8n_too_long": "Coupon code must be 50 characters or less", "v8n_has_spaces": "Please remove spaces from the coupon code" }, - "number-of-uses-to-date": { - "label": "Number of uses", - "helper_text": "For informational purposes, this shows you how many times this coupon code has already been used." - }, "transactions": { "label": "Transactions", "pagination": { @@ -227,8 +264,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this coupon code? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -313,6 +356,25 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "attribute-form": { + "header": { + "title_existing": "Coupon attribute #{{ id }}", + "title_new": "New coupon attribute", + "subtitle_private": "Visible only to you", + "subtitle_restricted": "Visible to store admins", + "subtitle_public": "Visible to everyone", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "placeholder": "Required", @@ -344,8 +406,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -424,7 +492,7 @@ "label": "Auto-apply: subscription restrictions", "placeholder": "Enter a product code and hit Enter", "helper_text": "This coupon will be automatically applied when a subscription includes a product with one of the codes in the list. Wildcards are allowed just like in product code restrictions.", - "submit": "Add this code", + "caption": "Add this code", "delete": "Delete this code", "v8n_too_long": "Unfortunately we are unable to store that many subscription restrictions at the moment. Please reduce the number of rules in this section until this message disappears." }, @@ -547,12 +615,18 @@ "cancel": "Cancel", "delete_prompt": "This action is irreversible. Are you sure you want to delete this coupon?" }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/custom-field-form/en.json b/src/static/translations/custom-field-form/en.json index 8f4fce207..342b024ac 100644 --- a/src/static/translations/custom-field-form/en.json +++ b/src/static/translations/custom-field-form/en.json @@ -1,4 +1,21 @@ { + "header": { + "title_existing": "Custom field #{{ id }}", + "title_new": "New custom field", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "placeholder": "Required", @@ -28,12 +45,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this custom field? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/customer-form/en.json b/src/static/translations/customer-form/en.json index 1f2949649..1f38035f5 100644 --- a/src/static/translations/customer-form/en.json +++ b/src/static/translations/customer-form/en.json @@ -1,4 +1,23 @@ { + "header": { + "title_existing": "{{ first_name }} {{ last_name }}", + "title_no_name": "No name", + "title_new": "New customer", + "subtitle_anonymous": "Guest customer #{{ id }}", + "subtitle_registered": "Customer #{{ id }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "legal-notice": { "text": "By creating an account, you agree to our Terms of Service.", "link": "Click here to open them in a new tab." @@ -80,12 +99,18 @@ "cancel": "Cancel", "delete_prompt": "This action is irreversible. Are you sure you want to delete this customer?" }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/customer-portal-settings-form/en.json b/src/static/translations/customer-portal-settings-form/en.json index 1ced6c8ce..a209a25fb 100644 --- a/src/static/translations/customer-portal-settings-form/en.json +++ b/src/static/translations/customer-portal-settings-form/en.json @@ -1,4 +1,15 @@ { + "header": { + "title_existing": "Customer portal settings", + "title_new": "Customer portal settings", + "subtitle": "Customer portal is enabled", + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "session-lifespan-in-minutes": { "label": "Session lifespan", "option_minute": "Minute", @@ -96,8 +107,14 @@ "cancel": "Cancel", "delete_prompt": "Please confirm that you'd like to remove this rule." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -227,8 +244,14 @@ "cancel": "Cancel", "delete_prompt": "Please confirm that you'd like to remove this rule." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -289,12 +312,18 @@ "cancel": "Cancel", "delete_prompt": "Disabling Customer Portal will erase the configuration and disable the related APIs. Would you like to proceed?" }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Enable" + "caption": "Enable" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/customer-portal/de.json b/src/static/translations/customer-portal/de.json index 8f0a06379..46a07563b 100644 --- a/src/static/translations/customer-portal/de.json +++ b/src/static/translations/customer-portal/de.json @@ -63,6 +63,10 @@ } }, "address-form": { + "error": { + "country_banned": "Leider akzeptieren wir keine Bestellungen aus dem von Ihnen gewählten Land.", + "address_name_exists": "Es existiert bereits eine andere Adresse mit demselben Namen. Bitte wählen Sie einen eindeutigen Namen." + }, "address-name": { "label": "Adressname", "placeholder": "Erforderlich", @@ -140,8 +144,14 @@ "cancel": "Abbrechen", "delete_prompt": "Sind Sie sicher, dass Sie diese Adresse entfernen möchten? " }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Erstellen" + "caption": "Erstellen" }, "spinner": { "refresh": "Aktualisierung", @@ -804,6 +814,10 @@ "dialog_header_add": "Zahlungsmethode hinzufügen", "dialog_header_update": "Zahlungsmethode aktualisieren", "update-payment-method-form": { + "header": { + "title_existing": "Karte aktualisieren", + "subtitle": "Geben Sie unten die Kartendetails ein und klicken Sie auf Karte speichern" + }, "status": { "cc_token_success": "Kartendetails erfolgreich gespeichert.", "close": "Schließen" @@ -981,6 +995,30 @@ } }, "subscription-form": { + "header": { + "title_new": "Abonnement", + "title_existing": "Abonnement", + "title_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", + "title_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", + "subscription_active": "Inklusive Versand, Steuern usw. Nächste Zahlung am {{date, date}}.", + "subscription_cancelled": "Inklusive Versand, Steuern usw. Endet am {{date, date}}.", + "subscription_failed": "Einschließlich Versand, Steuern usw. Die Zahlung ist fehlgeschlagen {{date, date}}.", + "subscription_inactive": "Inklusive Versand, Steuern usw. Inaktiv.", + "subscription_will_be_cancelled": "Inklusive Versand, Steuern usw. Endet am {{date, date}}.", + "subscription_will_be_active": "Inklusive Versand, Steuern usw. Beginnt am {{date, date}}.", + "copy-id": { + "failed_to_copy": "Kopieren fehlgeschlagen", + "click_to_copy": "ID kopieren", + "copying": "Kopieren...", + "done": "In Zwischenablage kopiert" + }, + "copy-json": { + "failed_to_copy": "Kopieren fehlgeschlagen", + "click_to_copy": "Quelle als JSON kopieren", + "copying": "Kopieren...", + "done": "In Zwischenablage kopiert" + } + }, "day": "Tag", "day_plural": "Tage", "week": "Woche", @@ -1004,12 +1042,6 @@ "next_transaction_date": "Nächstes Transaktionsdatum", "price_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", "price_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", - "subscription_active": "Inklusive Versand, Steuern usw. Nächste Zahlung am {{date, date}}.", - "subscription_cancelled": "Inklusive Versand, Steuern usw. Endet am {{date, date}}.", - "subscription_failed": "Einschließlich Versand, Steuern usw. Die Zahlung ist fehlgeschlagen {{date, date}}.", - "subscription_inactive": "Inklusive Versand, Steuern usw. Inaktiv.", - "subscription_will_be_cancelled": "Inklusive Versand, Steuern usw. Endet am {{date, date}}.", - "subscription_will_be_active": "Inklusive Versand, Steuern usw. Beginnt am {{date, date}}.", "transaction_plural": "Transaktionen", "twice_a_month": "Zweimal im Monat", "update_billing": "Abrechnung aktualisieren", @@ -1161,8 +1193,14 @@ "text": "Durch die Erstellung eines Kontos stimmen Sie unseren Nutzungsbedingungen zu.", "link": "Klicken Sie hier, um sie in einem neuen Tab zu öffnen." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Benutzerkonto erstellen" + "caption": "Benutzerkonto erstellen" }, "spinner": { "refresh": "Aktualisierung", @@ -1170,4 +1208,4 @@ "loading_error": "Wurde nicht geladen" } } -} +} \ No newline at end of file diff --git a/src/static/translations/customer-portal/en.json b/src/static/translations/customer-portal/en.json index 80ab52345..b9f81f65b 100644 --- a/src/static/translations/customer-portal/en.json +++ b/src/static/translations/customer-portal/en.json @@ -63,6 +63,10 @@ } }, "address-form": { + "error": { + "country_banned": "Unfortunately, we don't accept orders from the country you've selected.", + "address_name_exists": "Another address with the same name already exists. Please choose a unique name." + }, "address-name": { "label": "Address name", "placeholder": "Required", @@ -140,8 +144,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this address? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -804,6 +814,10 @@ "dialog_header_add": "Add payment method", "dialog_header_update": "Update payment method", "update-payment-method-form": { + "header": { + "title_existing": "Update card", + "subtitle": "Enter card details below and click Save card" + }, "status": { "cc_token_success": "Card details saved successfully.", "close": "Close" @@ -981,6 +995,30 @@ } }, "subscription-form": { + "header": { + "title_new": "Subscription", + "title_existing": "Subscription", + "title_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", + "title_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", + "subtitle_active": "Including shipping, taxes, etc. Next payment on {{date, date}}.", + "subtitle_cancelled": "Including shipping, taxes, etc. Ended on {{date, date}}.", + "subtitle_failed": "Including shipping, taxes, etc. Payment failed on {{date, date}}.", + "subtitle_inactive": "Including shipping, taxes, etc. Inactive.", + "subtitle_will_be_cancelled": "Including shipping, taxes, etc. Ends on {{date, date}}.", + "subtitle_will_be_active": "Including shipping, taxes, etc. Starts on {{date, date}}.", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "day": "Day", "day_plural": "Days", "week": "Week", @@ -1004,12 +1042,6 @@ "next_transaction_date": "Next transaction date", "price_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", "price_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", - "subscription_active": "Including shipping, taxes, etc. Next payment on {{date, date}}.", - "subscription_cancelled": "Including shipping, taxes, etc. Ended on {{date, date}}.", - "subscription_failed": "Including shipping, taxes, etc. Payment failed on {{date, date}}.", - "subscription_inactive": "Including shipping, taxes, etc. Inactive.", - "subscription_will_be_cancelled": "Including shipping, taxes, etc. Ends on {{date, date}}.", - "subscription_will_be_active": "Including shipping, taxes, etc. Starts on {{date, date}}.", "transaction_plural": "Transactions", "twice_a_month": "Twice a month", "update_billing": "Update billing", @@ -1161,8 +1193,14 @@ "text": "By creating an account, you agree to our Terms of Service.", "link": "Click here to open them in a new tab." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create account" + "caption": "Create account" }, "spinner": { "refresh": "Refresh", @@ -1170,4 +1208,4 @@ "loading_error": "Unknown error" } } -} +} \ No newline at end of file diff --git a/src/static/translations/customer-portal/es.json b/src/static/translations/customer-portal/es.json index 68afb7a2c..f8561e251 100644 --- a/src/static/translations/customer-portal/es.json +++ b/src/static/translations/customer-portal/es.json @@ -63,6 +63,10 @@ } }, "address-form": { + "error": { + "country_banned": "Lamentablemente, no aceptamos pedidos del país que has seleccionado.", + "address_name_exists": "Ya existe otra dirección con el mismo nombre. Por favor, elija un nombre único." + }, "address-name": { "label": "Nombre de la dirección", "placeholder": "Requerido", @@ -140,8 +144,14 @@ "cancel": "Cancelar", "delete_prompt": "¿Está seguro de que desea eliminar esta dirección? " }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Crear" + "caption": "Crear" }, "spinner": { "refresh": "Actualizar", @@ -804,6 +814,10 @@ "dialog_header_add": "Añadir método de pago", "dialog_header_update": "Actualizar método de pago", "update-payment-method-form": { + "header": { + "title_existing": "Actualizar tarjeta", + "subtitle": "Ingrese los detalles de la tarjeta a continuación y haga clic en Guardar tarjeta" + }, "status": { "cc_token_success": "Los datos de la tarjeta se guardaron correctamente.", "close": "Cerca" @@ -980,6 +994,30 @@ } }, "subscription-form": { + "header": { + "title_new": "Suscripción", + "title_existing": "Suscripción", + "title_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", + "title_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", + "subtitle_active": "Incluye envío, impuestos, etc. Próximo pago el {{date, date}}.", + "subtitle_cancelled": "Incluye envío, impuestos, etc. Terminó el {{date, date}}.", + "subtitle_failed": "Incluye envío, impuestos, etc. El pago falló el {{date, date}}.", + "subtitle_inactive": "Incluye envío, impuestos, etc. Inactivo.", + "subtitle_will_be_cancelled": "Incluye envío, impuestos, etc. Termina el {{date, date}}.", + "subtitle_will_be_active": "Incluye envío, impuestos, etc. Comienza el {{date, date}}.", + "copy-id": { + "failed_to_copy": "Error al copiar", + "click_to_copy": "Copiar ID", + "copying": "Copiando...", + "done": "Copiado al portapapeles" + }, + "copy-json": { + "failed_to_copy": "Error al copiar", + "click_to_copy": "Copiar fuente como JSON", + "copying": "Copiando...", + "done": "Copiado al portapapeles" + } + }, "day": "Día", "day_plural": "Días", "week": "Semana", @@ -1003,12 +1041,6 @@ "next_transaction_date": "Fecha de la próxima transacción", "price_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", "price_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", - "subscription_active": "Incluye envío, impuestos, etc. Próximo pago el {{date, date}}.", - "subscription_cancelled": "Incluye envío, impuestos, etc. Finalizado el {{date, date}}.", - "subscription_failed": "Incluye envío, impuestos, etc. El pago falló el {{date, date}}.", - "subscription_inactive": "Incluye envío, impuestos, etc. Inactivo.", - "subscription_will_be_cancelled": "Incluye envío, impuestos, etc. Finaliza el {{date, date}}.", - "subscription_will_be_active": "Incluye envío, impuestos, etc. Comienza el {{date, date}}.", "transaction_plural": "Actas", "twice_a_month": "Dos veces al mes", "update_billing": "Actualizar facturación", @@ -1160,8 +1192,14 @@ "text": "Al crear una cuenta, acepta nuestros Términos de servicio.", "link": "Haga clic aquí para abrirlos en una nueva pestaña." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Crear una cuenta" + "caption": "Crear una cuenta" }, "spinner": { "refresh": "Actualizar", @@ -1169,4 +1207,4 @@ "loading_error": "Error desconocido" } } -} +} \ No newline at end of file diff --git a/src/static/translations/customer-portal/fr.json b/src/static/translations/customer-portal/fr.json index 393c54f08..7dd21ea27 100644 --- a/src/static/translations/customer-portal/fr.json +++ b/src/static/translations/customer-portal/fr.json @@ -63,6 +63,10 @@ } }, "address-form": { + "error": { + "country_banned": "Malheureusement, nous n'acceptons pas les commandes du pays que vous avez sélectionné.", + "address_name_exists": "Une autre adresse avec le même nom existe déjà. Veuillez choisir un nom unique." + }, "address-name": { "label": "Nom de l'adresse", "placeholder": "Requis", @@ -140,8 +144,14 @@ "cancel": "Annuler", "delete_prompt": "Êtes-vous sûr de vouloir supprimer cette adresse ? " }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Créer" + "caption": "Créer" }, "spinner": { "refresh": "Rafraîchir", @@ -804,6 +814,10 @@ "dialog_header_add": "Ajouter un mode de paiement", "dialog_header_update": "Mettre à jour le mode de paiement", "update-payment-method-form": { + "header": { + "title_existing": "Mettre à jour la carte", + "subtitle": "Entrez les détails de la carte ci-dessous et cliquez sur Enregistrer la carte" + }, "status": { "cc_token_success": "Les détails de la carte ont été enregistrés avec succès.", "close": "Fermer" @@ -981,6 +995,30 @@ } }, "subscription-form": { + "header": { + "title_new": "Abonnement", + "title_existing": "Abonnement", + "title_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", + "title_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", + "subtitle_active": "Incluant les frais d'expédition, les taxes, etc. Prochain paiement le {{date, date}}.", + "subtitle_cancelled": "Incluant les frais d'expédition, les taxes, etc. Terminé le {{date, date}}.", + "subtitle_failed": "Incluant les frais d'expédition, les taxes, etc. Le paiement a échoué le {{date, date}}.", + "subtitle_inactive": "Incluant les frais d'expédition, les taxes, etc. Inactif.", + "subtitle_will_be_cancelled": "Incluant les frais d'expédition, les taxes, etc. Se termine le {{date, date}}.", + "subtitle_will_be_active": "Incluant les frais d'expédition, les taxes, etc. Commence le {{date, date}}.", + "copy-id": { + "failed_to_copy": "Échec de la copie", + "click_to_copy": "Copier l'ID", + "copying": "Copie en cours...", + "done": "Copié dans le presse-papiers" + }, + "copy-json": { + "failed_to_copy": "Échec de la copie", + "click_to_copy": "Copier la source en JSON", + "copying": "Copie en cours...", + "done": "Copié dans le presse-papiers" + } + }, "day": "Jour", "day_plural": "Jours", "week": "Semaine", @@ -1004,12 +1042,6 @@ "next_transaction_date": "Date de la prochaine transaction", "price_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", "price_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", - "subscription_active": "Y compris les frais d'expédition, les taxes, etc. Prochain paiement le {{date, date}}.", - "subscription_cancelled": "Y compris les frais d'expédition, les taxes, etc. Terminé le {{date, date}}.", - "subscription_failed": "Y compris les frais d'expédition, les taxes, etc. Le paiement a échoué le {{date, date}}.", - "subscription_inactive": "Y compris les frais d'expédition, les taxes, etc. Inactif.", - "subscription_will_be_cancelled": "Y compris les frais d'expédition, les taxes, etc. Se termine le {{date, date}}.", - "subscription_will_be_active": "Y compris les frais d'expédition, les taxes, etc. À partir du {{date, date}}.", "transaction_plural": "Transactions", "twice_a_month": "Deux fois par mois", "update_billing": "Mettre à jour la facturation", @@ -1161,8 +1193,14 @@ "text": "En créant un compte, vous acceptez nos conditions d'utilisation.", "link": "Cliquez ici pour les ouvrir dans un nouvel onglet." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Créer un compte" + "caption": "Créer un compte" }, "spinner": { "refresh": "Rafraîchir", @@ -1170,4 +1208,4 @@ "loading_error": "Erreur inconnue" } } -} +} \ No newline at end of file diff --git a/src/static/translations/customer-portal/nl.json b/src/static/translations/customer-portal/nl.json index 9bfd55781..739ed0f92 100644 --- a/src/static/translations/customer-portal/nl.json +++ b/src/static/translations/customer-portal/nl.json @@ -63,6 +63,10 @@ } }, "address-form": { + "error": { + "country_banned": "Helaas accepteren we geen bestellingen uit het geselecteerde land.", + "address_name_exists": "Er bestaat al een ander adres met dezelfde naam. Kies alstublieft een unieke naam." + }, "address-name": { "label": "Adres naam", "placeholder": "Vereist", @@ -140,8 +144,14 @@ "cancel": "Annuleren", "delete_prompt": "Weet u zeker dat u dit adres wilt verwijderen? " }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Creëren" + "caption": "Creëren" }, "spinner": { "refresh": "Vernieuwen", @@ -804,6 +814,10 @@ "dialog_header_add": "Betaalmethode toevoegen", "dialog_header_update": "Betaalmethode bijwerken", "update-payment-method-form": { + "header": { + "title_existing": "Kaart bijwerken", + "subtitle": "Voer hieronder de kaartgegevens in en klik op Kaart opslaan" + }, "status": { "cc_token_success": "Kaartgegevens zijn succesvol opgeslagen.", "close": "Dichtbij" @@ -981,6 +995,30 @@ } }, "subscription-form": { + "header": { + "title_new": "Abonnement", + "title_existing": "Abonnement", + "title_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", + "title_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", + "subtitle_active": "Inclusief verzendkosten, belastingen etc. Volgende betaling op {{date, date}}.", + "subtitle_cancelled": "Inclusief verzendkosten, belastingen, etc. Beëindigd op {{date, date}}.", + "subtitle_failed": "Inclusief verzendkosten, belastingen etc. Betaling mislukt op {{date, date}}.", + "subtitle_inactive": "Inclusief verzendkosten, belastingen etc. Inactief.", + "subtitle_will_be_cancelled": "Inclusief verzendkosten, belastingen etc. Eindigt op {{date, date}}.", + "subtitle_will_be_active": "Inclusief verzendkosten, belastingen etc. Begint op {{date, date}}.", + "copy-id": { + "failed_to_copy": "Kopiëren mislukt", + "click_to_copy": "ID kopiëren", + "copying": "Kopiëren...", + "done": "Gekopieerd naar klembord" + }, + "copy-json": { + "failed_to_copy": "Kopiëren mislukt", + "click_to_copy": "Bron kopiëren als JSON", + "copying": "Kopiëren...", + "done": "Gekopieerd naar klembord" + } + }, "day": "Dag", "day_plural": "Dagen", "week": "Week", @@ -1004,12 +1042,6 @@ "next_transaction_date": "Volgende transactiedatum", "price_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", "price_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", - "subscription_active": "Inclusief verzendkosten, belastingen etc. Volgende betaling op {{date, date}}.", - "subscription_cancelled": "Inclusief verzendkosten, belastingen, etc. Beëindigd op {{date, date}}.", - "subscription_failed": "Inclusief verzendkosten, belastingen etc. Betaling mislukt {{date, date}}.", - "subscription_inactive": "Inclusief verzendkosten, belastingen etc. Inactief.", - "subscription_will_be_cancelled": "Inclusief verzendkosten, belastingen etc. Eindigt op {{date, date}}.", - "subscription_will_be_active": "Inclusief verzendkosten, belastingen etc. Begint op {{date, date}}.", "transaction_plural": "Transacties", "twice_a_month": "Twee keer per maand", "update_billing": "Facturering bijwerken", @@ -1161,8 +1193,14 @@ "text": "Door een account aan te maken, gaat u akkoord met onze Servicevoorwaarden.", "link": "Klik hier om ze in een nieuw tabblad te openen." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Account aanmaken" + "caption": "Account aanmaken" }, "spinner": { "refresh": "Vernieuwen", @@ -1170,4 +1208,4 @@ "loading_error": "Onbekende fout" } } -} +} \ No newline at end of file diff --git a/src/static/translations/customer-portal/pl.json b/src/static/translations/customer-portal/pl.json index aaf683980..9bfe19678 100644 --- a/src/static/translations/customer-portal/pl.json +++ b/src/static/translations/customer-portal/pl.json @@ -63,6 +63,10 @@ } }, "address-form": { + "error": { + "country_banned": "Niestety, nie akceptujemy zamówień z wybranego kraju.", + "address_name_exists": "Inny adres o takiej samej nazwie już istnieje. Proszę wybrać unikalną nazwę." + }, "address-name": { "label": "Adres", "placeholder": "Wymagany", @@ -140,8 +144,14 @@ "cancel": "Anulować", "delete_prompt": "Czy na pewno chcesz usunąć ten adres? " }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Tworzyć" + "caption": "Tworzyć" }, "spinner": { "refresh": "Odświeżać", @@ -804,6 +814,10 @@ "dialog_header_add": "Dodaj metodę płatności", "dialog_header_update": "Zaktualizuj metodę płatności", "update-payment-method-form": { + "header": { + "title_existing": "Aktualizuj kartę", + "subtitle": "Wprowadź dane karty poniżej i kliknij Zapisz kartę" + }, "status": { "cc_token_success": "Dane karty zostały zapisane pomyślnie.", "close": "Zamknąć" @@ -981,6 +995,30 @@ } }, "subscription-form": { + "header": { + "title_new": "Subskrypcja", + "title_existing": "Subskrypcja", + "title_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", + "title_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", + "subtitle_active": "Obejmuje wysyłkę, podatki itp. Następna płatność w dniu {{date, date}}.", + "subtitle_cancelled": "Obejmuje wysyłkę, podatki itp. Zakończono dnia {{date, date}}.", + "subtitle_failed": "Obejmuje wysyłkę, podatki itp. Płatność nie powiodła się {{date, date}}.", + "subtitle_inactive": "Łącznie z przesyłką, podatkami itp. Nieaktywne.", + "subtitle_will_be_cancelled": "Łącznie z przesyłką, podatkami itp. Kończy się dnia {{date, date}}.", + "subtitle_will_be_active": "Obejmuje wysyłkę, podatki itp. Rozpoczyna się w dniu {{date, date}}.", + "copy-id": { + "failed_to_copy": "Nie udało się skopiować", + "click_to_copy": "Skopiuj ID", + "copying": "Kopiowanie...", + "done": "Skopiowano do schowka" + }, + "copy-json": { + "failed_to_copy": "Nie udało się skopiować", + "click_to_copy": "Skopiuj źródło jako JSON", + "copying": "Kopiowanie...", + "done": "Skopiowano do schowka" + } + }, "day": "Dzień", "day_plural": "Dni", "week": "Tydzień", @@ -1004,12 +1042,6 @@ "next_transaction_date": "Data następnej transakcji", "price_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", "price_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", - "subscription_active": "Obejmuje wysyłkę, podatki itp. Następna płatność w dniu {{date, date}}.", - "subscription_cancelled": "Obejmuje wysyłkę, podatki itp. Zakończono dnia {{date, date}}.", - "subscription_failed": "Obejmuje wysyłkę, podatki itp. Płatność nie powiodła się {{date, date}}.", - "subscription_inactive": "Łącznie z przesyłką, podatkami itp. Nieaktywne.", - "subscription_will_be_cancelled": "Łącznie z przesyłką, podatkami itp. Kończy się dnia {{date, date}}.", - "subscription_will_be_active": "Obejmuje wysyłkę, podatki itp. Rozpoczyna się w dniu {{date, date}}.", "transaction_plural": "Transakcje", "twice_a_month": "Dwa razy w miesiącu", "update_billing": "Zaktualizuj rozliczenia", @@ -1161,8 +1193,14 @@ "text": "Tworząc konto, wyrażasz zgodę na nasze Warunki świadczenia usług.", "link": "Kliknij tutaj, aby otworzyć je w nowej karcie." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Utwórz konto" + "caption": "Utwórz konto" }, "spinner": { "refresh": "Odświeżać", @@ -1170,4 +1208,4 @@ "loading_error": "Nieznany błąd" } } -} +} \ No newline at end of file diff --git a/src/static/translations/customer-portal/sv.json b/src/static/translations/customer-portal/sv.json index 4c3fa8c5b..9838c6eda 100644 --- a/src/static/translations/customer-portal/sv.json +++ b/src/static/translations/customer-portal/sv.json @@ -63,6 +63,10 @@ } }, "address-form": { + "error": { + "country_banned": "Tyvärr accepterar vi inte beställningar från det land du har valt.", + "address_name_exists": "Ett annat adress med samma namn finns redan. Vänligen välj ett unikt namn." + }, "address-name": { "label": "Adressnamn", "placeholder": "Nödvändig", @@ -140,8 +144,14 @@ "cancel": "Annullera", "delete_prompt": "Är du säker på att du vill ta bort den här adressen? " }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Skapa" + "caption": "Skapa" }, "spinner": { "refresh": "Uppdatera", @@ -804,6 +814,10 @@ "dialog_header_add": "Lägg till betalningsmetod", "dialog_header_update": "Uppdatera betalningsmetod", "update-payment-method-form": { + "header": { + "title_existing": "Uppdatera kort", + "subtitle": "Ange kortuppgifter nedan och klicka på Spara kort" + }, "status": { "cc_token_success": "Kortinformationen har sparats.", "close": "Stänga" @@ -981,6 +995,30 @@ } }, "subscription-form": { + "header": { + "title_new": "Prenumeration", + "title_existing": "Prenumeration", + "title_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", + "title_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", + "subtitle_active": "Inklusive frakt, skatter etc. Nästa betalning på {{date, date}}.", + "subtitle_cancelled": "Inklusive frakt, skatter etc. Slutade den {{date, date}}.", + "subtitle_failed": "Inklusive frakt, skatter etc. Betalning misslyckades den {{date, date}}.", + "subtitle_inactive": "Inklusive frakt, skatter etc. Inaktiv.", + "subtitle_will_be_cancelled": "Inklusive frakt, skatter etc. Slutar på {{date, date}}.", + "subtitle_will_be_active": "Inklusive frakt, skatter etc. Börjar på {{date, date}}.", + "copy-id": { + "failed_to_copy": "Misslyckades att kopiera", + "click_to_copy": "Kopiera ID", + "copying": "Kopierar...", + "done": "Kopierad till urklipp" + }, + "copy-json": { + "failed_to_copy": "Misslyckades att kopiera", + "click_to_copy": "Kopiera källa som JSON", + "copying": "Kopierar...", + "done": "Kopierad till urklipp" + } + }, "day": "Dag", "day_plural": "dagar", "week": "Vecka", @@ -1004,12 +1042,6 @@ "next_transaction_date": "Nästa transaktionsdatum", "price_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", "price_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", - "subscription_active": "Inklusive frakt, skatter etc. Nästa betalning på {{date, date}}.", - "subscription_cancelled": "Inklusive frakt, skatter etc. Slutade den {{date, date}}.", - "subscription_failed": "Inklusive frakt, skatter etc. Betalning misslyckades den {{date, date}}.", - "subscription_inactive": "Inklusive frakt, skatter etc. Inaktiv.", - "subscription_will_be_cancelled": "Inklusive frakt, skatter etc. Slutar på {{date, date}}.", - "subscription_will_be_active": "Inklusive frakt, skatter etc. Börjar på {{date, date}}.", "transaction_plural": "Transaktioner", "twice_a_month": "Två gånger i månaden", "update_billing": "Uppdatera fakturering", @@ -1161,8 +1193,14 @@ "text": "Genom att skapa ett konto godkänner du våra användarvillkor.", "link": "Klicka här för att öppna dem på en ny flik." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Skapa konto" + "caption": "Skapa konto" }, "spinner": { "refresh": "Uppdatera", @@ -1170,4 +1208,4 @@ "loading_error": "Okänt fel" } } -} +} \ No newline at end of file diff --git a/src/static/translations/customer-portal/zh-hk.json b/src/static/translations/customer-portal/zh-hk.json index 0b1473108..105bef025 100644 --- a/src/static/translations/customer-portal/zh-hk.json +++ b/src/static/translations/customer-portal/zh-hk.json @@ -63,6 +63,10 @@ } }, "address-form": { + "error": { + "country_banned": "很抱歉,我们不接受来自您选择的国家的订单。", + "address_name_exists": "已存在具有相同名称的其他地址。请选择一个唯一的名称。" + }, "address-name": { "label": "地址名称", "placeholder": "必需的", @@ -140,8 +144,14 @@ "cancel": "取消", "delete_prompt": "您确定要删除该地址吗?" }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "创造" + "caption": "创造" }, "spinner": { "refresh": "刷新", @@ -804,6 +814,10 @@ "dialog_header_add": "添加付款方式", "dialog_header_update": "更新付款方式", "update-payment-method-form": { + "header": { + "title_existing": "更新信用卡", + "subtitle": "在下方输入信用卡详细信息,然后点击保存信用卡" + }, "status": { "cc_token_success": "卡详细信息已成功保存。", "close": "关闭" @@ -981,6 +995,30 @@ } }, "subscription-form": { + "header": { + "title_new": "訂閱", + "title_existing": "訂閱", + "title_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", + "title_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", + "subtitle_active": "包括運費、稅金等。下次付款日期 {{date, date}}。", + "subtitle_cancelled": "包括運費、稅金等。結束於 {{date, date}}。", + "subtitle_failed": "包括運費、稅金等。付款失敗於 {{date, date}}。", + "subtitle_inactive": "包括運費、稅金等。不活躍。", + "subtitle_will_be_cancelled": "包括運費、稅金等。結束於 {{date, date}}。", + "subtitle_will_be_active": "包括運費、稅金等。開始於 {{date, date}}。", + "copy-id": { + "failed_to_copy": "複製失敗", + "click_to_copy": "複製 ID", + "copying": "複製中...", + "done": "已複製到剪貼板" + }, + "copy-json": { + "failed_to_copy": "複製失敗", + "click_to_copy": "複製原始碼為 JSON", + "copying": "複製中...", + "done": "已複製到剪貼板" + } + }, "day": "天", "day_plural": "天", "week": "星期", @@ -1004,12 +1042,6 @@ "next_transaction_date": "下次交易日期", "price_recurring": "{{amount, price}} $t(customer.subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer-portal\" })", "price_twice_a_month": "{{amount, price}} $t(customer.subscription-form.twice_a_month, { \"ns\": \"customer-portal\" })", - "subscription_active": "包括运费、税费等。下次付款 {{date, date}}。", - "subscription_cancelled": "包括运费、税金等。结束于 {{date, date}}。", - "subscription_failed": "包括运费、税费等。付款失败于 {{date, date}}。", - "subscription_inactive": "包括运费、税金等。不活跃。", - "subscription_will_be_cancelled": "包括运费、税费等。结束于 {{date, date}}。", - "subscription_will_be_active": "包括运费、税费等。开始于 {{date, date}}。", "transaction_plural": "交易", "twice_a_month": "每月两次", "update_billing": "更新帐单", @@ -1161,8 +1193,14 @@ "text": "创建帐户即表示您同意我们的服务条款。", "link": "单击此处在新选项卡中打开它们。" }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "创建账户" + "caption": "创建账户" }, "spinner": { "refresh": "刷新", @@ -1170,4 +1208,4 @@ "loading_error": "未知错误" } } -} +} \ No newline at end of file diff --git a/src/static/translations/customer/en.json b/src/static/translations/customer/en.json index 197c68ba5..f2476ead7 100644 --- a/src/static/translations/customer/en.json +++ b/src/static/translations/customer/en.json @@ -3,7 +3,7 @@ "attribute_plural": "Attributes", "cancel": "Cancel", "close": "Close", - "create": "Create", + "caption": "Create", "customer": "Customer", "delete_prompt": "This resource will be permanently removed. Are you sure?", "payment_method_plural": "Payment methods", @@ -27,6 +27,29 @@ } }, "address-form": { + "header": { + "title_existing": "Customer address #{{ id }}", + "title_new": "New customer address", + "subtitle_default_shipping": "Default shipping address", + "subtitle_default_billing": "Default billing address", + "subtitle_custom": "Custom address", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, + "error": { + "country_banned": "Store settings prohibit addresses in this country. Please adjust your store settings or use the Ignore address restrictions option.", + "address_name_exists": "Another address with the same name already exists. Please choose a unique name." + }, "address-name": { "label": "Address name", "placeholder": "Required", @@ -94,6 +117,11 @@ "helper_text": "", "v8n_too_long": "Unfortunately we can't store region names longer than 50 characters" }, + "ignore-address-restrictions": { + "label": "Advanced", + "option_true": "Ignore address restrictions", + "helper_text": "By default, the country value must be valid according to the store's location filtering settings. Checking this box will remove this restriction." + }, "timestamps": { "date": "{{value, date}}", "date_created": "Created on", @@ -104,8 +132,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this address? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -698,6 +732,25 @@ } }, "attribute-form": { + "header": { + "title_existing": "Customer attribute #{{ id }}", + "title_new": "New customer attribute", + "subtitle_private": "Visible only to you", + "subtitle_restricted": "Visible to store admins", + "subtitle_public": "Visible to everyone", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "placeholder": "Required", @@ -729,8 +782,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -739,6 +798,25 @@ } }, "customer-form": { + "header": { + "title_existing": "{{ first_name }} {{ last_name }}", + "title_no_name": "No name", + "title_new": "New customer", + "subtitle_anonymous": "Guest customer #{{ id }}", + "subtitle_registered": "Customer #{{ id }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "status": { "password_change_success": "You have successfully set a new password for {{ email }}.", "close": "Close" @@ -812,8 +890,14 @@ "cancel": "Cancel", "delete_prompt": "This action is irreversible. Are you sure you want to delete this customer?" }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -835,6 +919,10 @@ "dialog_header_add": "Add payment method", "dialog_header_update": "Update payment method", "update-payment-method-form": { + "header": { + "title_existing": "Update card", + "subtitle": "Enter card details below and click Save card" + }, "status": { "cc_token_success": "Card details saved successfully.", "close": "Close" @@ -987,6 +1075,30 @@ "loading_error": "Unknown error" }, "subscription-form": { + "header": { + "title_new": "Subscription", + "title_existing": "Subscription", + "title_recurring": "{{amount, price}} $t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"subscription-form\" })", + "title_twice_a_month": "{{amount, price}} $t(twice_a_month, { \"ns\": \"subscription-form\" })", + "subtitle_active": "Including shipping, taxes, etc. Next payment on {{date, date}}.", + "subtitle_cancelled": "Including shipping, taxes, etc. Ended on {{date, date}}.", + "subtitle_failed": "Including shipping, taxes, etc. Payment failed on {{date, date}}.", + "subtitle_inactive": "Including shipping, taxes, etc. Inactive.", + "subtitle_will_be_cancelled": "Including shipping, taxes, etc. Ends on {{date, date}}.", + "subtitle_will_be_active": "Including shipping, taxes, etc. Starts on {{date, date}}.", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "day": "Day", "day_plural": "Days", "week": "Week", @@ -1011,12 +1123,6 @@ "start_date": "Start date", "price_recurring": "{{amount, price}} $t(subscription-form.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer\" })", "price_twice_a_month": "{{amount, price}} $t(subscription-form.twice_a_month, { \"ns\": \"customer\" })", - "subscription_active": "Including shipping, taxes, etc. Next payment on {{date, date}}.", - "subscription_cancelled": "Including shipping, taxes, etc. Ended on {{date, date}}.", - "subscription_failed": "Including shipping, taxes, etc. Payment failed on {{date, date}}.", - "subscription_inactive": "Including shipping, taxes, etc. Inactive.", - "subscription_will_be_cancelled": "Including shipping, taxes, etc. Ends on {{date, date}}.", - "subscription_will_be_active": "Including shipping, taxes, etc. Starts on {{date, date}}.", "transaction_plural": "Transactions", "twice_a_month": "Twice a month", "undo_cancel": "Review", @@ -1072,7 +1178,7 @@ "undo_confirm": "Discard", "cancel": "Cancel", "confirm": "Confirm", - "create": "Create", + "caption": "Create", "date": "{{value, date}}", "date_created": "Created on", "date_modified": "Last updated on", @@ -1103,11 +1209,11 @@ "card": { "daily": "Daily", "daily_plural": "Every {{count}} days", - "frequency": "$t(subscription-form.pagination.card.{{units}}, { \"count\": {{count}}, \"ns\": \"customer\" })", + "frequency": "$t(items.pagination.card.{{units}}, { \"count\": {{count}}, \"ns\": \"subscription-form\" })", "monthly": "Monthly", "monthly_plural": "Every {{count}} months", - "subinfo_recurring": "$t(subscription-form.pagination.card.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"customer\" }) from {{startDate, date}}", - "subinfo_twice_a_month": "$t(subscription-form.pagination.card.twice_a_month, { \"ns\": \"customer\" }) from {{startDate, date}}", + "subinfo_recurring": "$t(items.pagination.card.frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"subscription-form\" }) from {{startDate, date}}", + "subinfo_twice_a_month": "$t(items.pagination.card.twice_a_month, { \"ns\": \"subscription-form\" }) from {{startDate, date}}", "twice_a_month": "Twice a month", "no_code": "No SKU", "weekly": "Weekly", @@ -1228,4 +1334,4 @@ "loading_error": "Unknown error" } } -} +} \ No newline at end of file diff --git a/src/static/translations/downloadable-form/en.json b/src/static/translations/downloadable-form/en.json index 35ba4cd2f..1ab2e5fd5 100644 --- a/src/static/translations/downloadable-form/en.json +++ b/src/static/translations/downloadable-form/en.json @@ -1,4 +1,21 @@ { + "header": { + "title_existing": "Downloadable #{{ id }}", + "title_new": "New downloadable", + "subtitle": "Uploaded on {{ upload_date, date }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "item-category-uri": { "label": "Item category", "placeholder": "", @@ -55,12 +72,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this downloadable? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/email-template-form/en.json b/src/static/translations/email-template-form/en.json index 75ec1af06..b16c94baa 100644 --- a/src/static/translations/email-template-form/en.json +++ b/src/static/translations/email-template-form/en.json @@ -2,7 +2,7 @@ "cache": "Sync", "cancel": "Cancel", "confirm": "Confirm", - "create": "Create", + "caption": "Create", "date": "{{value, date}}", "date_created": "Created on", "date_modified": "Last updated on", @@ -35,4 +35,4 @@ "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/filter-attribute-form/en.json b/src/static/translations/filter-attribute-form/en.json index 7b065d8ec..f9f3b2548 100644 --- a/src/static/translations/filter-attribute-form/en.json +++ b/src/static/translations/filter-attribute-form/en.json @@ -37,7 +37,7 @@ "helper_text": "" }, "action": { - "create": "Pin to sidebar", + "caption": "Pin to sidebar", "update": "Save changes", "delete": "Unpin", "reset": "Reset" @@ -47,4 +47,4 @@ "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/generate-codes-form/en.json b/src/static/translations/generate-codes-form/en.json index 131d0d9bd..b8c1d5982 100644 --- a/src/static/translations/generate-codes-form/en.json +++ b/src/static/translations/generate-codes-form/en.json @@ -30,12 +30,18 @@ "placeholder": "", "helper_text": "This is what the generated codes will look like." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Generate" + "caption": "Generate" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/gift-card-code-form/en.json b/src/static/translations/gift-card-code-form/en.json index d0b41e42c..a11fb1bd4 100644 --- a/src/static/translations/gift-card-code-form/en.json +++ b/src/static/translations/gift-card-code-form/en.json @@ -1,4 +1,21 @@ { + "header": { + "title_existing": "Gift card code #{{ id }}", + "title_new": "New gift card code", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "code": { "label": "Code", "placeholder": "Required", @@ -161,12 +178,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this gift card code? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/gift-card-codes-form/en.json b/src/static/translations/gift-card-codes-form/en.json index f693259bb..39675a9c7 100644 --- a/src/static/translations/gift-card-codes-form/en.json +++ b/src/static/translations/gift-card-codes-form/en.json @@ -14,12 +14,18 @@ "placeholder": "0", "helper_text": "All imported codes will have this balance." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Import" + "caption": "Import" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/gift-card-form/en.json b/src/static/translations/gift-card-form/en.json index dcbcba20b..8b10140d3 100644 --- a/src/static/translations/gift-card-form/en.json +++ b/src/static/translations/gift-card-form/en.json @@ -1,8 +1,20 @@ { "header": { - "title_existing": "ID {{ id }}", + "title_existing": "{{ name }}", "title_new": "New gift card", - "subtitle": "{{ name }}, {{ currency_code }}" + "subtitle": "Gift card #{{ id }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } }, "import": { "button_text": "Import codes", @@ -31,8 +43,14 @@ "placeholder": "0", "helper_text": "All imported codes will have this balance." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Import" + "caption": "Import" }, "spinner": { "refresh": "Refresh", @@ -85,8 +103,14 @@ "placeholder": "", "helper_text": "This is what the generated codes will look like." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Generate" + "caption": "Generate" }, "spinner": { "refresh": "Refresh", @@ -335,6 +359,23 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "gift-card-code-form": { + "header": { + "title_existing": "Gift card code #{{ id }}", + "title_new": "New gift card code", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "code": { "label": "Code", "placeholder": "Required", @@ -497,8 +538,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this gift card code? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -612,6 +659,25 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "attribute-form": { + "header": { + "title_existing": "Gift card attribute #{{ id }}", + "title_new": "New gift card attribute", + "subtitle_private": "Visible only to you", + "subtitle_restricted": "Visible to store admins", + "subtitle_public": "Visible to everyone", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "placeholder": "Required", @@ -643,8 +709,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -680,12 +752,18 @@ "cancel": "Cancel", "delete_prompt": "This action is irreversible. Are you sure you want to delete this gift card?" }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/integration-form/en.json b/src/static/translations/integration-form/en.json index 8cec33070..e244d05de 100644 --- a/src/static/translations/integration-form/en.json +++ b/src/static/translations/integration-form/en.json @@ -1,6 +1,14 @@ { "header": { - "no_description": "No description" + "title_existing": "{{ project_name }}", + "title_new": "New test client", + "subtitle": "{{ project_description }}", + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } }, "message": { "text": "Please copy the highlighted values below to a safe place and treat them like your password. We will not show them again for security reasons.", @@ -29,12 +37,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this token? All applications using this token will lose access to Foxy API immediately." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/item-category-form/en.json b/src/static/translations/item-category-form/en.json index 37708d489..813f1ae74 100644 --- a/src/static/translations/item-category-form/en.json +++ b/src/static/translations/item-category-form/en.json @@ -1,4 +1,21 @@ { + "header": { + "title_existing": "Item category #{{ id }}", + "title_new": "New item category", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "placeholder": "Books", @@ -14,26 +31,28 @@ "v8n_too_long": "Item categoty code can't exceed 50 characters" }, "taxes": { - "title": "Taxes", - "helper_text": "Select taxes that will apply to the products in this category. Changes here are saved immediately.", + "label": "Taxes", + "status_saving": "Saving...", + "status_loading": "Loading...", "pagination": { "first": "First", "last": "Last", "next": "Next", "pagination": "{{from}}-{{to}} out of {{total}}", "previous": "Previous", - "tax-card": { + "card": { "percent": "{{fraction, percent}}", "tax_global": "Global tax", "tax_rate_provider_default": "Default (Thomson Reuters; others)", "tax_union": "European Union tax", "spinner": { "loading_busy": "Loading", - "loading_empty": "No data", + "loading_empty": "Add a tax in settings to apply it here", "loading_error": "Unknown error" } } - } + }, + "helper_text": "Select taxes that will apply to the products in this category. Changes here are saved immediately." }, "item-delivery-type": { "label": "Delivery", @@ -186,12 +205,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this item category? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/item-form/en.json b/src/static/translations/item-form/en.json index 954dd3402..1be43a783 100644 --- a/src/static/translations/item-form/en.json +++ b/src/static/translations/item-form/en.json @@ -1,4 +1,22 @@ { + "header": { + "title_existing": "Item #{{ id }}", + "title_new": "New item", + "subtitle_future_line_item": "This item is part of a future subscription", + "subtitle_regular": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "dimensions": "Dimensions", "subscriptions": "Subscriptions", "discount": "Discount", @@ -91,7 +109,7 @@ }, "shipto": { "label": "Shipping address", - "helper_text": "Used for multiship to assign this item to a specific shipment.", + "helper_text": "Used for multiship to assign this item to a specific shipment. This value will be the address name of the shipment.", "placeholder": "Select address to ship this item to..." }, "width": { @@ -116,8 +134,40 @@ }, "item-category-uri": { "label": "Item category", - "helper_text": "Item category associated with this item.", - "placeholder": "Select item category..." + "dialog": { + "cancel": "Cancel", + "close": "Close", + "header": "Select an item category", + "selection": { + "label": "Item categories", + "helper_text": "Select an item category to use with this item.", + "search": "Search", + "clear": "Clear", + "pagination": { + "search_button_text": "Search", + "first": "First", + "last": "Last", + "next": "Next", + "pagination": "{{from}}-{{to}} out of {{total}}", + "previous": "Previous", + "card": { + "spinner": { + "loading_busy": "Loading", + "loading_empty": "No item categories found", + "loading_error": "Unknown error" + } + } + } + } + }, + "card": { + "spinner": { + "loading_busy": "Loading", + "loading_empty": "Not assigned – click to select", + "loading_error": "Unknown error" + } + }, + "helper_text": "Item category associated with this item." }, "code": { "label": "Code", @@ -180,6 +230,25 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "attribute-form": { + "header": { + "title_existing": "Item attribute #{{ id }}", + "title_new": "New item attribute", + "subtitle_private": "Visible only to you", + "subtitle_restricted": "Visible to store admins", + "subtitle_public": "Visible to everyone", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "placeholder": "Required", @@ -211,8 +280,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -255,6 +330,23 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "item-option-form": { + "header": { + "title_existing": "Item option #{{ id }}", + "title_new": "New item option", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "helper_text": "", @@ -294,8 +386,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this item option? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" } } }, @@ -326,12 +424,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this item? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/item-option-form/en.json b/src/static/translations/item-option-form/en.json index 6a5490f22..2db6ae4f3 100644 --- a/src/static/translations/item-option-form/en.json +++ b/src/static/translations/item-option-form/en.json @@ -1,4 +1,21 @@ { + "header": { + "title_existing": "Item option #{{ id }}", + "title_new": "New item option", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "helper_text": "", @@ -38,7 +55,13 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this item option? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" } -} +} \ No newline at end of file diff --git a/src/static/translations/native-integration-form/en.json b/src/static/translations/native-integration-form/en.json index 80a4aab21..18c11d740 100644 --- a/src/static/translations/native-integration-form/en.json +++ b/src/static/translations/native-integration-form/en.json @@ -1,4 +1,28 @@ { + "header": { + "title_existing_avalara": "Avalara", + "title_existing_taxjar": "TaxJar", + "title_existing_onesource": "ONESOURCE", + "title_existing_webflow": "Webflow", + "title_existing_zapier": "Zapier webhook #{{ id }}", + "title_existing_webhook": "Legacy webhook #{{ id }}", + "title_existing_apple_pay": "Apple Pay", + "title_existing_custom_tax": "Custom tax endpoint #{{ id }}", + "title_new": "New native integration", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "error": { "already_configured": "This integration is already configured. Please edit the existing integration instead." }, @@ -269,12 +293,18 @@ "cancel": "Cancel", "delete_prompt": "Please confirm that you want to delete this integration. This action cannot be undone." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/passkey-form/en.json b/src/static/translations/passkey-form/en.json index b82156537..8cc638307 100644 --- a/src/static/translations/passkey-form/en.json +++ b/src/static/translations/passkey-form/en.json @@ -1,14 +1,26 @@ { + "header": { + "title_existing": "Passkey #{{ id }}", + "title_new": "", + "subtitle": "Last used on {{ last_login_date, date }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "credential-id": { "label": "Credential ID", "placeholder": "", "helper_text": "Unique identifier of your passkey. You might be able to find this passkey by Credential ID in your password manager." }, - "last-login-date": { - "label": "Last login date", - "placeholder": "", - "helper_text": "The last time this passkey was used to sign in to your Foxy Account." - }, "last-login-ua": { "label": "Last browser", "placeholder": "", @@ -24,12 +36,18 @@ "cancel": "Cancel", "delete_prompt": "Once deleted, this passkey will no longer be accepted on login but will remain in your password manager. Sessions created with this passkey will stay active." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/payments-api-fraud-protection-form/en.json b/src/static/translations/payments-api-fraud-protection-form/en.json index 5bd0feb4d..9ac95f6c4 100644 --- a/src/static/translations/payments-api-fraud-protection-form/en.json +++ b/src/static/translations/payments-api-fraud-protection-form/en.json @@ -1,6 +1,18 @@ { + "header": { + "title_new": "New fraud protection", + "title_minfraud": "MaxMind minFraud", + "title_google_recaptcha": "Google reCAPTCHA", + "title_custom_precheckout_hook": "Pre-checkout webhook", + "subtitle": "Fraud protection #{{ id }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "default_additional_field_placeholder": "None", - "select_protection_title": "Select a fraud protection type to get started", "select_another_button_label": "Back to fraud protections", "score-threshold-reject": { "label": "Rejection threshold", @@ -29,7 +41,13 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this fraud protection? You'll need to configure it again if you decide to add it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Add fraud protection" + "caption": "Add fraud protection" } -} +} \ No newline at end of file diff --git a/src/static/translations/payments-api-payment-method-form/en.json b/src/static/translations/payments-api-payment-method-form/en.json index f780a0802..d4ba89ce0 100644 --- a/src/static/translations/payments-api-payment-method-form/en.json +++ b/src/static/translations/payments-api-payment-method-form/en.json @@ -1,5 +1,20 @@ { - "select_method_title": "Select a payment method", + "header": { + "title_new": "New payment method", + "title_selected": "{{ name }}", + "subtitle_regular": "Payment gateway #{{ id }}", + "subtitle_hosted": "Hosted payment gateway #{{ id }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, + "list-spinner": { + "loading_busy": "Loading payment methods...", + "loading_error": "Unknown error. Failed to load payment methods." + }, "select_another_button_label": "Select another", "default_additional_field_placeholder": "None", "conflict_message": "Remove {{ name }} to use this method", @@ -56,7 +71,13 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this payment method? You'll need to configure it again if you decide to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" } -} +} \ No newline at end of file diff --git a/src/static/translations/payments-api-payment-preset-form/en.json b/src/static/translations/payments-api-payment-preset-form/en.json index ab0b88229..2a2a0f940 100644 --- a/src/static/translations/payments-api-payment-preset-form/en.json +++ b/src/static/translations/payments-api-payment-preset-form/en.json @@ -1,4 +1,15 @@ { + "header": { + "title_existing": "Payment method set #{{ id }}", + "title_new": "New payment method set", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "description": { "label": "Description", "placeholder": "E.g. EU & UK Payment Options", @@ -55,7 +66,67 @@ "undo_header": "Unsaved changes", "undo_message": "Looks like you didn't save your changes! What would you like to do with them?", "undo_cancel": "Review", - "undo_confirm": "Discard" + "undo_confirm": "Discard", + "payments-api-fraud-protection-form": { + "header": { + "title_new": "New fraud protection", + "title_minfraud": "MaxMind minFraud", + "title_google_recaptcha": "Google reCAPTCHA", + "title_custom_precheckout_hook": "Pre-checkout webhook", + "subtitle": "Fraud protection #{{ id }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, + "default_additional_field_placeholder": "None", + "select_protection_title": "Select a fraud protection type to get started", + "select_another_button_label": "Back to fraud protections", + "score-threshold-reject": { + "label": "Rejection threshold", + "placeholder": "Default", + "helper_text": "A number between 0 and 100. 0 will disable minFraud and 100 will turn it on for logging but still allow all transactions to go through.", + "v8n_out_of_range": "Please enter a whole number between 0 and 100 (inclusive)." + }, + "description": { + "label": "Description", + "placeholder": "None", + "helper_text": "", + "v8n_too_long": "Please reduce this description to a 100 characters or less" + }, + "timestamps": { + "date_created": "Created on", + "date_modified": "Last updated on", + "date": "{{value, date}}" + }, + "spinner": { + "refresh": "Refresh", + "loading_busy": "Loading", + "loading_error": "Unknown error" + }, + "delete": { + "delete": "Remove", + "cancel": "Cancel", + "delete_prompt": "Are you sure you'd like to remove this fraud protection? You'll need to configure it again if you decide to add it back." + }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, + "create": { + "caption": "Add fraud protection" + } + } }, "pagination": { "create_button_text": "Add fraud protection +", @@ -79,7 +150,13 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this payment method set? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" } -} +} \ No newline at end of file diff --git a/src/static/translations/report-form/en.json b/src/static/translations/report-form/en.json index 347ff3dfb..6371cbc8a 100644 --- a/src/static/translations/report-form/en.json +++ b/src/static/translations/report-form/en.json @@ -1,6 +1,6 @@ { "cancel": "Cancel", - "create": "Create", + "caption": "Create", "date": "{{value, date}}", "date_created": "Created on", "date_modified": "Last updated on", @@ -36,4 +36,4 @@ "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/shipping-container-card/en.json b/src/static/translations/shipping-container-card/en.json new file mode 100644 index 000000000..19c0728d1 --- /dev/null +++ b/src/static/translations/shipping-container-card/en.json @@ -0,0 +1,8 @@ +{ + "subtitle": "Code: {{ code }}", + "spinner": { + "loading_busy": "Loading", + "loading_empty": "No data", + "loading_error": "Unknown error" + } +} diff --git a/src/static/translations/shipping-drop-type-card/en.json b/src/static/translations/shipping-drop-type-card/en.json new file mode 100644 index 000000000..19c0728d1 --- /dev/null +++ b/src/static/translations/shipping-drop-type-card/en.json @@ -0,0 +1,8 @@ +{ + "subtitle": "Code: {{ code }}", + "spinner": { + "loading_busy": "Loading", + "loading_empty": "No data", + "loading_error": "Unknown error" + } +} diff --git a/src/static/translations/shipping-method-card/en.json b/src/static/translations/shipping-method-card/en.json index 4aae46406..289cf2d29 100644 --- a/src/static/translations/shipping-method-card/en.json +++ b/src/static/translations/shipping-method-card/en.json @@ -1,6 +1,7 @@ { "image_alt": "Shipping method logo", "status_active": "Active", + "status_inactive": "Inactive", "spinner": { "loading_busy": "Loading", "loading_empty": "No data", diff --git a/src/static/translations/shipping-service-card/en.json b/src/static/translations/shipping-service-card/en.json new file mode 100644 index 000000000..ed08fcbcd --- /dev/null +++ b/src/static/translations/shipping-service-card/en.json @@ -0,0 +1,9 @@ +{ + "subtitle": "Code: {{ code }}", + "subtitle_international_only": "Code: {{ code }} • International Only", + "spinner": { + "loading_busy": "Loading", + "loading_empty": "No data", + "loading_error": "Unknown error" + } +} diff --git a/src/static/translations/store-form/en.json b/src/static/translations/store-form/en.json index d8390cbef..cbea74690 100644 --- a/src/static/translations/store-form/en.json +++ b/src/static/translations/store-form/en.json @@ -1,4 +1,21 @@ { + "header": { + "title_existing": "Store #{{ id }}", + "title_new": "New store", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "maintenance_mode_on_explainer": "Maintenance mode is on. Your customers can't make purchases or use the checkout page in any way. Once you're done making changes, disable this mode to continue getting orders.", "maintenance_mode_off_explainer": "If you're about to make changes that may disrupt the checkout process, we recommend enabling the maintenance mode first. In this mode the checkout page will be completely non-functioning and the customers will see a message asking them to come back later.", "enable_maintenance_mode": "Enable maintenance mode", @@ -14,7 +31,7 @@ "label": "Emails", "placeholder": "Enter an email and press Enter", "helper_text": "Email addresses used for billing and communication with Foxy.", - "submit": "Submit", + "caption": "Submit", "delete": "Delete", "v8n_required": "Please enter at least one email", "v8n_too_long": "All emails for this store must fit within 300 characters when comma-separated" @@ -311,7 +328,13 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this store? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" } -} +} \ No newline at end of file diff --git a/src/static/translations/store-shipping-method-form/en.json b/src/static/translations/store-shipping-method-form/en.json index 78905d15f..e59906dea 100644 --- a/src/static/translations/store-shipping-method-form/en.json +++ b/src/static/translations/store-shipping-method-form/en.json @@ -1,19 +1,133 @@ { + "header": { + "title_existing": "{{ provider }}", + "title_new": "New shipping method", + "subtitle": "Shipping method #{{ id }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "shipping-method-uri": { - "label": "Shipping Method", - "placeholder": "Select service", + "label": "Provider", + "dialog": { + "cancel": "Cancel", + "close": "Close", + "header": "Select a provider", + "selection": { + "label": "Providers", + "helper_text": "", + "pagination": { + "first": "First", + "last": "Last", + "next": "Next", + "pagination": "{{from}}-{{to}} out of {{total}}", + "previous": "Previous", + "card": { + "image_alt": "Shipping method logo", + "status_active": "Active", + "status_inactive": "Inactive", + "spinner": { + "loading_busy": "Loading", + "loading_empty": "No providers found", + "loading_error": "Unknown error" + } + } + } + } + }, + "card": { + "image_alt": "Shipping method logo", + "status_active": "Active", + "status_inactive": "Inactive", + "spinner": { + "loading_busy": "Loading", + "loading_empty": "Select a provider", + "loading_error": "Unknown error" + } + }, "helper_text": "", - "v8n_required": "Please select a shipping method." + "v8n_required": "Please select a provider." }, "shipping-container-uri": { "label": "Container", - "placeholder": "Select container", + "dialog": { + "cancel": "Cancel", + "close": "Close", + "header": "Select a container", + "selection": { + "label": "Containers", + "helper_text": "", + "pagination": { + "first": "First", + "last": "Last", + "next": "Next", + "pagination": "{{from}}-{{to}} out of {{total}}", + "previous": "Previous", + "card": { + "subtitle": "Code: {{ code }}", + "spinner": { + "loading_busy": "Loading", + "loading_empty": "No containers found", + "loading_error": "Unknown error" + } + } + } + } + }, + "card": { + "subtitle": "Code: {{ code }}", + "spinner": { + "loading_busy": "Loading", + "loading_empty": "Select a container", + "loading_error": "Unknown error" + } + }, "helper_text": "", - "v8n_required": "Please select a shipping method." + "v8n_required": "Please select a shipping container." }, "shipping-drop-type-uri": { - "label": "Drop Type", - "placeholder": "Select pickup", + "label": "Drop type", + "dialog": { + "cancel": "Cancel", + "close": "Close", + "header": "Select a drop type", + "selection": { + "label": "Drop types", + "helper_text": "", + "pagination": { + "first": "First", + "last": "Last", + "next": "Next", + "pagination": "{{from}}-{{to}} out of {{total}}", + "previous": "Previous", + "card": { + "subtitle": "Code: {{ code }}", + "spinner": { + "loading_busy": "Loading", + "loading_empty": "No drop types found", + "loading_error": "Unknown error" + } + } + } + } + }, + "card": { + "subtitle": "Code: {{ code }}", + "spinner": { + "loading_busy": "Loading", + "loading_empty": "Select a drop type", + "loading_error": "Unknown error" + } + }, "helper_text": "", "v8n_required": "Please select a drop type." }, @@ -21,7 +135,7 @@ "label": "Destinations", "domestic": "Domestic", "international": "International", - "helper_text": "" + "helper_text": "Select which shipping rate requests to apply this shipping method to." }, "authentication-key": { "label": "Authentication Key", @@ -61,14 +175,25 @@ }, "services": { "label": "Additional services", - "first": "First", - "last": "Last", - "next": "Next", - "pagination": "{{from}}-{{to}} out of {{total}}", - "previous": "Previous", - "loading_busy": "Loading", - "loading_error": "Unknown error", - "international_only": "– international only" + "status_saving": "Saving...", + "status_loading": "Loading...", + "pagination": { + "first": "First", + "last": "Last", + "next": "Next", + "pagination": "{{from}}-{{to}} out of {{total}}", + "previous": "Previous", + "card": { + "subtitle": "Code: {{ code }}", + "subtitle_international_only": "Code: {{ code }} • International Only", + "spinner": { + "loading_busy": "Loading", + "loading_empty": "No additional services available", + "loading_error": "Unknown error" + } + } + }, + "helper_text": "Enable additional services for this shipping method. All changes here are saved automatically." }, "timestamps": { "date_created": "Created on", @@ -80,12 +205,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this shipping method? You won't be able to undo if you click Delete." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/subscription-form/en.json b/src/static/translations/subscription-form/en.json index abe3ef5c5..a6cda3d04 100644 --- a/src/static/translations/subscription-form/en.json +++ b/src/static/translations/subscription-form/en.json @@ -1,4 +1,28 @@ { + "header": { + "title_new": "Subscription", + "title_existing": "Subscription", + "title_recurring": "{{amount, price}} $t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"subscription-form\" })", + "title_twice_a_month": "{{amount, price}} $t(twice_a_month, { \"ns\": \"subscription-form\" })", + "subtitle_active": "Including shipping, taxes, etc. Next payment on {{date, date}}.", + "subtitle_cancelled": "Including shipping, taxes, etc. Ended on {{date, date}}.", + "subtitle_failed": "Including shipping, taxes, etc. Payment failed on {{date, date}}.", + "subtitle_inactive": "Including shipping, taxes, etc. Inactive.", + "subtitle_will_be_cancelled": "Including shipping, taxes, etc. Ends on {{date, date}}.", + "subtitle_will_be_active": "Including shipping, taxes, etc. Starts on {{date, date}}.", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "day": "Day", "day_plural": "Days", "week": "Week", @@ -23,12 +47,6 @@ "start_date": "Start date", "price_recurring": "{{amount, price}} $t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\", \"ns\": \"subscription-form\" })", "price_twice_a_month": "{{amount, price}} $t(twice_a_month, { \"ns\": \"subscription-form\" })", - "subscription_active": "Including shipping, taxes, etc. Next payment on {{date, date}}.", - "subscription_cancelled": "Including shipping, taxes, etc. Ended on {{date, date}}.", - "subscription_failed": "Including shipping, taxes, etc. Payment failed on {{date, date}}.", - "subscription_inactive": "Including shipping, taxes, etc. Inactive.", - "subscription_will_be_cancelled": "Including shipping, taxes, etc. Ends on {{date, date}}.", - "subscription_will_be_active": "Including shipping, taxes, etc. Starts on {{date, date}}.", "transaction_plural": "Transactions", "twice_a_month": "Twice a month", "undo_cancel": "Review", @@ -84,7 +102,7 @@ "undo_confirm": "Discard", "cancel": "Cancel", "confirm": "Confirm", - "create": "Create", + "caption": "Create", "date": "{{value, date}}", "date_created": "Created on", "date_modified": "Last updated on", @@ -188,4 +206,4 @@ "date_modified": "Last updated on", "date": "{{value, date}}" } -} +} \ No newline at end of file diff --git a/src/static/translations/subscription-settings-form/en.json b/src/static/translations/subscription-settings-form/en.json index 3c405b9dd..40f5bcda8 100644 --- a/src/static/translations/subscription-settings-form/en.json +++ b/src/static/translations/subscription-settings-form/en.json @@ -1,4 +1,15 @@ { + "header": { + "title_new": "Subscription settings", + "title_existing": "Subscription settings", + "subtitle": "", + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "day": "{{ count }} day", "day_plural": "{{ count }} days", "day_suffix": "day", @@ -87,7 +98,13 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove these subscription settings? You won't be able to bring them back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" } -} +} \ No newline at end of file diff --git a/src/static/translations/tax-form/en.json b/src/static/translations/tax-form/en.json index 55a23ce73..51be150d6 100644 --- a/src/static/translations/tax-form/en.json +++ b/src/static/translations/tax-form/en.json @@ -2,7 +2,7 @@ "cancel": "Cancel", "city": "City", "country": "Country", - "create": "Create", + "caption": "Create", "date": "{{value, date}}", "date_created": "Created on", "date_modified": "Last updated on", @@ -36,4 +36,4 @@ "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/template-config-form/en.json b/src/static/translations/template-config-form/en.json index b84cf5aa0..2a28ca1ac 100644 --- a/src/static/translations/template-config-form/en.json +++ b/src/static/translations/template-config-form/en.json @@ -32,7 +32,7 @@ "copy": "Copy", "country": "Country", "coupon_entry": "Coupon code", - "create": "Create", + "caption": "Create", "custom_config": "Custom config", "custom_config_helper_text": "If you have any custom values you'd like to make available to your twig template, you can add them here as a valid JSON string.", "custom_fields": "Custom fields", @@ -112,4 +112,4 @@ "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/template-form/en.json b/src/static/translations/template-form/en.json index d624c87ac..81da28f7b 100644 --- a/src/static/translations/template-form/en.json +++ b/src/static/translations/template-form/en.json @@ -1,7 +1,7 @@ { "cache": "Sync", "cancel": "Cancel", - "create": "Create", + "caption": "Create", "date": "{{value, date}}", "date_created": "Created on", "date_modified": "Last updated on", @@ -23,4 +23,4 @@ "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/template-set-form/en.json b/src/static/translations/template-set-form/en.json index 18358022f..5cf8d8c38 100644 --- a/src/static/translations/template-set-form/en.json +++ b/src/static/translations/template-set-form/en.json @@ -1,4 +1,22 @@ { + "header": { + "title_new": "New template set", + "title_existing": "Template set #{{ id }}", + "subtitle": "", + "subtitle_default": "Default template set", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "description": { "label": "Description", "placeholder": "Required - e.g. My Template Set", @@ -27,7 +45,40 @@ }, "payment-method-set-uri": { "label": "Payment method set", - "placeholder": "Default payment method set", + "dialog": { + "cancel": "Cancel", + "close": "Close", + "header": "Select a payment method set", + "selection": { + "label": "Payment method sets", + "helper_text": "", + "pagination": { + "first": "First", + "last": "Last", + "next": "Next", + "pagination": "{{from}}-{{to}} out of {{total}}", + "previous": "Previous", + "card": { + "status_test": "Test", + "status_live": "Live", + "spinner": { + "loading_busy": "Loading", + "loading_empty": "No payment method sets found", + "loading_error": "Unknown error" + } + } + } + } + }, + "card": { + "status_test": "Test", + "status_live": "Live", + "spinner": { + "loading_busy": "Loading", + "loading_empty": "Select a payment method set", + "loading_error": "Unknown error" + } + }, "helper_text": "With this template set applied, your customers will see payment methods from the selected set." }, "language-overrides": { @@ -51,12 +102,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this template set? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/transaction/en.json b/src/static/translations/transaction/en.json index 9f09731a7..58aba6639 100644 --- a/src/static/translations/transaction/en.json +++ b/src/static/translations/transaction/en.json @@ -1,6 +1,6 @@ { "header": { - "title": "ID {{ display_id }}", + "title": "Transaction #{{ display_id }}", "subtitle": "{{ transaction_date, date }} at {{ transaction_date, time }} • {{ ip_country }}", "subtitle_customer_changed_payment_method": "{{ transaction_date, date }} at {{ transaction_date, time }} • {{ ip_country }} • Customer changed payment method", "subtitle_admin_changed_payment_method_with_uoe": "{{ transaction_date, date }} at {{ transaction_date, time }} • Store admin used UOE password to change payment method", @@ -24,7 +24,19 @@ "alert_status_problem": "We were unable to complete this transaction because the amount that was sent to the payment gateway did not match the final total amount.", "alert_status_pending_fraud_review": "The payment gateway flagged this transaction as potentially fraudulent. Please log in to your gateway’s dashboard and look for this transaction to review.", "alert_status_rejected": "The payment gateway refused to process this transaction based on its internal policy. You may be able to get more information about this error by logging in to your gateway’s dashboard and looking for this transaction.", - "alert_status_declined": "The payment method used for this transaction was declined. This could be due to insufficient funds, an expired card, or a different reason. You may be able to get more information about this error in your gateway’s dashboard." + "alert_status_declined": "The payment method used for this transaction was declined. This could be due to insufficient funds, an expired card, or a different reason. You may be able to get more information about this error in your gateway’s dashboard.", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } }, "customer": { "label": "Customer", @@ -83,6 +95,24 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "item-form": { + "header": { + "title_existing": "Item #{{ id }}", + "title_new": "New item", + "subtitle_future_line_item": "This item is part of a future subscription", + "subtitle_regular": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "dimensions": "Dimensions", "subscriptions": "Subscriptions", "discount": "Discount", @@ -108,6 +138,7 @@ }, "subscription-frequency": { "label": "Subscription frequency", + "helper_text": "", "day": "Day", "day_plural": "Days", "week": "Week", @@ -174,7 +205,7 @@ }, "shipto": { "label": "Shipping address", - "helper_text": "Used for multiship to assign this item to a specific shipment.", + "helper_text": "Used for multiship to assign this item to a specific shipment. This value will be the address name of the shipment.", "placeholder": "Select address to ship this item to..." }, "width": { @@ -199,8 +230,40 @@ }, "item-category-uri": { "label": "Item category", - "helper_text": "Item category associated with this item.", - "placeholder": "Select item category..." + "dialog": { + "cancel": "Cancel", + "close": "Close", + "header": "Select an item category", + "selection": { + "label": "Item categories", + "helper_text": "Select an item category to use with this item.", + "search": "Search", + "clear": "Clear", + "pagination": { + "search_button_text": "Search", + "first": "First", + "last": "Last", + "next": "Next", + "pagination": "{{from}}-{{to}} out of {{total}}", + "previous": "Previous", + "card": { + "spinner": { + "loading_busy": "Loading", + "loading_empty": "No item categories found", + "loading_error": "Unknown error" + } + } + } + } + }, + "card": { + "spinner": { + "loading_busy": "Loading", + "loading_empty": "Not assigned – click to select", + "loading_error": "Unknown error" + } + }, + "helper_text": "Item category associated with this item." }, "code": { "label": "Code", @@ -213,7 +276,7 @@ "placeholder": "MY-BUNDLE-001" }, "discount-details": { - "title": "Discounts", + "title": "Discount details", "pagination": { "first": "First", "last": "Last", @@ -223,14 +286,14 @@ "card": { "spinner": { "loading_busy": "Loading", - "loading_empty": "No discounts", + "loading_empty": "No data", "loading_error": "Unknown error" } } } }, "coupon-details": { - "title": "Coupons", + "title": "Coupon details", "pagination": { "first": "First", "last": "Last", @@ -240,7 +303,7 @@ "card": { "spinner": { "loading_busy": "Loading", - "loading_empty": "No coupons", + "loading_empty": "No data", "loading_error": "Unknown error" } } @@ -263,6 +326,25 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "attribute-form": { + "header": { + "title_existing": "Item attribute #{{ id }}", + "title_new": "New item attribute", + "subtitle_private": "Visible only to you", + "subtitle_restricted": "Visible to store admins", + "subtitle_public": "Visible to everyone", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "placeholder": "Required", @@ -294,8 +376,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -310,7 +398,7 @@ "delete_button_text": "Delete", "spinner": { "loading_busy": "Loading", - "loading_empty": "No attributes", + "loading_empty": "No data", "loading_error": "Unknown error" } }, @@ -338,6 +426,23 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "item-option-form": { + "header": { + "title_existing": "Item option #{{ id }}", + "title_new": "New item option", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "helper_text": "", @@ -377,8 +482,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this item option? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" } } }, @@ -387,7 +498,7 @@ "delete_button_text": "Delete", "spinner": { "loading_busy": "Loading", - "loading_empty": "No item options", + "loading_empty": "No data", "loading_error": "Unknown error" } }, @@ -409,8 +520,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this item? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -437,6 +554,23 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "custom-field-form": { + "header": { + "title_existing": "Transaction custom field #{{ id }}", + "title_new": "New transaction custom field", + "subtitle": "", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "placeholder": "Required", @@ -466,8 +600,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this custom field? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -510,6 +650,25 @@ "undo_cancel": "Review", "undo_confirm": "Discard", "attribute-form": { + "header": { + "title_existing": "ID {{ id }}", + "title_new": "New attribute", + "subtitle_private": "Visible only to you", + "subtitle_restricted": "Visible to store admins", + "subtitle_public": "Visible to everyone", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "placeholder": "Required", @@ -541,8 +700,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this attribute? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -622,6 +787,29 @@ "cancel": "Cancel", "header_update": "Billing address", "address-form": { + "header": { + "title_existing": "ID {{ id }}", + "title_new": "New address", + "subtitle_default_shipping": "Default shipping address", + "subtitle_default_billing": "Default billing address", + "subtitle_custom": "Custom address", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, + "error": { + "country_banned": "Store settings prohibit addresses in this country. Please adjust your store settings or use the Ignore address restrictions option.", + "address_name_exists": "Another address with the same name already exists. Please choose a unique name." + }, "address-name": { "label": "Address name", "placeholder": "Required", @@ -689,6 +877,11 @@ "helper_text": "", "v8n_too_long": "Unfortunately we can't store region names longer than 50 characters" }, + "ignore-address-restrictions": { + "label": "Advanced", + "option_true": "Ignore address restrictions", + "helper_text": "By default, the country value must be valid according to the store's location filtering settings. Checking this box will remove this restriction." + }, "timestamps": { "date": "{{value, date}}", "date_created": "Created on", @@ -699,8 +892,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this address? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -1381,4 +1580,4 @@ "loading_empty": "No data", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/update-payment-method-form/en.json b/src/static/translations/update-payment-method-form/en.json index c3abc3f44..e6b7a4834 100644 --- a/src/static/translations/update-payment-method-form/en.json +++ b/src/static/translations/update-payment-method-form/en.json @@ -1,4 +1,8 @@ { + "header": { + "title_existing": "Update card", + "subtitle": "Enter card details below and click Save card" + }, "status": { "cc_token_success": "Card details saved successfully.", "close": "Close" @@ -137,4 +141,4 @@ "loading_error": "Unknown error", "loading_empty": "This form works only with existing payment methods" } -} +} \ No newline at end of file diff --git a/src/static/translations/user-form/en.json b/src/static/translations/user-form/en.json index d74250cb1..c35e63e90 100644 --- a/src/static/translations/user-form/en.json +++ b/src/static/translations/user-form/en.json @@ -1,4 +1,22 @@ { + "header": { + "title_new": "New user", + "title_existing": "User #{{ id }}", + "subtitle": "", + "subtitle_affiliate": "Affiliate ID: {{ affiliate_id }}", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "first-name": { "label": "First name", "placeholder": "Required", @@ -50,12 +68,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this account? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/users-table/en.json b/src/static/translations/users-table/en.json index 34bc3f5fd..d13a0022f 100644 --- a/src/static/translations/users-table/en.json +++ b/src/static/translations/users-table/en.json @@ -68,8 +68,14 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this account? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", @@ -77,4 +83,4 @@ "loading_error": "Unknown error" } } -} +} \ No newline at end of file diff --git a/src/static/translations/webhook-form/en.json b/src/static/translations/webhook-form/en.json index 82e97b549..0abec707a 100644 --- a/src/static/translations/webhook-form/en.json +++ b/src/static/translations/webhook-form/en.json @@ -1,4 +1,24 @@ { + "header": { + "title_new": "New webhook", + "title_existing": "Webhook #{{ id }}", + "subtitle": "", + "subtitle_transaction": "Transaction webhook", + "subtitle_subscription": "Subscription webhook", + "subtitle_customer": "Customer webhook", + "copy-id": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy ID", + "copying": "Copying...", + "done": "Copied to clipboard" + }, + "copy-json": { + "failed_to_copy": "Failed to copy", + "click_to_copy": "Copy source as JSON", + "copying": "Copying...", + "done": "Copied to clipboard" + } + }, "name": { "label": "Name", "placeholder": "My JSON Webhook", @@ -43,7 +63,7 @@ "event_resource_customer": "Customer" }, "statuses": { - "title": "Statuses", + "label": "Runs", "pagination": { "first": "First", "last": "Last", @@ -54,17 +74,17 @@ "status_successful": "Successful", "status_pending": "Pending", "status_failed": "Failed", - "date": "{{value, date}}", + "date": "{{ value, date }} at {{ value, time }}", "spinner": { "loading_busy": "Loading", "loading_error": "Unknown error", - "loading_empty": "No data" + "loading_empty": "This webhook has not been triggered yet." } } } }, "logs": { - "title": "Logs", + "label": "Logs", "pagination": { "first": "First", "last": "Last", @@ -72,11 +92,11 @@ "pagination": "{{from}}-{{to}} out of {{total}}", "previous": "Previous", "card": { - "date": "{{value, date}}", + "date": "{{ value, date }} at {{ value, time }}", "spinner": { "loading_busy": "Loading", "loading_error": "Unknown error", - "loading_empty": "No data" + "loading_empty": "This webhook has not been triggered yet." } } } @@ -91,12 +111,18 @@ "cancel": "Cancel", "delete_prompt": "Are you sure you'd like to remove this webhook? You won't be able to bring it back." }, + "undo": { + "caption": "Undo" + }, + "submit": { + "caption": "Save changes" + }, "create": { - "create": "Create" + "caption": "Create" }, "spinner": { "refresh": "Refresh", "loading_busy": "Loading", "loading_error": "Unknown error" } -} +} \ No newline at end of file diff --git a/src/static/translations/webhook-log-card/en.json b/src/static/translations/webhook-log-card/en.json index f2a476f8b..50972004b 100644 --- a/src/static/translations/webhook-log-card/en.json +++ b/src/static/translations/webhook-log-card/en.json @@ -1,8 +1,8 @@ { - "date": "{{value, date}}", + "date": "{{ value, date }} at {{ value, time }}", "spinner": { "loading_busy": "Loading", "loading_error": "Unknown error", "loading_empty": "No data" } -} +} \ No newline at end of file diff --git a/src/static/translations/webhook-status-card/en.json b/src/static/translations/webhook-status-card/en.json index 5ae78960c..7b8224784 100644 --- a/src/static/translations/webhook-status-card/en.json +++ b/src/static/translations/webhook-status-card/en.json @@ -2,10 +2,10 @@ "status_successful": "Successful", "status_pending": "Pending", "status_failed": "Failed", - "date": "{{value, date}}", + "date": "{{ value, date }} at {{ value, time }}", "spinner": { "loading_busy": "Loading", "loading_error": "Unknown error", "loading_empty": "No data" } -} +} \ No newline at end of file