diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 601006b0..e811f955 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,18 +1,18 @@ version: 2 updates: -- package-ecosystem: npm - directory: / - schedule: - interval: monthly - day: wednesday - time: "11:00" -- package-ecosystem: github-actions - directory: / - schedule: - interval: monthly - day: wednesday - time: "11:00" - groups: - github-actions: - patterns: - - '*' + - package-ecosystem: npm + directory: / + schedule: + interval: monthly + day: wednesday + time: '11:00' + - package-ecosystem: github-actions + directory: / + schedule: + interval: monthly + day: wednesday + time: '11:00' + groups: + github-actions: + patterns: + - '*' diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 5907628c..817f7af4 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -22,12 +22,12 @@ jobs: --follow-symlinks --delete --exclude '*' --include 'smart-camera-web.js' env: - AWS_S3_BUCKET: "${{ secrets.AWS_S3_BUCKET }}" - AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" - AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" - AWS_REGION: "${{ secrets.AWS_REGION }}" - SOURCE_DIR: "./packages/smart-camera-web" - DEST_DIR: "js/staging" + AWS_S3_BUCKET: '${{ secrets.AWS_S3_BUCKET }}' + AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}' + AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}' + AWS_REGION: '${{ secrets.AWS_REGION }}' + SOURCE_DIR: './packages/smart-camera-web' + DEST_DIR: 'js/staging' embed: needs: [test] runs-on: ubuntu-latest @@ -53,5 +53,5 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_REGION: ${{ secrets.AWS_REGION }} - SOURCE_DIR: "./packages/embed/dist" - DEST_DIR: "inline/staging" + SOURCE_DIR: './packages/embed/dist' + DEST_DIR: 'inline/staging' diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 866ff2cb..14da8556 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -62,5 +62,5 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_REGION: ${{ secrets.AWS_REGION }} - SOURCE_DIR: "./packages/embed/dist" - DEST_DIR: "inline/v1" + SOURCE_DIR: './packages/embed/dist' + DEST_DIR: 'inline/v1' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bd39d529..4b8c2737 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,6 +6,17 @@ on: pull_request: workflow_dispatch: jobs: + main: + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v4 + - name: set node version + uses: actions/setup-node@v4 + - name: install dependencies + run: npm ci + - name: lint + run: npx prettier --check . web-components: runs-on: ubuntu-latest defaults: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 51690697..fa9e9363 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,7 +1,7 @@ -name: "Close stale issues and PRs" +name: 'Close stale issues and PRs' on: schedule: - - cron: "30 16 * * *" + - cron: '30 16 * * *' permissions: issues: write @@ -14,9 +14,9 @@ jobs: steps: - uses: actions/stale@v9 with: - stale-issue-message: "This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days." - stale-pr-message: "This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days." - close-issue-message: "This issue was closed because it has been stalled for 7 days with no activity." - close-pr-message: "This PR was closed because it has been stalled for 7 days with no activity." + stale-issue-message: 'This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + stale-pr-message: 'This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.' + close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.' days-before-stale: 14 days-before-close: 7 diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 00000000..544138be --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,3 @@ +{ + "singleQuote": true +} diff --git a/.storybook/main.js b/.storybook/main.js index 8bd98d3d..9f59ce20 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -1,29 +1,29 @@ -import { join, dirname } from "path"; +import { join, dirname } from 'path'; /** * This function is used to resolve the absolute path of a package. * It is needed in projects that use Yarn PnP or are set up within a monorepo. */ function getAbsolutePath(value) { - return dirname(require.resolve(join(value, "package.json"))); + return dirname(require.resolve(join(value, 'package.json'))); } /** @type { import('@storybook/web-components-vite').StorybookConfig } */ const config = { stories: [ - "../packages/web-components/**/**/*.mdx", - "../packages/web-components/**/**/*.stories.@(js|jsx|mjs|ts|tsx)", + '../packages/web-components/**/**/*.mdx', + '../packages/web-components/**/**/*.stories.@(js|jsx|mjs|ts|tsx)', ], addons: [ - getAbsolutePath("@storybook/addon-links"), - getAbsolutePath("@storybook/addon-essentials"), + getAbsolutePath('@storybook/addon-links'), + getAbsolutePath('@storybook/addon-essentials'), ], framework: { - name: getAbsolutePath("@storybook/web-components-vite"), + name: getAbsolutePath('@storybook/web-components-vite'), options: {}, }, docs: { - autodocs: "tag", + autodocs: 'tag', }, }; export default config; diff --git a/.storybook/preview.js b/.storybook/preview.js index a7c9db16..da51ffd3 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -1,7 +1,7 @@ /** @type { import('@storybook/web-components').Preview } */ const preview = { parameters: { - actions: { argTypesRegex: "^on[A-Z].*" }, + actions: { argTypesRegex: '^on[A-Z].*' }, controls: { matchers: { color: /(background|color)$/i, diff --git a/package-lock.json b/package-lock.json index a8753a9d..451e5958 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "@storybook/blocks": "^7.6.17", "@storybook/web-components": "^7.6.4", "@storybook/web-components-vite": "<8.0.0", + "prettier": "^3.2.5", "storybook": "<8.0.0" } }, @@ -13189,8 +13190,9 @@ }, "node_modules/prettier": { "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", "dev": true, - "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" }, diff --git a/package.json b/package.json index 36d9be18..78f01760 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@storybook/blocks": "^7.6.17", "@storybook/web-components": "^7.6.4", "@storybook/web-components-vite": "<8.0.0", + "prettier": "^3.2.5", "storybook": "<8.0.0" } } diff --git a/packages/embed/.eslintrc.cjs b/packages/embed/.eslintrc.cjs index b371bacc..8ff08c49 100644 --- a/packages/embed/.eslintrc.cjs +++ b/packages/embed/.eslintrc.cjs @@ -1,61 +1,61 @@ module.exports = { env: { - "cypress/globals": true, + 'cypress/globals': true, browser: true, commonjs: true, es2021: true, }, - extends: ["airbnb-base", "plugin:prettier/recommended"], - ignorePatterns: ["build/", "dist/", "libs/", "node_modules/"], + extends: ['airbnb-base', 'plugin:prettier/recommended'], + ignorePatterns: ['build/', 'dist/', 'libs/', 'node_modules/'], globals: { - validate: "readonly", - JSZip: "readonly", + validate: 'readonly', + JSZip: 'readonly', }, overrides: [ { env: { node: true, }, - files: [".eslintrc.{js,cjs}"], + files: ['.eslintrc.{js,cjs}'], parserOptions: { - sourceType: "script", + sourceType: 'script', }, }, ], parserOptions: { - ecmaVersion: "latest", + ecmaVersion: 'latest', }, - plugins: ["cypress", "prettier"], + plugins: ['cypress', 'prettier'], rules: { - "class-methods-use-this": 0, - "func-names": 0, - "import/no-extraneous-dependencies": [ - "error", + 'class-methods-use-this': 0, + 'func-names': 0, + 'import/no-extraneous-dependencies': [ + 'error', { devDependencies: [ - "esbuild.js", - "cypress.config.js", - "**/*{.,_,-}{test,spec}.js", // tests where the extension or filename suffix denotes that it is a test + 'esbuild.js', + 'cypress.config.js', + '**/*{.,_,-}{test,spec}.js', // tests where the extension or filename suffix denotes that it is a test ], optionalDependencies: false, }, ], - "max-len": 0, - "no-console": ["error", { allow: ["error"] }], - "no-param-reassign": 0, - "no-restricted-globals": 0, - "no-use-before-define": 0, - "no-useless-escape": 0, - "one-var": ["error", "never"], - "prefer-destructuring": 0, - "prettier/prettier": "error", + 'max-len': 0, + 'no-console': ['error', { allow: ['error'] }], + 'no-param-reassign': 0, + 'no-restricted-globals': 0, + 'no-use-before-define': 0, + 'no-useless-escape': 0, + 'one-var': ['error', 'never'], + 'prefer-destructuring': 0, + 'prettier/prettier': 'error', camelcase: 0, indent: 0, strict: 0, }, settings: { - "import/resolver": { - "../eslint-plugin-import-resolver.js": { someConfig: 1 }, + 'import/resolver': { + '../eslint-plugin-import-resolver.js': { someConfig: 1 }, }, }, }; diff --git a/packages/embed/.nycrc b/packages/embed/.nycrc index 2322b7b2..96adcfd3 100644 --- a/packages/embed/.nycrc +++ b/packages/embed/.nycrc @@ -1,3 +1,3 @@ { - "source-map": false + "source-map": false } diff --git a/packages/embed/README.md b/packages/embed/README.md index d9b50ff2..06ae314d 100644 --- a/packages/embed/README.md +++ b/packages/embed/README.md @@ -16,37 +16,37 @@ This repository provides a self-hosted integration for Smile ID on the Web. It e 1. Clone the repository: - ```bash - git clone https://github.com/smileidentity/hosted-web-integration.git - cd hosted-web-integration - ``` + ```bash + git clone https://github.com/smileidentity/hosted-web-integration.git + cd hosted-web-integration + ``` 2. Switch to the appropriate Node version using `nvm`: - ```bash - nvm install - nvm use - ``` + ```bash + nvm install + nvm use + ``` 3. Install project dependencies: - ```bash - npm install - ``` + ```bash + npm install + ``` ## Running the Project 1. Build the project: - ```bash - npm run build - ``` + ```bash + npm run build + ``` 2. Start the local server: - ```bash - npm start - ``` + ```bash + npm start + ``` 3. Access the application on `http://localhost:8000`. diff --git a/packages/embed/cypress.config.js b/packages/embed/cypress.config.js index 6109bedb..86caaa1f 100644 --- a/packages/embed/cypress.config.js +++ b/packages/embed/cypress.config.js @@ -1,9 +1,9 @@ -import { defineConfig } from "cypress"; +import { defineConfig } from 'cypress'; const config = defineConfig({ e2e: { - baseUrl: "http://localhost:8000", - specPattern: "cypress/tests/**/*.cy.cjs", + baseUrl: 'http://localhost:8000', + specPattern: 'cypress/tests/**/*.cy.cjs', }, }); diff --git a/packages/embed/cypress/fixtures/e_signature_documents.json b/packages/embed/cypress/fixtures/e_signature_documents.json index 54238c31..614911ab 100644 --- a/packages/embed/cypress/fixtures/e_signature_documents.json +++ b/packages/embed/cypress/fixtures/e_signature_documents.json @@ -1,16 +1,16 @@ { - "documents": [ - { - "id": "07ef4595-aaed-4597-b6af-444986ae4565", - "link": "https://smile-signable-document-development.s3.us-west-2.amazonaws.com/development/921/SINGLE_USE/caa31f97-0056-4672-99de-2e1b1c439e82-privacy%20policy.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIA4OAOFXPAHPEZQXW5%2F20231202%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20231202T190423Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEMv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIQDx6xxYPXeC6Nm1O6NkDRWNskY6jpWnTo0rhGsSq%2FhLpQIgP3rVKh1%2B0Mm8tceD%2BXXRPeyRCZHysxZNw6YFxhN0EXQqpwMINBADGgw4NTQ3MjgyMjc3NzYiDBIuWCw54%2BS8bXD4iiqEAygeRz2MdUibORe2HlZ7I53MftfqQdqtUZ6CCzSee%2F53ERKuFuQ59SfeEX6KwEpfDsgKxAJsSE%2B5DWdFz3F4KLXeaVb9Ri9EHl7%2BYfYFbFUe25eCk1r0%2FewDpEgDlYr7KSuV84oNCJDmHxxa%2BsMcG6PvfBJ26UNUk5MhHfYBaqhjLTHSlFODgu%2FwYalDEcEcyK5oiJfr3%2BUx8KcNlpQVx2ep%2BbNidaVX30K2lIGqkQ9BFTjYGGzXlJ2JuNoTQjNdobptZdL8lawO1MuXaBJLdFy3AMSbcB8Bp4v39N1HA5q5aVd3odt0JEBpJ0H9pf%2BBa%2BNsS5kaMXwO0w0xjc7SLDHSClMexzwf4vXqLHMW6oPbGvUMIwmqpkYVSkhPPBBDOpEO%2FezO1Eco5shWXBByJjLrAC8wyQcWxX7TS7M9dZAjKSNSAl6D0aHYTgDhCkyJiWFfMHFF4AAR0TurBZO7LMiPoU97D7CvI7lCT0%2FTSFF1c5%2B%2B5fD7vP0PKlDF%2B4o5bqp7%2Bs8wtP%2BtqwY6nQFJodwV1R2DKbSt%2BkrCRHKB8AsdRa2mw8r59BO7ZE3x7m%2FVl61yKoqq5F0G5VW1vr7rT3OHdrUP9aOQaLHtWpKpUby4H5LGAjSZzYkBEO6MunuQ79L6lZVBe23zE2NMxGdxkWCuuj5SNP12ewlslnC1aJBN38StdO520j%2Fs9ayIvtgsmZWkLC99Wv8Sb4xpAz2paN7a%2FTwFPqAnkZVD&X-Amz-Signature=d157d3439c22a5832038af7a63928b4dec62b4326742184f88323556ebcf2fe7&X-Amz-SignedHeaders=host&x-id=GetObject", - "name": "privacy policy", - "size": 186790 - }, - { - "id": "6df1ceb5-72e5-4e38-9eef-66ee085aec17", - "link": "https://smile-signable-document-development.s3.us-west-2.amazonaws.com/development/921/SINGLE_USE/fbedce72-58f7-45c6-9e47-240e278719a7-terms%20and%20conditions.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIA4OAOFXPAHPEZQXW5%2F20231202%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20231202T190423Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEMv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIQDx6xxYPXeC6Nm1O6NkDRWNskY6jpWnTo0rhGsSq%2FhLpQIgP3rVKh1%2B0Mm8tceD%2BXXRPeyRCZHysxZNw6YFxhN0EXQqpwMINBADGgw4NTQ3MjgyMjc3NzYiDBIuWCw54%2BS8bXD4iiqEAygeRz2MdUibORe2HlZ7I53MftfqQdqtUZ6CCzSee%2F53ERKuFuQ59SfeEX6KwEpfDsgKxAJsSE%2B5DWdFz3F4KLXeaVb9Ri9EHl7%2BYfYFbFUe25eCk1r0%2FewDpEgDlYr7KSuV84oNCJDmHxxa%2BsMcG6PvfBJ26UNUk5MhHfYBaqhjLTHSlFODgu%2FwYalDEcEcyK5oiJfr3%2BUx8KcNlpQVx2ep%2BbNidaVX30K2lIGqkQ9BFTjYGGzXlJ2JuNoTQjNdobptZdL8lawO1MuXaBJLdFy3AMSbcB8Bp4v39N1HA5q5aVd3odt0JEBpJ0H9pf%2BBa%2BNsS5kaMXwO0w0xjc7SLDHSClMexzwf4vXqLHMW6oPbGvUMIwmqpkYVSkhPPBBDOpEO%2FezO1Eco5shWXBByJjLrAC8wyQcWxX7TS7M9dZAjKSNSAl6D0aHYTgDhCkyJiWFfMHFF4AAR0TurBZO7LMiPoU97D7CvI7lCT0%2FTSFF1c5%2B%2B5fD7vP0PKlDF%2B4o5bqp7%2Bs8wtP%2BtqwY6nQFJodwV1R2DKbSt%2BkrCRHKB8AsdRa2mw8r59BO7ZE3x7m%2FVl61yKoqq5F0G5VW1vr7rT3OHdrUP9aOQaLHtWpKpUby4H5LGAjSZzYkBEO6MunuQ79L6lZVBe23zE2NMxGdxkWCuuj5SNP12ewlslnC1aJBN38StdO520j%2Fs9ayIvtgsmZWkLC99Wv8Sb4xpAz2paN7a%2FTwFPqAnkZVD&X-Amz-Signature=889ccd4c0be2eb3fdc868b534c31c51c2c084542b44a89f37a4738203bff5d52&X-Amz-SignedHeaders=host&x-id=GetObject", - "name": "terms and conditions", - "size": 384244 - } - ] -} \ No newline at end of file + "documents": [ + { + "id": "07ef4595-aaed-4597-b6af-444986ae4565", + "link": "https://smile-signable-document-development.s3.us-west-2.amazonaws.com/development/921/SINGLE_USE/caa31f97-0056-4672-99de-2e1b1c439e82-privacy%20policy.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIA4OAOFXPAHPEZQXW5%2F20231202%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20231202T190423Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEMv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIQDx6xxYPXeC6Nm1O6NkDRWNskY6jpWnTo0rhGsSq%2FhLpQIgP3rVKh1%2B0Mm8tceD%2BXXRPeyRCZHysxZNw6YFxhN0EXQqpwMINBADGgw4NTQ3MjgyMjc3NzYiDBIuWCw54%2BS8bXD4iiqEAygeRz2MdUibORe2HlZ7I53MftfqQdqtUZ6CCzSee%2F53ERKuFuQ59SfeEX6KwEpfDsgKxAJsSE%2B5DWdFz3F4KLXeaVb9Ri9EHl7%2BYfYFbFUe25eCk1r0%2FewDpEgDlYr7KSuV84oNCJDmHxxa%2BsMcG6PvfBJ26UNUk5MhHfYBaqhjLTHSlFODgu%2FwYalDEcEcyK5oiJfr3%2BUx8KcNlpQVx2ep%2BbNidaVX30K2lIGqkQ9BFTjYGGzXlJ2JuNoTQjNdobptZdL8lawO1MuXaBJLdFy3AMSbcB8Bp4v39N1HA5q5aVd3odt0JEBpJ0H9pf%2BBa%2BNsS5kaMXwO0w0xjc7SLDHSClMexzwf4vXqLHMW6oPbGvUMIwmqpkYVSkhPPBBDOpEO%2FezO1Eco5shWXBByJjLrAC8wyQcWxX7TS7M9dZAjKSNSAl6D0aHYTgDhCkyJiWFfMHFF4AAR0TurBZO7LMiPoU97D7CvI7lCT0%2FTSFF1c5%2B%2B5fD7vP0PKlDF%2B4o5bqp7%2Bs8wtP%2BtqwY6nQFJodwV1R2DKbSt%2BkrCRHKB8AsdRa2mw8r59BO7ZE3x7m%2FVl61yKoqq5F0G5VW1vr7rT3OHdrUP9aOQaLHtWpKpUby4H5LGAjSZzYkBEO6MunuQ79L6lZVBe23zE2NMxGdxkWCuuj5SNP12ewlslnC1aJBN38StdO520j%2Fs9ayIvtgsmZWkLC99Wv8Sb4xpAz2paN7a%2FTwFPqAnkZVD&X-Amz-Signature=d157d3439c22a5832038af7a63928b4dec62b4326742184f88323556ebcf2fe7&X-Amz-SignedHeaders=host&x-id=GetObject", + "name": "privacy policy", + "size": 186790 + }, + { + "id": "6df1ceb5-72e5-4e38-9eef-66ee085aec17", + "link": "https://smile-signable-document-development.s3.us-west-2.amazonaws.com/development/921/SINGLE_USE/fbedce72-58f7-45c6-9e47-240e278719a7-terms%20and%20conditions.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIA4OAOFXPAHPEZQXW5%2F20231202%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20231202T190423Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEMv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIQDx6xxYPXeC6Nm1O6NkDRWNskY6jpWnTo0rhGsSq%2FhLpQIgP3rVKh1%2B0Mm8tceD%2BXXRPeyRCZHysxZNw6YFxhN0EXQqpwMINBADGgw4NTQ3MjgyMjc3NzYiDBIuWCw54%2BS8bXD4iiqEAygeRz2MdUibORe2HlZ7I53MftfqQdqtUZ6CCzSee%2F53ERKuFuQ59SfeEX6KwEpfDsgKxAJsSE%2B5DWdFz3F4KLXeaVb9Ri9EHl7%2BYfYFbFUe25eCk1r0%2FewDpEgDlYr7KSuV84oNCJDmHxxa%2BsMcG6PvfBJ26UNUk5MhHfYBaqhjLTHSlFODgu%2FwYalDEcEcyK5oiJfr3%2BUx8KcNlpQVx2ep%2BbNidaVX30K2lIGqkQ9BFTjYGGzXlJ2JuNoTQjNdobptZdL8lawO1MuXaBJLdFy3AMSbcB8Bp4v39N1HA5q5aVd3odt0JEBpJ0H9pf%2BBa%2BNsS5kaMXwO0w0xjc7SLDHSClMexzwf4vXqLHMW6oPbGvUMIwmqpkYVSkhPPBBDOpEO%2FezO1Eco5shWXBByJjLrAC8wyQcWxX7TS7M9dZAjKSNSAl6D0aHYTgDhCkyJiWFfMHFF4AAR0TurBZO7LMiPoU97D7CvI7lCT0%2FTSFF1c5%2B%2B5fD7vP0PKlDF%2B4o5bqp7%2Bs8wtP%2BtqwY6nQFJodwV1R2DKbSt%2BkrCRHKB8AsdRa2mw8r59BO7ZE3x7m%2FVl61yKoqq5F0G5VW1vr7rT3OHdrUP9aOQaLHtWpKpUby4H5LGAjSZzYkBEO6MunuQ79L6lZVBe23zE2NMxGdxkWCuuj5SNP12ewlslnC1aJBN38StdO520j%2Fs9ayIvtgsmZWkLC99Wv8Sb4xpAz2paN7a%2FTwFPqAnkZVD&X-Amz-Signature=889ccd4c0be2eb3fdc868b534c31c51c2c084542b44a89f37a4738203bff5d52&X-Amz-SignedHeaders=host&x-id=GetObject", + "name": "terms and conditions", + "size": 384244 + } + ] +} diff --git a/packages/embed/cypress/fixtures/e_signature_documents_no_file.json b/packages/embed/cypress/fixtures/e_signature_documents_no_file.json index 9bfc0df4..2afc80b8 100644 --- a/packages/embed/cypress/fixtures/e_signature_documents_no_file.json +++ b/packages/embed/cypress/fixtures/e_signature_documents_no_file.json @@ -1,3 +1,3 @@ { - "error": "File not found for ID(s) 6df1ceb5-72e5-4e38-9eef-66ee085aec19" -} \ No newline at end of file + "error": "File not found for ID(s) 6df1ceb5-72e5-4e38-9eef-66ee085aec19" +} diff --git a/packages/embed/cypress/fixtures/e_signature_documents_no_ids.json b/packages/embed/cypress/fixtures/e_signature_documents_no_ids.json index 45e1f7a1..c5e05f59 100644 --- a/packages/embed/cypress/fixtures/e_signature_documents_no_ids.json +++ b/packages/embed/cypress/fixtures/e_signature_documents_no_ids.json @@ -1,4 +1,4 @@ { - "code": "2413", - "error": "\"ids\" does not contain 1 required value(s)" -} \ No newline at end of file + "code": "2413", + "error": "\"ids\" does not contain 1 required value(s)" +} diff --git a/packages/embed/cypress/fixtures/products_config.json b/packages/embed/cypress/fixtures/products_config.json index 62e1012c..3b38e8d1 100644 --- a/packages/embed/cypress/fixtures/products_config.json +++ b/packages/embed/cypress/fixtures/products_config.json @@ -1,160 +1,127 @@ { - "idSelection": { - "basic_kyc": { - "ZA": [ - "NATIONAL_ID", - "NATIONAL_ID_NO_PHOTO" - ], - "UG": [ - "NATIONAL_ID_NO_PHOTO" - ], - "GH": [ - "SSNIT", - "VOTER_ID", - "NEW_VOTER_ID", - "DRIVERS_LICENSE", - "PASSPORT" - ], - "KE": [ - "NATIONAL_ID", - "ALIEN_CARD", - "PASSPORT", - "NATIONAL_ID_NO_PHOTO", - "DRIVERS_LICENSE" - ], - "NG": [ - "V_NIN", - "CAC", - "VOTER_ID", - "NIN_V2", - "DRIVERS_LICENSE", - "NIN", - "NIN_SLIP", - "BANK_ACCOUNT", - "NATIONAL_ID", - "TIN", - "BVN", - "BVN_MFA", - "PHONE_NUMBER", - "PASSPORT" - ] - }, - "biometric_kyc": { - "ZA": [ - "NATIONAL_ID", - "NATIONAL_ID_NO_PHOTO" - ], - "UG": [ - "NATIONAL_ID_NO_PHOTO" - ], - "GH": [ - "SSNIT", - "VOTER_ID", - "NEW_VOTER_ID", - "DRIVERS_LICENSE", - "PASSPORT" - ], - "KE": [ - "NATIONAL_ID", - "ALIEN_CARD", - "PASSPORT", - "NATIONAL_ID_NO_PHOTO" - ], - "NG": [ - "V_NIN", - "CAC", - "VOTER_ID", - "NIN_V2", - "DRIVERS_LICENSE", - "NIN", - "NIN_SLIP", - "BANK_ACCOUNT", - "NATIONAL_ID", - "TIN", - "BVN", - "BVN_MFA", - "PASSPORT" - ] - }, - "enhanced_kyc": { - "ZA": [ - "NATIONAL_ID", - "NATIONAL_ID_NO_PHOTO" - ], - "UG": [ - "NATIONAL_ID_NO_PHOTO" - ], - "GH": [ - "SSNIT", - "VOTER_ID", - "NEW_VOTER_ID", - "DRIVERS_LICENSE", - "PASSPORT" - ], - "KE": [ - "NATIONAL_ID", - "ALIEN_CARD", - "PASSPORT", - "NATIONAL_ID_NO_PHOTO", - "DRIVERS_LICENSE", - "KRA_PIN" - ], - "NG": [ - "V_NIN", - "CAC", - "VOTER_ID", - "NIN_V2", - "DRIVERS_LICENSE", - "NIN", - "NIN_SLIP", - "BANK_ACCOUNT", - "NATIONAL_ID", - "TIN", - "BVN", - "BVN_MFA", - "PASSPORT" - ] - }, - "doc_verification": { - "ZA": [ - "NATIONAL_ID", - "NATIONAL_ID_NO_PHOTO" - ], - "UG": [ - "NATIONAL_ID_NO_PHOTO" - ], - "GH": [ - "SSNIT", - "VOTER_ID", - "NEW_VOTER_ID", - "DRIVERS_LICENSE", - "PASSPORT" - ], - "KE": [ - "NATIONAL_ID", - "ALIEN_CARD", - "PASSPORT", - "NATIONAL_ID_NO_PHOTO" - ], - "NG": [ - "V_NIN", - "CAC", - "VOTER_ID", - "NIN_V2", - "DRIVERS_LICENSE", - "NIN", - "NIN_SLIP", - "BANK_ACCOUNT", - "NATIONAL_ID", - "TIN", - "PASSPORT" - ] - } + "idSelection": { + "basic_kyc": { + "ZA": ["NATIONAL_ID", "NATIONAL_ID_NO_PHOTO"], + "UG": ["NATIONAL_ID_NO_PHOTO"], + "GH": [ + "SSNIT", + "VOTER_ID", + "NEW_VOTER_ID", + "DRIVERS_LICENSE", + "PASSPORT" + ], + "KE": [ + "NATIONAL_ID", + "ALIEN_CARD", + "PASSPORT", + "NATIONAL_ID_NO_PHOTO", + "DRIVERS_LICENSE" + ], + "NG": [ + "V_NIN", + "CAC", + "VOTER_ID", + "NIN_V2", + "DRIVERS_LICENSE", + "NIN", + "NIN_SLIP", + "BANK_ACCOUNT", + "NATIONAL_ID", + "TIN", + "BVN", + "BVN_MFA", + "PHONE_NUMBER", + "PASSPORT" + ] }, - "consentRequired": { - "NG": [ - "NIN_V2", - "BVN_MFA" - ] + "biometric_kyc": { + "ZA": ["NATIONAL_ID", "NATIONAL_ID_NO_PHOTO"], + "UG": ["NATIONAL_ID_NO_PHOTO"], + "GH": [ + "SSNIT", + "VOTER_ID", + "NEW_VOTER_ID", + "DRIVERS_LICENSE", + "PASSPORT" + ], + "KE": ["NATIONAL_ID", "ALIEN_CARD", "PASSPORT", "NATIONAL_ID_NO_PHOTO"], + "NG": [ + "V_NIN", + "CAC", + "VOTER_ID", + "NIN_V2", + "DRIVERS_LICENSE", + "NIN", + "NIN_SLIP", + "BANK_ACCOUNT", + "NATIONAL_ID", + "TIN", + "BVN", + "BVN_MFA", + "PASSPORT" + ] + }, + "enhanced_kyc": { + "ZA": ["NATIONAL_ID", "NATIONAL_ID_NO_PHOTO"], + "UG": ["NATIONAL_ID_NO_PHOTO"], + "GH": [ + "SSNIT", + "VOTER_ID", + "NEW_VOTER_ID", + "DRIVERS_LICENSE", + "PASSPORT" + ], + "KE": [ + "NATIONAL_ID", + "ALIEN_CARD", + "PASSPORT", + "NATIONAL_ID_NO_PHOTO", + "DRIVERS_LICENSE", + "KRA_PIN" + ], + "NG": [ + "V_NIN", + "CAC", + "VOTER_ID", + "NIN_V2", + "DRIVERS_LICENSE", + "NIN", + "NIN_SLIP", + "BANK_ACCOUNT", + "NATIONAL_ID", + "TIN", + "BVN", + "BVN_MFA", + "PASSPORT" + ] + }, + "doc_verification": { + "ZA": ["NATIONAL_ID", "NATIONAL_ID_NO_PHOTO"], + "UG": ["NATIONAL_ID_NO_PHOTO"], + "GH": [ + "SSNIT", + "VOTER_ID", + "NEW_VOTER_ID", + "DRIVERS_LICENSE", + "PASSPORT" + ], + "KE": ["NATIONAL_ID", "ALIEN_CARD", "PASSPORT", "NATIONAL_ID_NO_PHOTO"], + "NG": [ + "V_NIN", + "CAC", + "VOTER_ID", + "NIN_V2", + "DRIVERS_LICENSE", + "NIN", + "NIN_SLIP", + "BANK_ACCOUNT", + "NATIONAL_ID", + "TIN", + "PASSPORT" + ] } + }, + "consentRequired": { + "NG": ["NIN_V2", "BVN_MFA"] + } } diff --git a/packages/embed/cypress/fixtures/valid_documents.json b/packages/embed/cypress/fixtures/valid_documents.json index f33c2931..ad6522b7 100644 --- a/packages/embed/cypress/fixtures/valid_documents.json +++ b/packages/embed/cypress/fixtures/valid_documents.json @@ -1,15877 +1,11785 @@ { - "valid_documents": [ - { - "country": { - "name": "Afghanistan", - "continent": "ASIA", - "code": "AF" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Albania", - "continent": "EUROPE", - "code": "AL" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": false, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Algeria", - "continent": "AFRICA", - "code": "DZ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "American Samoa", - "continent": "OCEANIA", - "code": "AS" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Andorra", - "continent": "EUROPE", - "code": "AD" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Angola", - "continent": "AFRICA", - "code": "AO" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Social ID", - "has_back": false, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Tax ID", - "has_back": false, - "code": "TAX_ID", - "example": [ - "Tax Identity Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Anguilla", - "continent": "NORTH_AMERICA", - "code": "AI" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Antigua and Barbuda", - "continent": "NORTH_AMERICA", - "code": "AG" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Social ID", - "has_back": false, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Argentina", - "continent": "SOUTH_AMERICA", - "code": "AR" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Vehicle Particulars", - "has_back": false, - "code": "VEHICLE_PARTICULARS", - "example": [ - "Vehicle passport" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Armenia", - "continent": "ASIA", - "code": "AM" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Aruba", - "continent": "NORTH_AMERICA", - "code": "AW" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Australia", - "continent": "OCEANIA", - "code": "AU" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Austria", - "continent": "EUROPE", - "code": "AT" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": true, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": false, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Azerbaijan", - "continent": "ASIA", - "code": "AZ" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": true, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Citizen ID", - "has_back": false, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Bahamas", - "continent": "NORTH_AMERICA", - "code": "BS" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": false, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Bahrain", - "continent": "ASIA", - "code": "BH" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Trade License", - "has_back": false, - "code": "TRADE_LICENSE", - "example": [ - "Trade License" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Bangladesh", - "continent": "ASIA", - "code": "BD" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Barbados", - "continent": "NORTH_AMERICA", - "code": "BB" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Belarus", - "continent": "EUROPE", - "code": "BY" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": false, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Social ID", - "has_back": false, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": false, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Belgium", - "continent": "EUROPE", - "code": "BE" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Belize", - "continent": "NORTH_AMERICA", - "code": "BZ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Social ID", - "has_back": false, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Benin", - "continent": "AFRICA", - "code": "BJ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Bermuda", - "continent": "NORTH_AMERICA", - "code": "BM" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": true, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Bhutan", - "continent": "ASIA", - "code": "BT" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": true, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Trade License", - "has_back": false, - "code": "TRADE_LICENSE", - "example": [ - "Trade License" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Bolivia, Plurinational State of", - "continent": "SOUTH_AMERICA", - "code": "BO" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Bonaire, Sint Eustatius and Saba", - "continent": "NORTH_AMERICA", - "code": "BQ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Bosnia and Herzegovina", - "continent": "EUROPE", - "code": "BA" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": false, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Botswana", - "continent": "AFRICA", - "code": "BW" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Brazil", - "continent": "SOUTH_AMERICA", - "code": "BR" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Brunei Darussalam", - "continent": "ASIA", - "code": "BN" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Bulgaria", - "continent": "EUROPE", - "code": "BG" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": true, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Burkina Faso", - "continent": "AFRICA", - "code": "BF" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Burundi", - "continent": "AFRICA", - "code": "BI" - }, - "id_types": [ - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Cambodia", - "continent": "ASIA", - "code": "KH" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Cameroon", - "continent": "AFRICA", - "code": "CM" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Canada", - "continent": "NORTH_AMERICA", - "code": "CA" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": true, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": false, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Cape Verde", - "continent": "AFRICA", - "code": "CV" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Cayman Islands", - "continent": "NORTH_AMERICA", - "code": "KY" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Central African Republic", - "continent": "AFRICA", - "code": "CF" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Chad", - "continent": "AFRICA", - "code": "TD" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Chile", - "continent": "SOUTH_AMERICA", - "code": "CL" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": true, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "China", - "continent": "ASIA", - "code": "CN" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Social ID", - "has_back": false, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": false, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Colombia", - "continent": "SOUTH_AMERICA", - "code": "CO" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": true, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Comoros", - "continent": "AFRICA", - "code": "KM" - }, - "id_types": [ - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Congo", - "continent": "AFRICA", - "code": "CG" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Tax ID", - "has_back": true, - "code": "TAX_ID", - "example": [ - "Tax Identity Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Congo, Democratic Republic of the", - "continent": "AFRICA", - "code": "CD" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Cook Islands", - "continent": "OCEANIA", - "code": "CK" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Costa Rica", - "continent": "NORTH_AMERICA", - "code": "CR" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Cote d'Ivoire", - "continent": "AFRICA", - "code": "CI" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Croatia", - "continent": "EUROPE", - "code": "HR" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": true, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Cuba", - "continent": "NORTH_AMERICA", - "code": "CU" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Curacao", - "continent": "NORTH_AMERICA", - "code": "CW" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Cyprus", - "continent": "ASIA", - "code": "CY" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Czech Republic", - "continent": "EUROPE", - "code": "CZ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": true, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Denmark", - "continent": "EUROPE", - "code": "DK" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Djibouti", - "continent": "AFRICA", - "code": "DJ" - }, - "id_types": [ - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Dominica", - "continent": "NORTH_AMERICA", - "code": "DM" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Dominican Republic", - "continent": "NORTH_AMERICA", - "code": "DO" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Ecuador", - "continent": "SOUTH_AMERICA", - "code": "EC" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Egypt", - "continent": "AFRICA", - "code": "EG" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": false, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "El Salvador", - "continent": "NORTH_AMERICA", - "code": "SV" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Equatorial Guinea", - "continent": "AFRICA", - "code": "GQ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Eritrea", - "continent": "AFRICA", - "code": "ER" - }, - "id_types": [ - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Estonia", - "continent": "EUROPE", - "code": "EE" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Eswatini", - "continent": "AFRICA", - "code": "SZ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Ethiopia", - "continent": "AFRICA", - "code": "ET" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Tax ID", - "has_back": false, - "code": "TAX_ID", - "example": [ - "Tax Identity Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Faroe Islands", - "continent": "EUROPE", - "code": "FO" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Fiji", - "continent": "OCEANIA", - "code": "FJ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Tax ID", - "has_back": false, - "code": "TAX_ID", - "example": [ - "Tax Identity Card" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Finland", - "continent": "EUROPE", - "code": "FI" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "France", - "continent": "EUROPE", - "code": "FR" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Trade License", - "has_back": false, - "code": "TRADE_LICENSE", - "example": [ - "Trade License" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "French Polynesia", - "continent": "OCEANIA", - "code": "PF" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Gabon", - "continent": "AFRICA", - "code": "GA" - }, - "id_types": [ - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Gambia", - "continent": "AFRICA", - "code": "GM" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Georgia", - "continent": "ASIA", - "code": "GE" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": false, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Germany", - "continent": "EUROPE", - "code": "DE" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Ghana", - "continent": "AFRICA", - "code": "GH" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "Ghana Card", - "Ecowas ID", - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Social ID", - "has_back": true, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Gibraltar", - "continent": "EUROPE", - "code": "GI" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Greece", - "continent": "EUROPE", - "code": "GR" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Greenland", - "continent": "NORTH_AMERICA", - "code": "GL" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Grenada", - "continent": "NORTH_AMERICA", - "code": "GD" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": true, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Guam", - "continent": "OCEANIA", - "code": "GU" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": false, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Guatemala", - "continent": "NORTH_AMERICA", - "code": "GT" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": false, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Guernsey", - "continent": "EUROPE", - "code": "GG" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Guinea", - "continent": "AFRICA", - "code": "GN" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Guinea-Bissau", - "continent": "AFRICA", - "code": "GW" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Guyana", - "continent": "SOUTH_AMERICA", - "code": "GY" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Haiti", - "continent": "NORTH_AMERICA", - "code": "HT" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Holy See (Vatican City State)", - "continent": "EUROPE", - "code": "VA" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Honduras", - "continent": "NORTH_AMERICA", - "code": "HN" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Hong Kong", - "continent": "ASIA", - "code": "HK" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Hungary", - "continent": "EUROPE", - "code": "HU" - }, - "id_types": [ - { - "name": "Address Card", - "has_back": true, - "code": "ADDRESS_CARD", - "example": [ - "Address card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Iceland", - "continent": "EUROPE", - "code": "IS" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "India", - "continent": "ASIA", - "code": "IN" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": true, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Tax ID", - "has_back": true, - "code": "TAX_ID", - "example": [ - "Tax Identity Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Indonesia", - "continent": "ASIA", - "code": "ID" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": false, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Tax ID", - "has_back": false, - "code": "TAX_ID", - "example": [ - "Tax Identity Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Iran, Islamic Republic of", - "continent": "ASIA", - "code": "IR" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": false, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": false, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Iraq", - "continent": "ASIA", - "code": "IQ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Ireland", - "continent": "EUROPE", - "code": "IE" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Isle of Man", - "continent": "EUROPE", - "code": "IM" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Israel", - "continent": "ASIA", - "code": "IL" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": false, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Italy", - "continent": "EUROPE", - "code": "IT" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Tax ID", - "has_back": true, - "code": "TAX_ID", - "example": [ - "Tax Identity Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Jamaica", - "continent": "NORTH_AMERICA", - "code": "JM" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Japan", - "continent": "ASIA", - "code": "JP" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": false, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": false, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Jersey", - "continent": "EUROPE", - "code": "JE" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Jordan", - "continent": "ASIA", - "code": "JO" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Kazakhstan", - "continent": "ASIA", - "code": "KZ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Kenya", - "continent": "AFRICA", - "code": "KE" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": false, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Kiribati", - "continent": "OCEANIA", - "code": "KI" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Korea, Democratic People's Republic of", - "continent": "ASIA", - "code": "KP" - }, - "id_types": [ - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Korea, Republic of", - "continent": "ASIA", - "code": "KR" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": true, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Social ID", - "has_back": true, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Kosovo", - "continent": "EUROPE", - "code": "XK" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Kuwait", - "continent": "ASIA", - "code": "KW" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Kyrgyzstan", - "continent": "ASIA", - "code": "KG" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": true, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Lao People's Democratic Republic", - "continent": "ASIA", - "code": "LA" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Latvia", - "continent": "EUROPE", - "code": "LV" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": true, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Lebanon", - "continent": "ASIA", - "code": "LB" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Lesotho", - "continent": "AFRICA", - "code": "LS" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Liberia", - "continent": "AFRICA", - "code": "LR" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Libya", - "continent": "AFRICA", - "code": "LY" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Liechtenstein", - "continent": "EUROPE", - "code": "LI" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Lithuania", - "continent": "EUROPE", - "code": "LT" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Luxembourg", - "continent": "EUROPE", - "code": "LU" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Macao", - "continent": "ASIA", - "code": "MO" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Madagascar", - "continent": "AFRICA", - "code": "MG" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Malawi", - "continent": "AFRICA", - "code": "MW" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Malaysia", - "continent": "ASIA", - "code": "MY" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Maldives", - "continent": "ASIA", - "code": "MV" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": true, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Mali", - "continent": "AFRICA", - "code": "ML" - }, - "id_types": [ - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Malta", - "continent": "EUROPE", - "code": "MT" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Marshall Islands", - "continent": "OCEANIA", - "code": "MH" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": false, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Mauritania", - "continent": "AFRICA", - "code": "MR" - }, - "id_types": [ - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Mauritius", - "continent": "AFRICA", - "code": "MU" - }, - "id_types": [ - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Mexico", - "continent": "NORTH_AMERICA", - "code": "MX" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Social ID", - "has_back": true, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Micronesia, Federated States of", - "continent": "OCEANIA", - "code": "FM" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Moldova, Republic of", - "continent": "EUROPE", - "code": "MD" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Monaco", - "continent": "EUROPE", - "code": "MC" - }, - "id_types": [ - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Mongolia", - "continent": "ASIA", - "code": "MN" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": true, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Montenegro", - "continent": "EUROPE", - "code": "ME" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Montserrat", - "continent": "NORTH_AMERICA", - "code": "MS" - }, - "id_types": [ - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Morocco", - "continent": "AFRICA", - "code": "MA" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Mozambique", - "continent": "AFRICA", - "code": "MZ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Trade License", - "has_back": false, - "code": "TRADE_LICENSE", - "example": [ - "Trade License" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Myanmar", - "continent": "ASIA", - "code": "MM" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Social ID", - "has_back": true, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Namibia", - "continent": "AFRICA", - "code": "NA" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Nauru", - "continent": "OCEANIA", - "code": "NR" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Nepal", - "continent": "ASIA", - "code": "NP" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": true, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": false, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Tax ID", - "has_back": false, - "code": "TAX_ID", - "example": [ - "Tax Identity Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Netherlands", - "continent": "EUROPE", - "code": "NL" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": true, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "New Zealand", - "continent": "OCEANIA", - "code": "NZ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Nicaragua", - "continent": "NORTH_AMERICA", - "code": "NI" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Niger", - "continent": "AFRICA", - "code": "NE" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Nigeria", - "continent": "AFRICA", - "code": "NG" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Niue", - "continent": "OCEANIA", - "code": "NU" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "North Macedonia, Republic of", - "continent": "EUROPE", - "code": "MK" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Northern Mariana Islands", - "continent": "OCEANIA", - "code": "MP" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Norway", - "continent": "EUROPE", - "code": "NO" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Oman", - "continent": "ASIA", - "code": "OM" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Pakistan", - "continent": "ASIA", - "code": "PK" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Palau", - "continent": "OCEANIA", - "code": "PW" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Palestine, State of", - "continent": "ASIA", - "code": "PS" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Panama", - "continent": "NORTH_AMERICA", - "code": "PA" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Papua New Guinea", - "continent": "OCEANIA", - "code": "PG" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Paraguay", - "continent": "SOUTH_AMERICA", - "code": "PY" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Peru", - "continent": "SOUTH_AMERICA", - "code": "PE" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Philippines", - "continent": "ASIA", - "code": "PH" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": true, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Citizen ID", - "has_back": false, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Social ID", - "has_back": true, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Tax ID", - "has_back": true, - "code": "TAX_ID", - "example": [ - "Tax Identity Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Poland", - "continent": "EUROPE", - "code": "PL" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Vehicle Particulars", - "has_back": false, - "code": "VEHICLE_PARTICULARS", - "example": [ - "Vehicle passport" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Portugal", - "continent": "EUROPE", - "code": "PT" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Puerto Rico", - "continent": "NORTH_AMERICA", - "code": "PR" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Qatar", - "continent": "ASIA", - "code": "QA" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": false, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Romania", - "continent": "EUROPE", - "code": "RO" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Social ID", - "has_back": false, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Russian Federation", - "continent": "EUROPE", - "code": "RU" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": true, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Citizen ID", - "has_back": true, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Social ID", - "has_back": true, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Vehicle Particulars", - "has_back": false, - "code": "VEHICLE_PARTICULARS", - "example": [ - "Vehicle passport" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Rwanda", - "continent": "AFRICA", - "code": "RW" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Saint Helena, Ascension and Tristan da Cunha", - "continent": "AFRICA", - "code": "SH" - }, - "id_types": [ - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Saint Kitts and Nevis", - "continent": "NORTH_AMERICA", - "code": "KN" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Saint Lucia", - "continent": "NORTH_AMERICA", - "code": "LC" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Saint Martin (French part)", - "continent": "NORTH_AMERICA", - "code": "MF" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Saint Vincent and the Grenadines", - "continent": "NORTH_AMERICA", - "code": "VC" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Samoa", - "continent": "OCEANIA", - "code": "WS" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "San Marino", - "continent": "EUROPE", - "code": "SM" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Sao Tome and Principe", - "continent": "AFRICA", - "code": "ST" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Saudi Arabia", - "continent": "ASIA", - "code": "SA" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": false, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Senegal", - "continent": "AFRICA", - "code": "SN" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Serbia", - "continent": "EUROPE", - "code": "RS" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Seychelles", - "continent": "AFRICA", - "code": "SC" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Sierra Leone", - "continent": "AFRICA", - "code": "SL" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Social ID", - "has_back": false, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Singapore", - "continent": "ASIA", - "code": "SG" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Sint Maarten (Dutch part)", - "continent": "NORTH_AMERICA", - "code": "SX" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Slovakia", - "continent": "EUROPE", - "code": "SK" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Slovenia", - "continent": "EUROPE", - "code": "SI" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Solomon Islands", - "continent": "OCEANIA", - "code": "SB" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Somalia", - "continent": "AFRICA", - "code": "SO" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": false, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "South Africa", - "continent": "AFRICA", - "code": "ZA" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Green Book", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": true, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards", - "Temporary Asylum Visa" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "South Sudan", - "continent": "AFRICA", - "code": "SS" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": false, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Spain", - "continent": "EUROPE", - "code": "ES" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Sri Lanka", - "continent": "ASIA", - "code": "LK" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Sudan", - "continent": "AFRICA", - "code": "SD" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": false, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": true, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Suriname", - "continent": "SOUTH_AMERICA", - "code": "SR" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Sweden", - "continent": "EUROPE", - "code": "SE" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Tax ID", - "has_back": true, - "code": "TAX_ID", - "example": [ - "Tax Identity Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Switzerland", - "continent": "EUROPE", - "code": "CH" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Syrian Arab Republic", - "continent": "ASIA", - "code": "SY" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": true, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Taiwan, Province of China", - "continent": "ASIA", - "code": "TW" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Tajikistan", - "continent": "ASIA", - "code": "TJ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Tanzania, United Republic of", - "continent": "AFRICA", - "code": "TZ" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": true, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Thailand", - "continent": "ASIA", - "code": "TH" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": false, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Timor-Leste", - "continent": "ASIA", - "code": "TL" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Togo", - "continent": "AFRICA", - "code": "TG" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Tonga", - "continent": "OCEANIA", - "code": "TO" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Trinidad and Tobago", - "continent": "NORTH_AMERICA", - "code": "TT" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Tunisia", - "continent": "AFRICA", - "code": "TN" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Turkey", - "continent": "ASIA", - "code": "TR" - }, - "id_types": [ - { - "name": "Address Card", - "has_back": false, - "code": "ADDRESS_CARD", - "example": [ - "Address card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Turkmenistan", - "continent": "ASIA", - "code": "TM" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Turks and Caicos Islands", - "continent": "NORTH_AMERICA", - "code": "TC" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Tuvalu", - "continent": "OCEANIA", - "code": "TV" - }, - "id_types": [ - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Uganda", - "continent": "AFRICA", - "code": "UG" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": false, - "code": "RESIDENT_ID", - "example": [ - "Refugee ID", - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Ukraine", - "continent": "EUROPE", - "code": "UA" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": false, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": true, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Social ID", - "has_back": false, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "United Arab Emirates", - "continent": "ASIA", - "code": "AE" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Trade License", - "has_back": false, - "code": "TRADE_LICENSE", - "example": [ - "Trade License" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Work Permit", - "has_back": false, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "United Kingdom", - "continent": "EUROPE", - "code": "GB" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": true, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Social ID", - "has_back": true, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": false, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "United States", - "continent": "NORTH_AMERICA", - "code": "US" - }, - "id_types": [ - { - "name": "Alien ID", - "has_back": true, - "code": "ALIEN_CARD", - "example": [ - "Alien Identity Card" - ] - }, - { - "name": "Citizen ID", - "has_back": false, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Health Card", - "has_back": false, - "code": "HEALTH_CARD", - "example": [ - "Health Insurance Card", - "Health Card" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": true, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": true, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Seaman's ID", - "has_back": false, - "code": "SEAMANS_ID", - "example": [ - "Seaman Id", - "Seaman Book" - ] - }, - { - "name": "Social ID", - "has_back": true, - "code": "SOCIAL_ID", - "example": [ - "Social Identity Card", - "Social Security Card" - ] - }, - { - "name": "Tax ID", - "has_back": false, - "code": "TAX_ID", - "example": [ - "Tax Identity Card" - ] - }, - { - "name": "Travel Document", - "has_back": true, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Tribal Card", - "has_back": true, - "code": "TRIBAL_CARD", - "example": [ - "Tribal card" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Voter's ID", - "has_back": true, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Work Permit", - "has_back": true, - "code": "WORK_PERMIT", - "example": [ - "Authorization cards", - "Labour cards", - "Employment Cards" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Uruguay", - "continent": "SOUTH_AMERICA", - "code": "UY" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Uzbekistan", - "continent": "ASIA", - "code": "UZ" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": true, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Occupation Card", - "has_back": true, - "code": "OCCUPATION_CARD", - "example": [ - "Driver training certificate", - "Police Id", - "Professional Id" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Vanuatu", - "continent": "OCEANIA", - "code": "VU" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Venezuela, Bolivarian Republic of", - "continent": "SOUTH_AMERICA", - "code": "VE" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Viet Nam", - "continent": "ASIA", - "code": "VN" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Resident ID", - "has_back": true, - "code": "RESIDENT_ID", - "example": [ - "Residency permits", - "Residency cards" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Uniformed Services Card", - "has_back": true, - "code": "UNIFORMED_SERVICES_CARD", - "example": [ - "Military", - "Other Armed Forces Id" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Virgin Islands, British", - "continent": "NORTH_AMERICA", - "code": "VG" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": false, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Virgin Islands, U.S.", - "continent": "NORTH_AMERICA", - "code": "VI" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": false, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Provisional Driver's License", - "has_back": false, - "code": "PROVISIONAL_DRIVERS_LICENSE", - "example": [ - "Driving permits", - "Provisional driving licenses" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Western Sahara", - "continent": "AFRICA", - "code": "EH" - }, - "id_types": [ - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Yemen", - "continent": "ASIA", - "code": "YE" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": false, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Zambia", - "continent": "AFRICA", - "code": "ZM" - }, - "id_types": [ - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Registration Certificate", - "has_back": true, - "code": "REGISTRATION_CERTIFICATE", - "example": [ - "Registration certificate" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Voter's ID", - "has_back": false, - "code": "VOTER_ID", - "example": [ - "Voter's Identity Card" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - }, - { - "country": { - "name": "Zimbabwe", - "continent": "AFRICA", - "code": "ZW" - }, - "id_types": [ - { - "name": "Citizen ID", - "has_back": false, - "code": "CITIZEN_ID", - "example": [ - "Citizenship Card and Seasonal Citizen ID" - ] - }, - { - "name": "Driver's License", - "has_back": true, - "code": "DRIVERS_LICENSE", - "example": [ - "Driving License" - ] - }, - { - "name": "Identity Card", - "has_back": true, - "code": "IDENTITY_CARD", - "example": [ - "National IDs", - "Consular IDs", - "Diplomat IDs" - ] - }, - { - "name": "Passport", - "has_back": false, - "code": "PASSPORT", - "example": [ - "Passports" - ] - }, - { - "name": "Travel Document", - "has_back": false, - "code": "TRAVEL_DOC", - "example": [ - "Border crossing documents", - "Refugee document", - "Visas" - ] - }, - { - "name": "Others", - "has_back": true, - "code": "", - "example": [ - "My document is not listed" - ] - } - ] - } - ] + "valid_documents": [ + { + "country": { + "name": "Afghanistan", + "continent": "ASIA", + "code": "AF" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Albania", + "continent": "EUROPE", + "code": "AL" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": false, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Algeria", + "continent": "AFRICA", + "code": "DZ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "American Samoa", + "continent": "OCEANIA", + "code": "AS" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Andorra", + "continent": "EUROPE", + "code": "AD" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Angola", + "continent": "AFRICA", + "code": "AO" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Social ID", + "has_back": false, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Tax ID", + "has_back": false, + "code": "TAX_ID", + "example": ["Tax Identity Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Anguilla", + "continent": "NORTH_AMERICA", + "code": "AI" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Antigua and Barbuda", + "continent": "NORTH_AMERICA", + "code": "AG" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Social ID", + "has_back": false, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Argentina", + "continent": "SOUTH_AMERICA", + "code": "AR" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Vehicle Particulars", + "has_back": false, + "code": "VEHICLE_PARTICULARS", + "example": ["Vehicle passport"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Armenia", + "continent": "ASIA", + "code": "AM" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Aruba", + "continent": "NORTH_AMERICA", + "code": "AW" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Australia", + "continent": "OCEANIA", + "code": "AU" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Austria", + "continent": "EUROPE", + "code": "AT" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": true, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": false, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Azerbaijan", + "continent": "ASIA", + "code": "AZ" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": true, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Citizen ID", + "has_back": false, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Bahamas", + "continent": "NORTH_AMERICA", + "code": "BS" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": false, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Bahrain", + "continent": "ASIA", + "code": "BH" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Trade License", + "has_back": false, + "code": "TRADE_LICENSE", + "example": ["Trade License"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Bangladesh", + "continent": "ASIA", + "code": "BD" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Barbados", + "continent": "NORTH_AMERICA", + "code": "BB" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Belarus", + "continent": "EUROPE", + "code": "BY" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": false, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Social ID", + "has_back": false, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": false, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Belgium", + "continent": "EUROPE", + "code": "BE" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Belize", + "continent": "NORTH_AMERICA", + "code": "BZ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Social ID", + "has_back": false, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Benin", + "continent": "AFRICA", + "code": "BJ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Bermuda", + "continent": "NORTH_AMERICA", + "code": "BM" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": true, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Bhutan", + "continent": "ASIA", + "code": "BT" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": true, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Trade License", + "has_back": false, + "code": "TRADE_LICENSE", + "example": ["Trade License"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Bolivia, Plurinational State of", + "continent": "SOUTH_AMERICA", + "code": "BO" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Bonaire, Sint Eustatius and Saba", + "continent": "NORTH_AMERICA", + "code": "BQ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Bosnia and Herzegovina", + "continent": "EUROPE", + "code": "BA" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": false, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Botswana", + "continent": "AFRICA", + "code": "BW" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Brazil", + "continent": "SOUTH_AMERICA", + "code": "BR" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Brunei Darussalam", + "continent": "ASIA", + "code": "BN" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Bulgaria", + "continent": "EUROPE", + "code": "BG" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": true, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Burkina Faso", + "continent": "AFRICA", + "code": "BF" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Burundi", + "continent": "AFRICA", + "code": "BI" + }, + "id_types": [ + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Cambodia", + "continent": "ASIA", + "code": "KH" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Cameroon", + "continent": "AFRICA", + "code": "CM" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Canada", + "continent": "NORTH_AMERICA", + "code": "CA" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": true, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": false, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Cape Verde", + "continent": "AFRICA", + "code": "CV" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Cayman Islands", + "continent": "NORTH_AMERICA", + "code": "KY" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Central African Republic", + "continent": "AFRICA", + "code": "CF" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Chad", + "continent": "AFRICA", + "code": "TD" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Chile", + "continent": "SOUTH_AMERICA", + "code": "CL" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": true, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "China", + "continent": "ASIA", + "code": "CN" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Social ID", + "has_back": false, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": false, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Colombia", + "continent": "SOUTH_AMERICA", + "code": "CO" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": true, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Comoros", + "continent": "AFRICA", + "code": "KM" + }, + "id_types": [ + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Congo", + "continent": "AFRICA", + "code": "CG" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Tax ID", + "has_back": true, + "code": "TAX_ID", + "example": ["Tax Identity Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Congo, Democratic Republic of the", + "continent": "AFRICA", + "code": "CD" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Cook Islands", + "continent": "OCEANIA", + "code": "CK" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Costa Rica", + "continent": "NORTH_AMERICA", + "code": "CR" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Cote d'Ivoire", + "continent": "AFRICA", + "code": "CI" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Croatia", + "continent": "EUROPE", + "code": "HR" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": true, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Cuba", + "continent": "NORTH_AMERICA", + "code": "CU" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Curacao", + "continent": "NORTH_AMERICA", + "code": "CW" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Cyprus", + "continent": "ASIA", + "code": "CY" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Czech Republic", + "continent": "EUROPE", + "code": "CZ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": true, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Denmark", + "continent": "EUROPE", + "code": "DK" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Djibouti", + "continent": "AFRICA", + "code": "DJ" + }, + "id_types": [ + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Dominica", + "continent": "NORTH_AMERICA", + "code": "DM" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Dominican Republic", + "continent": "NORTH_AMERICA", + "code": "DO" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Ecuador", + "continent": "SOUTH_AMERICA", + "code": "EC" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Egypt", + "continent": "AFRICA", + "code": "EG" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": false, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "El Salvador", + "continent": "NORTH_AMERICA", + "code": "SV" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Equatorial Guinea", + "continent": "AFRICA", + "code": "GQ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Eritrea", + "continent": "AFRICA", + "code": "ER" + }, + "id_types": [ + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Estonia", + "continent": "EUROPE", + "code": "EE" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Eswatini", + "continent": "AFRICA", + "code": "SZ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Ethiopia", + "continent": "AFRICA", + "code": "ET" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Tax ID", + "has_back": false, + "code": "TAX_ID", + "example": ["Tax Identity Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Faroe Islands", + "continent": "EUROPE", + "code": "FO" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Fiji", + "continent": "OCEANIA", + "code": "FJ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Tax ID", + "has_back": false, + "code": "TAX_ID", + "example": ["Tax Identity Card"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Finland", + "continent": "EUROPE", + "code": "FI" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "France", + "continent": "EUROPE", + "code": "FR" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Trade License", + "has_back": false, + "code": "TRADE_LICENSE", + "example": ["Trade License"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "French Polynesia", + "continent": "OCEANIA", + "code": "PF" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Gabon", + "continent": "AFRICA", + "code": "GA" + }, + "id_types": [ + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Gambia", + "continent": "AFRICA", + "code": "GM" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Georgia", + "continent": "ASIA", + "code": "GE" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": false, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Germany", + "continent": "EUROPE", + "code": "DE" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Ghana", + "continent": "AFRICA", + "code": "GH" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": [ + "Ghana Card", + "Ecowas ID", + "National IDs", + "Consular IDs", + "Diplomat IDs" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Social ID", + "has_back": true, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Gibraltar", + "continent": "EUROPE", + "code": "GI" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Greece", + "continent": "EUROPE", + "code": "GR" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Greenland", + "continent": "NORTH_AMERICA", + "code": "GL" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Grenada", + "continent": "NORTH_AMERICA", + "code": "GD" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": true, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Guam", + "continent": "OCEANIA", + "code": "GU" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Provisional Driver's License", + "has_back": false, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Guatemala", + "continent": "NORTH_AMERICA", + "code": "GT" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": false, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Guernsey", + "continent": "EUROPE", + "code": "GG" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Guinea", + "continent": "AFRICA", + "code": "GN" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Guinea-Bissau", + "continent": "AFRICA", + "code": "GW" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Guyana", + "continent": "SOUTH_AMERICA", + "code": "GY" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Haiti", + "continent": "NORTH_AMERICA", + "code": "HT" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Holy See (Vatican City State)", + "continent": "EUROPE", + "code": "VA" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Honduras", + "continent": "NORTH_AMERICA", + "code": "HN" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Hong Kong", + "continent": "ASIA", + "code": "HK" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Hungary", + "continent": "EUROPE", + "code": "HU" + }, + "id_types": [ + { + "name": "Address Card", + "has_back": true, + "code": "ADDRESS_CARD", + "example": ["Address card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Iceland", + "continent": "EUROPE", + "code": "IS" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "India", + "continent": "ASIA", + "code": "IN" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": true, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Tax ID", + "has_back": true, + "code": "TAX_ID", + "example": ["Tax Identity Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Indonesia", + "continent": "ASIA", + "code": "ID" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": false, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Tax ID", + "has_back": false, + "code": "TAX_ID", + "example": ["Tax Identity Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Iran, Islamic Republic of", + "continent": "ASIA", + "code": "IR" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": false, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": false, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Iraq", + "continent": "ASIA", + "code": "IQ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Ireland", + "continent": "EUROPE", + "code": "IE" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Isle of Man", + "continent": "EUROPE", + "code": "IM" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Israel", + "continent": "ASIA", + "code": "IL" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": false, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Italy", + "continent": "EUROPE", + "code": "IT" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Tax ID", + "has_back": true, + "code": "TAX_ID", + "example": ["Tax Identity Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Jamaica", + "continent": "NORTH_AMERICA", + "code": "JM" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Japan", + "continent": "ASIA", + "code": "JP" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": false, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": false, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Jersey", + "continent": "EUROPE", + "code": "JE" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Jordan", + "continent": "ASIA", + "code": "JO" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Kazakhstan", + "continent": "ASIA", + "code": "KZ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Kenya", + "continent": "AFRICA", + "code": "KE" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": false, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Kiribati", + "continent": "OCEANIA", + "code": "KI" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Korea, Democratic People's Republic of", + "continent": "ASIA", + "code": "KP" + }, + "id_types": [ + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Korea, Republic of", + "continent": "ASIA", + "code": "KR" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": true, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Social ID", + "has_back": true, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Kosovo", + "continent": "EUROPE", + "code": "XK" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Kuwait", + "continent": "ASIA", + "code": "KW" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Kyrgyzstan", + "continent": "ASIA", + "code": "KG" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": true, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Lao People's Democratic Republic", + "continent": "ASIA", + "code": "LA" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Latvia", + "continent": "EUROPE", + "code": "LV" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": true, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Lebanon", + "continent": "ASIA", + "code": "LB" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Lesotho", + "continent": "AFRICA", + "code": "LS" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Liberia", + "continent": "AFRICA", + "code": "LR" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Libya", + "continent": "AFRICA", + "code": "LY" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Liechtenstein", + "continent": "EUROPE", + "code": "LI" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Lithuania", + "continent": "EUROPE", + "code": "LT" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Luxembourg", + "continent": "EUROPE", + "code": "LU" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Macao", + "continent": "ASIA", + "code": "MO" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Madagascar", + "continent": "AFRICA", + "code": "MG" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Malawi", + "continent": "AFRICA", + "code": "MW" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Malaysia", + "continent": "ASIA", + "code": "MY" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Maldives", + "continent": "ASIA", + "code": "MV" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": true, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Mali", + "continent": "AFRICA", + "code": "ML" + }, + "id_types": [ + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Malta", + "continent": "EUROPE", + "code": "MT" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Marshall Islands", + "continent": "OCEANIA", + "code": "MH" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": false, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Mauritania", + "continent": "AFRICA", + "code": "MR" + }, + "id_types": [ + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Mauritius", + "continent": "AFRICA", + "code": "MU" + }, + "id_types": [ + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Mexico", + "continent": "NORTH_AMERICA", + "code": "MX" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Social ID", + "has_back": true, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Micronesia, Federated States of", + "continent": "OCEANIA", + "code": "FM" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Moldova, Republic of", + "continent": "EUROPE", + "code": "MD" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Monaco", + "continent": "EUROPE", + "code": "MC" + }, + "id_types": [ + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Mongolia", + "continent": "ASIA", + "code": "MN" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": true, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Montenegro", + "continent": "EUROPE", + "code": "ME" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Montserrat", + "continent": "NORTH_AMERICA", + "code": "MS" + }, + "id_types": [ + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Morocco", + "continent": "AFRICA", + "code": "MA" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Mozambique", + "continent": "AFRICA", + "code": "MZ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Trade License", + "has_back": false, + "code": "TRADE_LICENSE", + "example": ["Trade License"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Myanmar", + "continent": "ASIA", + "code": "MM" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Social ID", + "has_back": true, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Namibia", + "continent": "AFRICA", + "code": "NA" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Nauru", + "continent": "OCEANIA", + "code": "NR" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Nepal", + "continent": "ASIA", + "code": "NP" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": true, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": false, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Tax ID", + "has_back": false, + "code": "TAX_ID", + "example": ["Tax Identity Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Netherlands", + "continent": "EUROPE", + "code": "NL" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": true, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "New Zealand", + "continent": "OCEANIA", + "code": "NZ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Nicaragua", + "continent": "NORTH_AMERICA", + "code": "NI" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Niger", + "continent": "AFRICA", + "code": "NE" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Nigeria", + "continent": "AFRICA", + "code": "NG" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Niue", + "continent": "OCEANIA", + "code": "NU" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "North Macedonia, Republic of", + "continent": "EUROPE", + "code": "MK" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Northern Mariana Islands", + "continent": "OCEANIA", + "code": "MP" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Norway", + "continent": "EUROPE", + "code": "NO" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Oman", + "continent": "ASIA", + "code": "OM" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Pakistan", + "continent": "ASIA", + "code": "PK" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Palau", + "continent": "OCEANIA", + "code": "PW" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Palestine, State of", + "continent": "ASIA", + "code": "PS" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Panama", + "continent": "NORTH_AMERICA", + "code": "PA" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Papua New Guinea", + "continent": "OCEANIA", + "code": "PG" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Paraguay", + "continent": "SOUTH_AMERICA", + "code": "PY" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Peru", + "continent": "SOUTH_AMERICA", + "code": "PE" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Philippines", + "continent": "ASIA", + "code": "PH" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": true, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Citizen ID", + "has_back": false, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Social ID", + "has_back": true, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Tax ID", + "has_back": true, + "code": "TAX_ID", + "example": ["Tax Identity Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Poland", + "continent": "EUROPE", + "code": "PL" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Vehicle Particulars", + "has_back": false, + "code": "VEHICLE_PARTICULARS", + "example": ["Vehicle passport"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Portugal", + "continent": "EUROPE", + "code": "PT" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Puerto Rico", + "continent": "NORTH_AMERICA", + "code": "PR" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Qatar", + "continent": "ASIA", + "code": "QA" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": false, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Romania", + "continent": "EUROPE", + "code": "RO" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Social ID", + "has_back": false, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Russian Federation", + "continent": "EUROPE", + "code": "RU" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": true, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Citizen ID", + "has_back": true, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Social ID", + "has_back": true, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Vehicle Particulars", + "has_back": false, + "code": "VEHICLE_PARTICULARS", + "example": ["Vehicle passport"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Rwanda", + "continent": "AFRICA", + "code": "RW" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Saint Helena, Ascension and Tristan da Cunha", + "continent": "AFRICA", + "code": "SH" + }, + "id_types": [ + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Saint Kitts and Nevis", + "continent": "NORTH_AMERICA", + "code": "KN" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Saint Lucia", + "continent": "NORTH_AMERICA", + "code": "LC" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Saint Martin (French part)", + "continent": "NORTH_AMERICA", + "code": "MF" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Saint Vincent and the Grenadines", + "continent": "NORTH_AMERICA", + "code": "VC" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Samoa", + "continent": "OCEANIA", + "code": "WS" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "San Marino", + "continent": "EUROPE", + "code": "SM" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Sao Tome and Principe", + "continent": "AFRICA", + "code": "ST" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Saudi Arabia", + "continent": "ASIA", + "code": "SA" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": false, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Senegal", + "continent": "AFRICA", + "code": "SN" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Serbia", + "continent": "EUROPE", + "code": "RS" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Seychelles", + "continent": "AFRICA", + "code": "SC" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Sierra Leone", + "continent": "AFRICA", + "code": "SL" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Social ID", + "has_back": false, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Singapore", + "continent": "ASIA", + "code": "SG" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Sint Maarten (Dutch part)", + "continent": "NORTH_AMERICA", + "code": "SX" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Slovakia", + "continent": "EUROPE", + "code": "SK" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Slovenia", + "continent": "EUROPE", + "code": "SI" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Solomon Islands", + "continent": "OCEANIA", + "code": "SB" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Somalia", + "continent": "AFRICA", + "code": "SO" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": false, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "South Africa", + "continent": "AFRICA", + "code": "ZA" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": [ + "National IDs", + "Green Book", + "Consular IDs", + "Diplomat IDs" + ] + }, + { + "name": "Passport", + "has_back": true, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": [ + "Residency permits", + "Residency cards", + "Temporary Asylum Visa" + ] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "South Sudan", + "continent": "AFRICA", + "code": "SS" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": false, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Spain", + "continent": "EUROPE", + "code": "ES" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Sri Lanka", + "continent": "ASIA", + "code": "LK" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Sudan", + "continent": "AFRICA", + "code": "SD" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": false, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": true, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Suriname", + "continent": "SOUTH_AMERICA", + "code": "SR" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Sweden", + "continent": "EUROPE", + "code": "SE" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Tax ID", + "has_back": true, + "code": "TAX_ID", + "example": ["Tax Identity Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Switzerland", + "continent": "EUROPE", + "code": "CH" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Syrian Arab Republic", + "continent": "ASIA", + "code": "SY" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": true, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Taiwan, Province of China", + "continent": "ASIA", + "code": "TW" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Tajikistan", + "continent": "ASIA", + "code": "TJ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Tanzania, United Republic of", + "continent": "AFRICA", + "code": "TZ" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": true, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Thailand", + "continent": "ASIA", + "code": "TH" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": false, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Timor-Leste", + "continent": "ASIA", + "code": "TL" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Togo", + "continent": "AFRICA", + "code": "TG" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Tonga", + "continent": "OCEANIA", + "code": "TO" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Trinidad and Tobago", + "continent": "NORTH_AMERICA", + "code": "TT" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Tunisia", + "continent": "AFRICA", + "code": "TN" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Turkey", + "continent": "ASIA", + "code": "TR" + }, + "id_types": [ + { + "name": "Address Card", + "has_back": false, + "code": "ADDRESS_CARD", + "example": ["Address card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Turkmenistan", + "continent": "ASIA", + "code": "TM" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Turks and Caicos Islands", + "continent": "NORTH_AMERICA", + "code": "TC" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Tuvalu", + "continent": "OCEANIA", + "code": "TV" + }, + "id_types": [ + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Uganda", + "continent": "AFRICA", + "code": "UG" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": false, + "code": "RESIDENT_ID", + "example": ["Refugee ID", "Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Ukraine", + "continent": "EUROPE", + "code": "UA" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": false, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": true, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Social ID", + "has_back": false, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "United Arab Emirates", + "continent": "ASIA", + "code": "AE" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Trade License", + "has_back": false, + "code": "TRADE_LICENSE", + "example": ["Trade License"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Work Permit", + "has_back": false, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "United Kingdom", + "continent": "EUROPE", + "code": "GB" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": true, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Social ID", + "has_back": true, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": false, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "United States", + "continent": "NORTH_AMERICA", + "code": "US" + }, + "id_types": [ + { + "name": "Alien ID", + "has_back": true, + "code": "ALIEN_CARD", + "example": ["Alien Identity Card"] + }, + { + "name": "Citizen ID", + "has_back": false, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Health Card", + "has_back": false, + "code": "HEALTH_CARD", + "example": ["Health Insurance Card", "Health Card"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": true, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Provisional Driver's License", + "has_back": true, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Seaman's ID", + "has_back": false, + "code": "SEAMANS_ID", + "example": ["Seaman Id", "Seaman Book"] + }, + { + "name": "Social ID", + "has_back": true, + "code": "SOCIAL_ID", + "example": ["Social Identity Card", "Social Security Card"] + }, + { + "name": "Tax ID", + "has_back": false, + "code": "TAX_ID", + "example": ["Tax Identity Card"] + }, + { + "name": "Travel Document", + "has_back": true, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Tribal Card", + "has_back": true, + "code": "TRIBAL_CARD", + "example": ["Tribal card"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Voter's ID", + "has_back": true, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Work Permit", + "has_back": true, + "code": "WORK_PERMIT", + "example": ["Authorization cards", "Labour cards", "Employment Cards"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Uruguay", + "continent": "SOUTH_AMERICA", + "code": "UY" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Uzbekistan", + "continent": "ASIA", + "code": "UZ" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": true, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Occupation Card", + "has_back": true, + "code": "OCCUPATION_CARD", + "example": [ + "Driver training certificate", + "Police Id", + "Professional Id" + ] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Vanuatu", + "continent": "OCEANIA", + "code": "VU" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Venezuela, Bolivarian Republic of", + "continent": "SOUTH_AMERICA", + "code": "VE" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Viet Nam", + "continent": "ASIA", + "code": "VN" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Resident ID", + "has_back": true, + "code": "RESIDENT_ID", + "example": ["Residency permits", "Residency cards"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Uniformed Services Card", + "has_back": true, + "code": "UNIFORMED_SERVICES_CARD", + "example": ["Military", "Other Armed Forces Id"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Virgin Islands, British", + "continent": "NORTH_AMERICA", + "code": "VG" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": false, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Virgin Islands, U.S.", + "continent": "NORTH_AMERICA", + "code": "VI" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": false, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Provisional Driver's License", + "has_back": false, + "code": "PROVISIONAL_DRIVERS_LICENSE", + "example": ["Driving permits", "Provisional driving licenses"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Western Sahara", + "continent": "AFRICA", + "code": "EH" + }, + "id_types": [ + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Yemen", + "continent": "ASIA", + "code": "YE" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": false, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Zambia", + "continent": "AFRICA", + "code": "ZM" + }, + "id_types": [ + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Registration Certificate", + "has_back": true, + "code": "REGISTRATION_CERTIFICATE", + "example": ["Registration certificate"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Voter's ID", + "has_back": false, + "code": "VOTER_ID", + "example": ["Voter's Identity Card"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + }, + { + "country": { + "name": "Zimbabwe", + "continent": "AFRICA", + "code": "ZW" + }, + "id_types": [ + { + "name": "Citizen ID", + "has_back": false, + "code": "CITIZEN_ID", + "example": ["Citizenship Card and Seasonal Citizen ID"] + }, + { + "name": "Driver's License", + "has_back": true, + "code": "DRIVERS_LICENSE", + "example": ["Driving License"] + }, + { + "name": "Identity Card", + "has_back": true, + "code": "IDENTITY_CARD", + "example": ["National IDs", "Consular IDs", "Diplomat IDs"] + }, + { + "name": "Passport", + "has_back": false, + "code": "PASSPORT", + "example": ["Passports"] + }, + { + "name": "Travel Document", + "has_back": false, + "code": "TRAVEL_DOC", + "example": ["Border crossing documents", "Refugee document", "Visas"] + }, + { + "name": "Others", + "has_back": true, + "code": "", + "example": ["My document is not listed"] + } + ] + } + ] } diff --git a/packages/embed/cypress/pages/authentication.html b/packages/embed/cypress/pages/authentication.html index 2961bbb7..cfcdc668 100644 --- a/packages/embed/cypress/pages/authentication.html +++ b/packages/embed/cypress/pages/authentication.html @@ -24,20 +24,20 @@ - ``` - - The provided backend endpoint uses the NodeJS Server to Server library and ExpressJS: - - ```js - const express = require('express'); - const { v4: UUID } = require('uuid'); - - if (process.env.NODE_ENV === 'development') { - const dotenv = require('dotenv'); - - dotenv.config(); - } - - const SIDCore = require('smile-identity-core'); - const SIDSignature = SIDCore.Signature; - const SIDWebAPI = SIDCore.WebApi; - - const app = express(); - - app.use(express.json({ limit: '500kb' })); - app.use(express.static('public')); - - app.post('/', async (req, res, next) => { - try { - const { PARTNER_ID, API_KEY, SID_SERVER } = process.env; - const connection = new SIDWebAPI( - PARTNER_ID, - '/callback', - API_KEY, - SID_SERVER - ); - - const partner_params_from_server = { - user_id: `user-${UUID()}`, - job_id: `job-${UUID()}`, - job_type: 4 // job_type is the simplest job we have which enrolls a user using their selfie - }; - - const { images, partner_params: { libraryVersion } } = req.body; - - const options = { - return_job_status: true - }; - - const partner_params = Object.assign({}, partner_params_from_server, { libraryVersion }); - - - const result = await connection.submit_job( - partner_params, - images, - {}, - options - ); - - res.json(result); - } catch (e) { - console.error(e); - } - }); - - // NOTE: This can be used to process responses. don't forget to add it as a callback option in the `connection` config on L22 - // https://docs.usesmileid.com/further-reading/faqs/how-do-i-setup-a-callback - app.post('/callback', (req, res, next) => { - }); - - app.listen(process.env.PORT || 4000); - ``` - - This approach can also be achieved using other Server to Server libraries. + When the user approves the captured image, an `imagesComputed` event is dispatched. The event returns a [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent) payload in `e.detail`. + + Here's a script example to handle the event and send data to a backend endpoint: + + ```html + + ``` + + The provided backend endpoint uses the NodeJS Server to Server library and ExpressJS: + + ```js + const express = require('express'); + const { v4: UUID } = require('uuid'); + + if (process.env.NODE_ENV === 'development') { + const dotenv = require('dotenv'); + + dotenv.config(); + } + + const SIDCore = require('smile-identity-core'); + const SIDSignature = SIDCore.Signature; + const SIDWebAPI = SIDCore.WebApi; + + const app = express(); + + app.use(express.json({ limit: '500kb' })); + app.use(express.static('public')); + + app.post('/', async (req, res, next) => { + try { + const { PARTNER_ID, API_KEY, SID_SERVER } = process.env; + const connection = new SIDWebAPI( + PARTNER_ID, + '/callback', + API_KEY, + SID_SERVER, + ); + + const partner_params_from_server = { + user_id: `user-${UUID()}`, + job_id: `job-${UUID()}`, + job_type: 4, // job_type is the simplest job we have which enrolls a user using their selfie + }; + + const { + images, + partner_params: { libraryVersion }, + } = req.body; + + const options = { + return_job_status: true, + }; + + const partner_params = Object.assign({}, partner_params_from_server, { + libraryVersion, + }); + + const result = await connection.submit_job( + partner_params, + images, + {}, + options, + ); + + res.json(result); + } catch (e) { + console.error(e); + } + }); + + // NOTE: This can be used to process responses. don't forget to add it as a callback option in the `connection` config on L22 + // https://docs.usesmileid.com/further-reading/faqs/how-do-i-setup-a-callback + app.post('/callback', (req, res, next) => {}); + + app.listen(process.env.PORT || 4000); + ``` + + This approach can also be achieved using other Server to Server libraries. ## Compatibility diff --git a/packages/smart-camera-web/cypress/e2e/document-upload.cy.js b/packages/smart-camera-web/cypress/e2e/document-upload.cy.js index b092ebd3..057a8635 100644 --- a/packages/smart-camera-web/cypress/e2e/document-upload.cy.js +++ b/packages/smart-camera-web/cypress/e2e/document-upload.cy.js @@ -5,28 +5,26 @@ describe('SmartCameraWeb - Document Upload', () => { describe(' - default', () => { it('should not have the document-capture-mode attribute set', () => { - cy - .get('smart-camera-web') - .should('not.have.attr', 'document-capture-modes'); + cy.get('smart-camera-web').should( + 'not.have.attr', + 'document-capture-modes', + ); }); it('should only show the "Take Photo" button', () => { cy.navigateFaceCaptureScreens(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #upload-photo-label') .should('not.exist'); @@ -35,34 +33,35 @@ describe('SmartCameraWeb - Document Upload', () => { describe(' - upload', () => { beforeEach(() => { - cy - .get('smart-camera-web') - .invoke('attr', 'document-capture-modes', 'upload'); + cy.get('smart-camera-web').invoke( + 'attr', + 'document-capture-modes', + 'upload', + ); }); it('should have the document-capture-modes attribute set to upload', () => { - cy - .get('smart-camera-web') - .should('have.attr', 'document-capture-modes', 'upload'); + cy.get('smart-camera-web').should( + 'have.attr', + 'document-capture-modes', + 'upload', + ); }); it('should only show the "Upload Photo" button', () => { cy.navigateFaceCaptureScreens(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .should('not.exist'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #upload-photo-label') .should('be.visible'); @@ -71,26 +70,22 @@ describe('SmartCameraWeb - Document Upload', () => { it('should accept an image that is just-right by dimensions', () => { cy.navigateFaceCaptureScreens(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #upload-photo-label') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #upload-photo-label') .selectFile('cypress/fixtures/just-right.png'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen') .should('be.visible'); @@ -99,56 +94,53 @@ describe('SmartCameraWeb - Document Upload', () => { it('should show an error message when an image is too-large in memory size', () => { cy.navigateFaceCaptureScreens(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #upload-photo-label') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #upload-photo-label') .selectFile('cypress/fixtures/too-large.png'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#error') - .should('contain', 'too-large.png is too large. Please ensure that the file is less than'); + .should( + 'contain', + 'too-large.png is too large. Please ensure that the file is less than', + ); }); }); describe(' - both', () => { beforeEach(() => { - cy - .get('smart-camera-web') - .invoke('attr', 'document-capture-modes', 'camera, upload'); + cy.get('smart-camera-web').invoke( + 'attr', + 'document-capture-modes', + 'camera, upload', + ); }); it('should have the document-capture-mode attribute set to a combination of both modes', () => { - cy - .get('smart-camera-web') - .should('have.attr', 'document-capture-modes'); + cy.get('smart-camera-web').should('have.attr', 'document-capture-modes'); }); it('should show both the "Take Photo" button and the "Upload Photo" button', () => { cy.navigateFaceCaptureScreens(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #upload-photo-label') .should('be.visible'); diff --git a/packages/smart-camera-web/cypress/e2e/image-tests.cy.js b/packages/smart-camera-web/cypress/e2e/image-tests.cy.js index 0fe4fac2..0567deb0 100644 --- a/packages/smart-camera-web/cypress/e2e/image-tests.cy.js +++ b/packages/smart-camera-web/cypress/e2e/image-tests.cy.js @@ -10,35 +10,23 @@ context('SmartCameraWeb - Image Tests', () => { }); it('should show an error message when image is unusable', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#failed-image-test-screen') .should('be.visible'); diff --git a/packages/smart-camera-web/cypress/e2e/skip-back-of-id.cy.js b/packages/smart-camera-web/cypress/e2e/skip-back-of-id.cy.js index 74e81a3f..6ef6d91b 100644 --- a/packages/smart-camera-web/cypress/e2e/skip-back-of-id.cy.js +++ b/packages/smart-camera-web/cypress/e2e/skip-back-of-id.cy.js @@ -5,80 +5,54 @@ context('SmartCameraWeb - Skip Back of ID Document Capture', () => { context('when a document type does not exist', () => { it('should switch from the back of ID entry screen to the thanks screen on clicking the "Skip this step" button', () => { - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-camera-access') .click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #skip-this-step') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#thanks-screen') .should('be.visible'); @@ -87,74 +61,48 @@ context('SmartCameraWeb - Skip Back of ID Document Capture', () => { context('when a document-type exists', () => { beforeEach(() => { - cy - .get('smart-camera-web') - .invoke('attr', 'document-type', 'GREEN_BOOK'); + cy.get('smart-camera-web').invoke('attr', 'document-type', 'GREEN_BOOK'); }); it('should not show the "skip this step" button', () => { - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-camera-access') .click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #skip-this-step') .should('not.exist'); diff --git a/packages/smart-camera-web/cypress/e2e/smart-camera-web-attribution.cy.js b/packages/smart-camera-web/cypress/e2e/smart-camera-web-attribution.cy.js index eceefc82..6f1fe9d9 100644 --- a/packages/smart-camera-web/cypress/e2e/smart-camera-web-attribution.cy.js +++ b/packages/smart-camera-web/cypress/e2e/smart-camera-web-attribution.cy.js @@ -1,8 +1,7 @@ describe('SmartCameraWeb', () => { it('shows attribution by default', () => { cy.visit('/'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('powered-by-smile-id') .should('be.visible'); @@ -10,8 +9,7 @@ describe('SmartCameraWeb', () => { it('hides attribution when `hide-attribution` attribute is passed', () => { cy.visit('/capture-back-of-id-hide-attribution'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('powered-by-smile-id') .should('not.exist'); diff --git a/packages/smart-camera-web/cypress/e2e/smart-camera-web-back-press.cy.js b/packages/smart-camera-web/cypress/e2e/smart-camera-web-back-press.cy.js index 2f7c64c7..8163153e 100644 --- a/packages/smart-camera-web/cypress/e2e/smart-camera-web-back-press.cy.js +++ b/packages/smart-camera-web/cypress/e2e/smart-camera-web-back-press.cy.js @@ -11,360 +11,227 @@ context('SmartCameraWeb', () => { }); it('should find the button to request-camera-access', () => { - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-camera-access') .should('contain.text', 'Request Camera Access'); }); it('should navigate to "back_pressed" when back button on request page button is pressed', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access'); + cy.get('smart-camera-web').shadow().find('#request-camera-access'); - cy - .get('smart-camera-web') - .shadow() - .find('#back-button-exit') - .click(); + cy.get('smart-camera-web').shadow().find('#back-button-exit').click(); cy.location('pathname').should('eq', '/back_pressed'); - cy - .get('smart-camera-web') - .should('not.exist'); + cy.get('smart-camera-web').should('not.exist'); }); it('should navigate to "back_pressed" when back button is pressed in camera screen', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('.back-button-exit') .last() .click(); cy.location('pathname').should('eq', '/back_pressed'); - cy - .get('smart-camera-web') - .should('not.exist'); + cy.get('smart-camera-web').should('not.exist'); }); it('should switch from the idEntryScreen to the selfieScreen on clicking the back button', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#back-button-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#back-button-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); }); it('should switch from the idCameraScreen to the idEntryScreen on clicking the "back" button', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#back-button-id-entry') - .click(); + cy.get('smart-camera-web').shadow().find('#back-button-id-entry').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); }); it('should switch from the backOfIdEntryScreen to the idReviewScreen when the back button is clicked', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#back-button-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#back-button-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen') .should('be.visible'); }); it('should switch from the backOfIdCameraScreen to the backOfIdEntryScreen on clicking the "back" button', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-button-back-id-entry') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); }); it('should navigate to "closed" when close button is pressed in request screen', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-screen-close') - .click(); + cy.get('smart-camera-web').shadow().find('#request-screen-close').click(); cy.exitScreens(); }); it('should navigate to "closed" when close button is pressed in selfie screen', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen-close') .last() @@ -374,398 +241,231 @@ context('SmartCameraWeb', () => { }); it('should navigate to "closed" when close button is pressed in selfie review screen', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#review-screen-close') - .click(); + cy.get('smart-camera-web').shadow().find('#review-screen-close').click(); cy.exitScreens(); }); it('should navigate to "closed" when close button is pressed in id entry screen', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#id-entry-close') - .click(); + cy.get('smart-camera-web').shadow().find('#id-entry-close').click(); cy.exitScreens(); }); it('should navigate to "closed" when close button is pressed in id camera screen', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') - .shadow() - .find('#id-camera-close') - .click(); + cy.get('smart-camera-web').shadow().find('#id-camera-close').click(); cy.exitScreens(); }); it('should navigate to "closed" when close button is pressed in id review screen', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#id-review-screen-close') - .click(); + cy.get('smart-camera-web').shadow().find('#id-review-screen-close').click(); cy.exitScreens(); }); it('should navigate to "closed" when close button is pressed in id back entry screen', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#back-id-entry-close') - .click(); + cy.get('smart-camera-web').shadow().find('#back-id-entry-close').click(); cy.exitScreens(); }); it('should navigate to "closed" when close button is pressed in id back camera screen', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') - .shadow() - .find('#back-id-camera-close') - .click(); + cy.get('smart-camera-web').shadow().find('#back-id-camera-close').click(); cy.exitScreens(); }); it('should navigate to "closed" when close button is pressed in id back review screen', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#capture-back-of-id-image') .click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-review-screen-close') .click(); diff --git a/packages/smart-camera-web/cypress/e2e/smart-camera-web-hide-back-to-host.cy.js b/packages/smart-camera-web/cypress/e2e/smart-camera-web-hide-back-to-host.cy.js index 066470f3..3396d859 100644 --- a/packages/smart-camera-web/cypress/e2e/smart-camera-web-hide-back-to-host.cy.js +++ b/packages/smart-camera-web/cypress/e2e/smart-camera-web-hide-back-to-host.cy.js @@ -1,8 +1,7 @@ describe('SmartCameraWeb', () => { it('shows attribution by default', () => { cy.visit('/'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('.back-button-exit') .should('be.visible'); @@ -10,8 +9,7 @@ describe('SmartCameraWeb', () => { it('hides back exit button when `hide-back-to-host` attribute is passed', () => { cy.visit('/capture-id-hide-back-to-host'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('.back-button-exit') .should('not.exist'); diff --git a/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-back-of-id-portrait.cy.js b/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-back-of-id-portrait.cy.js index 1c363779..56c828a2 100644 --- a/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-back-of-id-portrait.cy.js +++ b/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-back-of-id-portrait.cy.js @@ -11,736 +11,506 @@ context('SmartCameraWeb', () => { }); it('should find the button to request-camera-access', () => { - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-camera-access') .should('contain.text', 'Request Camera Access'); }); it('should switch from the request screen to the camera screen on clicking "Request Camera Access"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); }); it('should switch from the camera screen to the review screen on clicking "Take Selfie"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('be.visible'); }); it('should show a "SMILE" prompt halfway through the video capture', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#smile-cta') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(3000); + cy.wait(3000); - cy - .get('smart-camera-web') - .shadow() - .find('#smile-cta') - .should('be.visible'); + cy.get('smart-camera-web').shadow().find('#smile-cta').should('be.visible'); - cy - .wait(5000); + cy.wait(5000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#smile-cta') .should('not.be.visible'); }); it('should switch from the review screen back to the camera screen on clicking "Re-take selfie"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#restart-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#restart-image-capture').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('not.be.visible'); }); it('should switch from the review screen to the ID camera screen on clicking "Yes, use this one"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.portrait') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.portrait .actions') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() - .find('#id-camera-screen .id-video-container.portrait .image-frame-portrait') + .find( + '#id-camera-screen .id-video-container.portrait .image-frame-portrait', + ) .should('be.visible'); }); it('should capture a photo when "capture-id-image" is clicked, and move to the "id-review-screen"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen .id-video-container.portrait img') .should('have.css', 'transform', 'none'); }); it('should switch from the review screen to the back of ID camera screen on clicking the "Approve" icon', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen .id-video-container.portrait') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen .id-video-container.portrait .actions') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() - .find('#back-of-id-camera-screen .id-video-container.portrait .image-frame-portrait') + .find( + '#back-of-id-camera-screen .id-video-container.portrait .image-frame-portrait', + ) .should('be.visible'); }); it('should capture a photo, and move from the back of ID camera screen to the back of ID review screen on clicking the "capture" icon', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#capture-back-of-id-image') .click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-review-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-review-screen .id-video-container.portrait img') .should('have.css', 'transform', 'none'); }); it('should switch from the back of ID review screen to the back of ID camera screen on clicking the "Re-Capture" icon', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#capture-back-of-id-image') .click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#re-capture-back-of-id-image') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen .id-video-container.portrait') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen .id-video-container.portrait .actions') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() - .find('#back-of-id-camera-screen .id-video-container.portrait .image-frame-portrait') + .find( + '#back-of-id-camera-screen .id-video-container.portrait .image-frame-portrait', + ) .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen .id-video-container.landscape') .should('not.exist'); }); it('should switch from the back of ID review screen to the thanks screen on clicking the "Approve" icon', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#capture-back-of-id-image') .click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#select-back-of-id-image') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#thanks-screen') .should('be.visible'); diff --git a/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-back-of-id.cy.js b/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-back-of-id.cy.js index 14cc5175..7d2a7e5e 100644 --- a/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-back-of-id.cy.js +++ b/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-back-of-id.cy.js @@ -11,736 +11,504 @@ context('SmartCameraWeb', () => { }); it('should find the button to request-camera-access', () => { - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-camera-access') .should('contain.text', 'Request Camera Access'); }); it('should switch from the request screen to the camera screen on clicking "Request Camera Access"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); }); it('should switch from the camera screen to the review screen on clicking "Take Selfie"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('be.visible'); }); it('should show a "SMILE" prompt halfway through the video capture', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#smile-cta') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(3000); + cy.wait(3000); - cy - .get('smart-camera-web') - .shadow() - .find('#smile-cta') - .should('be.visible'); + cy.get('smart-camera-web').shadow().find('#smile-cta').should('be.visible'); - cy - .wait(5000); + cy.wait(5000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#smile-cta') .should('not.be.visible'); }); it('should switch from the review screen back to the camera screen on clicking "Re-take selfie"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#restart-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#restart-image-capture').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('not.be.visible'); }); it('should switch from the review screen to the ID camera screen on clicking "Yes, use this one"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.landscape') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.landscape .actions') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.landscape .image-frame') .should('be.visible'); }); it('should capture a photo when "capture-id-image" is clicked, and move to the "id-review-screen"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen .id-video-container.landscape img') .should('not.have.css', 'transform', 'none'); }); it('should switch from the review screen to the back of ID camera screen on clicking the "Approve" icon', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen .id-video-container.landscape') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen .id-video-container.landscape .actions') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() - .find('#back-of-id-camera-screen .id-video-container.landscape .image-frame') + .find( + '#back-of-id-camera-screen .id-video-container.landscape .image-frame', + ) .should('be.visible'); }); it('should capture a photo, and move from the back of ID camera screen to the back of ID review screen on clicking the "capture" icon', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#capture-back-of-id-image') .click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-review-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-review-screen .id-video-container.landscape img') .should('not.have.css', 'transform', 'none'); }); it.only('should switch from the back of ID review screen to the back of ID camera screen on clicking the "Re-Capture" icon', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#capture-back-of-id-image') .click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#re-capture-back-of-id-image') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen .id-video-container.landscape') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen .id-video-container.landscape .actions') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() - .find('#back-of-id-camera-screen .id-video-container.landscape .image-frame') + .find( + '#back-of-id-camera-screen .id-video-container.landscape .image-frame', + ) .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen .id-video-container.portrait') .should('not.exist'); }); it('should switch from the back of ID review screen to the thanks screen on clicking the "Approve" icon', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#capture-back-of-id-image') .click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#select-back-of-id-image') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#back-of-id-review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#thanks-screen') .should('be.visible'); diff --git a/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-id-portrait.cy.js b/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-id-portrait.cy.js index bf30d936..d74055d7 100644 --- a/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-id-portrait.cy.js +++ b/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-id-portrait.cy.js @@ -11,441 +11,291 @@ context('SmartCameraWeb', () => { }); it('should find the button to request-camera-access', () => { - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-camera-access') .should('contain.text', 'Request Camera Access'); }); it('should switch from the request screen to the camera screen on clicking "Request Camera Access"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); }); it('should switch from the camera screen to the review screen on clicking "Take Selfie"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('be.visible'); }); it('should show a "SMILE" prompt halfway through the video capture', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#smile-cta') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(3000); + cy.wait(3000); - cy - .get('smart-camera-web') - .shadow() - .find('#smile-cta') - .should('be.visible'); + cy.get('smart-camera-web').shadow().find('#smile-cta').should('be.visible'); - cy - .wait(5000); + cy.wait(5000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#smile-cta') .should('not.be.visible'); }); it('should switch from the review screen back to the camera screen on clicking "Re-take selfie"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#restart-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#restart-image-capture').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('not.be.visible'); }); it('should switch from the review screen to the id camera screen on clicking "Yes, use this one"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.portrait') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.portrait .actions') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() - .find('#id-camera-screen .id-video-container.portrait .image-frame-portrait') + .find( + '#id-camera-screen .id-video-container.portrait .image-frame-portrait', + ) .should('be.visible'); }); it('should capture a photo when "capture-id-image" is clicked, and move to the "id-review-screen"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen .id-video-container.portrait img') .should('have.css', 'transform', 'none'); }); it('should switch from the id review screen back to the camera screen on clicking the "Re-Capture" icon', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#re-capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#re-capture-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.portrait') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.portrait .actions') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() - .find('#id-camera-screen .id-video-container.portrait .image-frame-portrait') + .find( + '#id-camera-screen .id-video-container.portrait .image-frame-portrait', + ) .should('be.visible'); }); it('should switch from the review screen to the id camera screen on clicking the "Approve" icon', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#thanks-screen') .should('be.visible'); diff --git a/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-id.cy.js b/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-id.cy.js index 0259cf13..d651f53c 100644 --- a/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-id.cy.js +++ b/packages/smart-camera-web/cypress/e2e/smart-camera-web-with-id.cy.js @@ -10,441 +10,287 @@ context('SmartCameraWeb', () => { }); it('should find the button to request-camera-access', () => { - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-camera-access') .should('contain.text', 'Request Camera Access'); }); it('should switch from the request screen to the camera screen on clicking "Request Camera Access"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); }); it('should switch from the camera screen to the review screen on clicking "Take Selfie"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('be.visible'); }); it('should show a "SMILE" prompt halfway through the video capture', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#smile-cta') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(3000); + cy.wait(3000); - cy - .get('smart-camera-web') - .shadow() - .find('#smile-cta') - .should('be.visible'); + cy.get('smart-camera-web').shadow().find('#smile-cta').should('be.visible'); - cy - .wait(5000); + cy.wait(5000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#smile-cta') .should('not.be.visible'); }); it('should switch from the review screen back to the camera screen on clicking "Re-take selfie"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#restart-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#restart-image-capture').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('not.be.visible'); }); it('should switch from the review screen to the id camera screen on clicking "Yes, use this one"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.landscape') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.landscape .actions') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.landscape .image-frame') .should('be.visible'); }); it('should capture a photo when "capture-id-image" is clicked, and move to the "id-review-screen"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen .id-video-container.landscape img') .should('not.have.css', 'transform', 'none'); }); it('should switch from the id review screen back to the camera screen on clicking the "Re-Capture" icon', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#re-capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#re-capture-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.landscape') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.landscape .actions') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-camera-screen .id-video-container.landscape .image-frame') .should('be.visible'); }); it('should switch from the review screen to the id camera screen on clicking the "Approve" icon', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen #take-photo') .click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-entry-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#capture-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#capture-id-image').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-id-image') - .click(); + cy.get('smart-camera-web').shadow().find('#select-id-image').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#id-review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#thanks-screen') .should('be.visible'); diff --git a/packages/smart-camera-web/cypress/e2e/smart-camera-web.cy.js b/packages/smart-camera-web/cypress/e2e/smart-camera-web.cy.js index 873e6d9c..f096a487 100644 --- a/packages/smart-camera-web/cypress/e2e/smart-camera-web.cy.js +++ b/packages/smart-camera-web/cypress/e2e/smart-camera-web.cy.js @@ -10,204 +10,130 @@ context('SmartCameraWeb', () => { }); it('should find the button to request-camera-access', () => { - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-camera-access') .should('contain.text', 'Request Camera Access'); }); it('should switch from the request screen to the camera screen on clicking "Request Camera Access"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .wait(2000); + cy.wait(2000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); }); it('should switch from the camera screen to the review screen on clicking "Take Selfie"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('be.visible'); }); it('should show a "SMILE" prompt halfway through the video capture', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#smile-cta') .should('not.be.visible'); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(3000); + cy.wait(3000); - cy - .get('smart-camera-web') - .shadow() - .find('#smile-cta') - .should('be.visible'); + cy.get('smart-camera-web').shadow().find('#smile-cta').should('be.visible'); - cy - .wait(5000); + cy.wait(5000); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#smile-cta') .should('not.be.visible'); }); it('should switch from the review screen back to the camera screen on clicking "Re-take selfie"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#restart-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#restart-image-capture').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('not.be.visible'); }); it('should switch from the review screen to the thanks screen on clicking "Yes, use this one"', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#thanks-screen') .should('be.visible'); }); it('should switch to request screen when "Rest"', () => { - cy - .get('smart-camera-web').then((element) => { - element[0].reset(); - }); + cy.get('smart-camera-web').then((element) => { + element[0].reset(); + }); - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-screen') .should('not.be.visible'); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#camera-screen') .should('be.visible'); - cy - .get('smart-camera-web').then((element) => { - element[0].reset(); - }); + cy.get('smart-camera-web').then((element) => { + element[0].reset(); + }); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#request-screen') .should('be.visible'); diff --git a/packages/smart-camera-web/cypress/pages/capture-back-of-id-hide-attribution.html b/packages/smart-camera-web/cypress/pages/capture-back-of-id-hide-attribution.html index a5c3afde..4d5bbf8e 100644 --- a/packages/smart-camera-web/cypress/pages/capture-back-of-id-hide-attribution.html +++ b/packages/smart-camera-web/cypress/pages/capture-back-of-id-hide-attribution.html @@ -1,43 +1,39 @@ - - - - - + smart-camera-web { + margin-left: auto; + margin-right: auto; + max-width: 40ch; + padding: 1rem; + width: auto; + } + + - - - + + + - - - + + + diff --git a/packages/smart-camera-web/cypress/pages/capture-back-of-id-navigation.html b/packages/smart-camera-web/cypress/pages/capture-back-of-id-navigation.html index 06819973..1d8fcaa9 100644 --- a/packages/smart-camera-web/cypress/pages/capture-back-of-id-navigation.html +++ b/packages/smart-camera-web/cypress/pages/capture-back-of-id-navigation.html @@ -1,73 +1,73 @@ - - - - - + smart-camera-web { + margin-left: auto; + margin-right: auto; + max-width: 40ch; + padding: 1rem; + width: auto; + } + + - - - + + + - - + - + app.addEventListener('close', async (e) => { + location.href = '/closed'; + }); + + diff --git a/packages/smart-camera-web/cypress/pages/capture-back-of-id-portrait.html b/packages/smart-camera-web/cypress/pages/capture-back-of-id-portrait.html index 4eed7a6f..b611981d 100644 --- a/packages/smart-camera-web/cypress/pages/capture-back-of-id-portrait.html +++ b/packages/smart-camera-web/cypress/pages/capture-back-of-id-portrait.html @@ -1,43 +1,43 @@ - - - - - + smart-camera-web { + margin-left: auto; + margin-right: auto; + max-width: 40ch; + padding: 1rem; + width: auto; + } + + - - + - + disable-image-tests + > + - - - + + + diff --git a/packages/smart-camera-web/cypress/pages/capture-back-of-id.html b/packages/smart-camera-web/cypress/pages/capture-back-of-id.html index 6a6528bd..cfeebca9 100644 --- a/packages/smart-camera-web/cypress/pages/capture-back-of-id.html +++ b/packages/smart-camera-web/cypress/pages/capture-back-of-id.html @@ -1,42 +1,38 @@ - - - - - + smart-camera-web { + margin-left: auto; + margin-right: auto; + max-width: 40ch; + padding: 1rem; + width: auto; + } + + - - - + + - - - + + + diff --git a/packages/smart-camera-web/cypress/pages/capture-id-hide-back-to-host.html b/packages/smart-camera-web/cypress/pages/capture-id-hide-back-to-host.html index 4f7f01fd..c6564366 100644 --- a/packages/smart-camera-web/cypress/pages/capture-id-hide-back-to-host.html +++ b/packages/smart-camera-web/cypress/pages/capture-id-hide-back-to-host.html @@ -1,43 +1,39 @@ - - - - - + smart-camera-web { + margin-left: auto; + margin-right: auto; + max-width: 40ch; + padding: 1rem; + width: auto; + } + + - - - + + + - - - + + + diff --git a/packages/smart-camera-web/cypress/pages/capture-id-portrait.html b/packages/smart-camera-web/cypress/pages/capture-id-portrait.html index 36fdf5f8..343f1767 100644 --- a/packages/smart-camera-web/cypress/pages/capture-id-portrait.html +++ b/packages/smart-camera-web/cypress/pages/capture-id-portrait.html @@ -1,43 +1,43 @@ - - - - - + smart-camera-web { + margin-left: auto; + margin-right: auto; + max-width: 40ch; + padding: 1rem; + width: auto; + } + + - - + - + disable-image-tests + > + - - - + + + diff --git a/packages/smart-camera-web/cypress/pages/capture-id.html b/packages/smart-camera-web/cypress/pages/capture-id.html index 6c203ba5..b446b8fc 100644 --- a/packages/smart-camera-web/cypress/pages/capture-id.html +++ b/packages/smart-camera-web/cypress/pages/capture-id.html @@ -1,42 +1,38 @@ - - - - - + smart-camera-web { + margin-left: auto; + margin-right: auto; + max-width: 40ch; + padding: 1rem; + width: auto; + } + + - - - + + - - - + + + diff --git a/packages/smart-camera-web/cypress/pages/document-upload.html b/packages/smart-camera-web/cypress/pages/document-upload.html index 6a6528bd..cfeebca9 100644 --- a/packages/smart-camera-web/cypress/pages/document-upload.html +++ b/packages/smart-camera-web/cypress/pages/document-upload.html @@ -1,42 +1,38 @@ - - - - - + smart-camera-web { + margin-left: auto; + margin-right: auto; + max-width: 40ch; + padding: 1rem; + width: auto; + } + + - - - + + - - - + + + diff --git a/packages/smart-camera-web/cypress/pages/image-tests.html b/packages/smart-camera-web/cypress/pages/image-tests.html index 624e6bb0..aba55010 100644 --- a/packages/smart-camera-web/cypress/pages/image-tests.html +++ b/packages/smart-camera-web/cypress/pages/image-tests.html @@ -1,73 +1,72 @@ - - - - - + smart-camera-web { + margin-left: auto; + margin-right: auto; + max-width: 40ch; + padding: 1rem; + width: auto; + } + + - - - + + - - + - + app.addEventListener('close', async (e) => { + location.href = '/closed'; + }); + + diff --git a/packages/smart-camera-web/cypress/pages/index.html b/packages/smart-camera-web/cypress/pages/index.html index d50c65e3..ef97c1a2 100644 --- a/packages/smart-camera-web/cypress/pages/index.html +++ b/packages/smart-camera-web/cypress/pages/index.html @@ -1,73 +1,72 @@ - - - - - + smart-camera-web { + margin-left: auto; + margin-right: auto; + max-width: 40ch; + padding: 1rem; + width: auto; + } + + - - - + + - - + - + app.addEventListener('close', async (e) => { + location.href = '/closed'; + }); + + diff --git a/packages/smart-camera-web/cypress/support/commands.js b/packages/smart-camera-web/cypress/support/commands.js index b8e9792d..c9b63789 100644 --- a/packages/smart-camera-web/cypress/support/commands.js +++ b/packages/smart-camera-web/cypress/support/commands.js @@ -26,35 +26,19 @@ Cypress.Commands.add('exitScreens', () => { cy.location('pathname').should('eq', '/closed'); - cy - .get('smart-camera-web') - .should('not.exist'); + cy.get('smart-camera-web').should('not.exist'); }); Cypress.Commands.add('navigateFaceCaptureScreens', () => { - cy - .get('smart-camera-web') - .shadow() - .find('#request-camera-access') - .click(); + cy.get('smart-camera-web').shadow().find('#request-camera-access').click(); - cy - .get('smart-camera-web') - .shadow() - .find('#start-image-capture') - .click(); + cy.get('smart-camera-web').shadow().find('#start-image-capture').click(); - cy - .wait(8000); + cy.wait(8000); - cy - .get('smart-camera-web') - .shadow() - .find('#select-selfie') - .click(); + cy.get('smart-camera-web').shadow().find('#select-selfie').click(); - cy - .get('smart-camera-web') + cy.get('smart-camera-web') .shadow() .find('#review-screen') .should('not.be.visible'); diff --git a/packages/smart-camera-web/smart-camera-web.js b/packages/smart-camera-web/smart-camera-web.js index 5572b62e..3731cdc6 100644 --- a/packages/smart-camera-web/smart-camera-web.js +++ b/packages/smart-camera-web/smart-camera-web.js @@ -14,11 +14,17 @@ function isSamsungMultiCameraDevice() { return !Number.isNaN(modelNumber) && modelNumber >= smallerModelNumber; } -function getLivenessFramesIndices(totalNoOfFrames, numberOfFramesRequired = DEFAULT_NO_OF_LIVENESS_FRAMES) { +function getLivenessFramesIndices( + totalNoOfFrames, + numberOfFramesRequired = DEFAULT_NO_OF_LIVENESS_FRAMES, +) { const selectedFrames = []; if (totalNoOfFrames < numberOfFramesRequired) { - throw new Error('SmartCameraWeb: Minimum required no of frames is ', numberOfFramesRequired); + throw new Error( + 'SmartCameraWeb: Minimum required no of frames is ', + numberOfFramesRequired, + ); } const frameDivisor = numberOfFramesRequired - 1; @@ -58,25 +64,16 @@ class SmartFileUpload { static getHumanSize(numberOfBytes) { // Approximate to the closest prefixed unit - const units = [ - 'B', - 'kB', - 'MB', - 'GB', - 'TB', - 'PB', - 'EB', - 'ZB', - 'YB', - ]; + const units = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; const exponent = Math.min( Math.floor(Math.log(numberOfBytes) / Math.log(1024)), units.length - 1, ); const approx = numberOfBytes / 1024 ** exponent; - const output = exponent === 0 - ? `${numberOfBytes} bytes` - : `${approx.toFixed(0)} ${units[exponent]}`; + const output = + exponent === 0 + ? `${numberOfBytes} bytes` + : `${approx.toFixed(0)} ${units[exponent]}`; return output; } @@ -89,7 +86,11 @@ class SmartFileUpload { resolve(e.target.result); }; reader.onerror = () => { - reject(new Error('An error occurred reading the file. Please check the file, and try again')); + reject( + new Error( + 'An error occurred reading the file. Please check the file, and try again', + ), + ); }; reader.readAsDataURL(file); }); @@ -103,11 +104,15 @@ class SmartFileUpload { const file = files[0]; if (!SmartFileUpload.supportedTypes.includes(file.type)) { - throw new Error('Unsupported file format. Please ensure that you are providing a JPG or PNG image'); + throw new Error( + 'Unsupported file format. Please ensure that you are providing a JPG or PNG image', + ); } if (file.size > SmartFileUpload.memoryLimit) { - throw new Error(`${file.name} is too large. Please ensure that the file is less than ${SmartFileUpload.getHumanSize(SmartFileUpload.memoryLimit)}.`); + throw new Error( + `${file.name} is too large. Please ensure that the file is less than ${SmartFileUpload.getHumanSize(SmartFileUpload.memoryLimit)}.`, + ); } const imageAsDataUrl = await SmartFileUpload.getData(file); @@ -606,9 +611,14 @@ function scwTemplateString() {
- ${this.showNavigation ? ` + ${ + this.showNavigation + ? ` - ` : ''} + ` + : '' + }

We need access to your camera so that we can take selfie and proof-of-life images. @@ -637,16 +650,25 @@ function scwTemplateString() { Request Camera Access - ${this.hideAttribution ? '' : ` + ${ + this.hideAttribution + ? '' + : ` - `} + ` + }

@@ -710,15 +739,21 @@ function scwTemplateString() { Please try using a different device.

- ${this.hideAttribution ? '' : ` + ${ + this.hideAttribution + ? '' + : ` - `} + ` + }
- ${this.supportBothCaptureModes || this.documentCaptureModes === 'camera' ? ` + ${ + this.supportBothCaptureModes || this.documentCaptureModes === 'camera' + ? ` - ` : ''} - ${this.supportBothCaptureModes || this.documentCaptureModes === 'upload' ? ` + ` + : '' + } + ${ + this.supportBothCaptureModes || this.documentCaptureModes === 'upload' + ? ` - ` : ''} + ` + : '' + }
- ${this.hideAttribution ? '' : ` + ${ + this.hideAttribution + ? '' + : ` - `} + ` + } @@ -1167,9 +1276,13 @@ function scwTemplateString() {

Thank you

- ${this.hideAttribution ? '' : ` + ${ + this.hideAttribution + ? '' + : ` - `} + ` + }
`; @@ -1203,7 +1316,9 @@ class PoweredBySmileId extends HTMLElement {

`; - this.attachShadow({ mode: 'open' }).appendChild(template.content.cloneNode(true)); + this.attachShadow({ mode: 'open' }).appendChild( + template.content.cloneNode(true), + ); } } @@ -1239,7 +1354,10 @@ class SmartCameraWeb extends HTMLElement { connectedCallback() { this.shadowRoot.innerHTML = this.render(); - if ('mediaDevices' in navigator && 'getUserMedia' in navigator.mediaDevices) { + if ( + 'mediaDevices' in navigator && + 'getUserMedia' in navigator.mediaDevices + ) { this.setUpEventListeners(); } else { const heading = document.createElement('h1'); @@ -1259,20 +1377,25 @@ class SmartCameraWeb extends HTMLElement { } static get observedAttributes() { - return ['document-capture-modes', 'document-type', 'hide-back-to-host', 'show-navigation']; + return [ + 'document-capture-modes', + 'document-type', + 'hide-back-to-host', + 'show-navigation', + ]; } attributeChangedCallback(name) { switch (name) { - case 'document-capture-modes': - case 'document-type': - case 'hide-back-to-host': - case 'show-navigation': - this.shadowRoot.innerHTML = this.render(); - this.setUpEventListeners(); - break; - default: - break; + case 'document-capture-modes': + case 'document-type': + case 'hide-back-to-host': + case 'show-navigation': + this.shadowRoot.innerHTML = this.render(); + this.setUpEventListeners(); + break; + default: + break; } } @@ -1282,39 +1405,70 @@ class SmartCameraWeb extends HTMLElement { this.requestScreen = this.shadowRoot.querySelector('#request-screen'); this.activeScreen = this.requestScreen; this.cameraScreen = this.shadowRoot.querySelector('#camera-screen'); - this.failedImageTestScreen = this.shadowRoot.querySelector('#failed-image-test-screen'); + this.failedImageTestScreen = this.shadowRoot.querySelector( + '#failed-image-test-screen', + ); this.reviewScreen = this.shadowRoot.querySelector('#review-screen'); this.idEntryScreen = this.shadowRoot.querySelector('#id-entry-screen'); this.IDCameraScreen = this.shadowRoot.querySelector('#id-camera-screen'); this.IDReviewScreen = this.shadowRoot.querySelector('#id-review-screen'); - this.backOfIdEntryScreen = this.shadowRoot.querySelector('#back-of-id-entry-screen'); - this.backOfIDCameraScreen = this.shadowRoot.querySelector('#back-of-id-camera-screen'); - this.backOfIDReviewScreen = this.shadowRoot.querySelector('#back-of-id-review-screen'); + this.backOfIdEntryScreen = this.shadowRoot.querySelector( + '#back-of-id-entry-screen', + ); + this.backOfIDCameraScreen = this.shadowRoot.querySelector( + '#back-of-id-camera-screen', + ); + this.backOfIDReviewScreen = this.shadowRoot.querySelector( + '#back-of-id-review-screen', + ); this.thanksScreen = this.shadowRoot.querySelector('#thanks-screen'); - this.videoContainer = this.shadowRoot.querySelector('.video-container > .video'); + this.videoContainer = this.shadowRoot.querySelector( + '.video-container > .video', + ); this.smileCTA = this.shadowRoot.querySelector('#smile-cta'); this.imageOutline = this.shadowRoot.querySelector('#image-outline path'); - this.startImageCapture = this.shadowRoot.querySelector('#start-image-capture'); + this.startImageCapture = this.shadowRoot.querySelector( + '#start-image-capture', + ); this.captureIDImage = this.shadowRoot.querySelector('#capture-id-image'); - this.captureBackOfIDImage = this.shadowRoot.querySelector('#capture-back-of-id-image'); + this.captureBackOfIDImage = this.shadowRoot.querySelector( + '#capture-back-of-id-image', + ); this.reviewImage = this.shadowRoot.querySelector('#review-image'); this.IDReviewImage = this.shadowRoot.querySelector('#id-review-image'); - this.backOfIDReviewImage = this.shadowRoot.querySelector('#back-of-id-review-image'); + this.backOfIDReviewImage = this.shadowRoot.querySelector( + '#back-of-id-review-image', + ); - this.reStartImageCapture = this.shadowRoot.querySelector('#restart-image-capture'); - this.reCaptureIDImage = this.shadowRoot.querySelector('#re-capture-id-image'); - this.reCaptureBackOfIDImage = this.shadowRoot.querySelector('#re-capture-back-of-id-image'); + this.reStartImageCapture = this.shadowRoot.querySelector( + '#restart-image-capture', + ); + this.reCaptureIDImage = this.shadowRoot.querySelector( + '#re-capture-id-image', + ); + this.reCaptureBackOfIDImage = this.shadowRoot.querySelector( + '#re-capture-back-of-id-image', + ); this.selectSelfie = this.shadowRoot.querySelector('#select-selfie'); this.selectIDImage = this.shadowRoot.querySelector('#select-id-image'); - this.selectBackOfIDImage = this.shadowRoot.querySelector('#select-back-of-id-image'); - this.takeDocumentPhotoButton = this.idEntryScreen.querySelector('#take-photo'); - this.uploadDocumentPhotoButton = this.idEntryScreen.querySelector('#upload-photo'); - this.skipBackOfDocumentPhotoButton = this.backOfIdEntryScreen.querySelector('#skip-this-step'); - this.takeBackOfDocumentPhotoButton = this.backOfIdEntryScreen.querySelector('#take-photo'); - this.uploadBackOfDocumentPhotoButton = this.backOfIdEntryScreen.querySelector('#upload-photo'); - - this.shadowRoot.querySelector('#request-camera-access').addEventListener('click', () => this.init()); + this.selectBackOfIDImage = this.shadowRoot.querySelector( + '#select-back-of-id-image', + ); + this.takeDocumentPhotoButton = + this.idEntryScreen.querySelector('#take-photo'); + this.uploadDocumentPhotoButton = + this.idEntryScreen.querySelector('#upload-photo'); + this.skipBackOfDocumentPhotoButton = + this.backOfIdEntryScreen.querySelector('#skip-this-step'); + this.takeBackOfDocumentPhotoButton = + this.backOfIdEntryScreen.querySelector('#take-photo'); + this.uploadBackOfDocumentPhotoButton = + this.backOfIdEntryScreen.querySelector('#upload-photo'); + + this.shadowRoot + .querySelector('#request-camera-access') + .addEventListener('click', () => this.init()); if (this.showNavigation) { // Add Back Button Listeners @@ -1334,16 +1488,37 @@ class SmartCameraWeb extends HTMLElement { }); } - if (this.takeDocumentPhotoButton) this.takeDocumentPhotoButton.addEventListener('click', () => this._startIDCamera()); - if (this.skipBackOfDocumentPhotoButton) this.skipBackOfDocumentPhotoButton.addEventListener('click', () => this._skipBackDocument()); - if (this.takeBackOfDocumentPhotoButton) this.takeBackOfDocumentPhotoButton.addEventListener('click', () => this._startIDCamera()); - if (this.uploadDocumentPhotoButton) this.uploadDocumentPhotoButton.addEventListener('change', (e) => this._uploadDocument(e)); - if (this.uploadBackOfDocumentPhotoButton) this.uploadBackOfDocumentPhotoButton.addEventListener('change', (e) => this._uploadDocument(e)); + if (this.takeDocumentPhotoButton) + this.takeDocumentPhotoButton.addEventListener('click', () => + this._startIDCamera(), + ); + if (this.skipBackOfDocumentPhotoButton) + this.skipBackOfDocumentPhotoButton.addEventListener('click', () => + this._skipBackDocument(), + ); + if (this.takeBackOfDocumentPhotoButton) + this.takeBackOfDocumentPhotoButton.addEventListener('click', () => + this._startIDCamera(), + ); + if (this.uploadDocumentPhotoButton) + this.uploadDocumentPhotoButton.addEventListener('change', (e) => + this._uploadDocument(e), + ); + if (this.uploadBackOfDocumentPhotoButton) + this.uploadBackOfDocumentPhotoButton.addEventListener('change', (e) => + this._uploadDocument(e), + ); this.backToSelfie = this.shadowRoot.querySelector('#back-button-selfie'); - this.backToIdEntryButton = this.shadowRoot.querySelector('#back-button-id-entry'); - this.backToBackIdEntryButton = this.shadowRoot.querySelector('#back-button-back-id-entry'); - this.backToIdImageButton = this.shadowRoot.querySelector('#back-button-id-image'); + this.backToIdEntryButton = this.shadowRoot.querySelector( + '#back-button-id-entry', + ); + this.backToBackIdEntryButton = this.shadowRoot.querySelector( + '#back-button-back-id-entry', + ); + this.backToIdImageButton = this.shadowRoot.querySelector( + '#back-button-id-image', + ); if (this.backToSelfie) { this.backToSelfie.addEventListener('click', () => { @@ -1419,7 +1594,8 @@ class SmartCameraWeb extends HTMLElement { }; this._rawImages = []; - navigator.mediaDevices.getUserMedia({ audio: false, video: true }) + navigator.mediaDevices + .getUserMedia({ audio: false, video: true }) .then((stream) => { this.handleSuccess(stream); }) @@ -1439,7 +1615,9 @@ class SmartCameraWeb extends HTMLElement { handleSuccess(stream) { const videoExists = !!this.videoContainer.querySelector('video'); - const video = videoExists ? this.videoContainer.querySelector('video') : document.createElement('video'); + const video = videoExists + ? this.videoContainer.querySelector('video') + : document.createElement('video'); video.autoplay = true; video.playsInline = true; @@ -1463,9 +1641,10 @@ class SmartCameraWeb extends HTMLElement { } handleIDStream(stream) { - const videoExists = this.activeScreen === this.IDCameraScreen - ? !!this.IDCameraScreen.querySelector('video') - : !!this.backOfIDCameraScreen.querySelector('video'); + const videoExists = + this.activeScreen === this.IDCameraScreen + ? !!this.IDCameraScreen.querySelector('video') + : !!this.backOfIDCameraScreen.querySelector('video'); let video = null; if (videoExists) { @@ -1489,9 +1668,10 @@ class SmartCameraWeb extends HTMLElement { } video.play(); - const videoContainer = this.activeScreen === this.IDCameraScreen - ? this.IDCameraScreen.querySelector('.id-video-container') - : this.backOfIDCameraScreen.querySelector('.id-video-container'); + const videoContainer = + this.activeScreen === this.IDCameraScreen + ? this.IDCameraScreen.querySelector('.id-video-container') + : this.backOfIDCameraScreen.querySelector('.id-video-container'); video.onloadedmetadata = () => { videoContainer.querySelector('.actions').hidden = false; @@ -1507,41 +1687,41 @@ class SmartCameraWeb extends HTMLElement { handleError(e) { switch (e.name) { - case 'NotAllowedError': - case 'SecurityError': - this.errorMessage.textContent = ` + case 'NotAllowedError': + case 'SecurityError': + this.errorMessage.textContent = ` Looks like camera access was not granted, or was blocked by a browser level setting / extension. Please follow the prompt from the URL bar, or extensions, and enable access. You may need to refresh to start all over again `; - break; - case 'AbortError': - this.errorMessage.textContent = ` + break; + case 'AbortError': + this.errorMessage.textContent = ` Oops! Something happened, and we lost access to your stream. Please refresh to start all over again `; - break; - case 'NotReadableError': - this.errorMessage.textContent = ` + break; + case 'NotReadableError': + this.errorMessage.textContent = ` There seems to be a problem with your device's camera, or its connection. Please check this, and when resolved, try again. Or try another device. `; - break; - case 'NotFoundError': - this.errorMessage.textContent = ` + break; + case 'NotFoundError': + this.errorMessage.textContent = ` We are unable to find a video stream. You may need to refresh to start all over again `; - break; - case 'TypeError': - this.errorMessage.textContent = ` + break; + case 'TypeError': + this.errorMessage.textContent = ` This site is insecure, and as such cannot have access to your camera. Try to navigate to a secure version of this page, or contact the owner. `; - break; - default: - this.errorMessage.textContent = e.message; + break; + default: + this.errorMessage.textContent = e.message; } } @@ -1624,7 +1804,9 @@ class SmartCameraWeb extends HTMLElement { if (hasEnoughColors) { return context; } - throw new Error('Unable to capture webcam images - Please try another device'); + throw new Error( + 'Unable to capture webcam images - Please try another device', + ); } else { return context; } @@ -1633,7 +1815,8 @@ class SmartCameraWeb extends HTMLElement { _capturePOLPhoto() { const canvas = document.createElement('canvas'); canvas.width = 240; - canvas.height = (canvas.width * this._video.videoHeight) / this._video.videoWidth; + canvas.height = + (canvas.width * this._video.videoHeight) / this._video.videoWidth; // NOTE: we do not want to test POL images this._drawImage(canvas, false); @@ -1644,7 +1827,8 @@ class SmartCameraWeb extends HTMLElement { _captureReferencePhoto() { const canvas = document.createElement('canvas'); canvas.width = 480; - canvas.height = (canvas.width * this._video.videoHeight) / this._video.videoWidth; + canvas.height = + (canvas.width * this._video.videoHeight) / this._video.videoWidth; // NOTE: we want to test the image quality of the reference photo this._drawImage(canvas, !this.disableImageTests); @@ -1682,7 +1866,10 @@ class SmartCameraWeb extends HTMLElement { }); // add file to preview state - const nextScreen = this.activeScreen === this.idEntryScreen ? this.IDReviewScreen : this.backOfIDReviewScreen; + const nextScreen = + this.activeScreen === this.idEntryScreen + ? this.IDReviewScreen + : this.backOfIDReviewScreen; const previewImage = nextScreen.querySelector('img'); previewImage.src = fileData; @@ -1725,7 +1912,17 @@ class SmartCameraWeb extends HTMLElement { // Draw the cropped image onto the new canvas const croppedCtx = croppedCanvas.getContext('2d'); - croppedCtx.drawImage(canvas, cropLeft, cropTop, cropWidth, cropHeight, 0, 0, cropWidth, cropHeight); + croppedCtx.drawImage( + canvas, + cropLeft, + cropTop, + cropWidth, + cropHeight, + 0, + 0, + cropWidth, + cropHeight, + ); return croppedCanvas.toDataURL('image/jpeg'); } @@ -1738,18 +1935,33 @@ class SmartCameraWeb extends HTMLElement { // NOTE: aspectRatio is greater than 1 in landscape mode, less in portrait if (aspectRatio < 1) { - const imageFrame = this.activeScreen.querySelector('[class*="image-frame"]:not([hidden]) [href*="image-frame"]'); + const imageFrame = this.activeScreen.querySelector( + '[class*="image-frame"]:not([hidden]) [href*="image-frame"]', + ); const videoBox = video.getBoundingClientRect(); const frameBox = imageFrame.getBoundingClientRect(); - const sourceXOffset = ((frameBox.left - videoBox.left) / videoBox.width) * video.videoWidth; - const sourceYOffset = ((frameBox.top - videoBox.top) / videoBox.height) * video.videoHeight; + const sourceXOffset = + ((frameBox.left - videoBox.left) / videoBox.width) * video.videoWidth; + const sourceYOffset = + ((frameBox.top - videoBox.top) / videoBox.height) * video.videoHeight; const sourceWidth = frameBox.width * (video.videoWidth / videoBox.width); - const sourceHeight = frameBox.height * (video.videoHeight / videoBox.height); + const sourceHeight = + frameBox.height * (video.videoHeight / videoBox.height); canvas.height = (canvas.width * frameBox.height) / frameBox.width; - context.drawImage(video, sourceXOffset, sourceYOffset, sourceWidth, sourceHeight, 0, 0, canvas.width, canvas.height); + context.drawImage( + video, + sourceXOffset, + sourceYOffset, + sourceWidth, + sourceHeight, + 0, + 0, + canvas.width, + canvas.height, + ); return canvas.toDataURL('image/jpeg'); } context.drawImage(video, 0, 0, canvas.width, canvas.height); @@ -1773,10 +1985,12 @@ class SmartCameraWeb extends HTMLElement { const livenessFramesIndices = getLivenessFramesIndices(totalNoOfFrames); - this._data.images = this._data.images.concat(livenessFramesIndices.map((imageIndex) => ({ - image: this._rawImages[imageIndex].split(',')[1], - image_type_id: 6, - }))); + this._data.images = this._data.images.concat( + livenessFramesIndices.map((imageIndex) => ({ + image: this._rawImages[imageIndex].split(',')[1], + image_type_id: 6, + })), + ); this.setActiveScreen(this.reviewScreen); } catch (error) { @@ -1839,15 +2053,11 @@ class SmartCameraWeb extends HTMLElement { } _exitSmartCamera() { - this.dispatchEvent( - new CustomEvent('close', { detail: {} }), - ); + this.dispatchEvent(new CustomEvent('close', { detail: {} })); } _backAndExit() { - this.dispatchEvent( - new CustomEvent('backExit', { detail: {} }), - ); + this.dispatchEvent(new CustomEvent('backExit', { detail: {} })); } async _reStartImageCapture() { @@ -1869,8 +2079,10 @@ class SmartCameraWeb extends HTMLElement { } async _reCaptureIDImage() { - const previousScreen = this.activeScreen === this.IDReviewScreen - ? this.idEntryScreen : this.backOfIdEntryScreen; + const previousScreen = + this.activeScreen === this.IDReviewScreen + ? this.idEntryScreen + : this.backOfIdEntryScreen; this.setActiveScreen(previousScreen); // NOTE: removes the last element in the list diff --git a/packages/smart-camera-web/src/PoweredBySmileId.js b/packages/smart-camera-web/src/PoweredBySmileId.js index 4c9a9b3a..b34bdaa7 100644 --- a/packages/smart-camera-web/src/PoweredBySmileId.js +++ b/packages/smart-camera-web/src/PoweredBySmileId.js @@ -26,7 +26,9 @@ class PoweredBySmileId extends HTMLElement {

`; - this.attachShadow({ mode: 'open' }).appendChild(template.content.cloneNode(true)); + this.attachShadow({ mode: 'open' }).appendChild( + template.content.cloneNode(true), + ); } } diff --git a/packages/smart-camera-web/src/SmartCameraWeb.js b/packages/smart-camera-web/src/SmartCameraWeb.js index ac83489d..e8d61d83 100644 --- a/packages/smart-camera-web/src/SmartCameraWeb.js +++ b/packages/smart-camera-web/src/SmartCameraWeb.js @@ -495,9 +495,14 @@ function scwTemplateString() {
- ${this.showNavigation ? ` + ${ + this.showNavigation + ? ` - ` : ''} + ` + : '' + }

We need access to your camera so that we can take selfie and proof-of-life images. @@ -526,16 +534,25 @@ function scwTemplateString() { Request Camera Access - ${this.hideAttribution ? '' : ` + ${ + this.hideAttribution + ? '' + : ` - `} + ` + }

- ${this.supportBothCaptureModes || this.documentCaptureModes === 'camera' ? ` + ${ + this.supportBothCaptureModes || this.documentCaptureModes === 'camera' + ? ` - ` : ''} - ${this.supportBothCaptureModes || this.documentCaptureModes === 'upload' ? ` + ` + : '' + } + ${ + this.supportBothCaptureModes || this.documentCaptureModes === 'upload' + ? ` - ` : ''} + ` + : '' + }
- ${this.hideAttribution ? '' : ` + ${ + this.hideAttribution + ? '' + : ` - `} + ` + } @@ -1034,19 +1134,29 @@ function scwTemplateString() {

Thank you

- ${this.hideAttribution ? '' : ` + ${ + this.hideAttribution + ? '' + : ` - `} + ` + }
`; } -function getLivenessFramesIndices(totalNoOfFrames, numberOfFramesRequired = DEFAULT_NO_OF_LIVENESS_FRAMES) { +function getLivenessFramesIndices( + totalNoOfFrames, + numberOfFramesRequired = DEFAULT_NO_OF_LIVENESS_FRAMES, +) { const selectedFrames = []; if (totalNoOfFrames < numberOfFramesRequired) { - throw new Error('SmartCameraWeb: Minimum required no of frames is ', numberOfFramesRequired); + throw new Error( + 'SmartCameraWeb: Minimum required no of frames is ', + numberOfFramesRequired, + ); } const frameDivisor = numberOfFramesRequired - 1; @@ -1108,7 +1218,10 @@ class SmartCameraWeb extends HTMLElement { connectedCallback() { this.shadowRoot.innerHTML = this.render(); - if ('mediaDevices' in navigator && 'getUserMedia' in navigator.mediaDevices) { + if ( + 'mediaDevices' in navigator && + 'getUserMedia' in navigator.mediaDevices + ) { this.setUpEventListeners(); } else { const heading = document.createElement('h1'); @@ -1128,30 +1241,45 @@ class SmartCameraWeb extends HTMLElement { } static get observedAttributes() { - return ['document-capture-modes', 'document-type', 'hide-back-to-host', 'show-navigation']; + return [ + 'document-capture-modes', + 'document-type', + 'hide-back-to-host', + 'show-navigation', + ]; } attributeChangedCallback(name) { switch (name) { - case 'document-capture-modes': - case 'document-type': - case 'hide-back-to-host': - case 'show-navigation': - this.shadowRoot.innerHTML = this.render(); - this.setUpEventListeners(); - break; - default: - break; + case 'document-capture-modes': + case 'document-type': + case 'hide-back-to-host': + case 'show-navigation': + this.shadowRoot.innerHTML = this.render(); + this.setUpEventListeners(); + break; + default: + break; } } setUpEventListeners() { - this.backOfIDCameraScreen = this.shadowRoot.querySelector('#back-of-id-camera-screen'); - this.backOfIdEntryScreen = this.shadowRoot.querySelector('#back-of-id-entry-screen'); - this.backOfIDReviewImage = this.shadowRoot.querySelector('#back-of-id-review-image'); - this.backOfIDReviewScreen = this.shadowRoot.querySelector('#back-of-id-review-screen'); + this.backOfIDCameraScreen = this.shadowRoot.querySelector( + '#back-of-id-camera-screen', + ); + this.backOfIdEntryScreen = this.shadowRoot.querySelector( + '#back-of-id-entry-screen', + ); + this.backOfIDReviewImage = this.shadowRoot.querySelector( + '#back-of-id-review-image', + ); + this.backOfIDReviewScreen = this.shadowRoot.querySelector( + '#back-of-id-review-screen', + ); this.cameraScreen = this.shadowRoot.querySelector('#camera-screen'); - this.captureBackOfIDImage = this.shadowRoot.querySelector('#capture-back-of-id-image'); + this.captureBackOfIDImage = this.shadowRoot.querySelector( + '#capture-back-of-id-image', + ); this.captureIDImage = this.shadowRoot.querySelector('#capture-id-image'); this.errorMessage = this.shadowRoot.querySelector('#error'); this.IDCameraScreen = this.shadowRoot.querySelector('#id-camera-screen'); @@ -1159,28 +1287,47 @@ class SmartCameraWeb extends HTMLElement { this.IDReviewImage = this.shadowRoot.querySelector('#id-review-image'); this.IDReviewScreen = this.shadowRoot.querySelector('#id-review-screen'); this.imageOutline = this.shadowRoot.querySelector('#image-outline path'); - this.reCaptureBackOfIDImage = this.shadowRoot.querySelector('#re-capture-back-of-id-image'); - this.reCaptureIDImage = this.shadowRoot.querySelector('#re-capture-id-image'); + this.reCaptureBackOfIDImage = this.shadowRoot.querySelector( + '#re-capture-back-of-id-image', + ); + this.reCaptureIDImage = this.shadowRoot.querySelector( + '#re-capture-id-image', + ); this.requestScreen = this.shadowRoot.querySelector('#request-screen'); - this.reStartImageCapture = this.shadowRoot.querySelector('#restart-image-capture'); + this.reStartImageCapture = this.shadowRoot.querySelector( + '#restart-image-capture', + ); this.reviewImage = this.shadowRoot.querySelector('#review-image'); this.reviewScreen = this.shadowRoot.querySelector('#review-screen'); - this.selectBackOfIDImage = this.shadowRoot.querySelector('#select-back-of-id-image'); + this.selectBackOfIDImage = this.shadowRoot.querySelector( + '#select-back-of-id-image', + ); this.selectIDImage = this.shadowRoot.querySelector('#select-id-image'); this.selectSelfie = this.shadowRoot.querySelector('#select-selfie'); - this.skipBackOfDocumentPhotoButton = this.backOfIdEntryScreen.querySelector('#skip-this-step'); + this.skipBackOfDocumentPhotoButton = + this.backOfIdEntryScreen.querySelector('#skip-this-step'); this.smileCTA = this.shadowRoot.querySelector('#smile-cta'); - this.startImageCapture = this.shadowRoot.querySelector('#start-image-capture'); - this.takeBackOfDocumentPhotoButton = this.backOfIdEntryScreen.querySelector('#take-photo'); - this.takeDocumentPhotoButton = this.idEntryScreen.querySelector('#take-photo'); + this.startImageCapture = this.shadowRoot.querySelector( + '#start-image-capture', + ); + this.takeBackOfDocumentPhotoButton = + this.backOfIdEntryScreen.querySelector('#take-photo'); + this.takeDocumentPhotoButton = + this.idEntryScreen.querySelector('#take-photo'); this.thanksScreen = this.shadowRoot.querySelector('#thanks-screen'); - this.uploadBackOfDocumentPhotoButton = this.backOfIdEntryScreen.querySelector('#upload-photo'); - this.uploadDocumentPhotoButton = this.idEntryScreen.querySelector('#upload-photo'); - this.videoContainer = this.shadowRoot.querySelector('.video-container > .video'); + this.uploadBackOfDocumentPhotoButton = + this.backOfIdEntryScreen.querySelector('#upload-photo'); + this.uploadDocumentPhotoButton = + this.idEntryScreen.querySelector('#upload-photo'); + this.videoContainer = this.shadowRoot.querySelector( + '.video-container > .video', + ); this.activeScreen = this.requestScreen; - this.shadowRoot.querySelector('#request-camera-access').addEventListener('click', () => this.init()); + this.shadowRoot + .querySelector('#request-camera-access') + .addEventListener('click', () => this.init()); if (this.showNavigation) { // Add Back Button Listeners @@ -1200,15 +1347,36 @@ class SmartCameraWeb extends HTMLElement { }); } - if (this.takeDocumentPhotoButton) this.takeDocumentPhotoButton.addEventListener('click', () => this._startIDCamera()); - if (this.skipBackOfDocumentPhotoButton) this.skipBackOfDocumentPhotoButton.addEventListener('click', () => this._skipBackDocument()); - if (this.takeBackOfDocumentPhotoButton) this.takeBackOfDocumentPhotoButton.addEventListener('click', () => this._startIDCamera()); - if (this.uploadDocumentPhotoButton) this.uploadDocumentPhotoButton.addEventListener('change', (e) => this._uploadDocument(e)); - if (this.uploadBackOfDocumentPhotoButton) this.uploadBackOfDocumentPhotoButton.addEventListener('change', (e) => this._uploadDocument(e)); - - this.backToBackIdEntryButton = this.shadowRoot.querySelector('#back-button-back-id-entry'); - this.backToIdEntryButton = this.shadowRoot.querySelector('#back-button-id-entry'); - this.backToIdImageButton = this.shadowRoot.querySelector('#back-button-id-image'); + if (this.takeDocumentPhotoButton) + this.takeDocumentPhotoButton.addEventListener('click', () => + this._startIDCamera(), + ); + if (this.skipBackOfDocumentPhotoButton) + this.skipBackOfDocumentPhotoButton.addEventListener('click', () => + this._skipBackDocument(), + ); + if (this.takeBackOfDocumentPhotoButton) + this.takeBackOfDocumentPhotoButton.addEventListener('click', () => + this._startIDCamera(), + ); + if (this.uploadDocumentPhotoButton) + this.uploadDocumentPhotoButton.addEventListener('change', (e) => + this._uploadDocument(e), + ); + if (this.uploadBackOfDocumentPhotoButton) + this.uploadBackOfDocumentPhotoButton.addEventListener('change', (e) => + this._uploadDocument(e), + ); + + this.backToBackIdEntryButton = this.shadowRoot.querySelector( + '#back-button-back-id-entry', + ); + this.backToIdEntryButton = this.shadowRoot.querySelector( + '#back-button-id-entry', + ); + this.backToIdImageButton = this.shadowRoot.querySelector( + '#back-button-id-image', + ); this.backToSelfie = this.shadowRoot.querySelector('#back-button-selfie'); if (this.backToSelfie) { @@ -1285,7 +1453,8 @@ class SmartCameraWeb extends HTMLElement { }; this._rawImages = []; - navigator.mediaDevices.getUserMedia({ audio: false, video: true }) + navigator.mediaDevices + .getUserMedia({ audio: false, video: true }) .then((stream) => { this.handleSuccess(stream); }) @@ -1305,7 +1474,9 @@ class SmartCameraWeb extends HTMLElement { handleSuccess(stream) { const videoExists = !!this.videoContainer.querySelector('video'); - const video = videoExists ? this.videoContainer.querySelector('video') : document.createElement('video'); + const video = videoExists + ? this.videoContainer.querySelector('video') + : document.createElement('video'); video.autoplay = true; video.playsInline = true; @@ -1329,9 +1500,10 @@ class SmartCameraWeb extends HTMLElement { } handleIDStream(stream) { - const videoExists = this.activeScreen === this.IDCameraScreen - ? !!this.IDCameraScreen.querySelector('video') - : !!this.backOfIDCameraScreen.querySelector('video'); + const videoExists = + this.activeScreen === this.IDCameraScreen + ? !!this.IDCameraScreen.querySelector('video') + : !!this.backOfIDCameraScreen.querySelector('video'); let video = null; if (videoExists) { @@ -1355,9 +1527,10 @@ class SmartCameraWeb extends HTMLElement { } video.play(); - const videoContainer = this.activeScreen === this.IDCameraScreen - ? this.IDCameraScreen.querySelector('.id-video-container') - : this.backOfIDCameraScreen.querySelector('.id-video-container'); + const videoContainer = + this.activeScreen === this.IDCameraScreen + ? this.IDCameraScreen.querySelector('.id-video-container') + : this.backOfIDCameraScreen.querySelector('.id-video-container'); video.onloadedmetadata = () => { videoContainer.querySelector('.actions').hidden = false; @@ -1373,41 +1546,41 @@ class SmartCameraWeb extends HTMLElement { handleError(e) { switch (e.name) { - case 'NotAllowedError': - case 'SecurityError': - this.errorMessage.textContent = ` + case 'NotAllowedError': + case 'SecurityError': + this.errorMessage.textContent = ` Looks like camera access was not granted, or was blocked by a browser level setting / extension. Please follow the prompt from the URL bar, or extensions, and enable access. You may need to refresh to start all over again `; - break; - case 'AbortError': - this.errorMessage.textContent = ` + break; + case 'AbortError': + this.errorMessage.textContent = ` Oops! Something happened, and we lost access to your stream. Please refresh to start all over again `; - break; - case 'NotReadableError': - this.errorMessage.textContent = ` + break; + case 'NotReadableError': + this.errorMessage.textContent = ` There seems to be a problem with your device's camera, or its connection. Please check this, and when resolved, try again. Or try another device. `; - break; - case 'NotFoundError': - this.errorMessage.textContent = ` + break; + case 'NotFoundError': + this.errorMessage.textContent = ` We are unable to find a video stream. You may need to refresh to start all over again `; - break; - case 'TypeError': - this.errorMessage.textContent = ` + break; + case 'TypeError': + this.errorMessage.textContent = ` This site is insecure, and as such cannot have access to your camera. Try to navigate to a secure version of this page, or contact the owner. `; - break; - default: - this.errorMessage.textContent = e.message; + break; + default: + this.errorMessage.textContent = e.message; } } @@ -1415,8 +1588,8 @@ class SmartCameraWeb extends HTMLElement { this.startImageCapture.disabled = true; /** - * this was culled from https://jakearchibald.com/2013/animated-line-drawing-svg/ - */ + * this was culled from https://jakearchibald.com/2013/animated-line-drawing-svg/ + */ // NOTE: initialise image outline const imageOutlineLength = this.imageOutline.getTotalLength(); // Clear any previous transition @@ -1487,7 +1660,8 @@ class SmartCameraWeb extends HTMLElement { _capturePOLPhoto() { const canvas = document.createElement('canvas'); canvas.width = 240; - canvas.height = (canvas.width * this._video.videoHeight) / this._video.videoWidth; + canvas.height = + (canvas.width * this._video.videoHeight) / this._video.videoWidth; this._drawImage(canvas); @@ -1497,7 +1671,8 @@ class SmartCameraWeb extends HTMLElement { _captureReferencePhoto() { const canvas = document.createElement('canvas'); canvas.width = 480; - canvas.height = (canvas.width * this._video.videoHeight) / this._video.videoWidth; + canvas.height = + (canvas.width * this._video.videoHeight) / this._video.videoWidth; this._drawImage(canvas); @@ -1534,7 +1709,10 @@ class SmartCameraWeb extends HTMLElement { }); // add file to preview state - const nextScreen = this.activeScreen === this.idEntryScreen ? this.IDReviewScreen : this.backOfIDReviewScreen; + const nextScreen = + this.activeScreen === this.idEntryScreen + ? this.IDReviewScreen + : this.backOfIDReviewScreen; const previewImage = nextScreen.querySelector('img'); previewImage.src = fileData; @@ -1577,7 +1755,17 @@ class SmartCameraWeb extends HTMLElement { // Draw the cropped image onto the new canvas const croppedCtx = croppedCanvas.getContext('2d'); - croppedCtx.drawImage(canvas, cropLeft, cropTop, cropWidth, cropHeight, 0, 0, cropWidth, cropHeight); + croppedCtx.drawImage( + canvas, + cropLeft, + cropTop, + cropWidth, + cropHeight, + 0, + 0, + cropWidth, + cropHeight, + ); return croppedCanvas.toDataURL('image/jpeg'); } @@ -1590,18 +1778,33 @@ class SmartCameraWeb extends HTMLElement { // NOTE: aspectRatio is greater than 1 in landscape mode, less in portrait if (aspectRatio < 1) { - const imageFrame = this.activeScreen.querySelector('[class*="image-frame"]:not([hidden]) [href*="image-frame"]'); + const imageFrame = this.activeScreen.querySelector( + '[class*="image-frame"]:not([hidden]) [href*="image-frame"]', + ); const videoBox = video.getBoundingClientRect(); const frameBox = imageFrame.getBoundingClientRect(); - const sourceXOffset = ((frameBox.left - videoBox.left) / videoBox.width) * video.videoWidth; - const sourceYOffset = ((frameBox.top - videoBox.top) / videoBox.height) * video.videoHeight; + const sourceXOffset = + ((frameBox.left - videoBox.left) / videoBox.width) * video.videoWidth; + const sourceYOffset = + ((frameBox.top - videoBox.top) / videoBox.height) * video.videoHeight; const sourceWidth = frameBox.width * (video.videoWidth / videoBox.width); - const sourceHeight = frameBox.height * (video.videoHeight / videoBox.height); + const sourceHeight = + frameBox.height * (video.videoHeight / videoBox.height); canvas.height = (canvas.width * frameBox.height) / frameBox.width; - context.drawImage(video, sourceXOffset, sourceYOffset, sourceWidth, sourceHeight, 0, 0, canvas.width, canvas.height); + context.drawImage( + video, + sourceXOffset, + sourceYOffset, + sourceWidth, + sourceHeight, + 0, + 0, + canvas.width, + canvas.height, + ); return canvas.toDataURL('image/jpeg'); } context.drawImage(video, 0, 0, canvas.width, canvas.height); @@ -1624,10 +1827,12 @@ class SmartCameraWeb extends HTMLElement { const livenessFramesIndices = getLivenessFramesIndices(totalNoOfFrames); - this._data.images = this._data.images.concat(livenessFramesIndices.map((imageIndex) => ({ - image: this._rawImages[imageIndex].split(',')[1], - image_type_id: 6, - }))); + this._data.images = this._data.images.concat( + livenessFramesIndices.map((imageIndex) => ({ + image: this._rawImages[imageIndex].split(',')[1], + image_type_id: 6, + })), + ); this.setActiveScreen(this.reviewScreen); } @@ -1687,15 +1892,11 @@ class SmartCameraWeb extends HTMLElement { } _exitSmartCamera() { - this.dispatchEvent( - new CustomEvent('close', { detail: {} }), - ); + this.dispatchEvent(new CustomEvent('close', { detail: {} })); } _backAndExit() { - this.dispatchEvent( - new CustomEvent('backExit', { detail: {} }), - ); + this.dispatchEvent(new CustomEvent('backExit', { detail: {} })); } async _reStartImageCapture() { @@ -1717,8 +1918,10 @@ class SmartCameraWeb extends HTMLElement { } async _reCaptureIDImage() { - const previousScreen = this.activeScreen === this.IDReviewScreen - ? this.idEntryScreen : this.backOfIdEntryScreen; + const previousScreen = + this.activeScreen === this.IDReviewScreen + ? this.idEntryScreen + : this.backOfIdEntryScreen; this.setActiveScreen(previousScreen); // NOTE: removes the last element in the list diff --git a/packages/smart-camera-web/src/SmartFileUpload.js b/packages/smart-camera-web/src/SmartFileUpload.js index bda0e9cf..3ef6c6a7 100644 --- a/packages/smart-camera-web/src/SmartFileUpload.js +++ b/packages/smart-camera-web/src/SmartFileUpload.js @@ -5,25 +5,16 @@ class SmartFileUpload { static getHumanSize(numberOfBytes) { // Approximate to the closest prefixed unit - const units = [ - 'B', - 'kB', - 'MB', - 'GB', - 'TB', - 'PB', - 'EB', - 'ZB', - 'YB', - ]; + const units = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; const exponent = Math.min( Math.floor(Math.log(numberOfBytes) / Math.log(1024)), units.length - 1, ); const approx = numberOfBytes / 1024 ** exponent; - const output = exponent === 0 - ? `${numberOfBytes} bytes` - : `${approx.toFixed(0)} ${units[exponent]}`; + const output = + exponent === 0 + ? `${numberOfBytes} bytes` + : `${approx.toFixed(0)} ${units[exponent]}`; return output; } @@ -36,7 +27,11 @@ class SmartFileUpload { resolve(e.target.result); }; reader.onerror = () => { - reject(new Error('An error occurred reading the file. Please check the file, and try again')); + reject( + new Error( + 'An error occurred reading the file. Please check the file, and try again', + ), + ); }; reader.readAsDataURL(file); }); @@ -50,11 +45,15 @@ class SmartFileUpload { const file = files[0]; if (!SmartFileUpload.supportedTypes.includes(file.type)) { - throw new Error('Unsupported file format. Please ensure that you are providing a JPG or PNG image'); + throw new Error( + 'Unsupported file format. Please ensure that you are providing a JPG or PNG image', + ); } if (file.size > SmartFileUpload.memoryLimit) { - throw new Error(`${file.name} is too large. Please ensure that the file is less than ${SmartFileUpload.getHumanSize(SmartFileUpload.memoryLimit)}.`); + throw new Error( + `${file.name} is too large. Please ensure that the file is less than ${SmartFileUpload.getHumanSize(SmartFileUpload.memoryLimit)}.`, + ); } const imageAsDataUrl = await SmartFileUpload.getData(file); diff --git a/packages/web-components/.eslintrc.cjs b/packages/web-components/.eslintrc.cjs index 899e410e..c4db20a6 100644 --- a/packages/web-components/.eslintrc.cjs +++ b/packages/web-components/.eslintrc.cjs @@ -6,7 +6,13 @@ module.exports = { es2021: true, }, extends: 'airbnb-base', - ignorePatterns: ['build/', 'instrumentation', 'dist/', 'libs/', 'node_modules/'], + ignorePatterns: [ + 'build/', + 'instrumentation', + 'dist/', + 'libs/', + 'node_modules/', + ], overrides: [ { env: { @@ -22,11 +28,11 @@ module.exports = { ecmaVersion: 'latest', sourceType: 'module', }, - plugins: [ - 'cypress', - ], + plugins: ['cypress'], rules: { 'class-methods-use-this': 'off', + 'function-paren-newline': 'off', + 'implicit-arrow-linebreak': 'off', 'import/no-extraneous-dependencies': [ 'error', { @@ -38,9 +44,11 @@ module.exports = { optionalDependencies: false, }, ], - indent: ['error', 2], + indent: 0, 'max-classes-per-file': 'off', 'max-len': 'off', + 'object-curly-newline': 'off', + 'operator-linebreak': 'off', 'no-console': ['error', { allow: ['warn', 'error', 'info'] }], 'no-param-reassign': 'off', 'no-plusplus': 'off', diff --git a/packages/web-components/components/attribution/PoweredBySmileId.js b/packages/web-components/components/attribution/PoweredBySmileId.js index ca4d1f41..99ad9f3b 100644 --- a/packages/web-components/components/attribution/PoweredBySmileId.js +++ b/packages/web-components/components/attribution/PoweredBySmileId.js @@ -26,11 +26,16 @@ class PoweredBySmileId extends HTMLElement {

`; - this.attachShadow({ mode: 'open' }).appendChild(template.content.cloneNode(true)); + this.attachShadow({ mode: 'open' }).appendChild( + template.content.cloneNode(true), + ); } } -if (window.customElements && !window.customElements.get('powered-by-smile-id')) { +if ( + window.customElements && + !window.customElements.get('powered-by-smile-id') +) { window.customElements.define('powered-by-smile-id', PoweredBySmileId); } diff --git a/packages/web-components/components/camera-permission/CameraPermission.js b/packages/web-components/components/camera-permission/CameraPermission.js index 8fa88d1f..9820a93d 100644 --- a/packages/web-components/components/camera-permission/CameraPermission.js +++ b/packages/web-components/components/camera-permission/CameraPermission.js @@ -94,7 +94,9 @@ class CameraPermission extends HTMLElement { setUpEventListeners() { const errorMessage = this.shadowRoot.querySelector('#error'); - const permissionButton = this.shadowRoot.getElementById('request-camera-access'); + const permissionButton = this.shadowRoot.getElementById( + 'request-camera-access', + ); errorMessage.textContent = ''; permissionButton.addEventListener('click', async () => { permissionButton.setAttribute('disabled', true); @@ -105,7 +107,9 @@ class CameraPermission extends HTMLElement { }); this.dispatchEvent(new CustomEvent('camera-permission.granted')); } catch (error) { - this.dispatchEvent(new CustomEvent('camera-permission.denied', { detail: error })); + this.dispatchEvent( + new CustomEvent('camera-permission.denied', { detail: error }), + ); errorMessage.textContent = SmartCamera.handleCameraError(error); } permissionButton.removeAttribute('disabled'); diff --git a/packages/web-components/components/combobox/src/Combobox.js b/packages/web-components/components/combobox/src/Combobox.js index 10cf2ff4..35c1ea1b 100644 --- a/packages/web-components/components/combobox/src/Combobox.js +++ b/packages/web-components/components/combobox/src/Combobox.js @@ -8,12 +8,12 @@ function isElementInView(element) { const bounding = element.getBoundingClientRect(); return ( - bounding.top >= 0 - && bounding.left >= 0 - && bounding.bottom - <= (window.innerHeight || document.documentElement.clientHeight) - && bounding.right - <= (window.innerWidth || document.documentElement.clientWidth) + bounding.top >= 0 && + bounding.left >= 0 && + bounding.bottom <= + (window.innerHeight || document.documentElement.clientHeight) && + bounding.right <= + (window.innerWidth || document.documentElement.clientWidth) ); } @@ -108,16 +108,16 @@ class ComboboxTrigger extends HTMLElement { ? `
+ this.disabled ? ' disabled ' : '' + }type="text" placeholder="${this.label}" />
` : `` + this.value || this.label + }` }`; this.setAttribute('expanded', false); @@ -157,7 +157,9 @@ class ComboboxTrigger extends HTMLElement { if (this.inputTrigger) { this.inputTrigger.removeEventListener('keydown', this.handleKeyDown); this.inputTrigger.removeEventListener('keyup', this.handleKeyUp); - this.inputTrigger.removeEventListener('change', (e) => e.stopPropagation()); + this.inputTrigger.removeEventListener('change', (e) => + e.stopPropagation(), + ); } if (this.options) { @@ -178,65 +180,65 @@ class ComboboxTrigger extends HTMLElement { const { key } = event; switch (key) { - case 'Enter': - case 'Space': - case ' ': - if (this.getAttribute('expanded') === 'true') { - if (this.inputTrigger && (key === 'Space' || key === ' ')) { - this.resetListbox(); + case 'Enter': + case 'Space': + case ' ': + if (this.getAttribute('expanded') === 'true') { + if (this.inputTrigger && (key === 'Space' || key === ' ')) { + this.resetListbox(); + } else { + event.preventDefault(); + const selectedOption = this.buttonTrigger.getAttribute( + 'aria-activedescendant', + ); + if (selectedOption) { + document.getElementById(selectedOption).click(); + } + } } else { event.preventDefault(); - const selectedOption = this.buttonTrigger.getAttribute( - 'aria-activedescendant', - ); - if (selectedOption) { - document.getElementById(selectedOption).click(); - } + this.toggleExpansionState(); } - } else { + break; + case 'Esc': + case 'Escape': event.preventDefault(); - this.toggleExpansionState(); - } - break; - case 'Esc': - case 'Escape': - event.preventDefault(); - if (this.getAttribute('expanded') === 'true') { - this.toggleExpansionState(); - } - break; - case 'Down': - case 'ArrowDown': - event.preventDefault(); - if (this.getAttribute('expanded') !== 'true') { - this.toggleExpansionState(); - this.focusListbox('First'); - } else { - this.focusListbox('Down'); - } - break; - case 'Up': - case 'ArrowUp': - event.preventDefault(); - if (this.getAttribute('expanded') !== 'true') { - this.toggleExpansionState(); - this.focusListbox('Last'); - } else { - this.focusListbox('Up'); - } - break; - case 'Left': - case 'ArrowLeft': - case 'Right': - case 'ArrowRight': - case 'Home': - case 'End': - this.resetListbox(); - break; - case 'Tab': - break; - default: - break; + if (this.getAttribute('expanded') === 'true') { + this.toggleExpansionState(); + } + break; + case 'Down': + case 'ArrowDown': + event.preventDefault(); + if (this.getAttribute('expanded') !== 'true') { + this.toggleExpansionState(); + this.focusListbox('First'); + } else { + this.focusListbox('Down'); + } + break; + case 'Up': + case 'ArrowUp': + event.preventDefault(); + if (this.getAttribute('expanded') !== 'true') { + this.toggleExpansionState(); + this.focusListbox('Last'); + } else { + this.focusListbox('Up'); + } + break; + case 'Left': + case 'ArrowLeft': + case 'Right': + case 'ArrowRight': + case 'Home': + case 'End': + this.resetListbox(); + break; + case 'Tab': + break; + default: + break; } } @@ -352,14 +354,18 @@ class ComboboxListbox extends HTMLElement { 'smileid-combobox-trigger input, smileid-combobox-trigger button', ), ); - this.triggers.forEach((node) => node.setAttribute('aria-controls', this.getAttribute('id'))); + this.triggers.forEach((node) => + node.setAttribute('aria-controls', this.getAttribute('id')), + ); this.optionNodes = Array.from( this.querySelectorAll('smileid-combobox-option'), ); - this.selectedNode = this.optionNodes.find( - (node) => !node.hasAttribute('hidden') && node.hasAttribute('aria-selected'), - ) || this.optionNodes.filter((node) => !node.hasAttribute('hidden'))[0]; + this.selectedNode = + this.optionNodes.find( + (node) => + !node.hasAttribute('hidden') && node.hasAttribute('aria-selected'), + ) || this.optionNodes.filter((node) => !node.hasAttribute('hidden'))[0]; this.selectedNode.setAttribute('tabindex', '0'); this.optionNodes.forEach((node) => { @@ -392,17 +398,17 @@ class ComboboxListbox extends HTMLElement { attributeChangedCallback(name, oldValue, newValue) { switch (name) { - case 'search-term': - if (oldValue && !newValue) { - this.optionNodes.forEach((node) => { - node.removeAttribute('hidden'); - }); - } else if (newValue) { - this.filterNodes(newValue); - } - break; - default: - break; + case 'search-term': + if (oldValue && !newValue) { + this.optionNodes.forEach((node) => { + node.removeAttribute('hidden'); + }); + } else if (newValue) { + this.filterNodes(newValue); + } + break; + default: + break; } } @@ -411,8 +417,9 @@ class ComboboxListbox extends HTMLElement { const value = node.getAttribute('value').toLowerCase(); const label = node.getAttribute('label').toLowerCase(); - const containsSearchTerm = value.includes(searchTerm.toLowerCase()) - || label.includes(searchTerm.toLowerCase()); + const containsSearchTerm = + value.includes(searchTerm.toLowerCase()) || + label.includes(searchTerm.toLowerCase()); if (containsSearchTerm) { node.removeAttribute('hidden'); @@ -468,26 +475,26 @@ class ComboboxListbox extends HTMLElement { let nextIndex; switch (direction) { - case 'First': - nextIndex = 0; - break; - case 'Last': - nextIndex = lastIndex; - break; - case 'Up': - if (currentIndex === 0) { - nextIndex = lastIndex; - } else { - nextIndex = currentIndex - 1; - } - break; - default: - if (currentIndex === lastIndex) { + case 'First': nextIndex = 0; - } else { - nextIndex = currentIndex + 1; - } - break; + break; + case 'Last': + nextIndex = lastIndex; + break; + case 'Up': + if (currentIndex === 0) { + nextIndex = lastIndex; + } else { + nextIndex = currentIndex - 1; + } + break; + default: + if (currentIndex === lastIndex) { + nextIndex = 0; + } else { + nextIndex = currentIndex + 1; + } + break; } if (currentIndex !== nextIndex) { @@ -511,7 +518,9 @@ class ComboboxListbox extends HTMLElement { newNode.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); } - this.triggers.forEach((node) => node.setAttribute('aria-activedescendant', newNode.id)); + this.triggers.forEach((node) => + node.setAttribute('aria-activedescendant', newNode.id), + ); } } @@ -540,7 +549,9 @@ class ComboboxOption extends HTMLElement { } select() { - const selectedOption = this.options.find((node) => node.getAttribute('aria-selected')); + const selectedOption = this.options.find((node) => + node.getAttribute('aria-selected'), + ); if (selectedOption) { selectedOption.removeAttribute('aria-selected'); @@ -572,6 +583,4 @@ if ('customElements' in window) { window.customElements.define('smileid-combobox-option', Option); } -export { - Root, Trigger, List, Option, -}; +export { Root, Trigger, List, Option }; diff --git a/packages/web-components/components/combobox/src/index.js b/packages/web-components/components/combobox/src/index.js index d4dff266..2cfc9e03 100644 --- a/packages/web-components/components/combobox/src/index.js +++ b/packages/web-components/components/combobox/src/index.js @@ -1,3 +1 @@ -export { - Root, Trigger, List, Option, -} from './Combobox'; +export { Root, Trigger, List, Option } from './Combobox'; diff --git a/packages/web-components/components/document/src/DocumentCaptureScreens.js b/packages/web-components/components/document/src/DocumentCaptureScreens.js index 9a618c8b..246dfbf2 100644 --- a/packages/web-components/components/document/src/DocumentCaptureScreens.js +++ b/packages/web-components/components/document/src/DocumentCaptureScreens.js @@ -56,14 +56,18 @@ class DocumentCaptureScreens extends HTMLElement { }, }; - this.documentInstruction = this.querySelector('document-capture-instructions'); + this.documentInstruction = this.querySelector( + 'document-capture-instructions', + ); this.documentInstructionBack = this.querySelector( '#document-capture-instructions-back', ); this.idCapture = this.querySelector('#document-capture-front'); this.idReview = this.querySelector('#front-of-document-capture-review'); this.idCaptureBack = this.querySelector('#document-capture-back'); - this.backOfIdReview = this.querySelector('#back-of-document-capture-review'); + this.backOfIdReview = this.querySelector( + '#back-of-document-capture-review', + ); this.thankYouScreen = this.querySelector('thank-you'); if (this.hideInstructions) { @@ -86,9 +90,12 @@ class DocumentCaptureScreens extends HTMLElement { } setUpEventListeners() { - this.documentInstruction.addEventListener('document-capture-instructions.cancelled', () => { - this.handleBackEvents(); - }); + this.documentInstruction.addEventListener( + 'document-capture-instructions.cancelled', + () => { + this.handleBackEvents(); + }, + ); this.documentInstruction.addEventListener( 'document-capture-instructions.capture', @@ -127,27 +134,33 @@ class DocumentCaptureScreens extends HTMLElement { } }); - this.idReview.addEventListener('document-capture-review.rejected', async () => { - this.idReview.removeAttribute('data-image'); - this._data.images.pop(); - if (this.hideInstructions) { - this.setActiveScreen(this.idCapture); - await getPermissions(this.idCapture); - } else { - this.setActiveScreen(this.documentInstruction); - } - }); + this.idReview.addEventListener( + 'document-capture-review.rejected', + async () => { + this.idReview.removeAttribute('data-image'); + this._data.images.pop(); + if (this.hideInstructions) { + this.setActiveScreen(this.idCapture); + await getPermissions(this.idCapture); + } else { + this.setActiveScreen(this.documentInstruction); + } + }, + ); - this.idReview.addEventListener('document-capture-review.accepted', async () => { - if (this.hideBackOfId) { - this._publishSelectedImages(); - } else if (this.hideInstructions) { - this.setActiveScreen(this.idCaptureBack); - await getPermissions(this.idCaptureBack); - } else { - this.setActiveScreen(this.documentInstructionBack); - } - }); + this.idReview.addEventListener( + 'document-capture-review.accepted', + async () => { + if (this.hideBackOfId) { + this._publishSelectedImages(); + } else if (this.hideInstructions) { + this.setActiveScreen(this.idCaptureBack); + await getPermissions(this.idCaptureBack); + } else { + this.setActiveScreen(this.documentInstructionBack); + } + }, + ); this.documentInstructionBack.addEventListener( 'document-capture-instructions.capture', @@ -192,29 +205,38 @@ class DocumentCaptureScreens extends HTMLElement { SmartCamera.stopMedia(); }); - this.idCaptureBack.addEventListener('document-capture.cancelled', async () => { - if (this.hideInstructions) { - this.setActiveScreen(this.idCapture); - await getPermissions(this.idCapture); - } else { - this.setActiveScreen(this.documentInstructionBack); - } - }); + this.idCaptureBack.addEventListener( + 'document-capture.cancelled', + async () => { + if (this.hideInstructions) { + this.setActiveScreen(this.idCapture); + await getPermissions(this.idCapture); + } else { + this.setActiveScreen(this.documentInstructionBack); + } + }, + ); - this.backOfIdReview.addEventListener('document-capture-review.rejected', async () => { - this.backOfIdReview.removeAttribute('data-image'); - this._data.images.pop(); - if (this.hideInstructions) { - this.setActiveScreen(this.idCaptureBack); - await getPermissions(this.idCaptureBack); - } else { - this.setActiveScreen(this.documentInstructionBack); - } - }); + this.backOfIdReview.addEventListener( + 'document-capture-review.rejected', + async () => { + this.backOfIdReview.removeAttribute('data-image'); + this._data.images.pop(); + if (this.hideInstructions) { + this.setActiveScreen(this.idCaptureBack); + await getPermissions(this.idCaptureBack); + } else { + this.setActiveScreen(this.documentInstructionBack); + } + }, + ); - this.backOfIdReview.addEventListener('document-capture-review.accepted', () => { - this._publishSelectedImages(); - }); + this.backOfIdReview.addEventListener( + 'document-capture-review.accepted', + () => { + this._publishSelectedImages(); + }, + ); const screens = [ this.documentInstruction, @@ -226,13 +248,17 @@ class DocumentCaptureScreens extends HTMLElement { ]; screens.forEach((screen) => { - screen.addEventListener(`${screen.nodeName.toLowerCase()}.close`, () => this.handleCloseEvents()); + screen.addEventListener(`${screen.nodeName.toLowerCase()}.close`, () => + this.handleCloseEvents(), + ); }); } _publishSelectedImages() { this.dispatchEvent( - new CustomEvent('document-capture-screens.publish', { detail: this._data }), + new CustomEvent('document-capture-screens.publish', { + detail: this._data, + }), ); } @@ -275,7 +301,10 @@ class DocumentCaptureScreens extends HTMLElement { } } -if ('customElements' in window && !customElements.get('document-capture-screens')) { +if ( + 'customElements' in window && + !customElements.get('document-capture-screens') +) { customElements.define('document-capture-screens', DocumentCaptureScreens); } diff --git a/packages/web-components/components/document/src/README.md b/packages/web-components/components/document/src/README.md index 12769927..3917baad 100644 --- a/packages/web-components/components/document/src/README.md +++ b/packages/web-components/components/document/src/README.md @@ -73,9 +73,7 @@ Capture events emit `document-capture-screens.publish`, providing captured image ```json { "detail": { - "images": [ - {"image": "base64-encoded image", "image_type_id": ""} - ], + "images": [{ "image": "base64-encoded image", "image_type_id": "" }], "meta": { "version": "library version" } @@ -86,9 +84,11 @@ Capture events emit `document-capture-screens.publish`, providing captured image To handle this event: ```js -document.querySelector('document-capture').addEventListener('document-capture-screens.publish', function(event) { - console.log(event.detail); -}); +document + .querySelector('document-capture') + .addEventListener('document-capture-screens.publish', function (event) { + console.log(event.detail); + }); ``` ### Dependencies diff --git a/packages/web-components/components/document/src/document-capture-instructions/DocumentCaptureInstructions.js b/packages/web-components/components/document/src/document-capture-instructions/DocumentCaptureInstructions.js index c3ba90f7..a137558d 100644 --- a/packages/web-components/components/document/src/document-capture-instructions/DocumentCaptureInstructions.js +++ b/packages/web-components/components/document/src/document-capture-instructions/DocumentCaptureInstructions.js @@ -346,26 +346,26 @@ function templateString() {
${ - this.supportBothCaptureModes || this.documentCaptureModes === 'camera' - ? ` + this.supportBothCaptureModes || this.documentCaptureModes === 'camera' + ? ` ` - : '' -} + : '' + } ${ - this.supportBothCaptureModes || this.documentCaptureModes === 'upload' - ? ` + this.supportBothCaptureModes || this.documentCaptureModes === 'upload' + ? ` ` - : '' -} + : '' + }
${this.hideAttribution ? '' : ''}
@@ -391,7 +391,8 @@ class DocumentInstruction extends HTMLElement { this.navigation = this.shadowRoot.querySelector('smileid-navigation'); this.takeDocumentPhotoButton = this.shadowRoot.querySelector('#take-photo'); - this.uploadDocumentPhotoButton = this.shadowRoot.querySelector('#upload-photo'); + this.uploadDocumentPhotoButton = + this.shadowRoot.querySelector('#upload-photo'); this.navigation.addEventListener('navigation.back', () => { this.handleBackEvents(); @@ -475,7 +476,9 @@ class DocumentInstruction extends HTMLElement { } handleBackEvents() { - this.dispatchEvent(new CustomEvent('document-capture-instructions.cancelled')); + this.dispatchEvent( + new CustomEvent('document-capture-instructions.cancelled'), + ); } handleCloseEvents() { @@ -483,8 +486,14 @@ class DocumentInstruction extends HTMLElement { } } -if ('customElements' in window && !customElements.get('document-capture-instructions')) { - window.customElements.define('document-capture-instructions', DocumentInstruction); +if ( + 'customElements' in window && + !customElements.get('document-capture-instructions') +) { + window.customElements.define( + 'document-capture-instructions', + DocumentInstruction, + ); } export default DocumentInstruction; diff --git a/packages/web-components/components/document/src/document-capture-instructions/README.md b/packages/web-components/components/document/src/document-capture-instructions/README.md index 9301a3b5..347c4e06 100644 --- a/packages/web-components/components/document/src/document-capture-instructions/README.md +++ b/packages/web-components/components/document/src/document-capture-instructions/README.md @@ -37,7 +37,9 @@ Determines the available modes for document capture. This attribute accepts a co - `camera,upload`: Offers users a choice between capturing images using the camera or uploading from the device. ```html - + ``` ## Example @@ -45,7 +47,10 @@ Determines the available modes for document capture. This attribute accepts a co Here is a complete example demonstrating how to embed the `DocumentInstruction` component with navigation controls and both capture modes enabled: ```html - + ``` This setup provides an intuitive interface for users, enabling them to receive instructions, navigate through the capture process, and choose their preferred method of document image submission. diff --git a/packages/web-components/components/document/src/document-capture-review/DocumentCaptureReview.js b/packages/web-components/components/document/src/document-capture-review/DocumentCaptureReview.js index ea6a348c..a365e3de 100644 --- a/packages/web-components/components/document/src/document-capture-review/DocumentCaptureReview.js +++ b/packages/web-components/components/document/src/document-capture-review/DocumentCaptureReview.js @@ -218,13 +218,15 @@ function templateString() {
${ - this.imageSrc - ? `your ID card` : ''} + />` + : '' + }
@@ -237,12 +239,12 @@ function templateString() {
${ - this.hideAttribution - ? '' - : ` + this.hideAttribution + ? '' + : ` ` -} + }
`; @@ -303,14 +305,14 @@ class IdReview extends HTMLElement { attributeChangedCallback(name) { switch (name) { - case 'data-image': - case 'hide-back-to-host': - case 'show-navigation': - this.shadowRoot.innerHTML = this.render(); - this.setUpEventListeners(); - break; - default: - break; + case 'data-image': + case 'hide-back-to-host': + case 'show-navigation': + this.shadowRoot.innerHTML = this.render(); + this.setUpEventListeners(); + break; + default: + break; } } @@ -345,7 +347,10 @@ class IdReview extends HTMLElement { } } -if ('customElements' in window && !customElements.get('document-capture-review')) { +if ( + 'customElements' in window && + !customElements.get('document-capture-review') +) { window.customElements.define('document-capture-review', IdReview); } diff --git a/packages/web-components/components/document/src/document-capture-review/README.md b/packages/web-components/components/document/src/document-capture-review/README.md index 42a8218c..b7073363 100644 --- a/packages/web-components/components/document/src/document-capture-review/README.md +++ b/packages/web-components/components/document/src/document-capture-review/README.md @@ -7,7 +7,11 @@ The `IdReview` component is designed to facilitate user interaction by allowing To integrate the `IdReview` component into your web application, insert the custom HTML tag as follows, specifying attributes for the captured image data and optional features like navigation controls: ```html - + ``` ### Attributes @@ -23,9 +27,11 @@ To integrate the `IdReview` component into your web application, insert the cust When a user confirms the captured image as acceptable, the `document-capture-review.accepted` event is emitted. Implement an event listener to handle this action: ```js -document.querySelector('document-capture-review').addEventListener('document-capture-review.accepted', function(event) { - // Handle the image acceptance action here -}); +document + .querySelector('document-capture-review') + .addEventListener('document-capture-review.accepted', function (event) { + // Handle the image acceptance action here + }); ``` ### Recapture Request @@ -33,9 +39,11 @@ document.querySelector('document-capture-review').addEventListener('document-cap If the user decides to recapture the image, the `document-capture-review.rejected` event is triggered. Set up an event listener to manage this scenario: ```js -document.querySelector('document-capture-review').addEventListener('document-capture-review.rejected', function(event) { - // Handle the recapture request here -}); +document + .querySelector('document-capture-review') + .addEventListener('document-capture-review.rejected', function (event) { + // Handle the recapture request here + }); ``` ## Example @@ -43,19 +51,29 @@ document.querySelector('document-capture-review').addEventListener('document-cap Below is a sample implementation showcasing how to use the `IdReview` component with an event listener for both accepting an image and requesting a recapture: ```html - + ``` diff --git a/packages/web-components/components/document/src/document-capture/DocumentCapture.js b/packages/web-components/components/document/src/document-capture/DocumentCapture.js index d0fe6b53..6b9bef67 100644 --- a/packages/web-components/components/document/src/document-capture/DocumentCapture.js +++ b/packages/web-components/components/document/src/document-capture/DocumentCapture.js @@ -235,10 +235,10 @@ function templateString() {
${this.cameraError ? '' : '

'} ${ - this.cameraError - ? `

${this.cameraError}

` - : '

Checking permissions

' -} + this.cameraError + ? `

${this.cameraError}

` + : '

Checking permissions

' + }
`; @@ -380,10 +380,13 @@ class DocumentCapture extends HTMLElement { const videoBox = video.getBoundingClientRect(); const frameBox = imageFrame.getBoundingClientRect(); - const sourceXOffset = ((frameBox.left - videoBox.left) / videoBox.width) * video.videoWidth; - const sourceYOffset = ((frameBox.top - videoBox.top) / videoBox.height) * video.videoHeight; + const sourceXOffset = + ((frameBox.left - videoBox.left) / videoBox.width) * video.videoWidth; + const sourceYOffset = + ((frameBox.top - videoBox.top) / videoBox.height) * video.videoHeight; const sourceWidth = frameBox.width * (video.videoWidth / videoBox.width); - const sourceHeight = frameBox.height * (video.videoHeight / videoBox.height); + const sourceHeight = + frameBox.height * (video.videoHeight / videoBox.height); canvas.height = (canvas.width * frameBox.height) / frameBox.width; @@ -566,15 +569,15 @@ class DocumentCapture extends HTMLElement { attributeChangedCallback(name) { switch (name) { - case 'title': - case 'data-camera-ready': - case 'data-camera-error': - case 'hidden': - this.shadowRoot.innerHTML = this.render(); - this.setUpEventListeners(); - break; - default: - break; + case 'title': + case 'data-camera-ready': + case 'data-camera-error': + case 'hidden': + this.shadowRoot.innerHTML = this.render(); + this.setUpEventListeners(); + break; + default: + break; } } diff --git a/packages/web-components/components/document/src/document-capture/README.md b/packages/web-components/components/document/src/document-capture/README.md index 483003b7..349c6ce4 100644 --- a/packages/web-components/components/document/src/document-capture/README.md +++ b/packages/web-components/components/document/src/document-capture/README.md @@ -60,25 +60,27 @@ To receive the images after they have been captured, you can listen to the custo ```json { - "detail": { - "image": "base64 image" - } + "detail": { + "image": "base64 image" + } } ``` Usage: ```js -document.querySelector('document-capture').addEventListener('document-capture.publish', function(event) { - console.log(event.detail); -}); +document + .querySelector('document-capture') + .addEventListener('document-capture.publish', function (event) { + console.log(event.detail); + }); ``` ### Dependencies The `IdCapture` component depends on the following module: -* SmartCamera +- SmartCamera This module is imported when you use the `IdCapture` component in your projects. diff --git a/packages/web-components/components/end-user-consent/src/EndUserConsent.js b/packages/web-components/components/end-user-consent/src/EndUserConsent.js index 5673dc24..87396b30 100644 --- a/packages/web-components/components/end-user-consent/src/EndUserConsent.js +++ b/packages/web-components/components/end-user-consent/src/EndUserConsent.js @@ -411,8 +411,8 @@ function templateString() {

You can view ${this.partnerName}'s privacy policy here + this.partnerPolicyURL + }' rel='noreferer noopener' target='_blank'>here

@@ -632,26 +632,35 @@ class EndUserConsent extends HTMLElement { this.allowButton = this.shadowRoot.querySelector('#allow'); this.rejectButton = this.shadowRoot.querySelector('#cancel'); - this.backToConsentButton = this.shadowRoot.querySelector('#back-to-consent'); + this.backToConsentButton = + this.shadowRoot.querySelector('#back-to-consent'); this.confirmConsentRejectionButton = this.shadowRoot.querySelector( '#confirm-consent-rejection', ); this.backButton = this.shadowRoot.querySelector('#back-button'); - const CloseIframeButtons = this.shadowRoot.querySelectorAll('.close-iframe'); + const CloseIframeButtons = + this.shadowRoot.querySelectorAll('.close-iframe'); - this.allowButton.addEventListener('click', (e) => this.handleConsentGrant(e)); - this.rejectButton.addEventListener('click', (e) => this.handleConsentGrant(e)); + this.allowButton.addEventListener('click', (e) => + this.handleConsentGrant(e), + ); + this.rejectButton.addEventListener('click', (e) => + this.handleConsentGrant(e), + ); - this.backToConsentButton.addEventListener('click', () => this.setActiveScreen(this.consentScreen)); - this.confirmConsentRejectionButton.addEventListener('click', (e) => this.handleConsentRejection(e)); + this.backToConsentButton.addEventListener('click', () => + this.setActiveScreen(this.consentScreen), + ); + this.confirmConsentRejectionButton.addEventListener('click', (e) => + this.handleConsentRejection(e), + ); this.totpConsentApp.addEventListener( 'end-user-consent.totp.denied.contact-methods-outdated', (e) => this.handleTotpConsentEvents(e), ); - this.totpConsentApp.addEventListener( - 'end-user-consent.totp.granted', - (e) => this.handleTotpConsentEvents(e), + this.totpConsentApp.addEventListener('end-user-consent.totp.granted', (e) => + this.handleTotpConsentEvents(e), ); this.totpConsentApp.addEventListener( 'end-user-consent.totp.cancelled', diff --git a/packages/web-components/components/selfie/README.md b/packages/web-components/components/selfie/README.md index 177037bf..82d54a46 100644 --- a/packages/web-components/components/selfie/README.md +++ b/packages/web-components/components/selfie/README.md @@ -60,33 +60,33 @@ To receive the images after they have been captured, you can listen to the custo ```json { - "detail": { - "images": [ - {"image": "base64 image", "image_type_id": ""} - ], - "meta": { - "version": "version of the library in use" + "detail": { + "images": [{ "image": "base64 image", "image_type_id": "" }], + "meta": { + "version": "version of the library in use" + } } - } } ``` Usage: ```js -document.querySelector('selfie-capture-screens').addEventListener('selfie-capture-screens.publish', function(event) { - console.log(event.detail); -}); +document + .querySelector('selfie-capture-screens') + .addEventListener('selfie-capture-screens.publish', function (event) { + console.log(event.detail); + }); ``` ### Dependencies The `SelfieCaptureScreens` component depends on the following modules: -* [selfie-capture](#selfiecapture-web-component) -* [selfie-capture-review](#selfie-capture-review-web-component) -* Selfie-instructions -* SmartCamera +- [selfie-capture](#selfiecapture-web-component) +- [selfie-capture-review](#selfie-capture-review-web-component) +- Selfie-instructions +- SmartCamera These modules are imported when you use the `SelfieCaptureScreens` component in your projects. @@ -158,9 +158,11 @@ base64 image", "image_type_id": ""} Usage: ```js -document.querySelector('selfie-capture').addEventListener('selfie-capture.publish', function(event) { - console.log(event.detail); -}); +document + .querySelector('selfie-capture') + .addEventListener('selfie-capture.publish', function (event) { + console.log(event.detail); + }); ``` ### SelfieCaptureReview Web Component @@ -171,21 +173,27 @@ The user can choose to use the captured image or recapture a new selfie. Usage: ```html - + ``` When a user accepts an image, an event is triggered as shown below: ```js -document.querySelector('selfie-capture-review').addEventListener('selfie-capture-review.accepted', function(event) { -}); +document + .querySelector('selfie-capture-review') + .addEventListener('selfie-capture-review.accepted', function (event) {}); ``` When a user wants to recapture a selfie, an event is triggered as shown below: ```js -document.querySelector('selfie-capture-review').addEventListener('selfie-capture-review.rejected', function(event) { -}); +document + .querySelector('selfie-capture-review') + .addEventListener('selfie-capture-review.rejected', function (event) {}); ``` ### Compatibility diff --git a/packages/web-components/components/selfie/src/SelfieCaptureScreens.js b/packages/web-components/components/selfie/src/SelfieCaptureScreens.js index 48f02677..d3518375 100644 --- a/packages/web-components/components/selfie/src/SelfieCaptureScreens.js +++ b/packages/web-components/components/selfie/src/SelfieCaptureScreens.js @@ -79,23 +79,20 @@ class SelfieCaptureScreens extends HTMLElement { this.setActiveScreen(this.selfieCapture); }, ); - this.selfieInstruction.addEventListener('selfie-capture-instructions.cancelled', () => { - this.handleBackEvents(); - }); - - this.selfieCapture.addEventListener( - 'selfie-capture.publish', - (event) => { - this.selfieReview.setAttribute( - 'data-image', - event.detail.referenceImage, - ); - this._data.images = event.detail.images; - SmartCamera.stopMedia(); - this.setActiveScreen(this.selfieReview); + this.selfieInstruction.addEventListener( + 'selfie-capture-instructions.cancelled', + () => { + this.handleBackEvents(); }, ); + this.selfieCapture.addEventListener('selfie-capture.publish', (event) => { + this.selfieReview.setAttribute('data-image', event.detail.referenceImage); + this._data.images = event.detail.images; + SmartCamera.stopMedia(); + this.setActiveScreen(this.selfieReview); + }); + this.selfieCapture.addEventListener('selfie-capture.cancelled', () => { this.selfieCapture.reset(); SmartCamera.stopMedia(); @@ -107,16 +104,19 @@ class SelfieCaptureScreens extends HTMLElement { this.setActiveScreen(this.selfieInstruction); }); - this.selfieReview.addEventListener('selfie-capture-review.rejected', async () => { - this.selfieReview.removeAttribute('data-image'); - this._data.images = []; - if (this.hideInstructions) { - this.setActiveScreen(this.selfieCapture); - await getPermissions(this.selfieCapture); - } else { - this.setActiveScreen(this.selfieInstruction); - } - }); + this.selfieReview.addEventListener( + 'selfie-capture-review.rejected', + async () => { + this.selfieReview.removeAttribute('data-image'); + this._data.images = []; + if (this.hideInstructions) { + this.setActiveScreen(this.selfieCapture); + await getPermissions(this.selfieCapture); + } else { + this.setActiveScreen(this.selfieInstruction); + } + }, + ); this.selfieReview.addEventListener( 'selfie-capture-review.accepted', @@ -125,11 +125,16 @@ class SelfieCaptureScreens extends HTMLElement { }, ); - [this.selfieInstruction, this.selfieCapture, this.selfieReview].forEach((screen) => { - screen.addEventListener(`${screen.nodeName.toLowerCase()}.close`, () => { - this.handleCloseEvent(); - }); - }); + [this.selfieInstruction, this.selfieCapture, this.selfieReview].forEach( + (screen) => { + screen.addEventListener( + `${screen.nodeName.toLowerCase()}.close`, + () => { + this.handleCloseEvent(); + }, + ); + }, + ); } _publishSelectedImages() { @@ -159,7 +164,9 @@ class SelfieCaptureScreens extends HTMLElement { } get disableImageTests() { - return this.hasAttribute('disable-image-tests') ? 'disable-image-tests' : ''; + return this.hasAttribute('disable-image-tests') + ? 'disable-image-tests' + : ''; } setActiveScreen(screen) { @@ -188,18 +195,21 @@ class SelfieCaptureScreens extends HTMLElement { attributeChangedCallback(name) { switch (name) { - case 'title': - case 'hidden': - case 'initial-screen': - this.connectedCallback(); - break; - default: - break; + case 'title': + case 'hidden': + case 'initial-screen': + this.connectedCallback(); + break; + default: + break; } } } -if ('customElements' in window && !customElements.get('selfie-capture-screens')) { +if ( + 'customElements' in window && + !customElements.get('selfie-capture-screens') +) { customElements.define('selfie-capture-screens', SelfieCaptureScreens); } diff --git a/packages/web-components/components/selfie/src/selfie-capture-instructions/SelfieCaptureInstructions.js b/packages/web-components/components/selfie/src/selfie-capture-instructions/SelfieCaptureInstructions.js index d375d579..e17c9676 100644 --- a/packages/web-components/components/selfie/src/selfie-capture-instructions/SelfieCaptureInstructions.js +++ b/packages/web-components/components/selfie/src/selfie-capture-instructions/SelfieCaptureInstructions.js @@ -553,12 +553,12 @@ function templateString() { ${ - this.hideAttribution - ? '' - : ` + this.hideAttribution + ? '' + : ` ` -} + } `; } @@ -588,7 +588,9 @@ class SelfieCaptureInstructions extends HTMLElement { if (this.allowButton) { this.allowButton.addEventListener('click', () => { - this.dispatchEvent(new CustomEvent('selfie-capture-instructions.capture')); + this.dispatchEvent( + new CustomEvent('selfie-capture-instructions.capture'), + ); }); } @@ -614,7 +616,9 @@ class SelfieCaptureInstructions extends HTMLElement { } handleBackEvents() { - this.dispatchEvent(new CustomEvent('selfie-capture-instructions.cancelled')); + this.dispatchEvent( + new CustomEvent('selfie-capture-instructions.cancelled'), + ); } get showNavigation() { @@ -626,8 +630,14 @@ class SelfieCaptureInstructions extends HTMLElement { } } -if ('customElements' in window && !window.customElements.get('selfie-capture-instructions')) { - window.customElements.define('selfie-capture-instructions', SelfieCaptureInstructions); +if ( + 'customElements' in window && + !window.customElements.get('selfie-capture-instructions') +) { + window.customElements.define( + 'selfie-capture-instructions', + SelfieCaptureInstructions, + ); } export default SelfieCaptureInstructions; diff --git a/packages/web-components/components/selfie/src/selfie-capture-review/SelfieCaptureReview.js b/packages/web-components/components/selfie/src/selfie-capture-review/SelfieCaptureReview.js index 68728455..263880a1 100644 --- a/packages/web-components/components/selfie/src/selfie-capture-review/SelfieCaptureReview.js +++ b/packages/web-components/components/selfie/src/selfie-capture-review/SelfieCaptureReview.js @@ -215,15 +215,15 @@ function templateString() {

${ - this.imageSrc - ? `your ID card` - : '' -} + : '' + }
${ - this.hideAttribution - ? '' - : ` + this.hideAttribution + ? '' + : ` ` -} + }
`; @@ -300,14 +300,14 @@ class SelfieCaptureReview extends HTMLElement { attributeChangedCallback(name) { switch (name) { - case 'data-image': - case 'hide-back-to-host': - case 'show-navigation': - this.shadowRoot.innerHTML = this.render(); - this.setUpEventListeners(); - break; - default: - break; + case 'data-image': + case 'hide-back-to-host': + case 'show-navigation': + this.shadowRoot.innerHTML = this.render(); + this.setUpEventListeners(); + break; + default: + break; } } @@ -340,7 +340,10 @@ class SelfieCaptureReview extends HTMLElement { } } -if ('customElements' in window && !customElements.get('selfie-capture-review')) { +if ( + 'customElements' in window && + !customElements.get('selfie-capture-review') +) { window.customElements.define('selfie-capture-review', SelfieCaptureReview); } diff --git a/packages/web-components/components/selfie/src/selfie-capture/SelfieCapture.js b/packages/web-components/components/selfie/src/selfie-capture/SelfieCapture.js index 359edf61..b94dfa27 100644 --- a/packages/web-components/components/selfie/src/selfie-capture/SelfieCapture.js +++ b/packages/web-components/components/selfie/src/selfie-capture/SelfieCapture.js @@ -522,12 +522,12 @@ function templateString() { ${ - this.hideAttribution - ? '' - : ` + this.hideAttribution + ? '' + : ` ` -} + } `; @@ -655,7 +655,8 @@ class SelfieCaptureScreen extends HTMLElement { _capturePOLPhoto() { const canvas = document.createElement('canvas'); canvas.width = 240; - canvas.height = (canvas.width * this._video.videoHeight) / this._video.videoWidth; + canvas.height = + (canvas.width * this._video.videoHeight) / this._video.videoWidth; // NOTE: we do not want to test POL images this._drawImage(canvas, false); @@ -666,7 +667,8 @@ class SelfieCaptureScreen extends HTMLElement { _captureReferencePhoto() { const canvas = document.createElement('canvas'); canvas.width = 480; - canvas.height = (canvas.width * this._video.videoHeight) / this._video.videoWidth; + canvas.height = + (canvas.width * this._video.videoHeight) / this._video.videoWidth; // NOTE: we want to test the image quality of the reference photo this._drawImage(canvas, !this.disableImageTests); @@ -847,15 +849,15 @@ class SelfieCaptureScreen extends HTMLElement { attributeChangedCallback(name) { switch (name) { - case 'data-camera-error': - case 'data-camera-ready': - case 'hidden': - case 'title': - this.shadowRoot.innerHTML = this.render(); - this.init(); - break; - default: - break; + case 'data-camera-error': + case 'data-camera-ready': + case 'hidden': + case 'title': + this.shadowRoot.innerHTML = this.render(); + this.init(); + break; + default: + break; } } diff --git a/packages/web-components/components/signature-pad/src/SignaturePad.js b/packages/web-components/components/signature-pad/src/SignaturePad.js index aa208325..e70ff806 100644 --- a/packages/web-components/components/signature-pad/src/SignaturePad.js +++ b/packages/web-components/components/signature-pad/src/SignaturePad.js @@ -13,9 +13,10 @@ class SmartFileUpload { units.length - 1, ); const approx = numberOfBytes / 1024 ** exponent; - const output = exponent === 0 - ? `${numberOfBytes} bytes` - : `${approx.toFixed(0)} ${units[exponent]}`; + const output = + exponent === 0 + ? `${numberOfBytes} bytes` + : `${approx.toFixed(0)} ${units[exponent]}`; return output; } @@ -251,12 +252,14 @@ button:disabled { const componentMaxInlineSize = 30 * remInPx; // 30rem from the style declaration const aspectRatio = 2; // 2 from the canvas style aspect ratio declaration - canvas.width = containerWidth < componentMaxInlineSize - ? containerWidth - : componentMaxInlineSize; - canvas.height = (containerWidth < componentMaxInlineSize - ? containerWidth - : componentMaxInlineSize) / aspectRatio; + canvas.width = + containerWidth < componentMaxInlineSize + ? containerWidth + : componentMaxInlineSize; + canvas.height = + (containerWidth < componentMaxInlineSize + ? containerWidth + : componentMaxInlineSize) / aspectRatio; canvas.setAttribute('id', 'signature-canvas'); canvas.setAttribute('part', 'canvas'); @@ -328,21 +331,35 @@ button:disabled { // Signature Pad Controls this.clearSignatureButton = signatureControls.querySelector('#clear'); - this.clearSignatureButton.addEventListener('click', () => this.clearSignature()); + this.clearSignatureButton.addEventListener('click', () => + this.clearSignature(), + ); // Upload Controls - this.uploadSignatureButton = uploadControl.querySelector('#upload-signature'); - this.uploadSignatureButton.addEventListener('change', (event) => this.uploadSignature(event)); + this.uploadSignatureButton = + uploadControl.querySelector('#upload-signature'); + this.uploadSignatureButton.addEventListener('change', (event) => + this.uploadSignature(event), + ); // Publish Signature - this.publishSignatureButton = publishSignatureContainer.querySelector('#publish'); - this.publishSignatureButton.addEventListener('click', () => this.publishSignature()); + this.publishSignatureButton = + publishSignatureContainer.querySelector('#publish'); + this.publishSignatureButton.addEventListener('click', () => + this.publishSignature(), + ); } disconnectedCallback() { - this.publishSignatureButton.removeEventListener('click', () => this.publishSignature()); - this.clearSignatureButton.removeEventListener('click', () => this.clearSignature()); - this.uploadSignatureButton.removeEventListener('change', (event) => this.uploadSignature(event)); + this.publishSignatureButton.removeEventListener('click', () => + this.publishSignature(), + ); + this.clearSignatureButton.removeEventListener('click', () => + this.clearSignature(), + ); + this.uploadSignatureButton.removeEventListener('change', (event) => + this.uploadSignature(event), + ); } // Adjust canvas coordinate space taking into account pixel ratio, diff --git a/packages/web-components/components/smart-camera-web/src/SmartCameraWeb.js b/packages/web-components/components/smart-camera-web/src/SmartCameraWeb.js index 152119c8..bf149050 100644 --- a/packages/web-components/components/smart-camera-web/src/SmartCameraWeb.js +++ b/packages/web-components/components/smart-camera-web/src/SmartCameraWeb.js @@ -38,10 +38,14 @@ class SmartCameraWeb extends HTMLElement { }, }; - if ('mediaDevices' in navigator && 'getUserMedia' in navigator.mediaDevices) { + if ( + 'mediaDevices' in navigator && + 'getUserMedia' in navigator.mediaDevices + ) { this.setUpEventListeners(); } else { - this.shadowRoot.innerHTML = '

Your browser does not support this integration

'; + this.shadowRoot.innerHTML = + '

Your browser does not support this integration

'; } } @@ -55,27 +59,36 @@ class SmartCameraWeb extends HTMLElement { } static get observedAttributes() { - return ['document-capture-modes', 'document-type', 'hide-back-to-host', 'show-navigation']; + return [ + 'document-capture-modes', + 'document-type', + 'hide-back-to-host', + 'show-navigation', + ]; } attributeChangedCallback(name) { switch (name) { - case 'document-capture-modes': - case 'document-type': - case 'hide-back-to-host': - case 'show-navigation': - this.shadowRoot.innerHTML = this.render(); - this.setUpEventListeners(); - break; - default: - break; + case 'document-capture-modes': + case 'document-type': + case 'hide-back-to-host': + case 'show-navigation': + this.shadowRoot.innerHTML = this.render(); + this.setUpEventListeners(); + break; + default: + break; } } setUpEventListeners() { this.cameraPermission = this.shadowRoot.querySelector('camera-permission'); - this.SelfieCaptureScreens = this.shadowRoot.querySelector('selfie-capture-screens'); - this.documentCapture = this.shadowRoot.querySelector('document-capture-screens'); + this.SelfieCaptureScreens = this.shadowRoot.querySelector( + 'selfie-capture-screens', + ); + this.documentCapture = this.shadowRoot.querySelector( + 'document-capture-screens', + ); if (this.hideInstructions) { this.setActiveScreen(this.cameraPermission); @@ -88,29 +101,50 @@ class SmartCameraWeb extends HTMLElement { this.SelfieCaptureScreens.setAttribute('data-camera-ready', true); }); - this.SelfieCaptureScreens.addEventListener('selfie-capture-screens.publish', (event) => { - this._data.images = event.detail.images; - this.setActiveScreen(this.documentCapture); - }); + this.SelfieCaptureScreens.addEventListener( + 'selfie-capture-screens.publish', + (event) => { + this._data.images = event.detail.images; + this.setActiveScreen(this.documentCapture); + }, + ); - this.SelfieCaptureScreens.addEventListener('selfie-capture-screens.cancelled', () => { - this.handleBackEvents(); - }); + this.SelfieCaptureScreens.addEventListener( + 'selfie-capture-screens.cancelled', + () => { + this.handleBackEvents(); + }, + ); - this.documentCapture.addEventListener('document-capture-screens.publish', (event) => { - this._data.images = [...this._data.images, ...event.detail.images]; - this._publishSelectedImages(); - }); + this.documentCapture.addEventListener( + 'document-capture-screens.publish', + (event) => { + this._data.images = [...this._data.images, ...event.detail.images]; + this._publishSelectedImages(); + }, + ); - this.documentCapture.addEventListener('document-capture-screens.cancelled', () => { - this.SelfieCaptureScreens.setAttribute('initial-screen', 'selfie-capture'); - this.setActiveScreen(this.SelfieCaptureScreens); - this.SelfieCaptureScreens.removeAttribute('data-camera-error'); - this.SelfieCaptureScreens.setAttribute('data-camera-ready', true); - }); + this.documentCapture.addEventListener( + 'document-capture-screens.cancelled', + () => { + this.SelfieCaptureScreens.setAttribute( + 'initial-screen', + 'selfie-capture', + ); + this.setActiveScreen(this.SelfieCaptureScreens); + this.SelfieCaptureScreens.removeAttribute('data-camera-error'); + this.SelfieCaptureScreens.setAttribute('data-camera-ready', true); + }, + ); - [this.cameraPermission, this.SelfieCaptureScreens, this.documentCapture].forEach((screen) => { - screen.addEventListener(`${screen.nodeName.toLowerCase()}.close`, () => this.handleCloseEvent()); + [ + this.cameraPermission, + this.SelfieCaptureScreens, + this.documentCapture, + ].forEach((screen) => { + screen.addEventListener(`${screen.nodeName.toLowerCase()}.close`, () => + this.handleCloseEvent(), + ); }); } @@ -154,7 +188,9 @@ class SmartCameraWeb extends HTMLElement { } get disableImageTests() { - return this.hasAttribute('disable-image-tests') ? 'disable-image-tests' : ''; + return this.hasAttribute('disable-image-tests') + ? 'disable-image-tests' + : ''; } get hideAttribution() { diff --git a/packages/web-components/components/totp-consent/src/TotpConsent.js b/packages/web-components/components/totp-consent/src/TotpConsent.js index 48561f6e..171389dc 100644 --- a/packages/web-components/components/totp-consent/src/TotpConsent.js +++ b/packages/web-components/components/totp-consent/src/TotpConsent.js @@ -371,15 +371,15 @@ function markup() {
${ - this.modes.length - ? this.modes - .map( - (mode) => `
@@ -477,17 +477,17 @@ function markup() {

Didn't receive the OTP${ - !this.selectedOtpDeliveryMode - ? '?' - : ` at ${this.selectedOtpDeliveryMode}?` -} + !this.selectedOtpDeliveryMode + ? '?' + : ` at ${this.selectedOtpDeliveryMode}?` + }