diff --git a/.github/issue_template.md b/.github/issue_template.md
new file mode 100644
index 0000000..8b7eb7f
--- /dev/null
+++ b/.github/issue_template.md
@@ -0,0 +1,47 @@
+# ! To prevent creating a duplicate, please check for previous issues before making a new one. !
+
+## Issue Description
+
+[To help us better understand the issue you are experiencing, please be as detailed as possible. Try to be as detailed as you can.]
+
+## Steps to Reproduce
+
+[Describe the steps you took to get into the issue. Bring back every step of the process, down to the last detail, including all of the inputs, outputs you anticipated, and results you achieved. This enables us to identify and solve the problem more quickly.]
+
+1. Step 1
+2. Step 2
+3. ...
+
+## Expected Behavior
+
+[Give a detailed description of the desired behavior you aimed to achieve with the flow.]
+
+## Actual Behavior
+
+[Give a detailed description of the actual behavior.]
+
+## Screenshots
+
+[Provide us with screenshots of the faulty behavior if possible. With this, we can get a clearer picture of the issue.]
+
+## Environment
+
+[Please describe the environment in which the issue occurred.]
+
+- **Operating System:**
+- **Browser (if applicable):**
+- **Version/Commit ID (if applicable):**
+
+## Additional Information
+
+[Please share any further details you may have that could lead to a solution to this problem.]
+
+## Labels
+
+[Mention any labels that you think are relevant to this issue, such as "bug," "enhancement," etc.]
+
+## Assignees
+
+[If there's a specific person or team responsible for addressing this issue, assign them here. If not, you can leave this section blank.]
+
+---
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
new file mode 100644
index 0000000..aa1ccff
--- /dev/null
+++ b/.github/pull_request_template.md
@@ -0,0 +1,38 @@
+# !Make sure that your branch is based on the latest changes in the main/master branch before submitting the pull request.!
+
+## Pull Request Description
+
+[Please give us as much information as possible about the pull request you want us to approve. Please be as detailed as possible.]
+
+## Related Issue
+
+[Please add related issue.]
+
+## Changes Made
+
+[List the specific changes made in this pull request.]
+
+- Change 1
+- Change 2
+- ...
+
+## Screenshots
+
+[If applicable, include screenshots that showcase the changes.]
+
+# Checklist
+
+- [ ] I have tested these changes locally.
+- [ ] I have updated the documentation.
+- [ ] My code follows our project's coding style.
+- [ ] I have added/modified relevant tests.
+- [ ] All existing tests are passing.
+- [ ] I have rebased my branch on the latest main/master.
+
+## Additional Information
+
+[Please share any further details you may have.]
+
+## Assignees
+
+[If there's a specific person or team responsible for reviewing and merging this pull request, assign them here. If not, you can leave this section blank.]
diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml
new file mode 100644
index 0000000..a7d0a0c
--- /dev/null
+++ b/.github/workflows/maven-publish.yml
@@ -0,0 +1,26 @@
+name: Publish package to the Maven Central Repository
+on:
+ release:
+ types: [created]
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up Maven Central Repository
+ uses: actions/setup-java@v4
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+ server-id: ossrh
+ server-username: MAVEN_USERNAME
+ server-password: MAVEN_PASSWORD
+ gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
+ gpg-passphrase: MAVEN_GPG_PASSPHRASE
+ - name: Publish package
+ run: |
+ mvn clean deploy -P release -DskipTests=true --batch-mode
+ env:
+ MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
+ MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..943b110
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,17 @@
+name: Test SDK
+on:
+ - push
+
+jobs:
+ build_and_test:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 17
+ uses: actions/setup-java@v1
+ with:
+ java-version: 17
+
+ - name: Build project with Maven
+ run: mvn -B package --file pom.xml
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7d07d9a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,50 @@
+tmp
+
+# Compiled class file
+*.class
+
+# Log file
+*.log
+
+# BlueJ files
+*.ctxt
+
+# Mobile Tools for Java (J2ME)
+.mtj.tmp/
+
+# Package Files #
+*.jar
+*.war
+*.nar
+*.ear
+*.zip
+*.tar.gz
+*.rar
+
+# Maven
+target/
+
+# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
+hs_err_pid*
+replay_pid*
+
+### Linux ###
+*~
+
+# temporary files which can be created if a process still has a handle open of a deleted file
+.fuse_hidden*
+
+# KDE directory preferences
+.directory
+
+# Linux trash folder which might appear on any partition or disk
+.Trash-*
+
+# .nfs files are created when an open file is removed but is still being accessed
+.nfs*
+
+### OSX ###
+# General
+.DS_Store
+.AppleDouble
+.LSOverride
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..6cf8daf
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,43 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment include:
+
+- Using welcoming and inclusive language
+- Being respectful of differing viewpoints and experiences
+- Gracefully accepting constructive criticism
+- Focusing on what is best for the community
+- Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+- The use of sexualized language or imagery and unwelcome sexual attention or advances
+- Trolling, insulting/derogatory comments, and personal or political attacks
+- Public or private harassment
+- Publishing others' private information, such as a physical or electronic address, without explicit permission
+- Other conduct which could reasonably be considered inappropriate in a professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned with this Code of Conduct or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies within all project spaces, and it also applies when an individual is representing the project or its community in public spaces. Examples of representing a project or community include using an official project email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [info@foxentry.com](mailto:info@foxentry.com). All complaints will be reviewed and investigated promptly and fairly.
+
+All project team members are obligated to respect the privacy and security of the reporter of any incident.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available at [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..3433f35
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,42 @@
+# Contributing to com.foxentry.foxentrysdk
+
+Thank you for considering contributing to com.foxentry.foxentrysdk! We appreciate your efforts in helping to improve our project. Please take a moment to review this document for guidelines on how to contribute.
+
+## Ways to Contribute
+
+There are several ways you can contribute to this project:
+
+- Reporting issues
+- Suggesting enhancements
+- Submitting pull requests for bug fixes or new features
+
+## How to Contribute
+
+### Reporting Issues
+
+If you encounter any issues or bugs, please use the GitHub issue tracker to report them. When reporting issues, please provide as much detail as possible, including:
+
+- A clear and descriptive title
+- A detailed description of the issue
+- Steps to reproduce the issue, if applicable
+- Any relevant error messages or screenshots
+
+### Suggesting Enhancements
+
+If you have suggestions for enhancements or new features, please feel free to open an issue on GitHub. Please provide a clear and detailed description of your suggestion, including why you think it would be beneficial for the project.
+
+### Submitting Pull Requests
+
+We welcome pull requests for bug fixes, improvements, and new features. Before submitting a pull request, please ensure the following:
+
+- Fork the repository and create a new branch for your changes.
+- Make your changes, and provide clear and descriptive commit messages.
+- Test your changes thoroughly.
+- Ensure that your code follows the existing coding style and guidelines.
+- Update any relevant documentation or examples to reflect your changes.
+
+## Contact
+
+If you have any further questions or need assistance, please feel free to reach out to us at [info@foxentry.com](mailto:info@foxentry.com).
+
+Thank you again for your interest in contributing to com.foxentry.foxentrysdk
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..4d46caa
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2024 Foxentry
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
index a3b94c0..5b35c52 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,135 @@
-# kotlin-sdk
+
+
+
+
+Welcome to our com.foxentry.foxentrysdk. We are committed to providing you with the best SDK services experience possible. Please use our step-by-step instructions to become familiar with how to use our SDK.
+
+- Current API version: 2.0
+- Current package version: 1.0.0
+
+## Table of Contents
+
+- [Requirements](#requirements)
+- [Installation](#installation)
+- [Usage](#usage)
+- [Features](#features)
+- [Contributing](#contributing)
+- [License](#license)
+- [Contact](#contact)
+- [Frequently Asked Questions (FAQ)](#frequently-asked-questions-faq)
+
+## Requirements
+
+
+
+- Installed Java, stable version >= 17. If you do not have it installed, please refer to the [Oracle website](https://www.oracle.com/java/technologies/downloads/#java17).
+- Foxentry.com API credentials.
+
+## Installation
+
+
+
+Use this command to install com.foxentry.foxentrysdk in your terminal.
+
+### Linux/macOS
+
+```bash
+./mvnw install
+```
+
+### Windows
+
+```bash
+./mvnw.cmd install
+```
+
+## Usage
+
+
+
+In case that you successfully installed our com.foxentry.foxentrysdk please execute this code:
+
+```kotlin
+import com.foxentry.foxentrysdk
+
+fun main(args: Array) {
+ var config = Config(token = "YOUR_API_KEY"),
+ val sdk = FoxentrySdk(config)
+
+ sdk.CompanyService.validateCompanyData(/* query parameters */)
+}
+```
+
+## Features
+
+
+
+Kindly note that every URI is relative to _https://api.foxentry.com_.
+
+The table displays all features categorized based on their specific purposes.
+
+| Class | Method | HTTP request | Description |
+| ----------------------------- | ------------------------ | --------------------------- | ---------------------- |
+| _FoxentrySdk.CompanyService_ | **validateCompanyData** | **POST** /company/validate | Validate company data |
+| _FoxentrySdk.CompanyService_ | **companySearch** | **POST** /company/search | Search company |
+| _FoxentrySdk.CompanyService_ | **getCompanyData** | **POST** /company/get | Get company data |
+| _FoxentrySdk.EmailService_ | **validateEmail** | **POST** /email/validate | Validate email |
+| _FoxentrySdk.EmailService_ | **emailSearch** | **POST** /email/search | Search email |
+| _FoxentrySdk.LocationService_ | **locationValidation** | **POST** /location/validate | Validate location data |
+| _FoxentrySdk.LocationService_ | **locationSearch** | **POST** /location/search | Search location |
+| _FoxentrySdk.LocationService_ | **locationGet** | **POST** /location/get | Get location data |
+| _FoxentrySdk.LocationService_ | **locationLocalization** | **POST** /location/localize | Localization |
+| _FoxentrySdk.NameService_ | **nameValidation** | **POST** /name/validate | Validate name data |
+| _FoxentrySdk.PhoneService_ | **validatePhoneNumber** | **POST** /phone/validate | Validate phone number |
+
+## Contributing
+
+
+
+To learn more about the possibility of contributing to the subsequent development of this SDK, please visit our [contributing page](./CONTRIBUTING.md). Kindly note that contributions are limited by a unique set of rules in order to ensure clarity.
+
+## License
+
+
+
+Please refer to the [license page](./LICENSE) for more information about the license type and the corresponding terms of use.
+
+## Contact
+
+
+
+We kindly request that you direct all questions to our support email:
+
+- [info@foxentry.com](mailto:info@foxentry.com)
+
+## Frequently Asked Questions (FAQ)
+
+
+
+
diff --git a/assets/logo.webp b/assets/logo.webp
new file mode 100644
index 0000000..00fb1cf
Binary files /dev/null and b/assets/logo.webp differ
diff --git a/mvnw b/mvnw
new file mode 100644
index 0000000..41c0f0c
--- /dev/null
+++ b/mvnw
@@ -0,0 +1,310 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Maven Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# M2_HOME - location of maven2's installed home dir
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ] ; then
+
+ if [ -f /etc/mavenrc ] ; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ] ; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false;
+darwin=false;
+mingw=false
+case "`uname`" in
+ CYGWIN*) cygwin=true ;;
+ MINGW*) mingw=true;;
+ Darwin*) darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ export JAVA_HOME="`/usr/libexec/java_home`"
+ else
+ export JAVA_HOME="/Library/Java/Home"
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ] ; then
+ if [ -r /etc/gentoo-release ] ; then
+ JAVA_HOME=`java-config --jre-home`
+ fi
+fi
+
+if [ -z "$M2_HOME" ] ; then
+ ## resolve links - $0 may be a link to maven's home
+ PRG="$0"
+
+ # need this for relative symlinks
+ while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG="`dirname "$PRG"`/$link"
+ fi
+ done
+
+ saveddir=`pwd`
+
+ M2_HOME=`dirname "$PRG"`/..
+
+ # make it fully qualified
+ M2_HOME=`cd "$M2_HOME" && pwd`
+
+ cd "$saveddir"
+ # echo Using m2 at $M2_HOME
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --unix "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME="`(cd "$M2_HOME"; pwd)`"
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="`which javac`"
+ if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=`which readlink`
+ if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
+ if $darwin ; then
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
+ else
+ javaExecutable="`readlink -f \"$javaExecutable\"`"
+ fi
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaHome=`expr "$javaHome" : '\(.*\)/bin'`
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="`which java`"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ] ; then
+ echo "Warning: JAVA_HOME environment variable is not set."
+fi
+
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+
+ if [ -z "$1" ]
+ then
+ echo "Path not specified to find_maven_basedir"
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ] ; do
+ if [ -d "$wdir"/.mvn ] ; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=`cd "$wdir/.."; pwd`
+ fi
+ # end of workaround
+ done
+ echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ echo "$(tr -s '\n' ' ' < "$1")"
+ fi
+}
+
+BASE_DIR=`find_maven_basedir "$(pwd)"`
+if [ -z "$BASE_DIR" ]; then
+ exit 1;
+fi
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found .mvn/wrapper/maven-wrapper.jar"
+ fi
+else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
+ fi
+ if [ -n "$MVNW_REPOURL" ]; then
+ jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ else
+ jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ fi
+ while IFS="=" read key value; do
+ case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
+ esac
+ done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Downloading from: $jarUrl"
+ fi
+ wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
+ if $cygwin; then
+ wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
+ fi
+
+ if command -v wget > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found wget ... using wget"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget "$jarUrl" -O "$wrapperJarPath"
+ else
+ wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
+ fi
+ elif command -v curl > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found curl ... using curl"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl -o "$wrapperJarPath" "$jarUrl" -f
+ else
+ curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
+ fi
+
+ else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Falling back to using Java to download"
+ fi
+ javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaClass=`cygpath --path --windows "$javaClass"`
+ fi
+ if [ -e "$javaClass" ]; then
+ if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Compiling MavenWrapperDownloader.java ..."
+ fi
+ # Compiling the Java class
+ ("$JAVA_HOME/bin/javac" "$javaClass")
+ fi
+ if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ # Running the downloader
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Running MavenWrapperDownloader.java ..."
+ fi
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+if [ "$MVNW_VERBOSE" = true ]; then
+ echo $MAVEN_PROJECTBASEDIR
+fi
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --path --windows "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+ [ -n "$MAVEN_PROJECTBASEDIR" ] &&
+ MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/mvnw.cmd b/mvnw.cmd
new file mode 100644
index 0000000..e445625
--- /dev/null
+++ b/mvnw.cmd
@@ -0,0 +1,182 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Maven Start Up Batch script
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM M2_HOME - location of maven2's installed home dir
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+
+FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %DOWNLOAD_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
+
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
+
+exit /B %ERROR_CODE%
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..01574fd
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,337 @@
+
+
+ 4.0.0
+
+ com.foxentry
+ foxentrysdk
+ 1.0.0
+
+
+
+ com.foxentry:foxentrysdk
+ Generated SDK for Foxentry API reference specification.
+ https://github.com/foxentry/foxentry-kotlin-sdk.git
+
+
+
+ MIT License
+ http://www.opensource.org/licenses/mit-license.php
+
+
+
+
+
+ Foxentry
+ info@foxentry.com
+ Foxentry
+ http://www.foxentry.com
+
+
+
+
+ scm:git:git://github.com/foxentry/foxentry-kotlin-sdk.git
+ scm:git:ssh://github.com:foxentry/foxentry-kotlin-sdkgit
+ https://github.com/foxentry/foxentry-kotlin-sdk.git
+
+
+
+ 17
+ 1.9.20
+ UTF-8
+ ${java.version}
+ ${java.version}
+ true
+ 5.10.1
+ 2.3.10
+ 2.43.0
+
+
+
+
+ org.jetbrains.kotlin
+ kotlin-stdlib-jdk8
+ ${kotlin.version}
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ ${junit.jupiter.version}
+ test
+
+
+ org.jetbrains.kotlin
+ kotlin-test-junit
+ ${kotlin.version}
+ test
+
+
+ io.ktor
+ ktor-client-core-jvm
+ ${ktor.version}
+
+
+ io.ktor
+ ktor-client-content-negotiation-jvm
+ ${ktor.version}
+
+
+ io.ktor
+ ktor-serialization-jackson-jvm
+ ${ktor.version}
+
+
+ io.ktor
+ ktor-client-cio-jvm
+ ${ktor.version}
+
+
+ io.ktor
+ ktor-client-mock-jvm
+ ${ktor.version}
+ test
+
+
+ com.diffplug.spotless
+ spotless-maven-plugin
+ ${spotless.version}
+
+
+
+
+ src/main/kotlin
+ src/test/kotlin
+
+
+
+
+
+ maven-clean-plugin
+ 3.1.0
+
+
+
+ maven-resources-plugin
+ 3.0.2
+
+
+ maven-compiler-plugin
+ 3.8.0
+
+
+ maven-surefire-plugin
+ 2.22.1
+
+
+ maven-jar-plugin
+ 3.0.2
+
+
+ maven-install-plugin
+ 2.5.2
+
+
+ maven-deploy-plugin
+ 2.8.2
+
+
+
+ maven-site-plugin
+ 3.7.1
+
+
+ maven-project-info-reports-plugin
+ 3.0.0
+
+
+
+
+
+
+ org.jetbrains.kotlin
+ kotlin-maven-plugin
+ ${kotlin.version}
+
+
+ compile
+ compile
+
+ compile
+
+
+
+ test-compile
+ test-compile
+
+ test-compile
+
+
+
+
+ 17
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.12.1
+
+
+ compile
+ compile
+
+ compile
+
+
+
+ testCompile
+ test-compile
+
+ testCompile
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ 2.6
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+ jar-with-dependencies
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.3.1
+
+ src/test/kotlin
+
+
+
+
+ com.diffplug.spotless
+ spotless-maven-plugin
+ ${spotless.version}
+
+
+
+ src/main/kotlin/**/*.kt
+ src/test/kotlin/**/*.kt
+
+
+
+
+
+
+
+
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.6.0
+ true
+
+ ossrh
+ true
+ published
+
+
+
+ default-deploy
+ deploy
+
+ deploy
+
+
+
+
+
+
+
+
+
+ release
+
+
+ performRelease
+ true
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 3.3.1
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 3.8.0
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+ ${java.version}
+
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 3.1.0
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+ --pinentry-mode
+ loopback
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/FoxentrySdk.kt b/src/main/kotlin/com/foxentry/foxentrysdk/FoxentrySdk.kt
new file mode 100644
index 0000000..d673a62
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/FoxentrySdk.kt
@@ -0,0 +1,20 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk
+
+import com.foxentry.foxentrysdk.core.*
+import com.foxentry.foxentrysdk.models.*
+import com.foxentry.foxentrysdk.services.*
+
+class FoxentrySdk(val config: Config) {
+ val Company: CompanyService = CompanyService(config)
+ val Email: EmailService = EmailService(config)
+ val Location: LocationService = LocationService(config)
+ val Name: NameService = NameService(config)
+ val Phone: PhoneService = PhoneService(config)
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/core/Config.kt b/src/main/kotlin/com/foxentry/foxentrysdk/core/Config.kt
new file mode 100644
index 0000000..93b3224
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/core/Config.kt
@@ -0,0 +1,15 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.core
+
+data class Config(
+ val url: String = "https://api.foxentry.com",
+ val token: String? = null,
+ val username: String? = null,
+ val password: String? = null
+) {}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ClientRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ClientRequest.kt
new file mode 100644
index 0000000..858684c
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ClientRequest.kt
@@ -0,0 +1,40 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/**
+ * Additional information about your user (from whom you've obtained the data sent in query) in
+ * order to specify the results in response. Used mainly in web forms when you need more relevant
+ * search/autocomplete results.
+ */
+@JsonDeserialize(`as` = ClientRequestImpl::class)
+interface ClientRequest {
+ val ip: String?
+ val country: String?
+ val location: ClientRequestLocation?
+}
+
+data class ClientRequestImpl(
+ override val ip: String?,
+ override val country: String?,
+ override val location: ClientRequestLocation?,
+) : ClientRequest
+/** Latitude & longitude of the client's aprox location. */
+@JsonDeserialize(`as` = ClientRequestLocationImpl::class)
+interface ClientRequestLocation {
+ val lat: Double?
+ val lon: Double?
+}
+
+data class ClientRequestLocationImpl(
+ override val lat: Double?,
+ override val lon: Double?,
+) : ClientRequestLocation
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanyDataRequestOption.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanyDataRequestOption.kt
new file mode 100644
index 0000000..77cf8c8
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanyDataRequestOption.kt
@@ -0,0 +1,59 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Query options. */
+@JsonDeserialize(`as` = CompanyDataRequestOptionImpl::class)
+interface CompanyDataRequestOption {
+ val dataScope: CompanyDataRequestOptionDataScope?
+ val dataSource: List?
+ val includeTerminatedSubjects: Boolean?
+ val zipFormat: Boolean?
+ val cityFormat: CompanyDataRequestOptionCityFormat?
+ val countryFormat: CompanyDataRequestOptionCountryFormat?
+}
+
+data class CompanyDataRequestOptionImpl(
+ override val dataScope: CompanyDataRequestOptionDataScope?,
+ override val dataSource: List?,
+ override val includeTerminatedSubjects: Boolean?,
+ override val zipFormat: Boolean?,
+ override val cityFormat: CompanyDataRequestOptionCityFormat?,
+ override val countryFormat: CompanyDataRequestOptionCountryFormat?,
+) : CompanyDataRequestOption
+/** Data scope of returned data. */
+enum class CompanyDataRequestOptionDataScope(@JsonValue val value: String) {
+ BASIC("basic"),
+ EXTENDED("extended"),
+ FULL("full"),
+}
+/**
+ * This option determines the format in which the city is returned. Minimal = Praha,
+ * basic = Praha 8, extended = Praha 8 - Karlín.
+ */
+enum class CompanyDataRequestOptionCityFormat(@JsonValue val value: String) {
+ MINIMAL("minimal"),
+ BASIC("basic"),
+ EXTENDED("extended"),
+}
+/**
+ * This option determines the format in which the country is returned. Choices include local and
+ * international variants with their shortened counterparts as well as ISO 3166 alpha codes.
+ */
+enum class CompanyDataRequestOptionCountryFormat(@JsonValue val value: String) {
+ ALPHA2("alpha2"),
+ ALPHA3("alpha3"),
+ LOCAL("local"),
+ LOCAL_SHORTENED("localShortened"),
+ INTERNATIONAL("international"),
+ INTERNATIONAL_SHORTENED("internationalShortened"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanyResultsResponseResults.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanyResultsResponseResults.kt
new file mode 100644
index 0000000..daff392
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanyResultsResponseResults.kt
@@ -0,0 +1,462 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsImpl::class)
+interface CompanyResultsResponseResults {
+ val data: CompanyResultsResponseResultsData
+}
+
+data class CompanyResultsResponseResultsImpl(
+ override val data: CompanyResultsResponseResultsData,
+) : CompanyResultsResponseResults
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataImpl::class)
+interface CompanyResultsResponseResultsData {
+ val country: String?
+ val uuid: String?
+ val name: String?
+ val registrationNumber: String?
+ val taxNumber: String?
+ val vatNumber: String?
+ val vatNumberSpecial: String?
+ val address: CompanyResultsResponseResultsDataAddress?
+ val addressOfficial: CompanyResultsResponseResultsDataAddressOfficial?
+ val nace: List?
+ val databoxes: List?
+ val registrations: List?
+ val legalForm: CompanyResultsResponseResultsDataLegalForm?
+ val legalFormSpecific: CompanyResultsResponseResultsDataLegalFormSpecific?
+ val esa2010: CompanyResultsResponseResultsDataEsa2010?
+ val dates: CompanyResultsResponseResultsDataDates?
+ val employees: CompanyResultsResponseResultsDataEmployees?
+ val insolvency: CompanyResultsResponseResultsDataInsolvency?
+ val businessPremises: List?
+ val authority: List?
+ val capital: CompanyResultsResponseResultsDataCapital?
+ val tradeLicences: List?
+ val vat: CompanyResultsResponseResultsDataVat?
+}
+
+data class CompanyResultsResponseResultsDataImpl(
+ override val country: String?,
+ override val uuid: String?,
+ override val name: String?,
+ override val registrationNumber: String?,
+ override val taxNumber: String?,
+ override val vatNumber: String?,
+ override val vatNumberSpecial: String?,
+ override val address: CompanyResultsResponseResultsDataAddress?,
+ override val addressOfficial: CompanyResultsResponseResultsDataAddressOfficial?,
+ override val nace: List?,
+ override val databoxes: List?,
+ override val registrations: List?,
+ override val legalForm: CompanyResultsResponseResultsDataLegalForm?,
+ override val legalFormSpecific: CompanyResultsResponseResultsDataLegalFormSpecific?,
+ override val esa2010: CompanyResultsResponseResultsDataEsa2010?,
+ override val dates: CompanyResultsResponseResultsDataDates?,
+ override val employees: CompanyResultsResponseResultsDataEmployees?,
+ override val insolvency: CompanyResultsResponseResultsDataInsolvency?,
+ override val businessPremises: List?,
+ override val authority: List?,
+ override val capital: CompanyResultsResponseResultsDataCapital?,
+ override val tradeLicences: List?,
+ override val vat: CompanyResultsResponseResultsDataVat?,
+) : CompanyResultsResponseResultsData
+/** Address data */
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataAddressImpl::class)
+interface CompanyResultsResponseResultsDataAddress {
+ val data: LocationData?
+}
+
+data class CompanyResultsResponseResultsDataAddressImpl(
+ override val data: LocationData?,
+) : CompanyResultsResponseResultsDataAddress
+
+typealias CompanyResultsResponseResultsDataAddressOfficial = LocationOficial
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataNaceImpl::class)
+interface CompanyResultsResponseResultsDataNace {
+ val code: String?
+ val name: String?
+ val isPrimary: Boolean?
+}
+
+data class CompanyResultsResponseResultsDataNaceImpl(
+ override val code: String?,
+ override val name: String?,
+ override val isPrimary: Boolean?,
+) : CompanyResultsResponseResultsDataNace
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataDataboxesImpl::class)
+interface CompanyResultsResponseResultsDataDataboxes {
+ val code: String?
+ val name: String?
+ val receivingMessages: Boolean?
+}
+
+data class CompanyResultsResponseResultsDataDataboxesImpl(
+ override val code: String?,
+ override val name: String?,
+ override val receivingMessages: Boolean?,
+) : CompanyResultsResponseResultsDataDataboxes
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataRegistrationsImpl::class)
+interface CompanyResultsResponseResultsDataRegistrations {
+ val type: CompanyResultsResponseResultsDataRegistrationsType?
+ val data: CompanyResultsResponseResultsDataRegistrationsData?
+}
+
+data class CompanyResultsResponseResultsDataRegistrationsImpl(
+ override val type: CompanyResultsResponseResultsDataRegistrationsType?,
+ override val data: CompanyResultsResponseResultsDataRegistrationsData?,
+) : CompanyResultsResponseResultsDataRegistrations
+/** Type of registration. */
+enum class CompanyResultsResponseResultsDataRegistrationsType(@JsonValue val value: String) {
+ BUSINESS_REGISTER("businessRegister"),
+ VAT_REGISTER("vatRegister"),
+}
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataRegistrationsDataImpl::class)
+interface CompanyResultsResponseResultsDataRegistrationsData {
+ val registrator: CompanyResultsResponseResultsDataRegistrationsDataRegistrator?
+ val reference: String?
+}
+
+data class CompanyResultsResponseResultsDataRegistrationsDataImpl(
+ override val registrator: CompanyResultsResponseResultsDataRegistrationsDataRegistrator?,
+ override val reference: String?,
+) : CompanyResultsResponseResultsDataRegistrationsData
+/** Information about registrator. */
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataRegistrationsDataRegistratorImpl::class)
+interface CompanyResultsResponseResultsDataRegistrationsDataRegistrator {
+ val name: String?
+ val detail: String?
+}
+
+data class CompanyResultsResponseResultsDataRegistrationsDataRegistratorImpl(
+ override val name: String?,
+ override val detail: String?,
+) : CompanyResultsResponseResultsDataRegistrationsDataRegistrator
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataLegalFormImpl::class)
+interface CompanyResultsResponseResultsDataLegalForm {
+ val code: String?
+ val name: String?
+}
+
+data class CompanyResultsResponseResultsDataLegalFormImpl(
+ override val code: String?,
+ override val name: String?,
+) : CompanyResultsResponseResultsDataLegalForm
+/** Specific cases of legalForm. */
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataLegalFormSpecificImpl::class)
+interface CompanyResultsResponseResultsDataLegalFormSpecific {
+ val code: String?
+ val name: String?
+}
+
+data class CompanyResultsResponseResultsDataLegalFormSpecificImpl(
+ override val code: String?,
+ override val name: String?,
+) : CompanyResultsResponseResultsDataLegalFormSpecific
+/** The European System of National and Regional Accounts. */
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataEsa2010Impl::class)
+interface CompanyResultsResponseResultsDataEsa2010 {
+ val code: String?
+ val name: String?
+}
+
+data class CompanyResultsResponseResultsDataEsa2010Impl(
+ override val code: String?,
+ override val name: String?,
+) : CompanyResultsResponseResultsDataEsa2010
+/** Important dates associated with company. */
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataDatesImpl::class)
+interface CompanyResultsResponseResultsDataDates {
+ val created: String?
+ val terminated: String?
+}
+
+data class CompanyResultsResponseResultsDataDatesImpl(
+ override val created: String?,
+ override val terminated: String?,
+) : CompanyResultsResponseResultsDataDates
+/** Employees information. */
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataEmployeesImpl::class)
+interface CompanyResultsResponseResultsDataEmployees {
+ val count: Double?
+ val category: String?
+}
+
+data class CompanyResultsResponseResultsDataEmployeesImpl(
+ override val count: Double?,
+ override val category: String?,
+) : CompanyResultsResponseResultsDataEmployees
+/** Company insolvency status with history */
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataInsolvencyImpl::class)
+interface CompanyResultsResponseResultsDataInsolvency {
+ val history: List?
+}
+
+data class CompanyResultsResponseResultsDataInsolvencyImpl(
+ override val history: List?,
+) : CompanyResultsResponseResultsDataInsolvency
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataInsolvencyHistoryImpl::class)
+interface CompanyResultsResponseResultsDataInsolvencyHistory {
+ val reference: String?
+ val dateFrom: String?
+ val dateTo: String?
+ val court: CompanyResultsResponseResultsDataInsolvencyHistoryCourt?
+ val status: String?
+ val detailUrl: String?
+}
+
+data class CompanyResultsResponseResultsDataInsolvencyHistoryImpl(
+ override val reference: String?,
+ override val dateFrom: String?,
+ override val dateTo: String?,
+ override val court: CompanyResultsResponseResultsDataInsolvencyHistoryCourt?,
+ override val status: String?,
+ override val detailUrl: String?,
+) : CompanyResultsResponseResultsDataInsolvencyHistory
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataInsolvencyHistoryCourtImpl::class)
+interface CompanyResultsResponseResultsDataInsolvencyHistoryCourt {
+ val name: String?
+}
+
+data class CompanyResultsResponseResultsDataInsolvencyHistoryCourtImpl(
+ override val name: String?,
+) : CompanyResultsResponseResultsDataInsolvencyHistoryCourt
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataBusinessPremisesImpl::class)
+interface CompanyResultsResponseResultsDataBusinessPremises {
+ val label: String?
+ val address: CompanyResultsResponseResultsDataBusinessPremisesAddress?
+ val activitySubjects: String?
+}
+
+data class CompanyResultsResponseResultsDataBusinessPremisesImpl(
+ override val label: String?,
+ override val address: CompanyResultsResponseResultsDataBusinessPremisesAddress?,
+ override val activitySubjects: String?,
+) : CompanyResultsResponseResultsDataBusinessPremises
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataBusinessPremisesAddressImpl::class)
+interface CompanyResultsResponseResultsDataBusinessPremisesAddress {
+ val full: String?
+}
+
+data class CompanyResultsResponseResultsDataBusinessPremisesAddressImpl(
+ override val full: String?,
+) : CompanyResultsResponseResultsDataBusinessPremisesAddress
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataAuthorityImpl::class)
+interface CompanyResultsResponseResultsDataAuthority {
+ val name: String?
+ val members: List?
+ val decisions: List?
+}
+
+data class CompanyResultsResponseResultsDataAuthorityImpl(
+ override val name: String?,
+ override val members: List?,
+ override val decisions: List?,
+) : CompanyResultsResponseResultsDataAuthority
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataAuthorityMembersImpl::class)
+interface CompanyResultsResponseResultsDataAuthorityMembers {
+ val name: String?
+ val address: CompanyResultsResponseResultsDataAuthorityMembersAddress?
+ val addressOficial: LocationOficial?
+ val function: String?
+ val birthDate: String?
+ val registrationNumber: Double?
+}
+
+data class CompanyResultsResponseResultsDataAuthorityMembersImpl(
+ override val name: String?,
+ override val address: CompanyResultsResponseResultsDataAuthorityMembersAddress?,
+ override val addressOficial: LocationOficial?,
+ override val function: String?,
+ override val birthDate: String?,
+ override val registrationNumber: Double?,
+) : CompanyResultsResponseResultsDataAuthorityMembers
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataAuthorityMembersAddressImpl::class)
+interface CompanyResultsResponseResultsDataAuthorityMembersAddress {
+ val data: LocationData?
+}
+
+data class CompanyResultsResponseResultsDataAuthorityMembersAddressImpl(
+ override val data: LocationData?,
+) : CompanyResultsResponseResultsDataAuthorityMembersAddress
+/** Company's funding */
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataCapitalImpl::class)
+interface CompanyResultsResponseResultsDataCapital {
+ val value: CompanyResultsResponseResultsDataCapitalValue?
+ val shareholders: List?
+ val stocks: List?
+}
+
+data class CompanyResultsResponseResultsDataCapitalImpl(
+ override val value: CompanyResultsResponseResultsDataCapitalValue?,
+ override val shareholders: List?,
+ override val stocks: List?,
+) : CompanyResultsResponseResultsDataCapital
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataCapitalValueImpl::class)
+interface CompanyResultsResponseResultsDataCapitalValue {
+ val amount: String?
+ val currency: String?
+}
+
+data class CompanyResultsResponseResultsDataCapitalValueImpl(
+ override val amount: String?,
+ override val currency: String?,
+) : CompanyResultsResponseResultsDataCapitalValue
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataCapitalShareholdersImpl::class)
+interface CompanyResultsResponseResultsDataCapitalShareholders {
+ val shareholder: String?
+ val share: CompanyResultsResponseResultsDataCapitalShareholdersShare?
+ val info: List?
+}
+
+data class CompanyResultsResponseResultsDataCapitalShareholdersImpl(
+ override val shareholder: String?,
+ override val share: CompanyResultsResponseResultsDataCapitalShareholdersShare?,
+ override val info: List?,
+) : CompanyResultsResponseResultsDataCapitalShareholders
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataCapitalShareholdersShareImpl::class)
+interface CompanyResultsResponseResultsDataCapitalShareholdersShare {
+ val amount: String?
+ val currency: String?
+ val percent: String?
+ val percentPaid: String?
+}
+
+data class CompanyResultsResponseResultsDataCapitalShareholdersShareImpl(
+ override val amount: String?,
+ override val currency: String?,
+ override val percent: String?,
+ override val percentPaid: String?,
+) : CompanyResultsResponseResultsDataCapitalShareholdersShare
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataTradeLicencesImpl::class)
+interface CompanyResultsResponseResultsDataTradeLicences {
+ val type: String?
+ val name: String?
+ val valid: CompanyResultsResponseResultsDataTradeLicencesValid?
+ val interrupted: CompanyResultsResponseResultsDataTradeLicencesInterrupted?
+ val responsiblePerson: String?
+ val activitySubject: List?
+}
+
+data class CompanyResultsResponseResultsDataTradeLicencesImpl(
+ override val type: String?,
+ override val name: String?,
+ override val valid: CompanyResultsResponseResultsDataTradeLicencesValid?,
+ override val interrupted: CompanyResultsResponseResultsDataTradeLicencesInterrupted?,
+ override val responsiblePerson: String?,
+ override val activitySubject: List?,
+) : CompanyResultsResponseResultsDataTradeLicences
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataTradeLicencesValidImpl::class)
+interface CompanyResultsResponseResultsDataTradeLicencesValid {
+ val from: String?
+ val fromText: String?
+ val to: String?
+ val toText: String?
+}
+
+data class CompanyResultsResponseResultsDataTradeLicencesValidImpl(
+ override val from: String?,
+ override val fromText: String?,
+ override val to: String?,
+ override val toText: String?,
+) : CompanyResultsResponseResultsDataTradeLicencesValid
+/** Dates of interuption. */
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataTradeLicencesInterruptedImpl::class)
+interface CompanyResultsResponseResultsDataTradeLicencesInterrupted {
+ val from: String?
+ val to: String?
+}
+
+data class CompanyResultsResponseResultsDataTradeLicencesInterruptedImpl(
+ override val from: String?,
+ override val to: String?,
+) : CompanyResultsResponseResultsDataTradeLicencesInterrupted
+/** Vat payer information. */
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataVatImpl::class)
+interface CompanyResultsResponseResultsDataVat {
+ val status: CompanyResultsResponseResultsDataVatStatus?
+ val reliability: CompanyResultsResponseResultsDataVatReliability?
+ val bankAccounts: List?
+ val history: List?
+}
+
+data class CompanyResultsResponseResultsDataVatImpl(
+ override val status: CompanyResultsResponseResultsDataVatStatus?,
+ override val reliability: CompanyResultsResponseResultsDataVatReliability?,
+ override val bankAccounts: List?,
+ override val history: List?,
+) : CompanyResultsResponseResultsDataVat
+/**
+ * Vat current status. Payer, non payer and subject. Subject means the company is a VAT payer only
+ * for non domestic transactions (identifikovaná osoba).
+ */
+enum class CompanyResultsResponseResultsDataVatStatus(@JsonValue val value: String) {
+ PAYER("payer"),
+ NONPAYER("nonpayer"),
+ SUBJECT("subject"),
+}
+/** Reliability of the VAT payer. */
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataVatReliabilityImpl::class)
+interface CompanyResultsResponseResultsDataVatReliability {
+ val reliable: Boolean?
+ val unreliableFrom: String?
+}
+
+data class CompanyResultsResponseResultsDataVatReliabilityImpl(
+ override val reliable: Boolean?,
+ override val unreliableFrom: String?,
+) : CompanyResultsResponseResultsDataVatReliability
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataVatBankAccountsImpl::class)
+interface CompanyResultsResponseResultsDataVatBankAccounts {
+ val number: String?
+}
+
+data class CompanyResultsResponseResultsDataVatBankAccountsImpl(
+ override val number: String?,
+) : CompanyResultsResponseResultsDataVatBankAccounts
+
+@JsonDeserialize(`as` = CompanyResultsResponseResultsDataVatHistoryImpl::class)
+interface CompanyResultsResponseResultsDataVatHistory {
+ val vatNumber: String?
+ val registrationType: String?
+ val validFrom: String?
+ val validTo: String?
+ val isGroupRegistration: Boolean?
+}
+
+data class CompanyResultsResponseResultsDataVatHistoryImpl(
+ override val vatNumber: String?,
+ override val registrationType: String?,
+ override val validFrom: String?,
+ override val validTo: String?,
+ override val isGroupRegistration: Boolean?,
+) : CompanyResultsResponseResultsDataVatHistory
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanySearch.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanySearch.kt
new file mode 100644
index 0000000..3a67192
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanySearch.kt
@@ -0,0 +1,29 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Successful response */
+@JsonDeserialize(`as` = CompanySearchImpl::class)
+interface CompanySearch {
+ val status: Int
+ val request: CompanySearchResultsRequest
+ val response: CompanySearchResults
+ val errors: List?
+}
+
+data class CompanySearchImpl(
+ override val status: Int,
+ override val request: CompanySearchResultsRequest,
+ override val response: CompanySearchResults,
+ override val errors: List?,
+) : CompanySearch
+
+typealias CompanySearchErrors = Any
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanySearchRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanySearchRequest.kt
new file mode 100644
index 0000000..2e442ed
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanySearchRequest.kt
@@ -0,0 +1,132 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = CompanySearchRequestImpl::class)
+interface CompanySearchRequest {
+ val customId: String?
+ val query: CompanySearchRequestQuery
+ val options: CompanySearchRequestOptions?
+ val client: ClientRequest?
+}
+
+data class CompanySearchRequestImpl(
+ override val customId: String?,
+ override val query: CompanySearchRequestQuery,
+ override val options: CompanySearchRequestOptions?,
+ override val client: ClientRequest?,
+) : CompanySearchRequest
+
+@JsonDeserialize(`as` = CompanySearchRequestQueryImpl::class)
+interface CompanySearchRequestQuery {
+ val type: CompanySearchRequestQueryType
+ val value: String
+ val filter: CompanySearchRequestQueryFilter?
+}
+
+data class CompanySearchRequestQueryImpl(
+ override val type: CompanySearchRequestQueryType,
+ override val value: String,
+ override val filter: CompanySearchRequestQueryFilter?,
+) : CompanySearchRequestQuery
+/** Type of search. */
+enum class CompanySearchRequestQueryType(@JsonValue val value: String) {
+ NAME("name"),
+ REGISTRATION_NUMBER("registrationNumber"),
+ TAX_NUMBER("taxNumber"),
+ VAT_NUMBER("vatNumber"),
+}
+/**
+ * Additional filter in order to specify the search results. You can for example set as a filter
+ * country CZ, so the the search engine would look for the companies only in the Czech republic. Pay
+ * attention to the options, which determines how the filter should behave.
+ */
+@JsonDeserialize(`as` = CompanySearchRequestQueryFilterImpl::class)
+interface CompanySearchRequestQueryFilter {
+ val name: String?
+ val country: String?
+ val registrationNumber: String?
+ val taxNumber: String?
+ val vatNumber: String?
+}
+
+data class CompanySearchRequestQueryFilterImpl(
+ override val name: String?,
+ override val country: String?,
+ override val registrationNumber: String?,
+ override val taxNumber: String?,
+ override val vatNumber: String?,
+) : CompanySearchRequestQueryFilter
+/** Query options. */
+@JsonDeserialize(`as` = CompanySearchRequestOptionsImpl::class)
+interface CompanySearchRequestOptions {
+ val dataScope: CompanySearchRequestOptionsDataScope?
+ val dataSource: List?
+ val resultsLimit: Int?
+ val includeTerminatedSubjects: Boolean?
+ val filterMode: CompanySearchRequestOptionsFilterMode?
+ val filterAcceptFormat: Boolean?
+ val filterAcceptAlternatives: Boolean?
+ val filterExactMatch: Boolean?
+ val zipFormat: Boolean?
+ val cityFormat: CompanySearchRequestOptionsCityFormat?
+ val countryFormat: CompanySearchRequestOptionsCountryFormat?
+}
+
+data class CompanySearchRequestOptionsImpl(
+ override val dataScope: CompanySearchRequestOptionsDataScope?,
+ override val dataSource: List?,
+ override val resultsLimit: Int?,
+ override val includeTerminatedSubjects: Boolean?,
+ override val filterMode: CompanySearchRequestOptionsFilterMode?,
+ override val filterAcceptFormat: Boolean?,
+ override val filterAcceptAlternatives: Boolean?,
+ override val filterExactMatch: Boolean?,
+ override val zipFormat: Boolean?,
+ override val cityFormat: CompanySearchRequestOptionsCityFormat?,
+ override val countryFormat: CompanySearchRequestOptionsCountryFormat?,
+) : CompanySearchRequestOptions
+/** Data scope of returned data. */
+enum class CompanySearchRequestOptionsDataScope(@JsonValue val value: String) {
+ BASIC("basic"),
+ EXTENDED("extended"),
+ FULL("full"),
+}
+/**
+ * Prefer = prefer results matching the filter parameters, limit = limit to results
+ * matching the filter parameters.
+ */
+enum class CompanySearchRequestOptionsFilterMode(@JsonValue val value: String?) {
+ LIMIT("limit"),
+ PREFER("prefer"),
+}
+/**
+ * This option determines the format in which the city is returned. Minimal = Praha,
+ * basic = Praha 8, extended = Praha 8 - Karlín.
+ */
+enum class CompanySearchRequestOptionsCityFormat(@JsonValue val value: String) {
+ MINIMAL("minimal"),
+ BASIC("basic"),
+ EXTENDED("extended"),
+}
+/**
+ * This option determines the format in which the country is returned. Choices include local and
+ * international variants with their shortened counterparts as well as ISO 3166 alpha codes.
+ */
+enum class CompanySearchRequestOptionsCountryFormat(@JsonValue val value: String) {
+ ALPHA2("alpha2"),
+ ALPHA3("alpha3"),
+ LOCAL("local"),
+ LOCAL_SHORTENED("localShortened"),
+ INTERNATIONAL("international"),
+ INTERNATIONAL_SHORTENED("internationalShortened"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanySearchResults.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanySearchResults.kt
new file mode 100644
index 0000000..2ada4d1
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanySearchResults.kt
@@ -0,0 +1,22 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = CompanySearchResultsImpl::class)
+interface CompanySearchResults {
+ val resultsCount: Double
+ val results: List
+}
+
+data class CompanySearchResultsImpl(
+ override val resultsCount: Double,
+ override val results: List,
+) : CompanySearchResults
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanySearchResultsRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanySearchResultsRequest.kt
new file mode 100644
index 0000000..29b194f
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/CompanySearchResultsRequest.kt
@@ -0,0 +1,144 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = CompanySearchResultsRequestImpl::class)
+interface CompanySearchResultsRequest {
+ val endpoint: String
+ val code: String
+ val customId: String?
+ val query: CompanySearchResultsRequestQuery?
+ val options: CompanySearchResultsRequestOptions?
+ val client: ClientRequest?
+}
+
+data class CompanySearchResultsRequestImpl(
+ override val endpoint: String,
+ override val code: String,
+ override val customId: String?,
+ override val query: CompanySearchResultsRequestQuery?,
+ override val options: CompanySearchResultsRequestOptions?,
+ override val client: ClientRequest?,
+) : CompanySearchResultsRequest
+
+@JsonDeserialize(`as` = CompanySearchResultsRequestQueryImpl::class)
+interface CompanySearchResultsRequestQuery {
+ val type: CompanySearchResultsRequestQueryType?
+ val value: String?
+ val filter: CompanySearchResultsRequestQueryFilter?
+}
+
+data class CompanySearchResultsRequestQueryImpl(
+ override val type: CompanySearchResultsRequestQueryType?,
+ override val value: String?,
+ override val filter: CompanySearchResultsRequestQueryFilter?,
+) : CompanySearchResultsRequestQuery
+/** Type of search. */
+enum class CompanySearchResultsRequestQueryType(@JsonValue val value: String) {
+ NAME("name"),
+ REGISTRATION_NUMBER("registrationNumber"),
+ TAX_NUMBER("taxNumber"),
+ VAT_NUMBER("vatNumber"),
+}
+/**
+ * Additional filter in order to specify the search results. You can for example set as a filter
+ * country CZ, so the the search engine would look for the companies only in the Czech republic. Pay
+ * attention to the options, which determines how the filter should behave.
+ */
+@JsonDeserialize(`as` = CompanySearchResultsRequestQueryFilterImpl::class)
+interface CompanySearchResultsRequestQueryFilter {
+ val registrationNumber: String?
+ val taxNumber: String?
+ val vatNumber: String?
+ val name: String?
+ val country: String?
+}
+
+data class CompanySearchResultsRequestQueryFilterImpl(
+ override val registrationNumber: String?,
+ override val taxNumber: String?,
+ override val vatNumber: String?,
+ override val name: String?,
+ override val country: String?,
+) : CompanySearchResultsRequestQueryFilter
+/** Query options. */
+@JsonDeserialize(`as` = CompanySearchResultsRequestOptionsImpl::class)
+interface CompanySearchResultsRequestOptions {
+ val dataScope: CompanySearchResultsRequestOptionsDataScope?
+ val dataSource: List?
+ val resultsLimit: Int?
+ val includeTerminatedSubjects: Boolean?
+ val filterMode: CompanySearchResultsRequestOptionsFilterMode?
+ val filterAcceptFormat: Boolean?
+ val filterAcceptAlternatives: Boolean?
+ val filterExactMatch: Boolean?
+ val zipFormat: Boolean?
+ val cityFormat: CompanySearchResultsRequestOptionsCityFormat?
+ val countryFormat: CompanySearchResultsRequestOptionsCountryFormat?
+ val legalFormType: CompanySearchResultsRequestOptionsLegalFormType?
+}
+
+data class CompanySearchResultsRequestOptionsImpl(
+ override val dataScope: CompanySearchResultsRequestOptionsDataScope?,
+ override val dataSource: List?,
+ override val resultsLimit: Int?,
+ override val includeTerminatedSubjects: Boolean?,
+ override val filterMode: CompanySearchResultsRequestOptionsFilterMode?,
+ override val filterAcceptFormat: Boolean?,
+ override val filterAcceptAlternatives: Boolean?,
+ override val filterExactMatch: Boolean?,
+ override val zipFormat: Boolean?,
+ override val cityFormat: CompanySearchResultsRequestOptionsCityFormat?,
+ override val countryFormat: CompanySearchResultsRequestOptionsCountryFormat?,
+ override val legalFormType: CompanySearchResultsRequestOptionsLegalFormType?,
+) : CompanySearchResultsRequestOptions
+/** Data scope of returned data. */
+enum class CompanySearchResultsRequestOptionsDataScope(@JsonValue val value: String) {
+ BASIC("basic"),
+ EXTENDED("extended"),
+ FULL("full"),
+}
+/**
+ * Prefer = prefer results matching the filter parameters, limit = limit to results
+ * matching the filter parameters.
+ */
+enum class CompanySearchResultsRequestOptionsFilterMode(@JsonValue val value: String?) {
+ LIMIT("limit"),
+ PREFER("prefer"),
+}
+/**
+ * This option determines the format in which the city is returned. Minimal = Praha,
+ * basic = Praha 8, extended = Praha 8 - Karlín.
+ */
+enum class CompanySearchResultsRequestOptionsCityFormat(@JsonValue val value: String) {
+ MINIMAL("minimal"),
+ BASIC("basic"),
+ EXTENDED("extended"),
+}
+/**
+ * This option determines the format in which the country is returned. Choices include local and
+ * international variants with their shortened counterparts as well as ISO 3166 alpha codes.
+ */
+enum class CompanySearchResultsRequestOptionsCountryFormat(@JsonValue val value: String) {
+ ALPHA2("alpha2"),
+ ALPHA3("alpha3"),
+ LOCAL("local"),
+ LOCAL_SHORTENED("localShortened"),
+ INTERNATIONAL("international"),
+ INTERNATIONAL_SHORTENED("internationalShortened"),
+}
+/** This option filters results by the legal form type. */
+enum class CompanySearchResultsRequestOptionsLegalFormType(@JsonValue val value: String?) {
+ JURIDICAL("juridical"),
+ PHYSICAL("physical"),
+ ANY("any"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/DataGeometry.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/DataGeometry.kt
new file mode 100644
index 0000000..b8e966c
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/DataGeometry.kt
@@ -0,0 +1,62 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonProperty
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = DataGeometryImpl::class)
+interface DataGeometry {
+ val gps: DataGeometryGps?
+ val custom: List?
+}
+
+data class DataGeometryImpl(
+ override val gps: DataGeometryGps?,
+ override val custom: List?,
+) : DataGeometry
+
+@JsonDeserialize(`as` = DataGeometryGpsImpl::class)
+interface DataGeometryGps {
+ val lat: Double?
+ val lon: Double?
+}
+
+data class DataGeometryGpsImpl(
+ override val lat: Double?,
+ override val lon: Double?,
+) : DataGeometryGps
+
+@JsonDeserialize(`as` = DataGeometryCustomImpl::class)
+interface DataGeometryCustom {
+ val type: DataGeometryCustomType?
+ val coordinates: DataGeometryCustomCoordinates?
+}
+
+data class DataGeometryCustomImpl(
+ override val type: DataGeometryCustomType?,
+ override val coordinates: DataGeometryCustomCoordinates?,
+) : DataGeometryCustom
+/** Type of coordinate system. */
+enum class DataGeometryCustomType(@JsonValue val value: String?) {
+ JTSK("JTSK"),
+ ETRS89("ETRS89"),
+}
+
+@JsonDeserialize(`as` = DataGeometryCustomCoordinatesImpl::class)
+interface DataGeometryCustomCoordinates {
+ val x: Double?
+ val y: Double?
+}
+
+data class DataGeometryCustomCoordinatesImpl(
+ @JsonProperty("x") override val x: Double?,
+ @JsonProperty("y") override val y: Double?,
+) : DataGeometryCustomCoordinates
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailData.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailData.kt
new file mode 100644
index 0000000..f5ef6e4
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailData.kt
@@ -0,0 +1,24 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = EmailDataImpl::class)
+interface EmailData {
+ val email: String?
+ val user: String?
+ val domain: String?
+}
+
+data class EmailDataImpl(
+ override val email: String?,
+ override val user: String?,
+ override val domain: String?,
+) : EmailData
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailFixes.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailFixes.kt
new file mode 100644
index 0000000..871572e
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailFixes.kt
@@ -0,0 +1,40 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** List of all changes applied to the query data in order to get the corrected result. */
+@JsonDeserialize(`as` = EmailFixesImpl::class)
+interface EmailFixes {
+ val type: String?
+ val subtype: String?
+ val data: EmailFixesData?
+}
+
+data class EmailFixesImpl(
+ override val type: String?,
+ override val subtype: String?,
+ override val data: EmailFixesData?,
+) : EmailFixes
+
+@JsonDeserialize(`as` = EmailFixesDataImpl::class)
+interface EmailFixesData {
+ val typeFrom: String?
+ val type: String?
+ val valueFrom: String?
+ val value: String?
+}
+
+data class EmailFixesDataImpl(
+ override val typeFrom: String?,
+ override val type: String?,
+ override val valueFrom: String?,
+ override val value: String?,
+) : EmailFixesData
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailFlags.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailFlags.kt
new file mode 100644
index 0000000..e58d456
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailFlags.kt
@@ -0,0 +1,24 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = EmailFlagsImpl::class)
+interface EmailFlags {
+ val isCatchAllServer: Boolean?
+ val isDisposableEmailLocation: Boolean?
+ val isFreeMail: Boolean?
+}
+
+data class EmailFlagsImpl(
+ override val isCatchAllServer: Boolean?,
+ override val isDisposableEmailLocation: Boolean?,
+ override val isFreeMail: Boolean?,
+) : EmailFlags
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailSearch.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailSearch.kt
new file mode 100644
index 0000000..5be808f
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailSearch.kt
@@ -0,0 +1,63 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Successful response */
+@JsonDeserialize(`as` = EmailSearchImpl::class)
+interface EmailSearch {
+ val status: Int
+ val request: EmailSearchRequestModel
+ val response: EmailSearchResponse?
+ val errors: List?
+}
+
+data class EmailSearchImpl(
+ override val status: Int,
+ override val request: EmailSearchRequestModel,
+ override val response: EmailSearchResponse?,
+ override val errors: List?,
+) : EmailSearch
+
+@JsonDeserialize(`as` = EmailSearchRequestModelImpl::class)
+interface EmailSearchRequestModel : GlobalRequest {
+ val query: EmailSearchRequestModelQuery?
+ val options: EmailSearchRequestModelOptions?
+ val client: ClientRequest?
+}
+
+data class EmailSearchRequestModelImpl(
+ override val query: EmailSearchRequestModelQuery?,
+ override val options: EmailSearchRequestModelOptions?,
+ override val client: ClientRequest?,
+ override val endpoint: String,
+ override val code: String,
+ override val customId: String?
+) : EmailSearchRequestModel
+
+@JsonDeserialize(`as` = EmailSearchRequestModelQueryImpl::class)
+interface EmailSearchRequestModelQuery {
+ val value: String?
+}
+
+data class EmailSearchRequestModelQueryImpl(
+ override val value: String?,
+) : EmailSearchRequestModelQuery
+/** Query options. */
+@JsonDeserialize(`as` = EmailSearchRequestModelOptionsImpl::class)
+interface EmailSearchRequestModelOptions {
+ val resultsLimit: Double?
+}
+
+data class EmailSearchRequestModelOptionsImpl(
+ override val resultsLimit: Double?,
+) : EmailSearchRequestModelOptions
+
+typealias EmailSearchErrors = Any
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailSearchRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailSearchRequest.kt
new file mode 100644
index 0000000..f7eb5ab
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailSearchRequest.kt
@@ -0,0 +1,44 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = EmailSearchRequestImpl::class)
+interface EmailSearchRequest {
+ val customId: String?
+ val query: EmailSearchRequestQuery?
+ val options: EmailSearchRequestOptions?
+ val client: ClientRequest?
+}
+
+data class EmailSearchRequestImpl(
+ override val customId: String?,
+ override val query: EmailSearchRequestQuery?,
+ override val options: EmailSearchRequestOptions?,
+ override val client: ClientRequest?,
+) : EmailSearchRequest
+
+@JsonDeserialize(`as` = EmailSearchRequestQueryImpl::class)
+interface EmailSearchRequestQuery {
+ val value: String
+}
+
+data class EmailSearchRequestQueryImpl(
+ override val value: String,
+) : EmailSearchRequestQuery
+/** Query options. */
+@JsonDeserialize(`as` = EmailSearchRequestOptionsImpl::class)
+interface EmailSearchRequestOptions {
+ val resultsLimit: Double?
+}
+
+data class EmailSearchRequestOptionsImpl(
+ override val resultsLimit: Double?,
+) : EmailSearchRequestOptions
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailSearchResponse.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailSearchResponse.kt
new file mode 100644
index 0000000..6fe9f33
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/EmailSearchResponse.kt
@@ -0,0 +1,44 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = EmailSearchResponseImpl::class)
+interface EmailSearchResponse {
+ val resultsCount: Double
+ val results: List
+}
+
+data class EmailSearchResponseImpl(
+ override val resultsCount: Double,
+ override val results: List,
+) : EmailSearchResponse
+
+@JsonDeserialize(`as` = EmailSearchResponseResultsImpl::class)
+interface EmailSearchResponseResults {
+ val data: EmailSearchResponseResultsData
+}
+
+data class EmailSearchResponseResultsImpl(
+ override val data: EmailSearchResponseResultsData,
+) : EmailSearchResponseResults
+
+@JsonDeserialize(`as` = EmailSearchResponseResultsDataImpl::class)
+interface EmailSearchResponseResultsData {
+ val email: String
+ val user: String?
+ val domain: String
+}
+
+data class EmailSearchResponseResultsDataImpl(
+ override val email: String,
+ override val user: String?,
+ override val domain: String,
+) : EmailSearchResponseResultsData
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400.kt
new file mode 100644
index 0000000..3ee9e8b
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400.kt
@@ -0,0 +1,188 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonIgnore
+import com.fasterxml.jackson.core.JsonParser
+import com.fasterxml.jackson.databind.DeserializationContext
+import com.fasterxml.jackson.databind.JsonNode
+import com.fasterxml.jackson.databind.ObjectMapper
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.fasterxml.jackson.databind.deser.std.StdDeserializer
+import com.fasterxml.jackson.module.kotlin.registerKotlinModule
+import com.foxentry.foxentrysdk.core.*
+
+/** Bad Request. */
+@JsonDeserialize(`as` = Error400Impl::class)
+interface Error400 : ResponseStatus400 {
+ val request: GlobalRequest?
+ val errors: List?
+}
+
+data class Error400Impl(
+ override val request: GlobalRequest?,
+ override val errors: List?,
+ override val status: Int?
+) : Error400
+
+class Error400ErrorsDeserializer : StdDeserializer(Error400Errors::class.java) {
+ override fun deserialize(p: JsonParser?, ctx: DeserializationContext?): Error400Errors {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return Error400Errors.Error400RequestBodyEmpty(
+ mapper.convertValue(node, Error400RequestBodyEmpty::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error400Errors.Error400RequestBodyNotJson(
+ mapper.convertValue(node, Error400RequestBodyNotJson::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error400Errors.Error400RequestBodyNoRequest(
+ mapper.convertValue(node, Error400RequestBodyNoRequest::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error400Errors.Error400RequestBodyTooBig(
+ mapper.convertValue(node, Error400RequestBodyTooBig::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error400Errors.Error400RequestOptionsParameterNotSupported(
+ mapper.convertValue(node, Error400RequestOptionsParameterNotSupported::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error400Errors.Error400RequestOptionParameterValueNotSupported(
+ mapper.convertValue(node, Error400RequestOptionParameterValueNotSupported::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error400Errors.Error400RequestQueryNotSent(
+ mapper.convertValue(node, Error400RequestQueryNotSent::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error400Errors.Error400RequestQueryParameterCombination(
+ mapper.convertValue(node, Error400RequestQueryParameterCombination::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error400Errors.Error400RequestQueryParameterNotSupportedForQuery(
+ mapper.convertValue(node, Error400RequestQueryParameterNotSupportedForQuery::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error400Errors.Error400RequestOptionsParameterCombination(
+ mapper.convertValue(node, Error400RequestOptionsParameterCombination::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error400Errors.Error400RequestQueryParameterMissing(
+ mapper.convertValue(node, Error400RequestQueryParameterMissing::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error400Errors.Error400RequestQueryParameterNotSupported(
+ mapper.convertValue(node, Error400RequestQueryParameterNotSupported::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error400Errors.Error400RequestQueryParameterRequired(
+ mapper.convertValue(node, Error400RequestQueryParameterRequired::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = Error400ErrorsDeserializer::class)
+sealed interface Error400Errors {
+ data class Error400RequestBodyEmpty(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error400RequestBodyEmpty
+ ) : com.foxentry.foxentrysdk.models.Error400RequestBodyEmpty by _0, Error400Errors
+
+ data class Error400RequestBodyNotJson(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error400RequestBodyNotJson
+ ) : com.foxentry.foxentrysdk.models.Error400RequestBodyNotJson by _0, Error400Errors
+
+ data class Error400RequestBodyNoRequest(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error400RequestBodyNoRequest
+ ) : com.foxentry.foxentrysdk.models.Error400RequestBodyNoRequest by _0, Error400Errors
+
+ data class Error400RequestBodyTooBig(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error400RequestBodyTooBig
+ ) : com.foxentry.foxentrysdk.models.Error400RequestBodyTooBig by _0, Error400Errors
+
+ data class Error400RequestOptionsParameterNotSupported(
+ @JsonIgnore
+ val _0: com.foxentry.foxentrysdk.models.Error400RequestOptionsParameterNotSupported
+ ) :
+ com.foxentry.foxentrysdk.models.Error400RequestOptionsParameterNotSupported by _0,
+ Error400Errors
+
+ data class Error400RequestOptionParameterValueNotSupported(
+ @JsonIgnore
+ val _0: com.foxentry.foxentrysdk.models.Error400RequestOptionParameterValueNotSupported
+ ) :
+ com.foxentry.foxentrysdk.models.Error400RequestOptionParameterValueNotSupported by _0,
+ Error400Errors
+
+ data class Error400RequestQueryNotSent(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error400RequestQueryNotSent
+ ) : com.foxentry.foxentrysdk.models.Error400RequestQueryNotSent by _0, Error400Errors
+
+ data class Error400RequestQueryParameterCombination(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error400RequestQueryParameterCombination
+ ) :
+ com.foxentry.foxentrysdk.models.Error400RequestQueryParameterCombination by _0,
+ Error400Errors
+
+ data class Error400RequestQueryParameterNotSupportedForQuery(
+ @JsonIgnore
+ val _0: com.foxentry.foxentrysdk.models.Error400RequestQueryParameterNotSupportedForQuery
+ ) :
+ com.foxentry.foxentrysdk.models.Error400RequestQueryParameterNotSupportedForQuery by _0,
+ Error400Errors
+
+ data class Error400RequestOptionsParameterCombination(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error400RequestOptionsParameterCombination
+ ) :
+ com.foxentry.foxentrysdk.models.Error400RequestOptionsParameterCombination by _0,
+ Error400Errors
+
+ data class Error400RequestQueryParameterMissing(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error400RequestQueryParameterMissing
+ ) : com.foxentry.foxentrysdk.models.Error400RequestQueryParameterMissing by _0, Error400Errors
+
+ data class Error400RequestQueryParameterNotSupported(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error400RequestQueryParameterNotSupported
+ ) :
+ com.foxentry.foxentrysdk.models.Error400RequestQueryParameterNotSupported by _0,
+ Error400Errors
+
+ data class Error400RequestQueryParameterRequired(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error400RequestQueryParameterRequired
+ ) : com.foxentry.foxentrysdk.models.Error400RequestQueryParameterRequired by _0, Error400Errors
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestBodyEmpty.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestBodyEmpty.kt
new file mode 100644
index 0000000..7e5d67a
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestBodyEmpty.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestBodyEmptyImpl::class)
+interface Error400RequestBodyEmpty {
+ val group: Error400RequestBodyEmptyGroup?
+ val type: Error400RequestBodyEmptyType?
+ val subtype: Error400RequestBodyEmptySubtype?
+ val severity: Error400RequestBodyEmptySeverity?
+ val relatedTo: List?
+ val description: Error400RequestBodyEmptyDescription?
+}
+
+data class Error400RequestBodyEmptyImpl(
+ override val group: Error400RequestBodyEmptyGroup?,
+ override val type: Error400RequestBodyEmptyType?,
+ override val subtype: Error400RequestBodyEmptySubtype?,
+ override val severity: Error400RequestBodyEmptySeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestBodyEmptyDescription?,
+) : Error400RequestBodyEmpty
+/** Group of error. */
+enum class Error400RequestBodyEmptyGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestBodyEmptyType(@JsonValue val value: String) {
+ BODY("BODY"),
+}
+/** Subtype of error. */
+enum class Error400RequestBodyEmptySubtype(@JsonValue val value: String) {
+ EMPTY("EMPTY"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestBodyEmptySeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestBodyEmptyDescription(@JsonValue val value: String) {
+ CANNOT_PROCESS_THE_REQUEST_BECAUSE_OF_THE_EMPTY_BODY_PLEASE_CHECK_FOXENTRY_DEV_FOR_MORE_INFORMATION_(
+ "Cannot process the request because of the empty body. Please check Foxentry.dev for more information."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestBodyNoRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestBodyNoRequest.kt
new file mode 100644
index 0000000..38927c3
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestBodyNoRequest.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestBodyNoRequestImpl::class)
+interface Error400RequestBodyNoRequest {
+ val group: Error400RequestBodyNoRequestGroup?
+ val type: Error400RequestBodyNoRequestType?
+ val subtype: Error400RequestBodyNoRequestSubtype?
+ val severity: Error400RequestBodyNoRequestSeverity?
+ val relatedTo: List?
+ val description: Error400RequestBodyNoRequestDescription?
+}
+
+data class Error400RequestBodyNoRequestImpl(
+ override val group: Error400RequestBodyNoRequestGroup?,
+ override val type: Error400RequestBodyNoRequestType?,
+ override val subtype: Error400RequestBodyNoRequestSubtype?,
+ override val severity: Error400RequestBodyNoRequestSeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestBodyNoRequestDescription?,
+) : Error400RequestBodyNoRequest
+/** Group of error. */
+enum class Error400RequestBodyNoRequestGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestBodyNoRequestType(@JsonValue val value: String) {
+ BODY("BODY"),
+}
+/** Subtype of error. */
+enum class Error400RequestBodyNoRequestSubtype(@JsonValue val value: String) {
+ NOT_JSON("NOT_JSON"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestBodyNoRequestSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestBodyNoRequestDescription(@JsonValue val value: String) {
+ YOUR_API_CALL_BODY_DOES_NOT_CONTAIN_ANY_REQUESTS_(
+ "Your API call body does not contain any requests."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestBodyNotJson.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestBodyNotJson.kt
new file mode 100644
index 0000000..8c58b35
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestBodyNotJson.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestBodyNotJsonImpl::class)
+interface Error400RequestBodyNotJson {
+ val group: Error400RequestBodyNotJsonGroup?
+ val type: Error400RequestBodyNotJsonType?
+ val subtype: Error400RequestBodyNotJsonSubtype?
+ val severity: Error400RequestBodyNotJsonSeverity?
+ val relatedTo: List?
+ val description: Error400RequestBodyNotJsonDescription?
+}
+
+data class Error400RequestBodyNotJsonImpl(
+ override val group: Error400RequestBodyNotJsonGroup?,
+ override val type: Error400RequestBodyNotJsonType?,
+ override val subtype: Error400RequestBodyNotJsonSubtype?,
+ override val severity: Error400RequestBodyNotJsonSeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestBodyNotJsonDescription?,
+) : Error400RequestBodyNotJson
+/** Group of error. */
+enum class Error400RequestBodyNotJsonGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestBodyNotJsonType(@JsonValue val value: String) {
+ BODY("BODY"),
+}
+/** Subtype of error. */
+enum class Error400RequestBodyNotJsonSubtype(@JsonValue val value: String) {
+ NOT_JSON("NOT_JSON"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestBodyNotJsonSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestBodyNotJsonDescription(@JsonValue val value: String) {
+ CANNOT_PROCESS_THE_REQUEST_BECAUSE_THE_JSON_IS_NOT_VALID_PLEASE_CHECK_FOXENTRY_DEV_FOR_MORE_INFORMATION_(
+ "Cannot process the request because the JSON is not valid. Please check Foxentry.dev for more information."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestBodyTooBig.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestBodyTooBig.kt
new file mode 100644
index 0000000..9daea63
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestBodyTooBig.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestBodyTooBigImpl::class)
+interface Error400RequestBodyTooBig {
+ val group: Error400RequestBodyTooBigGroup?
+ val type: Error400RequestBodyTooBigType?
+ val subtype: Error400RequestBodyTooBigSubtype?
+ val severity: Error400RequestBodyTooBigSeverity?
+ val relatedTo: List?
+ val description: Error400RequestBodyTooBigDescription?
+}
+
+data class Error400RequestBodyTooBigImpl(
+ override val group: Error400RequestBodyTooBigGroup?,
+ override val type: Error400RequestBodyTooBigType?,
+ override val subtype: Error400RequestBodyTooBigSubtype?,
+ override val severity: Error400RequestBodyTooBigSeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestBodyTooBigDescription?,
+) : Error400RequestBodyTooBig
+/** Group of error. */
+enum class Error400RequestBodyTooBigGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestBodyTooBigType(@JsonValue val value: String) {
+ BODY("BODY"),
+}
+/** Subtype of error. */
+enum class Error400RequestBodyTooBigSubtype(@JsonValue val value: String) {
+ TOO_BIG("TOO_BIG"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestBodyTooBigSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestBodyTooBigDescription(@JsonValue val value: String) {
+ YOUR_REQUEST_LENGTH_IS_BIGGER_THAN_ALLOWED_PLEASE_CONTACT_US_IF_YOU_THINK_THIS_IS_A_MISTAKE_(
+ "Your request length is bigger than allowed. Please contact us if you think this is a mistake."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestOptionParameterValueNotSupported.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestOptionParameterValueNotSupported.kt
new file mode 100644
index 0000000..5af9a20
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestOptionParameterValueNotSupported.kt
@@ -0,0 +1,58 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestOptionParameterValueNotSupportedImpl::class)
+interface Error400RequestOptionParameterValueNotSupported {
+ val group: Error400RequestOptionParameterValueNotSupportedGroup?
+ val type: Error400RequestOptionParameterValueNotSupportedType?
+ val subtype: Error400RequestOptionParameterValueNotSupportedSubtype?
+ val severity: Error400RequestOptionParameterValueNotSupportedSeverity?
+ val relatedTo: List?
+ val description: Error400RequestOptionParameterValueNotSupportedDescription?
+}
+
+data class Error400RequestOptionParameterValueNotSupportedImpl(
+ override val group: Error400RequestOptionParameterValueNotSupportedGroup?,
+ override val type: Error400RequestOptionParameterValueNotSupportedType?,
+ override val subtype: Error400RequestOptionParameterValueNotSupportedSubtype?,
+ override val severity: Error400RequestOptionParameterValueNotSupportedSeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestOptionParameterValueNotSupportedDescription?,
+) : Error400RequestOptionParameterValueNotSupported
+/** Group of error. */
+enum class Error400RequestOptionParameterValueNotSupportedGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestOptionParameterValueNotSupportedType(@JsonValue val value: String) {
+ OPTIONS("OPTIONS"),
+}
+/** Subtype of error. */
+enum class Error400RequestOptionParameterValueNotSupportedSubtype(@JsonValue val value: String) {
+ PARAMETER_VALUE_NOT_SUPPORTED("PARAMETER_VALUE_NOT_SUPPORTED"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestOptionParameterValueNotSupportedSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestOptionParameterValueNotSupportedDescription(
+ @JsonValue val value: String
+) {
+ VALUE_IN_PARAMATER_IS_NOT_VALID_PLEASE_CHECK_FOXENTRY_DEV_FOR_MORE_INFORMATION_(
+ "Value in paramater is not valid. Please check Foxentry.dev for more information."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestOptionsParameterCombination.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestOptionsParameterCombination.kt
new file mode 100644
index 0000000..762a051
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestOptionsParameterCombination.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestOptionsParameterCombinationImpl::class)
+interface Error400RequestOptionsParameterCombination {
+ val group: Error400RequestOptionsParameterCombinationGroup?
+ val type: Error400RequestOptionsParameterCombinationType?
+ val subtype: Error400RequestOptionsParameterCombinationSubtype?
+ val severity: Error400RequestOptionsParameterCombinationSeverity?
+ val relatedTo: List?
+ val description: Error400RequestOptionsParameterCombinationDescription?
+}
+
+data class Error400RequestOptionsParameterCombinationImpl(
+ override val group: Error400RequestOptionsParameterCombinationGroup?,
+ override val type: Error400RequestOptionsParameterCombinationType?,
+ override val subtype: Error400RequestOptionsParameterCombinationSubtype?,
+ override val severity: Error400RequestOptionsParameterCombinationSeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestOptionsParameterCombinationDescription?,
+) : Error400RequestOptionsParameterCombination
+/** Group of error. */
+enum class Error400RequestOptionsParameterCombinationGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestOptionsParameterCombinationType(@JsonValue val value: String) {
+ OPTIONS("OPTIONS"),
+}
+/** Subtype of error. */
+enum class Error400RequestOptionsParameterCombinationSubtype(@JsonValue val value: String) {
+ PARAMETERS_COMBINATION("PARAMETERS_COMBINATION"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestOptionsParameterCombinationSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestOptionsParameterCombinationDescription(@JsonValue val value: String) {
+ COMBINATION_OF_OPTIONS_OR_THEIR_VALUES_IS_NOT_VALID_(
+ "Combination of options or their values is not valid."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestOptionsParameterNotSupported.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestOptionsParameterNotSupported.kt
new file mode 100644
index 0000000..8850199
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestOptionsParameterNotSupported.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestOptionsParameterNotSupportedImpl::class)
+interface Error400RequestOptionsParameterNotSupported {
+ val group: Error400RequestOptionsParameterNotSupportedGroup?
+ val type: Error400RequestOptionsParameterNotSupportedType?
+ val subtype: Error400RequestOptionsParameterNotSupportedSubtype?
+ val severity: Error400RequestOptionsParameterNotSupportedSeverity?
+ val relatedTo: List?
+ val description: Error400RequestOptionsParameterNotSupportedDescription?
+}
+
+data class Error400RequestOptionsParameterNotSupportedImpl(
+ override val group: Error400RequestOptionsParameterNotSupportedGroup?,
+ override val type: Error400RequestOptionsParameterNotSupportedType?,
+ override val subtype: Error400RequestOptionsParameterNotSupportedSubtype?,
+ override val severity: Error400RequestOptionsParameterNotSupportedSeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestOptionsParameterNotSupportedDescription?,
+) : Error400RequestOptionsParameterNotSupported
+/** Group of error. */
+enum class Error400RequestOptionsParameterNotSupportedGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestOptionsParameterNotSupportedType(@JsonValue val value: String) {
+ OPTIONS("OPTIONS"),
+}
+/** Subtype of error. */
+enum class Error400RequestOptionsParameterNotSupportedSubtype(@JsonValue val value: String) {
+ PARAMETER_NOT_SUPPORTED("PARAMETER_NOT_SUPPORTED"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestOptionsParameterNotSupportedSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestOptionsParameterNotSupportedDescription(@JsonValue val value: String) {
+ OPTIONS_PARAMETER_IS_NOT_SUPPORTED_FOR_THIS_ENDPOINT_(
+ "Options parameter is not supported for this endpoint."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryNotSent.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryNotSent.kt
new file mode 100644
index 0000000..dcbf2b2
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryNotSent.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestQueryNotSentImpl::class)
+interface Error400RequestQueryNotSent {
+ val group: Error400RequestQueryNotSentGroup?
+ val type: Error400RequestQueryNotSentType?
+ val subtype: Error400RequestQueryNotSentSubtype?
+ val severity: Error400RequestQueryNotSentSeverity?
+ val relatedTo: List?
+ val description: Error400RequestQueryNotSentDescription?
+}
+
+data class Error400RequestQueryNotSentImpl(
+ override val group: Error400RequestQueryNotSentGroup?,
+ override val type: Error400RequestQueryNotSentType?,
+ override val subtype: Error400RequestQueryNotSentSubtype?,
+ override val severity: Error400RequestQueryNotSentSeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestQueryNotSentDescription?,
+) : Error400RequestQueryNotSent
+/** Group of error. */
+enum class Error400RequestQueryNotSentGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestQueryNotSentType(@JsonValue val value: String) {
+ QUERY("QUERY"),
+}
+/** Subtype of error. */
+enum class Error400RequestQueryNotSentSubtype(@JsonValue val value: String) {
+ NOT_SENT("NOT_SENT"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestQueryNotSentSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestQueryNotSentDescription(@JsonValue val value: String) {
+ YOUR_REQUEST_QUERY_IS_EMPTY_PLEASE_CHECK_FOXENTRY_DEV_FOR_MORE_INFORMATION_ABOUT_HOW_TO_SET_UP_THE_QUERY_PROPERLY_(
+ "Your request query is empty. Please check Foxentry.dev for more information about how to set up the query properly."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterCombination.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterCombination.kt
new file mode 100644
index 0000000..b99195d
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterCombination.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestQueryParameterCombinationImpl::class)
+interface Error400RequestQueryParameterCombination {
+ val group: Error400RequestQueryParameterCombinationGroup?
+ val type: Error400RequestQueryParameterCombinationType?
+ val subtype: Error400RequestQueryParameterCombinationSubtype?
+ val severity: Error400RequestQueryParameterCombinationSeverity?
+ val relatedTo: List?
+ val description: Error400RequestQueryParameterCombinationDescription?
+}
+
+data class Error400RequestQueryParameterCombinationImpl(
+ override val group: Error400RequestQueryParameterCombinationGroup?,
+ override val type: Error400RequestQueryParameterCombinationType?,
+ override val subtype: Error400RequestQueryParameterCombinationSubtype?,
+ override val severity: Error400RequestQueryParameterCombinationSeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestQueryParameterCombinationDescription?,
+) : Error400RequestQueryParameterCombination
+/** Group of error. */
+enum class Error400RequestQueryParameterCombinationGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestQueryParameterCombinationType(@JsonValue val value: String) {
+ QUERY("QUERY"),
+}
+/** Subtype of error. */
+enum class Error400RequestQueryParameterCombinationSubtype(@JsonValue val value: String) {
+ PARAMETERS_COMBINATION("PARAMETERS_COMBINATION"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestQueryParameterCombinationSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestQueryParameterCombinationDescription(@JsonValue val value: String) {
+ IT_IS_NOT_POSSIBLE_TO_USE_THESE_PARAMETERS_AT_THE_SAME_TIME_IN_ONE_REQUEST_(
+ "It is not possible to use these parameters at the same time in one request."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterMissing.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterMissing.kt
new file mode 100644
index 0000000..0be9ef7
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterMissing.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestQueryParameterMissingImpl::class)
+interface Error400RequestQueryParameterMissing {
+ val group: Error400RequestQueryParameterMissingGroup?
+ val type: Error400RequestQueryParameterMissingType?
+ val subtype: Error400RequestQueryParameterMissingSubtype?
+ val severity: Error400RequestQueryParameterMissingSeverity?
+ val relatedTo: List?
+ val description: Error400RequestQueryParameterMissingDescription?
+}
+
+data class Error400RequestQueryParameterMissingImpl(
+ override val group: Error400RequestQueryParameterMissingGroup?,
+ override val type: Error400RequestQueryParameterMissingType?,
+ override val subtype: Error400RequestQueryParameterMissingSubtype?,
+ override val severity: Error400RequestQueryParameterMissingSeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestQueryParameterMissingDescription?,
+) : Error400RequestQueryParameterMissing
+/** Group of error. */
+enum class Error400RequestQueryParameterMissingGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestQueryParameterMissingType(@JsonValue val value: String) {
+ QUERY("QUERY"),
+}
+/** Subtype of error. */
+enum class Error400RequestQueryParameterMissingSubtype(@JsonValue val value: String) {
+ PARAMETERS_MISSING("PARAMETERS_MISSING"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestQueryParameterMissingSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestQueryParameterMissingDescription(@JsonValue val value: String) {
+ QUERY_PARAMETER_IS_MISSING_PLEASE_CHECK_FOXENTRY_DEV_FOR_MORE_INFORMATION_ABOUT_HOW_TO_SET_UP_THE_QUERY_PROPERLY_(
+ "Query parameter is missing. Please check Foxentry.dev for more information about how to set up the query properly."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterNotSupported.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterNotSupported.kt
new file mode 100644
index 0000000..327e9bc
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterNotSupported.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestQueryParameterNotSupportedImpl::class)
+interface Error400RequestQueryParameterNotSupported {
+ val group: Error400RequestQueryParameterNotSupportedGroup?
+ val type: Error400RequestQueryParameterNotSupportedType?
+ val subtype: Error400RequestQueryParameterNotSupportedSubtype?
+ val severity: Error400RequestQueryParameterNotSupportedSeverity?
+ val relatedTo: List?
+ val description: Error400RequestQueryParameterNotSupportedDescription?
+}
+
+data class Error400RequestQueryParameterNotSupportedImpl(
+ override val group: Error400RequestQueryParameterNotSupportedGroup?,
+ override val type: Error400RequestQueryParameterNotSupportedType?,
+ override val subtype: Error400RequestQueryParameterNotSupportedSubtype?,
+ override val severity: Error400RequestQueryParameterNotSupportedSeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestQueryParameterNotSupportedDescription?,
+) : Error400RequestQueryParameterNotSupported
+/** Group of error. */
+enum class Error400RequestQueryParameterNotSupportedGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestQueryParameterNotSupportedType(@JsonValue val value: String) {
+ QUERY("QUERY"),
+}
+/** Subtype of error. */
+enum class Error400RequestQueryParameterNotSupportedSubtype(@JsonValue val value: String) {
+ PARAMETERS_NOT_SUPPORTED("PARAMETERS_NOT_SUPPORTED"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestQueryParameterNotSupportedSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestQueryParameterNotSupportedDescription(@JsonValue val value: String) {
+ QUERY_PARAMETER_IS_NOT_SUPPORTED_FOR_THIS_ENDPOINT_(
+ "Query parameter is not supported for this endpoint."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterNotSupportedForQuery.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterNotSupportedForQuery.kt
new file mode 100644
index 0000000..14a8807
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterNotSupportedForQuery.kt
@@ -0,0 +1,58 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestQueryParameterNotSupportedForQueryImpl::class)
+interface Error400RequestQueryParameterNotSupportedForQuery {
+ val group: Error400RequestQueryParameterNotSupportedForQueryGroup?
+ val type: Error400RequestQueryParameterNotSupportedForQueryType?
+ val subtype: Error400RequestQueryParameterNotSupportedForQuerySubtype?
+ val severity: Error400RequestQueryParameterNotSupportedForQuerySeverity?
+ val relatedTo: List?
+ val description: Error400RequestQueryParameterNotSupportedForQueryDescription?
+}
+
+data class Error400RequestQueryParameterNotSupportedForQueryImpl(
+ override val group: Error400RequestQueryParameterNotSupportedForQueryGroup?,
+ override val type: Error400RequestQueryParameterNotSupportedForQueryType?,
+ override val subtype: Error400RequestQueryParameterNotSupportedForQuerySubtype?,
+ override val severity: Error400RequestQueryParameterNotSupportedForQuerySeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestQueryParameterNotSupportedForQueryDescription?,
+) : Error400RequestQueryParameterNotSupportedForQuery
+/** Group of error. */
+enum class Error400RequestQueryParameterNotSupportedForQueryGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestQueryParameterNotSupportedForQueryType(@JsonValue val value: String) {
+ OPTIONS("OPTIONS"),
+}
+/** Subtype of error. */
+enum class Error400RequestQueryParameterNotSupportedForQuerySubtype(@JsonValue val value: String) {
+ PARAMETER_NOT_SUPPORTED_FOR_QUERY("PARAMETER_NOT_SUPPORTED_FOR_QUERY"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestQueryParameterNotSupportedForQuerySeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestQueryParameterNotSupportedForQueryDescription(
+ @JsonValue val value: String
+) {
+ PARAMETER_CAN_NOT_BE_USED_IN_COMBINATION_WITH_THIS_QUERY_PARAMETERS_(
+ "Parameter can not be used in combination with this query parameters."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterRequired.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterRequired.kt
new file mode 100644
index 0000000..b8bdeb6
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error400RequestQueryParameterRequired.kt
@@ -0,0 +1,55 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error400RequestQueryParameterRequiredImpl::class)
+interface Error400RequestQueryParameterRequired {
+ val group: Error400RequestQueryParameterRequiredGroup?
+ val type: Error400RequestQueryParameterRequiredType?
+ val subtype: Error400RequestQueryParameterRequiredSubtype?
+ val severity: Error400RequestQueryParameterRequiredSeverity?
+ val relatedTo: List?
+ val description: Error400RequestQueryParameterRequiredDescription?
+}
+
+data class Error400RequestQueryParameterRequiredImpl(
+ override val group: Error400RequestQueryParameterRequiredGroup?,
+ override val type: Error400RequestQueryParameterRequiredType?,
+ override val subtype: Error400RequestQueryParameterRequiredSubtype?,
+ override val severity: Error400RequestQueryParameterRequiredSeverity?,
+ override val relatedTo: List?,
+ override val description: Error400RequestQueryParameterRequiredDescription?,
+) : Error400RequestQueryParameterRequired
+/** Group of error. */
+enum class Error400RequestQueryParameterRequiredGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error400RequestQueryParameterRequiredType(@JsonValue val value: String) {
+ QUERY("QUERY"),
+}
+/** Subtype of error. */
+enum class Error400RequestQueryParameterRequiredSubtype(@JsonValue val value: String) {
+ PARAMETERS_REQUIRED("PARAMETERS_REQUIRED"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error400RequestQueryParameterRequiredSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error400RequestQueryParameterRequiredDescription(@JsonValue val value: String) {
+ AT_LEAST_ONE_OF_LISTED_PARAMETERS_IS_REQUIRED_("At least one of listed parameters is required."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error401.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error401.kt
new file mode 100644
index 0000000..5e6a415
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error401.kt
@@ -0,0 +1,24 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Unauthorized. */
+@JsonDeserialize(`as` = Error401Impl::class)
+interface Error401 : ResponseStatus401 {
+ val request: GlobalRequest?
+ val errors: List?
+}
+
+data class Error401Impl(
+ override val request: GlobalRequest?,
+ override val errors: List?,
+ override val status: Int?
+) : Error401
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error401RequestAuth.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error401RequestAuth.kt
new file mode 100644
index 0000000..65caec6
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error401RequestAuth.kt
@@ -0,0 +1,52 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error401RequestAuthImpl::class)
+interface Error401RequestAuth {
+ val group: Error401RequestAuthGroup?
+ val type: Error401RequestAuthType?
+ val subtype: String?
+ val severity: Error401RequestAuthSeverity?
+ val relatedTo: List?
+ val description: Error401RequestAuthDescription?
+}
+
+data class Error401RequestAuthImpl(
+ override val group: Error401RequestAuthGroup?,
+ override val type: Error401RequestAuthType?,
+ override val subtype: String?,
+ override val severity: Error401RequestAuthSeverity?,
+ override val relatedTo: List?,
+ override val description: Error401RequestAuthDescription?,
+) : Error401RequestAuth
+/** Group of error. */
+enum class Error401RequestAuthGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error401RequestAuthType(@JsonValue val value: String) {
+ AUTH("AUTH"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error401RequestAuthSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error401RequestAuthDescription(@JsonValue val value: String) {
+ INVALID_AUTHORIZATION_CREDENTIALS_SENT_CHECK_FOXENTRY_DEV_FOR_MORE_INFORMATION_HOW_TO_SET_UP_THE_AUTH_PROPERLY_(
+ "Invalid authorization credentials sent. Check Foxentry.dev for more information how to set up the AUTH properly."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error402.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error402.kt
new file mode 100644
index 0000000..45d1802
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error402.kt
@@ -0,0 +1,24 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Payment Required. */
+@JsonDeserialize(`as` = Error402Impl::class)
+interface Error402 : ResponseStatus402 {
+ val request: GlobalRequest?
+ val errors: List?
+}
+
+data class Error402Impl(
+ override val request: GlobalRequest?,
+ override val errors: List?,
+ override val status: Int?
+) : Error402
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error402RequestBillingNoCredit.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error402RequestBillingNoCredit.kt
new file mode 100644
index 0000000..fe08cc7
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error402RequestBillingNoCredit.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error402RequestBillingNoCreditImpl::class)
+interface Error402RequestBillingNoCredit {
+ val group: Error402RequestBillingNoCreditGroup?
+ val type: Error402RequestBillingNoCreditType?
+ val subtype: Error402RequestBillingNoCreditSubtype?
+ val severity: Error402RequestBillingNoCreditSeverity?
+ val relatedTo: List?
+ val description: Error402RequestBillingNoCreditDescription?
+}
+
+data class Error402RequestBillingNoCreditImpl(
+ override val group: Error402RequestBillingNoCreditGroup?,
+ override val type: Error402RequestBillingNoCreditType?,
+ override val subtype: Error402RequestBillingNoCreditSubtype?,
+ override val severity: Error402RequestBillingNoCreditSeverity?,
+ override val relatedTo: List?,
+ override val description: Error402RequestBillingNoCreditDescription?,
+) : Error402RequestBillingNoCredit
+/** Group of error. */
+enum class Error402RequestBillingNoCreditGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error402RequestBillingNoCreditType(@JsonValue val value: String) {
+ BILLING("BILLING"),
+}
+/** Subtype of error. */
+enum class Error402RequestBillingNoCreditSubtype(@JsonValue val value: String) {
+ NO_CREDIT("NO_CREDIT"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error402RequestBillingNoCreditSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error402RequestBillingNoCreditDescription(@JsonValue val value: String) {
+ NO_CREDIT_AVAILABLE_YOU_NEED_TO_PURCHASE_A_SUFFICIENT_AMMOUNT_OF_CREDITS_IN_THE_PROJECT_ADMINISTRATION_AT_APP_FOXENTRY_COM_(
+ "No credit available. You need to purchase a sufficient ammount of credits in the project administration at app.foxentry.com."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403.kt
new file mode 100644
index 0000000..8ee4ecb
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403.kt
@@ -0,0 +1,83 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonIgnore
+import com.fasterxml.jackson.core.JsonParser
+import com.fasterxml.jackson.databind.DeserializationContext
+import com.fasterxml.jackson.databind.JsonNode
+import com.fasterxml.jackson.databind.ObjectMapper
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.fasterxml.jackson.databind.deser.std.StdDeserializer
+import com.fasterxml.jackson.module.kotlin.registerKotlinModule
+import com.foxentry.foxentrysdk.core.*
+
+/** Forbidden. */
+@JsonDeserialize(`as` = Error403Impl::class)
+interface Error403 : ResponseStatus403 {
+ val request: GlobalRequest?
+ val errors: List?
+}
+
+data class Error403Impl(
+ override val request: GlobalRequest?,
+ override val errors: List?,
+ override val status: Int?
+) : Error403
+
+class Error403ErrorsDeserializer : StdDeserializer(Error403Errors::class.java) {
+ override fun deserialize(p: JsonParser?, ctx: DeserializationContext?): Error403Errors {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return Error403Errors.Error403RequestAuthKey(
+ mapper.convertValue(node, Error403RequestAuthKey::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error403Errors.Error403RequestAuthToken(
+ mapper.convertValue(node, Error403RequestAuthToken::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error403Errors.Error403RequestNotAllowedDomain(
+ mapper.convertValue(node, Error403RequestNotAllowedDomain::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error403Errors.Error403RequestNotAllowedIp(
+ mapper.convertValue(node, Error403RequestNotAllowedIp::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = Error403ErrorsDeserializer::class)
+sealed interface Error403Errors {
+ data class Error403RequestAuthKey(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error403RequestAuthKey
+ ) : com.foxentry.foxentrysdk.models.Error403RequestAuthKey by _0, Error403Errors
+
+ data class Error403RequestAuthToken(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error403RequestAuthToken
+ ) : com.foxentry.foxentrysdk.models.Error403RequestAuthToken by _0, Error403Errors
+
+ data class Error403RequestNotAllowedDomain(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error403RequestNotAllowedDomain
+ ) : com.foxentry.foxentrysdk.models.Error403RequestNotAllowedDomain by _0, Error403Errors
+
+ data class Error403RequestNotAllowedIp(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error403RequestNotAllowedIp
+ ) : com.foxentry.foxentrysdk.models.Error403RequestNotAllowedIp by _0, Error403Errors
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403RequestAuthKey.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403RequestAuthKey.kt
new file mode 100644
index 0000000..d74074e
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403RequestAuthKey.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error403RequestAuthKeyImpl::class)
+interface Error403RequestAuthKey {
+ val group: Error403RequestAuthKeyGroup?
+ val type: Error403RequestAuthKeyType?
+ val subtype: Error403RequestAuthKeySubtype?
+ val severity: Error403RequestAuthKeySeverity?
+ val relatedTo: List?
+ val description: Error403RequestAuthKeyDescription?
+}
+
+data class Error403RequestAuthKeyImpl(
+ override val group: Error403RequestAuthKeyGroup?,
+ override val type: Error403RequestAuthKeyType?,
+ override val subtype: Error403RequestAuthKeySubtype?,
+ override val severity: Error403RequestAuthKeySeverity?,
+ override val relatedTo: List?,
+ override val description: Error403RequestAuthKeyDescription?,
+) : Error403RequestAuthKey
+/** Group of error. */
+enum class Error403RequestAuthKeyGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error403RequestAuthKeyType(@JsonValue val value: String) {
+ AUTH("AUTH"),
+}
+/** Subtype of error. */
+enum class Error403RequestAuthKeySubtype(@JsonValue val value: String) {
+ KEY("KEY"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error403RequestAuthKeySeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error403RequestAuthKeyDescription(@JsonValue val value: String) {
+ PROVIDED_API_KEY_IS_NOT_VALID_PLEASE_CHECK_THE_PROJECT_SETTINGS_AT_APP_FOXENTRY_COM_(
+ "Provided API key is not valid. Please check the project settings at app.foxentry.com."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403RequestAuthToken.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403RequestAuthToken.kt
new file mode 100644
index 0000000..3b3494a
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403RequestAuthToken.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error403RequestAuthTokenImpl::class)
+interface Error403RequestAuthToken {
+ val group: Error403RequestAuthTokenGroup?
+ val type: Error403RequestAuthTokenType?
+ val subtype: Error403RequestAuthTokenSubtype?
+ val severity: Error403RequestAuthTokenSeverity?
+ val relatedTo: List?
+ val description: Error403RequestAuthTokenDescription?
+}
+
+data class Error403RequestAuthTokenImpl(
+ override val group: Error403RequestAuthTokenGroup?,
+ override val type: Error403RequestAuthTokenType?,
+ override val subtype: Error403RequestAuthTokenSubtype?,
+ override val severity: Error403RequestAuthTokenSeverity?,
+ override val relatedTo: List?,
+ override val description: Error403RequestAuthTokenDescription?,
+) : Error403RequestAuthToken
+/** Group of error. */
+enum class Error403RequestAuthTokenGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error403RequestAuthTokenType(@JsonValue val value: String) {
+ AUTH("AUTH"),
+}
+/** Subtype of error. */
+enum class Error403RequestAuthTokenSubtype(@JsonValue val value: String) {
+ TOKEN("TOKEN"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error403RequestAuthTokenSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error403RequestAuthTokenDescription(@JsonValue val value: String) {
+ PROVIDED_ACCESS_TOKEN_IS_NOT_VALID_PLEASE_CHECK_THE_PROJECT_SETTINGS_AT_APP_FOXENTRY_COM_(
+ "Provided access token is not valid. Please check the project settings at app.foxentry.com."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403RequestNotAllowedDomain.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403RequestNotAllowedDomain.kt
new file mode 100644
index 0000000..5555637
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403RequestNotAllowedDomain.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error403RequestNotAllowedDomainImpl::class)
+interface Error403RequestNotAllowedDomain {
+ val group: Error403RequestNotAllowedDomainGroup?
+ val type: Error403RequestNotAllowedDomainType?
+ val subtype: Error403RequestNotAllowedDomainSubtype?
+ val severity: Error403RequestNotAllowedDomainSeverity?
+ val relatedTo: List?
+ val description: Error403RequestNotAllowedDomainDescription?
+}
+
+data class Error403RequestNotAllowedDomainImpl(
+ override val group: Error403RequestNotAllowedDomainGroup?,
+ override val type: Error403RequestNotAllowedDomainType?,
+ override val subtype: Error403RequestNotAllowedDomainSubtype?,
+ override val severity: Error403RequestNotAllowedDomainSeverity?,
+ override val relatedTo: List?,
+ override val description: Error403RequestNotAllowedDomainDescription?,
+) : Error403RequestNotAllowedDomain
+/** Group of error. */
+enum class Error403RequestNotAllowedDomainGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error403RequestNotAllowedDomainType(@JsonValue val value: String) {
+ NOT_ALLOWED("NOT_ALLOWED"),
+}
+/** Subtype of error. */
+enum class Error403RequestNotAllowedDomainSubtype(@JsonValue val value: String) {
+ DOMAIN("DOMAIN"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error403RequestNotAllowedDomainSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error403RequestNotAllowedDomainDescription(@JsonValue val value: String) {
+ WEBSITE_DOMAIN_IS_NOT_ALLOWED_IN_THE_PROJECT_SETTINGS_(
+ "Website domain is not allowed in the project settings."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403RequestNotAllowedIp.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403RequestNotAllowedIp.kt
new file mode 100644
index 0000000..bf2060a
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error403RequestNotAllowedIp.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error403RequestNotAllowedIpImpl::class)
+interface Error403RequestNotAllowedIp {
+ val group: Error403RequestNotAllowedIpGroup?
+ val type: Error403RequestNotAllowedIpType?
+ val subtype: Error403RequestNotAllowedIpSubtype?
+ val severity: Error403RequestNotAllowedIpSeverity?
+ val relatedTo: List?
+ val description: Error403RequestNotAllowedIpDescription?
+}
+
+data class Error403RequestNotAllowedIpImpl(
+ override val group: Error403RequestNotAllowedIpGroup?,
+ override val type: Error403RequestNotAllowedIpType?,
+ override val subtype: Error403RequestNotAllowedIpSubtype?,
+ override val severity: Error403RequestNotAllowedIpSeverity?,
+ override val relatedTo: List?,
+ override val description: Error403RequestNotAllowedIpDescription?,
+) : Error403RequestNotAllowedIp
+/** Group of error. */
+enum class Error403RequestNotAllowedIpGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error403RequestNotAllowedIpType(@JsonValue val value: String) {
+ NOT_ALLOWED("NOT_ALLOWED"),
+}
+/** Subtype of error. */
+enum class Error403RequestNotAllowedIpSubtype(@JsonValue val value: String) {
+ IP("IP"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error403RequestNotAllowedIpSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error403RequestNotAllowedIpDescription(@JsonValue val value: String) {
+ THE_API_KEY_HAS_IP_LIMITS_SET_AND_YOUR_IP_ADDRESS_IS_NOT_ALLOWED_CHANGE_THE_PROJECT_SETTINGS_AT_APP_FOXENTRY_COM_(
+ "The API key has IP limits set and your IP address is not allowed. Change the project settings at app.foxentry.com."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error404.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error404.kt
new file mode 100644
index 0000000..6452c76
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error404.kt
@@ -0,0 +1,73 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonIgnore
+import com.fasterxml.jackson.core.JsonParser
+import com.fasterxml.jackson.databind.DeserializationContext
+import com.fasterxml.jackson.databind.JsonNode
+import com.fasterxml.jackson.databind.ObjectMapper
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.fasterxml.jackson.databind.deser.std.StdDeserializer
+import com.fasterxml.jackson.module.kotlin.registerKotlinModule
+import com.foxentry.foxentrysdk.core.*
+
+/** Not Found. */
+@JsonDeserialize(`as` = Error404Impl::class)
+interface Error404 : ResponseStatus404 {
+ val request: GlobalRequest?
+ val errors: List?
+}
+
+data class Error404Impl(
+ override val request: GlobalRequest?,
+ override val errors: List?,
+ override val status: Int?
+) : Error404
+
+class Error404ErrorsDeserializer : StdDeserializer(Error404Errors::class.java) {
+ override fun deserialize(p: JsonParser?, ctx: DeserializationContext?): Error404Errors {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return Error404Errors.Error404RequestApiVersion(
+ mapper.convertValue(node, Error404RequestApiVersion::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error404Errors.Error404RequestEndpointNotFound(
+ mapper.convertValue(node, Error404RequestEndpointNotFound::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error404Errors.Error404RequestProjectNotFound(
+ mapper.convertValue(node, Error404RequestProjectNotFound::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = Error404ErrorsDeserializer::class)
+sealed interface Error404Errors {
+ data class Error404RequestApiVersion(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error404RequestApiVersion
+ ) : com.foxentry.foxentrysdk.models.Error404RequestApiVersion by _0, Error404Errors
+
+ data class Error404RequestEndpointNotFound(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error404RequestEndpointNotFound
+ ) : com.foxentry.foxentrysdk.models.Error404RequestEndpointNotFound by _0, Error404Errors
+
+ data class Error404RequestProjectNotFound(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error404RequestProjectNotFound
+ ) : com.foxentry.foxentrysdk.models.Error404RequestProjectNotFound by _0, Error404Errors
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error404RequestApiVersion.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error404RequestApiVersion.kt
new file mode 100644
index 0000000..0037ffb
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error404RequestApiVersion.kt
@@ -0,0 +1,52 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error404RequestApiVersionImpl::class)
+interface Error404RequestApiVersion {
+ val group: Error404RequestApiVersionGroup?
+ val type: Error404RequestApiVersionType?
+ val subtype: String?
+ val severity: Error404RequestApiVersionSeverity?
+ val relatedTo: List?
+ val description: Error404RequestApiVersionDescription?
+}
+
+data class Error404RequestApiVersionImpl(
+ override val group: Error404RequestApiVersionGroup?,
+ override val type: Error404RequestApiVersionType?,
+ override val subtype: String?,
+ override val severity: Error404RequestApiVersionSeverity?,
+ override val relatedTo: List?,
+ override val description: Error404RequestApiVersionDescription?,
+) : Error404RequestApiVersion
+/** Group of error. */
+enum class Error404RequestApiVersionGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error404RequestApiVersionType(@JsonValue val value: String) {
+ API_VERSION("API_VERSION"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error404RequestApiVersionSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error404RequestApiVersionDescription(@JsonValue val value: String) {
+ REQUESTED_API_VERSION_IS_NOT_AVAILABLE_PLEASE_CHECK_FOXENTRY_DEV_FOR_THE_SUPPORTED_VERSIONS_(
+ "Requested API version is not available. Please check Foxentry.dev for the supported versions."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error404RequestEndpointNotFound.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error404RequestEndpointNotFound.kt
new file mode 100644
index 0000000..6fd38de
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error404RequestEndpointNotFound.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error404RequestEndpointNotFoundImpl::class)
+interface Error404RequestEndpointNotFound {
+ val group: Error404RequestEndpointNotFoundGroup?
+ val type: Error404RequestEndpointNotFoundType?
+ val subtype: Error404RequestEndpointNotFoundSubtype?
+ val severity: Error404RequestEndpointNotFoundSeverity?
+ val relatedTo: List?
+ val description: Error404RequestEndpointNotFoundDescription?
+}
+
+data class Error404RequestEndpointNotFoundImpl(
+ override val group: Error404RequestEndpointNotFoundGroup?,
+ override val type: Error404RequestEndpointNotFoundType?,
+ override val subtype: Error404RequestEndpointNotFoundSubtype?,
+ override val severity: Error404RequestEndpointNotFoundSeverity?,
+ override val relatedTo: List?,
+ override val description: Error404RequestEndpointNotFoundDescription?,
+) : Error404RequestEndpointNotFound
+/** Group of error. */
+enum class Error404RequestEndpointNotFoundGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error404RequestEndpointNotFoundType(@JsonValue val value: String) {
+ ENDPOINT("ENDPOINT"),
+}
+/** Subtype of error. */
+enum class Error404RequestEndpointNotFoundSubtype(@JsonValue val value: String) {
+ NOT_FOUND("NOT_FOUND"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error404RequestEndpointNotFoundSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error404RequestEndpointNotFoundDescription(@JsonValue val value: String) {
+ ENDPOINT_NOT_FOUND_PLEASE_CHECK_FOXENTRY_DEV_FOR_THE_SUPPORTED_ENDPOINTS_(
+ "Endpoint not found. Please check Foxentry.dev for the supported endpoints."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error404RequestProjectNotFound.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error404RequestProjectNotFound.kt
new file mode 100644
index 0000000..1238436
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error404RequestProjectNotFound.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error404RequestProjectNotFoundImpl::class)
+interface Error404RequestProjectNotFound {
+ val group: Error404RequestProjectNotFoundGroup?
+ val type: Error404RequestProjectNotFoundType?
+ val subtype: Error404RequestProjectNotFoundSubtype?
+ val severity: Error404RequestProjectNotFoundSeverity?
+ val relatedTo: List?
+ val description: Error404RequestProjectNotFoundDescription?
+}
+
+data class Error404RequestProjectNotFoundImpl(
+ override val group: Error404RequestProjectNotFoundGroup?,
+ override val type: Error404RequestProjectNotFoundType?,
+ override val subtype: Error404RequestProjectNotFoundSubtype?,
+ override val severity: Error404RequestProjectNotFoundSeverity?,
+ override val relatedTo: List?,
+ override val description: Error404RequestProjectNotFoundDescription?,
+) : Error404RequestProjectNotFound
+/** Group of error. */
+enum class Error404RequestProjectNotFoundGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error404RequestProjectNotFoundType(@JsonValue val value: String) {
+ PROJECT("PROJECT"),
+}
+/** Subtype of error. */
+enum class Error404RequestProjectNotFoundSubtype(@JsonValue val value: String) {
+ NOT_FOUND("NOT_FOUND"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error404RequestProjectNotFoundSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error404RequestProjectNotFoundDescription(@JsonValue val value: String) {
+ THE_PROJECT_DOES_NOT_EXIST_PLEASE_CHECK_THE_AVAILABLE_PROJECTS_AT_APP_FOXENTRY_COM_OR_CONTACT_THE_SUPPORT_(
+ "The project does not exist. Please check the available projects at app.foxentry.com or contact the support."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error405.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error405.kt
new file mode 100644
index 0000000..a737674
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error405.kt
@@ -0,0 +1,24 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Method Not Allowed. */
+@JsonDeserialize(`as` = Error405Impl::class)
+interface Error405 : ResponseStatus405 {
+ val request: GlobalRequest?
+ val errors: List?
+}
+
+data class Error405Impl(
+ override val request: GlobalRequest?,
+ override val errors: List?,
+ override val status: Int?
+) : Error405
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error405RequestNotAllowedMethod.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error405RequestNotAllowedMethod.kt
new file mode 100644
index 0000000..8e69af3
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error405RequestNotAllowedMethod.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error405RequestNotAllowedMethodImpl::class)
+interface Error405RequestNotAllowedMethod {
+ val group: Error405RequestNotAllowedMethodGroup?
+ val type: Error405RequestNotAllowedMethodType?
+ val subtype: Error405RequestNotAllowedMethodSubtype?
+ val severity: Error405RequestNotAllowedMethodSeverity?
+ val relatedTo: List?
+ val description: Error405RequestNotAllowedMethodDescription?
+}
+
+data class Error405RequestNotAllowedMethodImpl(
+ override val group: Error405RequestNotAllowedMethodGroup?,
+ override val type: Error405RequestNotAllowedMethodType?,
+ override val subtype: Error405RequestNotAllowedMethodSubtype?,
+ override val severity: Error405RequestNotAllowedMethodSeverity?,
+ override val relatedTo: List?,
+ override val description: Error405RequestNotAllowedMethodDescription?,
+) : Error405RequestNotAllowedMethod
+/** Group of error. */
+enum class Error405RequestNotAllowedMethodGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error405RequestNotAllowedMethodType(@JsonValue val value: String) {
+ ENDPOINT("ENDPOINT"),
+}
+/** Subtype of error. */
+enum class Error405RequestNotAllowedMethodSubtype(@JsonValue val value: String) {
+ NOT_ALLOWED("NOT_ALLOWED"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error405RequestNotAllowedMethodSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error405RequestNotAllowedMethodDescription(@JsonValue val value: String) {
+ HTTP_METHOD_IS_NOT_ALLOWED_FOR_THIS_ENDPOINT_PLEASE_CHECK_FOXENTRY_DEV_FOR_MORE_INFORMATION_(
+ "HTTP method is not allowed for this endpoint. Please check Foxentry.dev for more information."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429.kt
new file mode 100644
index 0000000..7676d57
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429.kt
@@ -0,0 +1,83 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonIgnore
+import com.fasterxml.jackson.core.JsonParser
+import com.fasterxml.jackson.databind.DeserializationContext
+import com.fasterxml.jackson.databind.JsonNode
+import com.fasterxml.jackson.databind.ObjectMapper
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.fasterxml.jackson.databind.deser.std.StdDeserializer
+import com.fasterxml.jackson.module.kotlin.registerKotlinModule
+import com.foxentry.foxentrysdk.core.*
+
+/** Too Many Requests. */
+@JsonDeserialize(`as` = Error429Impl::class)
+interface Error429 : ResponseStatus429 {
+ val request: GlobalRequest?
+ val errors: List?
+}
+
+data class Error429Impl(
+ override val request: GlobalRequest?,
+ override val errors: List?,
+ override val status: Int?
+) : Error429
+
+class Error429ErrorsDeserializer : StdDeserializer(Error429Errors::class.java) {
+ override fun deserialize(p: JsonParser?, ctx: DeserializationContext?): Error429Errors {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return Error429Errors.Error429RequestBillingServiceLimit(
+ mapper.convertValue(node, Error429RequestBillingServiceLimit::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error429Errors.Error429RequestRateLimitCreditPerDay(
+ mapper.convertValue(node, Error429RequestRateLimitCreditPerDay::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error429Errors.Error429RequestRateLimitCreditPerIp(
+ mapper.convertValue(node, Error429RequestRateLimitCreditPerIp::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error429Errors.Error429RequestRateLimitTooManyRequests(
+ mapper.convertValue(node, Error429RequestRateLimitTooManyRequests::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = Error429ErrorsDeserializer::class)
+sealed interface Error429Errors {
+ data class Error429RequestBillingServiceLimit(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error429RequestBillingServiceLimit
+ ) : com.foxentry.foxentrysdk.models.Error429RequestBillingServiceLimit by _0, Error429Errors
+
+ data class Error429RequestRateLimitCreditPerDay(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error429RequestRateLimitCreditPerDay
+ ) : com.foxentry.foxentrysdk.models.Error429RequestRateLimitCreditPerDay by _0, Error429Errors
+
+ data class Error429RequestRateLimitCreditPerIp(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error429RequestRateLimitCreditPerIp
+ ) : com.foxentry.foxentrysdk.models.Error429RequestRateLimitCreditPerIp by _0, Error429Errors
+
+ data class Error429RequestRateLimitTooManyRequests(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error429RequestRateLimitTooManyRequests
+ ) : com.foxentry.foxentrysdk.models.Error429RequestRateLimitTooManyRequests by _0, Error429Errors
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429RequestBillingServiceLimit.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429RequestBillingServiceLimit.kt
new file mode 100644
index 0000000..12b3520
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429RequestBillingServiceLimit.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error429RequestBillingServiceLimitImpl::class)
+interface Error429RequestBillingServiceLimit {
+ val group: Error429RequestBillingServiceLimitGroup?
+ val type: Error429RequestBillingServiceLimitType?
+ val subtype: Error429RequestBillingServiceLimitSubtype?
+ val severity: Error429RequestBillingServiceLimitSeverity?
+ val relatedTo: List?
+ val description: Error429RequestBillingServiceLimitDescription?
+}
+
+data class Error429RequestBillingServiceLimitImpl(
+ override val group: Error429RequestBillingServiceLimitGroup?,
+ override val type: Error429RequestBillingServiceLimitType?,
+ override val subtype: Error429RequestBillingServiceLimitSubtype?,
+ override val severity: Error429RequestBillingServiceLimitSeverity?,
+ override val relatedTo: List?,
+ override val description: Error429RequestBillingServiceLimitDescription?,
+) : Error429RequestBillingServiceLimit
+/** Group of error. */
+enum class Error429RequestBillingServiceLimitGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error429RequestBillingServiceLimitType(@JsonValue val value: String) {
+ BILLING("BILLING"),
+}
+/** Subtype of error. */
+enum class Error429RequestBillingServiceLimitSubtype(@JsonValue val value: String) {
+ SERVICE_LIMIT_REACHED("SERVICE_LIMIT_REACHED"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error429RequestBillingServiceLimitSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error429RequestBillingServiceLimitDescription(@JsonValue val value: String) {
+ REQUESTED_API_VERSION_IS_NOT_AVAILABLE_PLEASE_CHECK_FOXENTRY_DEV_FOR_THE_SUPPORTED_VERSIONS_(
+ "Requested API version is not available. Please check Foxentry.dev for the supported versions."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429RequestRateLimitCreditPerDay.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429RequestRateLimitCreditPerDay.kt
new file mode 100644
index 0000000..10fb6db
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429RequestRateLimitCreditPerDay.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error429RequestRateLimitCreditPerDayImpl::class)
+interface Error429RequestRateLimitCreditPerDay {
+ val group: Error429RequestRateLimitCreditPerDayGroup?
+ val type: Error429RequestRateLimitCreditPerDayType?
+ val subtype: Error429RequestRateLimitCreditPerDaySubtype?
+ val severity: Error429RequestRateLimitCreditPerDaySeverity?
+ val relatedTo: List?
+ val description: Error429RequestRateLimitCreditPerDayDescription?
+}
+
+data class Error429RequestRateLimitCreditPerDayImpl(
+ override val group: Error429RequestRateLimitCreditPerDayGroup?,
+ override val type: Error429RequestRateLimitCreditPerDayType?,
+ override val subtype: Error429RequestRateLimitCreditPerDaySubtype?,
+ override val severity: Error429RequestRateLimitCreditPerDaySeverity?,
+ override val relatedTo: List?,
+ override val description: Error429RequestRateLimitCreditPerDayDescription?,
+) : Error429RequestRateLimitCreditPerDay
+/** Group of error. */
+enum class Error429RequestRateLimitCreditPerDayGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error429RequestRateLimitCreditPerDayType(@JsonValue val value: String) {
+ RATE_LIMIT("RATE_LIMIT"),
+}
+/** Subtype of error. */
+enum class Error429RequestRateLimitCreditPerDaySubtype(@JsonValue val value: String) {
+ CREDIT_PER_DAY("CREDIT_PER_DAY"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error429RequestRateLimitCreditPerDaySeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error429RequestRateLimitCreditPerDayDescription(@JsonValue val value: String) {
+ THE_MAXIMUM_DAILY_LIMIT_HAS_BEEN_REACHED_ADJUST_THE_SETTINGS_IN_THE_PROJECT_OR_WAIT_UNTIL_THE_LIMIT_IS_RESET_(
+ "The maximum daily limit has been reached. Adjust the settings in the project or wait until the limit is reset."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429RequestRateLimitCreditPerIp.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429RequestRateLimitCreditPerIp.kt
new file mode 100644
index 0000000..060833c
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429RequestRateLimitCreditPerIp.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error429RequestRateLimitCreditPerIpImpl::class)
+interface Error429RequestRateLimitCreditPerIp {
+ val group: Error429RequestRateLimitCreditPerIpGroup?
+ val type: Error429RequestRateLimitCreditPerIpType?
+ val subtype: Error429RequestRateLimitCreditPerIpSubtype?
+ val severity: Error429RequestRateLimitCreditPerIpSeverity?
+ val relatedTo: List?
+ val description: Error429RequestRateLimitCreditPerIpDescription?
+}
+
+data class Error429RequestRateLimitCreditPerIpImpl(
+ override val group: Error429RequestRateLimitCreditPerIpGroup?,
+ override val type: Error429RequestRateLimitCreditPerIpType?,
+ override val subtype: Error429RequestRateLimitCreditPerIpSubtype?,
+ override val severity: Error429RequestRateLimitCreditPerIpSeverity?,
+ override val relatedTo: List?,
+ override val description: Error429RequestRateLimitCreditPerIpDescription?,
+) : Error429RequestRateLimitCreditPerIp
+/** Group of error. */
+enum class Error429RequestRateLimitCreditPerIpGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error429RequestRateLimitCreditPerIpType(@JsonValue val value: String) {
+ RATE_LIMIT("RATE_LIMIT"),
+}
+/** Subtype of error. */
+enum class Error429RequestRateLimitCreditPerIpSubtype(@JsonValue val value: String) {
+ CREDIT_PER_IP("CREDIT_PER_IP"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error429RequestRateLimitCreditPerIpSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error429RequestRateLimitCreditPerIpDescription(@JsonValue val value: String) {
+ THE_MAXIMUM_DAILY_LIMIT_PER_IP_ADDRESS_HAS_BEEN_REACHED_ADJUST_THE_SETTINGS_IN_THE_PROJECT_OR_WAIT_UNTIL_THE_LIMIT_IS_RESET_(
+ "The maximum daily limit per IP address has been reached. Adjust the settings in the project or wait until the limit is reset."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429RequestRateLimitTooManyRequests.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429RequestRateLimitTooManyRequests.kt
new file mode 100644
index 0000000..2f4f122
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error429RequestRateLimitTooManyRequests.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error429RequestRateLimitTooManyRequestsImpl::class)
+interface Error429RequestRateLimitTooManyRequests {
+ val group: Error429RequestRateLimitTooManyRequestsGroup?
+ val type: Error429RequestRateLimitTooManyRequestsType?
+ val subtype: Error429RequestRateLimitTooManyRequestsSubtype?
+ val severity: Error429RequestRateLimitTooManyRequestsSeverity?
+ val relatedTo: List?
+ val description: Error429RequestRateLimitTooManyRequestsDescription?
+}
+
+data class Error429RequestRateLimitTooManyRequestsImpl(
+ override val group: Error429RequestRateLimitTooManyRequestsGroup?,
+ override val type: Error429RequestRateLimitTooManyRequestsType?,
+ override val subtype: Error429RequestRateLimitTooManyRequestsSubtype?,
+ override val severity: Error429RequestRateLimitTooManyRequestsSeverity?,
+ override val relatedTo: List?,
+ override val description: Error429RequestRateLimitTooManyRequestsDescription?,
+) : Error429RequestRateLimitTooManyRequests
+/** Group of error. */
+enum class Error429RequestRateLimitTooManyRequestsGroup(@JsonValue val value: String) {
+ REQUEST("REQUEST"),
+}
+/** Type of error. */
+enum class Error429RequestRateLimitTooManyRequestsType(@JsonValue val value: String) {
+ RATE_LIMIT("RATE_LIMIT"),
+}
+/** Subtype of error. */
+enum class Error429RequestRateLimitTooManyRequestsSubtype(@JsonValue val value: String) {
+ TOO_MANY_REQUESTS("TOO_MANY_REQUESTS"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error429RequestRateLimitTooManyRequestsSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error429RequestRateLimitTooManyRequestsDescription(@JsonValue val value: String) {
+ THE_MAXIMUM_ALLOWED_REQUEST_RATE_LIMIT_HAS_BEEN_REACHED_CHECK_FOXENTRY_DEV_FOR_MORE_INFORMATION_OR_CONTACT_THE_SUPPORT_(
+ "The maximum allowed request rate limit has been reached. Check Foxentry.dev for more information or contact the support."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500.kt
new file mode 100644
index 0000000..817a90d
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500.kt
@@ -0,0 +1,111 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonIgnore
+import com.fasterxml.jackson.core.JsonParser
+import com.fasterxml.jackson.databind.DeserializationContext
+import com.fasterxml.jackson.databind.JsonNode
+import com.fasterxml.jackson.databind.ObjectMapper
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.fasterxml.jackson.databind.deser.std.StdDeserializer
+import com.fasterxml.jackson.module.kotlin.registerKotlinModule
+import com.foxentry.foxentrysdk.core.*
+
+/** Internal Server Error. */
+@JsonDeserialize(`as` = Error500Impl::class)
+interface Error500 : ResponseStatus500 {
+ val request: GlobalRequest?
+ val errors: List?
+}
+
+data class Error500Impl(
+ override val request: GlobalRequest?,
+ override val errors: List?,
+ override val status: Int?
+) : Error500
+
+class Error500ErrorsDeserializer : StdDeserializer(Error500Errors::class.java) {
+ override fun deserialize(p: JsonParser?, ctx: DeserializationContext?): Error500Errors {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return Error500Errors.Error500InternalBilling(
+ mapper.convertValue(node, Error500InternalBilling::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error500Errors.Error500InternalDatabaseConnection(
+ mapper.convertValue(node, Error500InternalDatabaseConnection::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error500Errors.Error500InternalDatabaseError(
+ mapper.convertValue(node, Error500InternalDatabaseError::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error500Errors.Error500InternalDatabaseNotAvailable(
+ mapper.convertValue(node, Error500InternalDatabaseNotAvailable::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error500Errors.Error500InternalError(
+ mapper.convertValue(node, Error500InternalError::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error500Errors.Error500Timeout(mapper.convertValue(node, Error500Timeout::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return Error500Errors.Error500RequestProjectNoData(
+ mapper.convertValue(node, Error500RequestProjectNoData::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = Error500ErrorsDeserializer::class)
+sealed interface Error500Errors {
+ data class Error500InternalBilling(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error500InternalBilling
+ ) : com.foxentry.foxentrysdk.models.Error500InternalBilling by _0, Error500Errors
+
+ data class Error500InternalDatabaseConnection(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error500InternalDatabaseConnection
+ ) : com.foxentry.foxentrysdk.models.Error500InternalDatabaseConnection by _0, Error500Errors
+
+ data class Error500InternalDatabaseError(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error500InternalDatabaseError
+ ) : com.foxentry.foxentrysdk.models.Error500InternalDatabaseError by _0, Error500Errors
+
+ data class Error500InternalDatabaseNotAvailable(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error500InternalDatabaseNotAvailable
+ ) : com.foxentry.foxentrysdk.models.Error500InternalDatabaseNotAvailable by _0, Error500Errors
+
+ data class Error500InternalError(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error500InternalError
+ ) : com.foxentry.foxentrysdk.models.Error500InternalError by _0, Error500Errors
+
+ data class Error500Timeout(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error500Timeout) :
+ com.foxentry.foxentrysdk.models.Error500Timeout by _0, Error500Errors
+
+ data class Error500RequestProjectNoData(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.Error500RequestProjectNoData
+ ) : com.foxentry.foxentrysdk.models.Error500RequestProjectNoData by _0, Error500Errors
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalBilling.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalBilling.kt
new file mode 100644
index 0000000..05dc18f
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalBilling.kt
@@ -0,0 +1,44 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error500InternalBillingImpl::class)
+interface Error500InternalBilling {
+ val group: Error500InternalBillingGroup?
+ val type: Error500InternalBillingType?
+ val subtype: String?
+ val severity: String?
+ val relatedTo: List?
+ val description: Error500InternalBillingDescription?
+}
+
+data class Error500InternalBillingImpl(
+ override val group: Error500InternalBillingGroup?,
+ override val type: Error500InternalBillingType?,
+ override val subtype: String?,
+ override val severity: String?,
+ override val relatedTo: List?,
+ override val description: Error500InternalBillingDescription?,
+) : Error500InternalBilling
+/** Group of error. */
+enum class Error500InternalBillingGroup(@JsonValue val value: String) {
+ INTERNAL("INTERNAL"),
+}
+/** Type of error. */
+enum class Error500InternalBillingType(@JsonValue val value: String) {
+ BILLING("BILLING"),
+}
+/** Description of error. */
+enum class Error500InternalBillingDescription(@JsonValue val value: String) {
+ FAILED_TO_PROCESS_YOUR_REQUEST_DUE_TO_A_BILLING_INTERNAL_ERROR_PLEASE_CONTACT_US_IF_THE_ERROR_PERSISTS_(
+ "Failed to process your request due to a billing internal error. Please contact us if the error persists."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalDatabaseConnection.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalDatabaseConnection.kt
new file mode 100644
index 0000000..baa82ed
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalDatabaseConnection.kt
@@ -0,0 +1,48 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error500InternalDatabaseConnectionImpl::class)
+interface Error500InternalDatabaseConnection {
+ val group: Error500InternalDatabaseConnectionGroup?
+ val type: Error500InternalDatabaseConnectionType?
+ val subtype: Error500InternalDatabaseConnectionSubtype?
+ val severity: String?
+ val relatedTo: List?
+ val description: Error500InternalDatabaseConnectionDescription?
+}
+
+data class Error500InternalDatabaseConnectionImpl(
+ override val group: Error500InternalDatabaseConnectionGroup?,
+ override val type: Error500InternalDatabaseConnectionType?,
+ override val subtype: Error500InternalDatabaseConnectionSubtype?,
+ override val severity: String?,
+ override val relatedTo: List?,
+ override val description: Error500InternalDatabaseConnectionDescription?,
+) : Error500InternalDatabaseConnection
+/** Group of error. */
+enum class Error500InternalDatabaseConnectionGroup(@JsonValue val value: String) {
+ INTERNAL("INTERNAL"),
+}
+/** Type of error. */
+enum class Error500InternalDatabaseConnectionType(@JsonValue val value: String) {
+ DATABASE("DATABASE"),
+}
+/** Subtype of error. */
+enum class Error500InternalDatabaseConnectionSubtype(@JsonValue val value: String) {
+ CONNECTION("CONNECTION"),
+}
+/** Description of error. */
+enum class Error500InternalDatabaseConnectionDescription(@JsonValue val value: String) {
+ FAILED_TO_ESTABLISH_CONNECTION_WITH_THE_DATABASE_SERVER_PLEASE_CONTACT_US_IF_THE_ERROR_PERSISTS_(
+ "Failed to establish connection with the database server. Please contact us if the error persists."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalDatabaseError.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalDatabaseError.kt
new file mode 100644
index 0000000..305b7aa
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalDatabaseError.kt
@@ -0,0 +1,48 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error500InternalDatabaseErrorImpl::class)
+interface Error500InternalDatabaseError {
+ val group: Error500InternalDatabaseErrorGroup?
+ val type: Error500InternalDatabaseErrorType?
+ val subtype: Error500InternalDatabaseErrorSubtype?
+ val severity: String?
+ val relatedTo: List?
+ val description: Error500InternalDatabaseErrorDescription?
+}
+
+data class Error500InternalDatabaseErrorImpl(
+ override val group: Error500InternalDatabaseErrorGroup?,
+ override val type: Error500InternalDatabaseErrorType?,
+ override val subtype: Error500InternalDatabaseErrorSubtype?,
+ override val severity: String?,
+ override val relatedTo: List?,
+ override val description: Error500InternalDatabaseErrorDescription?,
+) : Error500InternalDatabaseError
+/** Group of error. */
+enum class Error500InternalDatabaseErrorGroup(@JsonValue val value: String) {
+ INTERNAL("INTERNAL"),
+}
+/** Type of error. */
+enum class Error500InternalDatabaseErrorType(@JsonValue val value: String) {
+ DATABASE("DATABASE"),
+}
+/** Subtype of error. */
+enum class Error500InternalDatabaseErrorSubtype(@JsonValue val value: String) {
+ ERROR("ERROR"),
+}
+/** Description of error. */
+enum class Error500InternalDatabaseErrorDescription(@JsonValue val value: String) {
+ AN_ERROR_HAS_OCCURED_DURING_THE_COMMUNICATION_WITH_OUR_DATABASE_PLEASE_CONTACT_US_IF_THE_ERROR_PERSISTS_(
+ "An error has occured during the communication with our database. Please contact us if the error persists."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalDatabaseNotAvailable.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalDatabaseNotAvailable.kt
new file mode 100644
index 0000000..2315618
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalDatabaseNotAvailable.kt
@@ -0,0 +1,48 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error500InternalDatabaseNotAvailableImpl::class)
+interface Error500InternalDatabaseNotAvailable {
+ val group: Error500InternalDatabaseNotAvailableGroup?
+ val type: Error500InternalDatabaseNotAvailableType?
+ val subtype: Error500InternalDatabaseNotAvailableSubtype?
+ val severity: String?
+ val relatedTo: List?
+ val description: Error500InternalDatabaseNotAvailableDescription?
+}
+
+data class Error500InternalDatabaseNotAvailableImpl(
+ override val group: Error500InternalDatabaseNotAvailableGroup?,
+ override val type: Error500InternalDatabaseNotAvailableType?,
+ override val subtype: Error500InternalDatabaseNotAvailableSubtype?,
+ override val severity: String?,
+ override val relatedTo: List?,
+ override val description: Error500InternalDatabaseNotAvailableDescription?,
+) : Error500InternalDatabaseNotAvailable
+/** Group of error. */
+enum class Error500InternalDatabaseNotAvailableGroup(@JsonValue val value: String) {
+ INTERNAL("INTERNAL"),
+}
+/** Type of error. */
+enum class Error500InternalDatabaseNotAvailableType(@JsonValue val value: String) {
+ DATABASE("DATABASE"),
+}
+/** Subtype of error. */
+enum class Error500InternalDatabaseNotAvailableSubtype(@JsonValue val value: String) {
+ NOT_AVAILABLE("NOT_AVAILABLE"),
+}
+/** Description of error. */
+enum class Error500InternalDatabaseNotAvailableDescription(@JsonValue val value: String) {
+ INTERNAL_DATASTORE_IS_NOT_AVAILABLE_AT_THE_MOMENT_NO_OPERATION_ON_THIS_DATASTORE_IS_POSSIBLE_(
+ "Internal datastore is not available at the moment. No operation on this datastore is possible."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalError.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalError.kt
new file mode 100644
index 0000000..cb74ae0
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500InternalError.kt
@@ -0,0 +1,52 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error500InternalErrorImpl::class)
+interface Error500InternalError {
+ val group: Error500InternalErrorGroup?
+ val type: Error500InternalErrorType?
+ val subtype: String?
+ val severity: Error500InternalErrorSeverity?
+ val relatedTo: List?
+ val description: Error500InternalErrorDescription?
+}
+
+data class Error500InternalErrorImpl(
+ override val group: Error500InternalErrorGroup?,
+ override val type: Error500InternalErrorType?,
+ override val subtype: String?,
+ override val severity: Error500InternalErrorSeverity?,
+ override val relatedTo: List?,
+ override val description: Error500InternalErrorDescription?,
+) : Error500InternalError
+/** Group of error. */
+enum class Error500InternalErrorGroup(@JsonValue val value: String) {
+ INTERNAL("INTERNAL"),
+}
+/** Type of error. */
+enum class Error500InternalErrorType(@JsonValue val value: String) {
+ ERROR("ERROR"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error500InternalErrorSeverity(@JsonValue val value: String) {
+ CRITICAL("CRITICAL"),
+}
+/** Description of error. */
+enum class Error500InternalErrorDescription(@JsonValue val value: String) {
+ FAILED_TO_PROCESS_YOUR_REQUEST_PLEASE_TRY_AGAIN_LATER_OR_CONTACT_US_(
+ "Failed to process your request. Please try again later or contact us."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500RequestProjectNoData.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500RequestProjectNoData.kt
new file mode 100644
index 0000000..91162df
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500RequestProjectNoData.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error500RequestProjectNoDataImpl::class)
+interface Error500RequestProjectNoData {
+ val group: Error500RequestProjectNoDataGroup?
+ val type: Error500RequestProjectNoDataType?
+ val subtype: Error500RequestProjectNoDataSubtype?
+ val severity: Error500RequestProjectNoDataSeverity?
+ val relatedTo: List?
+ val description: Error500RequestProjectNoDataDescription?
+}
+
+data class Error500RequestProjectNoDataImpl(
+ override val group: Error500RequestProjectNoDataGroup?,
+ override val type: Error500RequestProjectNoDataType?,
+ override val subtype: Error500RequestProjectNoDataSubtype?,
+ override val severity: Error500RequestProjectNoDataSeverity?,
+ override val relatedTo: List?,
+ override val description: Error500RequestProjectNoDataDescription?,
+) : Error500RequestProjectNoData
+/** Group of error. */
+enum class Error500RequestProjectNoDataGroup(@JsonValue val value: String) {
+ INTERNAL("INTERNAL"),
+}
+/** Type of error. */
+enum class Error500RequestProjectNoDataType(@JsonValue val value: String) {
+ PROJECT("PROJECT"),
+}
+/** Subtype of error. */
+enum class Error500RequestProjectNoDataSubtype(@JsonValue val value: String) {
+ NO_DATA("NO_DATA"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error500RequestProjectNoDataSeverity(@JsonValue val value: String) {
+ CRITICAL("CRITICAL"),
+}
+/** Description of error. */
+enum class Error500RequestProjectNoDataDescription(@JsonValue val value: String) {
+ FAILED_TO_FETCH_PROJECT_DATA_NEEDED_FOR_PROCESSING_YOUR_REQUEST_PLEASE_CONTACT_US_IF_THE_ERROR_PERSISTS_(
+ "Failed to fetch project data needed for processing your request. Please contact us if the error persists."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500Timeout.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500Timeout.kt
new file mode 100644
index 0000000..fd72b66
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error500Timeout.kt
@@ -0,0 +1,52 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error500TimeoutImpl::class)
+interface Error500Timeout {
+ val group: Error500TimeoutGroup?
+ val type: Error500TimeoutType?
+ val subtype: String?
+ val severity: Error500TimeoutSeverity?
+ val relatedTo: List?
+ val description: Error500TimeoutDescription?
+}
+
+data class Error500TimeoutImpl(
+ override val group: Error500TimeoutGroup?,
+ override val type: Error500TimeoutType?,
+ override val subtype: String?,
+ override val severity: Error500TimeoutSeverity?,
+ override val relatedTo: List?,
+ override val description: Error500TimeoutDescription?,
+) : Error500Timeout
+/** Group of error. */
+enum class Error500TimeoutGroup(@JsonValue val value: String) {
+ INTERNAL("INTERNAL"),
+}
+/** Type of error. */
+enum class Error500TimeoutType(@JsonValue val value: String) {
+ TIMEOUT("TIMEOUT"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error500TimeoutSeverity(@JsonValue val value: String) {
+ CRITICAL("CRITICAL"),
+}
+/** Description of error. */
+enum class Error500TimeoutDescription(@JsonValue val value: String) {
+ API_TIMEOUT_IN_EFFECT_YOUR_REQUEST_TOOK_TOO_MUCH_TIME_TO_PROCESS_(
+ "API timeout in effect. Your request took too much time to process."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error503.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error503.kt
new file mode 100644
index 0000000..518f645
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error503.kt
@@ -0,0 +1,24 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Service Unavailable. */
+@JsonDeserialize(`as` = Error503Impl::class)
+interface Error503 : ResponseStatus503 {
+ val request: GlobalRequest?
+ val errors: List?
+}
+
+data class Error503Impl(
+ override val request: GlobalRequest?,
+ override val errors: List?,
+ override val status: Int?
+) : Error503
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/Error503RequestEndpointNotAvailable.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error503RequestEndpointNotAvailable.kt
new file mode 100644
index 0000000..c5cbed5
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/Error503RequestEndpointNotAvailable.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = Error503RequestEndpointNotAvailableImpl::class)
+interface Error503RequestEndpointNotAvailable {
+ val group: Error503RequestEndpointNotAvailableGroup?
+ val type: Error503RequestEndpointNotAvailableType?
+ val subtype: Error503RequestEndpointNotAvailableSubtype?
+ val severity: Error503RequestEndpointNotAvailableSeverity?
+ val relatedTo: List?
+ val description: Error503RequestEndpointNotAvailableDescription?
+}
+
+data class Error503RequestEndpointNotAvailableImpl(
+ override val group: Error503RequestEndpointNotAvailableGroup?,
+ override val type: Error503RequestEndpointNotAvailableType?,
+ override val subtype: Error503RequestEndpointNotAvailableSubtype?,
+ override val severity: Error503RequestEndpointNotAvailableSeverity?,
+ override val relatedTo: List?,
+ override val description: Error503RequestEndpointNotAvailableDescription?,
+) : Error503RequestEndpointNotAvailable
+/** Group of error. */
+enum class Error503RequestEndpointNotAvailableGroup(@JsonValue val value: String) {
+ INTERNAL("INTERNAL"),
+}
+/** Type of error. */
+enum class Error503RequestEndpointNotAvailableType(@JsonValue val value: String) {
+ ENDPOINT("ENDPOINT"),
+}
+/** Subtype of error. */
+enum class Error503RequestEndpointNotAvailableSubtype(@JsonValue val value: String) {
+ NOT_AVAILABLE("NOT_AVAILABLE"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class Error503RequestEndpointNotAvailableSeverity(@JsonValue val value: String) {
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class Error503RequestEndpointNotAvailableDescription(@JsonValue val value: String) {
+ API_ENDPOINT_IS_TEMPORARY_UNAVAILABLE_PLEASE_CONTACT_US_AT_INFO_FOXENTRY_COM_IF_THE_ERROR_PERSISTS_(
+ "API endpoint is temporary unavailable. Please contact us at info@foxentry.com if the error persists."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorFormatGlobal.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorFormatGlobal.kt
new file mode 100644
index 0000000..0279a31
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorFormatGlobal.kt
@@ -0,0 +1,67 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ErrorFormatGlobalImpl::class)
+interface ErrorFormatGlobal {
+ val group: ErrorFormatGlobalGroup?
+ val type: ErrorFormatGlobalType?
+ val subtype: ErrorFormatGlobalSubtype?
+ val severity: ErrorFormatGlobalSeverity?
+ val relatedTo: List?
+ val description: ErrorFormatGlobalDescription?
+}
+
+data class ErrorFormatGlobalImpl(
+ override val group: ErrorFormatGlobalGroup?,
+ override val type: ErrorFormatGlobalType?,
+ override val subtype: ErrorFormatGlobalSubtype?,
+ override val severity: ErrorFormatGlobalSeverity?,
+ override val relatedTo: List?,
+ override val description: ErrorFormatGlobalDescription?,
+) : ErrorFormatGlobal
+/** Group of error. */
+enum class ErrorFormatGlobalGroup(@JsonValue val value: String) {
+ FORMAT("FORMAT"),
+}
+/** Type of error. */
+enum class ErrorFormatGlobalType(@JsonValue val value: String) {
+ CHARACTERS("CHARACTERS"),
+}
+/** Subtype of error. */
+enum class ErrorFormatGlobalSubtype(@JsonValue val value: String?) {
+ CASE_SENSITIVITY("CASE_SENSITIVITY"),
+ DIACRITICS("DIACRITICS"),
+ SPECIAL("SPECIAL"),
+ WHITESPACES("WHITESPACES"),
+ NULL(null),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class ErrorFormatGlobalSeverity(@JsonValue val value: String) {
+ INFO("info"),
+ WARNING("warning"),
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class ErrorFormatGlobalDescription(@JsonValue val value: String?) {
+ INVALID_CASE_SENSITIVITY_SPECIFIC_RULES_ARE_APPLIED_TO_THE_USE_OF_UPPER_AND_LOWER_CASE_LETTERS_(
+ "Invalid case sensitivity. Specific rules are applied to the use of upper and lower case letters."),
+ INVALID_DIACRITICS_SPECIFIC_RULES_ARE_APPLIED_TO_THE_USE_OF_DIACRITICS_(
+ "Invalid diacritics. Specific rules are applied to the use of diacritics."),
+ INVALID_USE_OF_SPACES_SPECIFIC_RULES_ARE_APPLIED_TO_THE_USE_OF_SPACES_(
+ "Invalid use of spaces. Specific rules are applied to the use of spaces."),
+ NULL(null),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxCompany.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxCompany.kt
new file mode 100644
index 0000000..b57a835
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxCompany.kt
@@ -0,0 +1,59 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ErrorSyntaxCompanyImpl::class)
+interface ErrorSyntaxCompany {
+ val group: ErrorSyntaxCompanyGroup?
+ val type: ErrorSyntaxCompanyType?
+ val subtype: ErrorSyntaxCompanySubtype?
+ val severity: ErrorSyntaxCompanySeverity?
+ val relatedTo: List?
+ val description: ErrorSyntaxCompanyDescription?
+}
+
+data class ErrorSyntaxCompanyImpl(
+ override val group: ErrorSyntaxCompanyGroup?,
+ override val type: ErrorSyntaxCompanyType?,
+ override val subtype: ErrorSyntaxCompanySubtype?,
+ override val severity: ErrorSyntaxCompanySeverity?,
+ override val relatedTo: List?,
+ override val description: ErrorSyntaxCompanyDescription?,
+) : ErrorSyntaxCompany
+/** Group of error. */
+enum class ErrorSyntaxCompanyGroup(@JsonValue val value: String) {
+ SYNTAX("SYNTAX"),
+}
+/** Type of error. */
+enum class ErrorSyntaxCompanyType(@JsonValue val value: String) {
+ VALUE_PART_EXTRA("VALUE_PART_EXTRA"),
+ VALUE_PART_MISSING("VALUE_PART_MISSING"),
+}
+/** Subtype of error. */
+enum class ErrorSyntaxCompanySubtype(@JsonValue val value: String) {
+ LEGAL_FORM("LEGAL_FORM"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class ErrorSyntaxCompanySeverity(@JsonValue val value: String) {
+ INFO("info"),
+ WARNING("warning"),
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class ErrorSyntaxCompanyDescription(@JsonValue val value: String) {
+ VALUE_CONTAINS_DUPLICATED_LEGAL_FORM_("Value contains duplicated legal form."),
+ COMPANY_NAME_IS_MISSING_THE_LEGAL_FORM_("Company name is missing the legal form."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxEmail.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxEmail.kt
new file mode 100644
index 0000000..02e72bc
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxEmail.kt
@@ -0,0 +1,67 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ErrorSyntaxEmailImpl::class)
+interface ErrorSyntaxEmail {
+ val group: ErrorSyntaxEmailGroup?
+ val type: ErrorSyntaxEmailType?
+ val subtype: ErrorSyntaxEmailSubtype?
+ val severity: ErrorSyntaxEmailSeverity?
+ val relatedTo: List?
+ val description: ErrorSyntaxEmailDescription?
+}
+
+data class ErrorSyntaxEmailImpl(
+ override val group: ErrorSyntaxEmailGroup?,
+ override val type: ErrorSyntaxEmailType?,
+ override val subtype: ErrorSyntaxEmailSubtype?,
+ override val severity: ErrorSyntaxEmailSeverity?,
+ override val relatedTo: List?,
+ override val description: ErrorSyntaxEmailDescription?,
+) : ErrorSyntaxEmail
+/** Group of error. */
+enum class ErrorSyntaxEmailGroup(@JsonValue val value: String) {
+ SYNTAX("SYNTAX"),
+}
+/** Type of error. */
+enum class ErrorSyntaxEmailType(@JsonValue val value: String) {
+ VALUE_PART("VALUE_PART"),
+ VALUE_PART_EXTRA("VALUE_PART_EXTRA"),
+ VALUE_PART_MISSING("VALUE_PART_MISSING"),
+ VALUE_PART_POSITION("VALUE_PART_POSITION"),
+}
+/** Subtype of error. */
+enum class ErrorSyntaxEmailSubtype(@JsonValue val value: String) {
+ DOMAIN("DOMAIN"),
+ AT_SIGN("AT_SIGN"),
+ TLD("TLD"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class ErrorSyntaxEmailSeverity(@JsonValue val value: String) {
+ INFO("info"),
+ WARNING("warning"),
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class ErrorSyntaxEmailDescription(@JsonValue val value: String) {
+ THE_DOMAIN_CONTAINS_INVALID_SYNTAX_("The domain contains invalid syntax."),
+ VALUE_CONTAINS_DUPLICATED_SIGN_("Value contains duplicated \'@\' sign."),
+ VALUE_DOES_NOT_CONTAIN_SIGN_("Value does not contain \'@\' sign."),
+ VALUE_IS_MISSING_THE_TOP_LEVEL_DOMAIN_("Value is missing the top level domain."),
+ THE_TLD_PART_OF_THE_VALUE_IS_PLACED_IN_THE_WRONG_POSITION_(
+ "The TLD part of the value is placed in the wrong position."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxGlobal.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxGlobal.kt
new file mode 100644
index 0000000..02cdb59
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxGlobal.kt
@@ -0,0 +1,72 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ErrorSyntaxGlobalImpl::class)
+interface ErrorSyntaxGlobal {
+ val group: ErrorSyntaxGlobalGroup?
+ val type: ErrorSyntaxGlobalType?
+ val subtype: ErrorSyntaxGlobalSubtype?
+ val severity: ErrorSyntaxGlobalSeverity?
+ val relatedTo: List?
+ val description: ErrorSyntaxGlobalDescription?
+}
+
+data class ErrorSyntaxGlobalImpl(
+ override val group: ErrorSyntaxGlobalGroup?,
+ override val type: ErrorSyntaxGlobalType?,
+ override val subtype: ErrorSyntaxGlobalSubtype?,
+ override val severity: ErrorSyntaxGlobalSeverity?,
+ override val relatedTo: List?,
+ override val description: ErrorSyntaxGlobalDescription?,
+) : ErrorSyntaxGlobal
+/** Group of error. */
+enum class ErrorSyntaxGlobalGroup(@JsonValue val value: String) {
+ SYNTAX("SYNTAX"),
+}
+/** Type of error. */
+enum class ErrorSyntaxGlobalType(@JsonValue val value: String) {
+ CHARACTERS("CHARACTERS"),
+ INVALID("INVALID"),
+ UNABLE_TO_PROCESS("UNABLE_TO_PROCESS"),
+ VALUE_LENGTH("VALUE_LENGTH"),
+ VALUE_PART_EXTRA("VALUE_PART_EXTRA"),
+ VALUE_PART_MISSING("VALUE_PART_MISSING"),
+}
+/** Subtype of error. */
+enum class ErrorSyntaxGlobalSubtype(@JsonValue val value: String) {
+ NOT_ALLOWED("NOT_ALLOWED"),
+ WHITESPACES("WHITESPACES"),
+ TOO_LONG("TOO_LONG"),
+ TOO_SHORT("TOO_SHORT"),
+ CONTEXT("CONTEXT"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class ErrorSyntaxGlobalSeverity(@JsonValue val value: String) {
+ INFO("info"),
+ WARNING("warning"),
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class ErrorSyntaxGlobalDescription(@JsonValue val value: String) {
+ DISALLOWED_CHARACTERS_WERE_USED_IN_THE_VALUE_("Disallowed characters were used in the value."),
+ VALUE_CONTAINS_INVALID_USE_OF_SPACES_("Value contains invalid use of spaces."),
+ VALUE_HAS_INVALID_SYNTAX_("Value has invalid syntax."),
+ CANNOT_BE_PROCESSED_DUE_TO_THE_INVALID_SYNTAX_("Cannot be processed due to the invalid syntax."),
+ VALUE_IS_TOO_LONG_("Value is too long."),
+ VALUE_IS_TOO_SHORT_("Value is too short."),
+ VALUE_CONTAINS_UNNECCESSARY_CONTEXT_("Value contains unneccessary context."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxLocation.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxLocation.kt
new file mode 100644
index 0000000..5d3d71f
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxLocation.kt
@@ -0,0 +1,64 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ErrorSyntaxLocationImpl::class)
+interface ErrorSyntaxLocation {
+ val group: ErrorSyntaxLocationGroup?
+ val type: ErrorSyntaxLocationType?
+ val subtype: ErrorSyntaxLocationSubtype?
+ val severity: ErrorSyntaxLocationSeverity?
+ val relatedTo: List?
+ val description: ErrorSyntaxLocationDescription?
+}
+
+data class ErrorSyntaxLocationImpl(
+ override val group: ErrorSyntaxLocationGroup?,
+ override val type: ErrorSyntaxLocationType?,
+ override val subtype: ErrorSyntaxLocationSubtype?,
+ override val severity: ErrorSyntaxLocationSeverity?,
+ override val relatedTo: List?,
+ override val description: ErrorSyntaxLocationDescription?,
+) : ErrorSyntaxLocation
+/** Group of error. */
+enum class ErrorSyntaxLocationGroup(@JsonValue val value: String) {
+ SYNTAX("SYNTAX"),
+}
+/** Type of error. */
+enum class ErrorSyntaxLocationType(@JsonValue val value: String) {
+ VALUE_PART_MISSING("VALUE_PART_MISSING"),
+}
+/** Subtype of error. */
+enum class ErrorSyntaxLocationSubtype(@JsonValue val value: String) {
+ CITY("CITY"),
+ NUMBER_PART("NUMBER_PART"),
+ STREET("STREET"),
+ ZIP("ZIP"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class ErrorSyntaxLocationSeverity(@JsonValue val value: String) {
+ INFO("info"),
+ WARNING("warning"),
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class ErrorSyntaxLocationDescription(@JsonValue val value: String) {
+ VALUE_IS_MISSING_THE_CITY_("Value is missing the city."),
+ VALUE_IS_MISSING_THE_NUMBER_PART_("Value is missing the number part."),
+ VALUE_IS_MISSING_THE_STREET_("Value is missing the street."),
+ VALUE_IS_MISSING_THE_ZIP_("Value is missing the zip."),
+ VALUE_IS_MISSING_SOME_PART_OF_THE_NUMBER_("Value is missing some part of the number."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxName.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxName.kt
new file mode 100644
index 0000000..43e3862
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxName.kt
@@ -0,0 +1,63 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ErrorSyntaxNameImpl::class)
+interface ErrorSyntaxName {
+ val group: ErrorSyntaxNameGroup?
+ val type: ErrorSyntaxNameType?
+ val subtype: ErrorSyntaxNameSubtype?
+ val severity: ErrorSyntaxNameSeverity?
+ val relatedTo: List?
+ val description: ErrorSyntaxNameDescription?
+}
+
+data class ErrorSyntaxNameImpl(
+ override val group: ErrorSyntaxNameGroup?,
+ override val type: ErrorSyntaxNameType?,
+ override val subtype: ErrorSyntaxNameSubtype?,
+ override val severity: ErrorSyntaxNameSeverity?,
+ override val relatedTo: List?,
+ override val description: ErrorSyntaxNameDescription?,
+) : ErrorSyntaxName
+/** Group of error. */
+enum class ErrorSyntaxNameGroup(@JsonValue val value: String) {
+ SYNTAX("SYNTAX"),
+}
+/** Type of error. */
+enum class ErrorSyntaxNameType(@JsonValue val value: String) {
+ VALUE_PART_MISSING("VALUE_PART_MISSING"),
+ VALUE_PART_POSITION("VALUE_PART_POSITION"),
+}
+/** Subtype of error. */
+enum class ErrorSyntaxNameSubtype(@JsonValue val value: String) {
+ NAME("NAME"),
+ SURNAME("SURNAME"),
+ DEGREE("DEGREE"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class ErrorSyntaxNameSeverity(@JsonValue val value: String) {
+ INFO("info"),
+ WARNING("warning"),
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class ErrorSyntaxNameDescription(@JsonValue val value: String) {
+ VALUE_IS_MISSING_THE_NAME_PART_("Value is missing the name part."),
+ VALUE_IS_MISSING_THE_SURNAME_PART_("Value is missing the surname part."),
+ THE_DEGREE_PART_OF_THE_VALUE_IS_PLACED_IN_THE_WRONG_POSITION_(
+ "The DEGREE part of the value is placed in the wrong position."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxPhone.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxPhone.kt
new file mode 100644
index 0000000..c61e037
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorSyntaxPhone.kt
@@ -0,0 +1,63 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ErrorSyntaxPhoneImpl::class)
+interface ErrorSyntaxPhone {
+ val group: ErrorSyntaxPhoneGroup?
+ val type: ErrorSyntaxPhoneType?
+ val subtype: ErrorSyntaxPhoneSubtype?
+ val severity: ErrorSyntaxPhoneSeverity?
+ val relatedTo: List?
+ val description: ErrorSyntaxPhoneDescription?
+}
+
+data class ErrorSyntaxPhoneImpl(
+ override val group: ErrorSyntaxPhoneGroup?,
+ override val type: ErrorSyntaxPhoneType?,
+ override val subtype: ErrorSyntaxPhoneSubtype?,
+ override val severity: ErrorSyntaxPhoneSeverity?,
+ override val relatedTo: List?,
+ override val description: ErrorSyntaxPhoneDescription?,
+) : ErrorSyntaxPhone
+/** Group of error. */
+enum class ErrorSyntaxPhoneGroup(@JsonValue val value: String) {
+ SYNTAX("SYNTAX"),
+}
+/** Type of error. */
+enum class ErrorSyntaxPhoneType(@JsonValue val value: String) {
+ VALUE_PART_EXTRA("VALUE_PART_EXTRA"),
+ VALUE_PART_MISSING("VALUE_PART_MISSING"),
+}
+/** Subtype of error. */
+enum class ErrorSyntaxPhoneSubtype(@JsonValue val value: String) {
+ PLUS_SIGN("PLUS_SIGN"),
+ NUMBER("NUMBER"),
+ PREFIX("PREFIX"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class ErrorSyntaxPhoneSeverity(@JsonValue val value: String) {
+ INFO("info"),
+ WARNING("warning"),
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class ErrorSyntaxPhoneDescription(@JsonValue val value: String) {
+ VALUE_CONTAINS_DUPLICATED_SIGN_("Value contains duplicated \'+\' sign."),
+ VALUE_IS_MISSING_THE_NUMBER_("Value is missing the number."),
+ VALUE_IS_MISSING_THE_SIGN_("Value is missing the \'+\' sign."),
+ VALUE_IS_MISSING_THE_PREFIX_("Value is missing the prefix."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorValueEmail.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorValueEmail.kt
new file mode 100644
index 0000000..cd4d691
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorValueEmail.kt
@@ -0,0 +1,66 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ErrorValueEmailImpl::class)
+interface ErrorValueEmail {
+ val group: ErrorValueEmailGroup?
+ val type: ErrorValueEmailType?
+ val subtype: ErrorValueEmailSubtype?
+ val severity: ErrorValueEmailSeverity?
+ val relatedTo: List?
+ val description: ErrorValueEmailDescription?
+}
+
+data class ErrorValueEmailImpl(
+ override val group: ErrorValueEmailGroup?,
+ override val type: ErrorValueEmailType?,
+ override val subtype: ErrorValueEmailSubtype?,
+ override val severity: ErrorValueEmailSeverity?,
+ override val relatedTo: List?,
+ override val description: ErrorValueEmailDescription?,
+) : ErrorValueEmail
+/** Group of error. */
+enum class ErrorValueEmailGroup(@JsonValue val value: String) {
+ VALUE("VALUE"),
+}
+/** Type of error. */
+enum class ErrorValueEmailType(@JsonValue val value: String) {
+ INVALID("INVALID"),
+ NOT_ALLOWED("NOT_ALLOWED"),
+}
+/** Subtype of error. */
+enum class ErrorValueEmailSubtype(@JsonValue val value: String?) {
+ DOMAIN("DOMAIN"),
+ DOMAIN_DNS("DOMAIN_DNS"),
+ DISPOSABLE("DISPOSABLE"),
+ FREEMAIL("FREEMAIL"),
+ NULL(null),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class ErrorValueEmailSeverity(@JsonValue val value: String) {
+ INFO("info"),
+ WARNING("warning"),
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class ErrorValueEmailDescription(@JsonValue val value: String) {
+ DOMAIN_NAME_IS_INVALID_("Domain name is invalid."),
+ DOMAIN_DOES_NOT_HAVE_DNS_RECORDS_SET_PROPERLY_FOR_RECEIVING_EMAILS_(
+ "Domain does not have DNS records set properly for receiving emails."),
+ DISPOSABLE_EMAILS_ARE_NOT_ALLOWED_("Disposable emails are not allowed."),
+ FREEMAILS_ARE_NOT_ALLOWED_("Freemails are not allowed."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorValueGlobal.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorValueGlobal.kt
new file mode 100644
index 0000000..a446a8a
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorValueGlobal.kt
@@ -0,0 +1,66 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ErrorValueGlobalImpl::class)
+interface ErrorValueGlobal {
+ val group: ErrorValueGlobalGroup?
+ val type: ErrorValueGlobalType?
+ val subtype: ErrorValueGlobalSubtype?
+ val severity: ErrorValueGlobalSeverity?
+ val relatedTo: List?
+ val description: ErrorValueGlobalDescription?
+}
+
+data class ErrorValueGlobalImpl(
+ override val group: ErrorValueGlobalGroup?,
+ override val type: ErrorValueGlobalType?,
+ override val subtype: ErrorValueGlobalSubtype?,
+ override val severity: ErrorValueGlobalSeverity?,
+ override val relatedTo: List?,
+ override val description: ErrorValueGlobalDescription?,
+) : ErrorValueGlobal
+/** Group of error. */
+enum class ErrorValueGlobalGroup(@JsonValue val value: String) {
+ VALUE("VALUE"),
+}
+/** Type of error. */
+enum class ErrorValueGlobalType(@JsonValue val value: String) {
+ EMPTY("EMPTY"),
+ INCORRECT_ORDER("INCORRECT_ORDER"),
+ INVALID("INVALID"),
+ INVALID_COMBINATION("INVALID_COMBINATION"),
+ NOT_ALLOWED("NOT_ALLOWED"),
+}
+/** Subtype of error. */
+enum class ErrorValueGlobalSubtype(@JsonValue val value: Any?) {
+ NULL(null),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class ErrorValueGlobalSeverity(@JsonValue val value: String) {
+ INFO("info"),
+ WARNING("warning"),
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class ErrorValueGlobalDescription(@JsonValue val value: String) {
+ VALUE_IS_EMPTY_("Value is empty."),
+ VALUE_CONTAINS_PARTS_IN_INCORRECT_ORDER_("Value contains parts in incorrect order."),
+ VALUE_IS_NOT_VALID_("Value is not valid."),
+ THE_COMBINATION_OF_VALUES_LISTED_IN_RELATED_TO_SECTION_IS_NOT_VALID_(
+ "The Combination of values listed in relatedTo section is not valid."),
+ CONTEXT_WORDS_ARE_NOT_ALLOWED_("Context words are not allowed."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorValueName.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorValueName.kt
new file mode 100644
index 0000000..1bb63a5
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorValueName.kt
@@ -0,0 +1,67 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ErrorValueNameImpl::class)
+interface ErrorValueName {
+ val group: ErrorValueNameGroup?
+ val type: ErrorValueNameType?
+ val subtype: ErrorValueNameSubtype?
+ val severity: ErrorValueNameSeverity?
+ val relatedTo: List?
+ val description: ErrorValueNameDescription?
+}
+
+data class ErrorValueNameImpl(
+ override val group: ErrorValueNameGroup?,
+ override val type: ErrorValueNameType?,
+ override val subtype: ErrorValueNameSubtype?,
+ override val severity: ErrorValueNameSeverity?,
+ override val relatedTo: List?,
+ override val description: ErrorValueNameDescription?,
+) : ErrorValueName
+/** Group of error. */
+enum class ErrorValueNameGroup(@JsonValue val value: String) {
+ VALUE("VALUE"),
+}
+/** Type of error. */
+enum class ErrorValueNameType(@JsonValue val value: String) {
+ INVALID("INVALID"),
+ NOT_ALLOWED("NOT_ALLOWED"),
+}
+/** Subtype of error. */
+enum class ErrorValueNameSubtype(@JsonValue val value: String) {
+ DEGREE("DEGREE"),
+ NAME("NAME"),
+ NAMESURNAME("NAMESURNAME"),
+ SURNAME("SURNAME"),
+ CONTEXT("CONTEXT"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class ErrorValueNameSeverity(@JsonValue val value: String) {
+ INFO("info"),
+ WARNING("warning"),
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class ErrorValueNameDescription(@JsonValue val value: String) {
+ DEGREE_VALUE_IS_INVALID_("Degree value is invalid."),
+ NAME_HAS_NOT_BEEN_FOUND_IN_OUR_DATABASE_("Name has not been found in our database."),
+ NAME_SURNAME_HAS_NOT_BEEN_FOUND_IN_OUR_DATABASE_(
+ "NameSurname has not been found in our database."),
+ SURNAME_HAS_NOT_BEEN_FOUND_IN_OUR_DATABASE_("Surname has not been found in our database."),
+ DEGREES_ARE_NOT_ALLOWED_("Degrees are not allowed."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorValuePhone.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorValuePhone.kt
new file mode 100644
index 0000000..f9ef417
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ErrorValuePhone.kt
@@ -0,0 +1,60 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ErrorValuePhoneImpl::class)
+interface ErrorValuePhone {
+ val group: ErrorValuePhoneGroup?
+ val type: ErrorValuePhoneType?
+ val subtype: ErrorValuePhoneSubtype?
+ val severity: ErrorValuePhoneSeverity?
+ val relatedTo: List?
+ val description: ErrorValuePhoneDescription?
+}
+
+data class ErrorValuePhoneImpl(
+ override val group: ErrorValuePhoneGroup?,
+ override val type: ErrorValuePhoneType?,
+ override val subtype: ErrorValuePhoneSubtype?,
+ override val severity: ErrorValuePhoneSeverity?,
+ override val relatedTo: List?,
+ override val description: ErrorValuePhoneDescription?,
+) : ErrorValuePhone
+/** Group of error. */
+enum class ErrorValuePhoneGroup(@JsonValue val value: String) {
+ VALUE("VALUE"),
+}
+/** Type of error. */
+enum class ErrorValuePhoneType(@JsonValue val value: String) {
+ INVALID("INVALID"),
+ NOT_ALLOWED("NOT_ALLOWED"),
+}
+/** Subtype of error. */
+enum class ErrorValuePhoneSubtype(@JsonValue val value: String) {
+ PREFIX("PREFIX"),
+}
+/**
+ * Severity of error. Info = cosmetic changes that don't change the overall meaning.
+ * Warning = typos and other errors that could affect the meaning. Critical = critical
+ * errors.
+ */
+enum class ErrorValuePhoneSeverity(@JsonValue val value: String) {
+ INFO("info"),
+ WARNING("warning"),
+ CRITICAL("critical"),
+}
+/** Description of error. */
+enum class ErrorValuePhoneDescription(@JsonValue val value: String) {
+ PREFIX_IS_INVALID_("Prefix is invalid."),
+ THIS_PREFIX_IS_NOT_ALLOWED_CHECK_THE_ALLOWED_PREFIXES_OPTION_IN_THE_REQUEST_(
+ "This prefix is not allowed. Check the \'allowedPrefixes\' option in the request."),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/FixData.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixData.kt
new file mode 100644
index 0000000..7346b33
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixData.kt
@@ -0,0 +1,27 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Data that has been changed */
+@JsonDeserialize(`as` = FixDataImpl::class)
+interface FixData {
+ val typeFrom: String?
+ val type: String?
+ val valueFrom: String?
+ val value: String?
+}
+
+data class FixDataImpl(
+ override val typeFrom: String?,
+ override val type: String?,
+ override val valueFrom: String?,
+ override val value: String?,
+) : FixData
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/FixFormatGlobal.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixFormatGlobal.kt
new file mode 100644
index 0000000..9bbba10
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixFormatGlobal.kt
@@ -0,0 +1,44 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = FixFormatGlobalImpl::class)
+interface FixFormatGlobal {
+ val group: FixFormatGlobalGroup?
+ val type: FixFormatGlobalType?
+ val subtype: FixFormatGlobalSubtype?
+ val data: FixData?
+}
+
+data class FixFormatGlobalImpl(
+ override val group: FixFormatGlobalGroup?,
+ override val type: FixFormatGlobalType?,
+ override val subtype: FixFormatGlobalSubtype?,
+ override val data: FixData?,
+) : FixFormatGlobal
+/** Group of fix. */
+enum class FixFormatGlobalGroup(@JsonValue val value: String) {
+ FORMAT("FORMAT"),
+ VALUE("VALUE"),
+}
+/** Type of fix. */
+enum class FixFormatGlobalType(@JsonValue val value: String) {
+ CHANGED("CHANGED"),
+}
+/** Subtype of fix. */
+enum class FixFormatGlobalSubtype(@JsonValue val value: String?) {
+ CASE_SENSITIVITY("CASE_SENSITIVITY"),
+ DIACRITICS("DIACRITICS"),
+ WHITESPACES("WHITESPACES"),
+ TYPO("TYPO"),
+ NULL(null),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxCompany.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxCompany.kt
new file mode 100644
index 0000000..370716f
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxCompany.kt
@@ -0,0 +1,41 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = FixSyntaxCompanyImpl::class)
+interface FixSyntaxCompany {
+ val group: FixSyntaxCompanyGroup?
+ val type: FixSyntaxCompanyType?
+ val subtype: FixSyntaxCompanySubtype?
+ val data: FixData?
+}
+
+data class FixSyntaxCompanyImpl(
+ override val group: FixSyntaxCompanyGroup?,
+ override val type: FixSyntaxCompanyType?,
+ override val subtype: FixSyntaxCompanySubtype?,
+ override val data: FixData?,
+) : FixSyntaxCompany
+/** Group of fix. */
+enum class FixSyntaxCompanyGroup(@JsonValue val value: String) {
+ SYNTAX("SYNTAX"),
+}
+/** Type of fix. */
+enum class FixSyntaxCompanyType(@JsonValue val value: String) {
+ VALUE_PART_ADDED("VALUE_PART_ADDED"),
+ VALUE_PART_CHANGED("VALUE_PART_CHANGED"),
+ VALUE_PART_REMOVED("VALUE_PART_REMOVED"),
+}
+/** Subtype of fix. */
+enum class FixSyntaxCompanySubtype(@JsonValue val value: String) {
+ LEGAL_FORM("LEGAL_FORM"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxEmail.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxEmail.kt
new file mode 100644
index 0000000..3ce2249
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxEmail.kt
@@ -0,0 +1,43 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = FixSyntaxEmailImpl::class)
+interface FixSyntaxEmail {
+ val group: FixSyntaxEmailGroup?
+ val type: FixSyntaxEmailType?
+ val subtype: FixSyntaxEmailSubtype?
+ val data: FixData?
+}
+
+data class FixSyntaxEmailImpl(
+ override val group: FixSyntaxEmailGroup?,
+ override val type: FixSyntaxEmailType?,
+ override val subtype: FixSyntaxEmailSubtype?,
+ override val data: FixData?,
+) : FixSyntaxEmail
+/** Group of fix. */
+enum class FixSyntaxEmailGroup(@JsonValue val value: String) {
+ SYNTAX("SYNTAX"),
+}
+/** Type of fix. */
+enum class FixSyntaxEmailType(@JsonValue val value: String) {
+ VALUE_PART_ADDED("VALUE_PART_ADDED"),
+ VALUE_PART_CHANGED("VALUE_PART_CHANGED"),
+ VALUE_PART_REMOVED("VALUE_PART_REMOVED"),
+}
+/** Subtype of fix. */
+enum class FixSyntaxEmailSubtype(@JsonValue val value: String) {
+ AT_SIGN("AT_SIGN"),
+ DOMAIN_TLD("DOMAIN_TLD"),
+ DOMAIN("DOMAIN"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxGlobal.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxGlobal.kt
new file mode 100644
index 0000000..3a03151
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxGlobal.kt
@@ -0,0 +1,45 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = FixSyntaxGlobalImpl::class)
+interface FixSyntaxGlobal {
+ val group: FixSyntaxGlobalGroup?
+ val type: FixSyntaxGlobalType?
+ val subtype: FixSyntaxGlobalSubtype?
+ val data: FixData?
+}
+
+data class FixSyntaxGlobalImpl(
+ override val group: FixSyntaxGlobalGroup?,
+ override val type: FixSyntaxGlobalType?,
+ override val subtype: FixSyntaxGlobalSubtype?,
+ override val data: FixData?,
+) : FixSyntaxGlobal
+/** Group of fix. */
+enum class FixSyntaxGlobalGroup(@JsonValue val value: String) {
+ SYNTAX("SYNTAX"),
+}
+/** Type of fix. */
+enum class FixSyntaxGlobalType(@JsonValue val value: String) {
+ VALUE_CHANGED("VALUE_CHANGED"),
+ VALUE_PART_CHANGED("VALUE_PART_CHANGED"),
+ VALUE_PART_REMOVED("VALUE_PART_REMOVED"),
+}
+/** Subtype of fix. */
+enum class FixSyntaxGlobalSubtype(@JsonValue val value: String?) {
+ CHARACTERS("CHARACTERS"),
+ WHITESPACES("WHITESPACES"),
+ CONTEXT("CONTEXT"),
+ DUPLICITY("DUPLICITY"),
+ NULL(null),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxLocation.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxLocation.kt
new file mode 100644
index 0000000..9fbdfbe
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxLocation.kt
@@ -0,0 +1,40 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = FixSyntaxLocationImpl::class)
+interface FixSyntaxLocation {
+ val group: FixSyntaxLocationGroup?
+ val type: FixSyntaxLocationType?
+ val subtype: FixSyntaxLocationSubtype?
+ val data: FixData?
+}
+
+data class FixSyntaxLocationImpl(
+ override val group: FixSyntaxLocationGroup?,
+ override val type: FixSyntaxLocationType?,
+ override val subtype: FixSyntaxLocationSubtype?,
+ override val data: FixData?,
+) : FixSyntaxLocation
+/** Group of fix. */
+enum class FixSyntaxLocationGroup(@JsonValue val value: String) {
+ SYNTAX("SYNTAX"),
+}
+/** Type of fix. */
+enum class FixSyntaxLocationType(@JsonValue val value: String) {
+ VALUE_PART_ADDED("VALUE_PART_ADDED"),
+}
+/** Subtype of fix. */
+enum class FixSyntaxLocationSubtype(@JsonValue val value: String) {
+ NUMBER("NUMBER"),
+ NUMBER_PART("NUMBER_PART"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxPhone.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxPhone.kt
new file mode 100644
index 0000000..06ad4cc
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixSyntaxPhone.kt
@@ -0,0 +1,42 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = FixSyntaxPhoneImpl::class)
+interface FixSyntaxPhone {
+ val group: FixSyntaxPhoneGroup?
+ val type: FixSyntaxPhoneType?
+ val subtype: FixSyntaxPhoneSubtype?
+ val data: FixData?
+}
+
+data class FixSyntaxPhoneImpl(
+ override val group: FixSyntaxPhoneGroup?,
+ override val type: FixSyntaxPhoneType?,
+ override val subtype: FixSyntaxPhoneSubtype?,
+ override val data: FixData?,
+) : FixSyntaxPhone
+/** Group of fix. */
+enum class FixSyntaxPhoneGroup(@JsonValue val value: String) {
+ SYNTAX("SYNTAX"),
+}
+/** Type of fix. */
+enum class FixSyntaxPhoneType(@JsonValue val value: String) {
+ VALUE_PART_ADDED("VALUE_PART_ADDED"),
+ VALUE_PART_CHANGED("VALUE_PART_CHANGED"),
+ VALUE_PART_REMOVED("VALUE_PART_REMOVED"),
+}
+/** Subtype of error. */
+enum class FixSyntaxPhoneSubtype(@JsonValue val value: String) {
+ PLUS_SIGN("PLUS_SIGN"),
+ PREFIX("PREFIX"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/FixValueGlobal.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixValueGlobal.kt
new file mode 100644
index 0000000..e4fefed
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixValueGlobal.kt
@@ -0,0 +1,44 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = FixValueGlobalImpl::class)
+interface FixValueGlobal {
+ val group: FixValueGlobalGroup?
+ val type: FixValueGlobalType?
+ val subtype: FixValueGlobalSubtype?
+ val data: FixData?
+}
+
+data class FixValueGlobalImpl(
+ override val group: FixValueGlobalGroup?,
+ override val type: FixValueGlobalType?,
+ override val subtype: FixValueGlobalSubtype?,
+ override val data: FixData?,
+) : FixValueGlobal
+/** Group of fix. */
+enum class FixValueGlobalGroup(@JsonValue val value: String) {
+ VALUE("VALUE"),
+}
+/** Type of fix. */
+enum class FixValueGlobalType(@JsonValue val value: String) {
+ ADDED("ADDED"),
+ CHANGED("CHANGED"),
+ PART_CHANGED("PART_CHANGED"),
+ REMOVED("REMOVED"),
+}
+/** Subtype of error. */
+enum class FixValueGlobalSubtype(@JsonValue val value: String?) {
+ INTERNAL_RULE("INTERNAL_RULE"),
+ TYPO("TYPO"),
+ NULL(null),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/FixValueLocation.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixValueLocation.kt
new file mode 100644
index 0000000..31a5db6
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/FixValueLocation.kt
@@ -0,0 +1,42 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = FixValueLocationImpl::class)
+interface FixValueLocation {
+ val group: FixValueLocationGroup?
+ val type: FixValueLocationType?
+ val subtype: FixValueLocationSubtype?
+ val data: FixData?
+}
+
+data class FixValueLocationImpl(
+ override val group: FixValueLocationGroup?,
+ override val type: FixValueLocationType?,
+ override val subtype: FixValueLocationSubtype?,
+ override val data: FixData?,
+) : FixValueLocation
+/** Group of fix. */
+enum class FixValueLocationGroup(@JsonValue val value: String) {
+ VALUE("VALUE"),
+}
+/** Type of fix. */
+enum class FixValueLocationType(@JsonValue val value: String) {
+ PART_CHANGED("PART_CHANGED"),
+}
+/** Subtype of error. */
+enum class FixValueLocationSubtype(@JsonValue val value: String) {
+ CITY("CITY"),
+ NUMBER("NUMBER"),
+ STREET("STREET"),
+ ZIP("ZIP"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/GetCompanyData.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/GetCompanyData.kt
new file mode 100644
index 0000000..279f3e5
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/GetCompanyData.kt
@@ -0,0 +1,29 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Successful response */
+@JsonDeserialize(`as` = GetCompanyDataImpl::class)
+interface GetCompanyData {
+ val status: Int
+ val request: GetCompanyDataResponseRequest
+ val response: GetCompanyDataResults
+ val errors: List?
+}
+
+data class GetCompanyDataImpl(
+ override val status: Int,
+ override val request: GetCompanyDataResponseRequest,
+ override val response: GetCompanyDataResults,
+ override val errors: List?,
+) : GetCompanyData
+
+typealias GetCompanyDataErrors = Any
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/GetCompanyDataRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/GetCompanyDataRequest.kt
new file mode 100644
index 0000000..96be1e5
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/GetCompanyDataRequest.kt
@@ -0,0 +1,37 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = GetCompanyDataRequestImpl::class)
+interface GetCompanyDataRequest {
+ val customId: String?
+ val query: GetCompanyDataRequestQuery
+ val options: CompanyDataRequestOption?
+ val client: ClientRequest?
+}
+
+data class GetCompanyDataRequestImpl(
+ override val customId: String?,
+ override val query: GetCompanyDataRequestQuery,
+ override val options: CompanyDataRequestOption?,
+ override val client: ClientRequest?,
+) : GetCompanyDataRequest
+
+@JsonDeserialize(`as` = GetCompanyDataRequestQueryImpl::class)
+interface GetCompanyDataRequestQuery {
+ val country: String
+ val registrationNumber: String
+}
+
+data class GetCompanyDataRequestQueryImpl(
+ override val country: String,
+ override val registrationNumber: String,
+) : GetCompanyDataRequestQuery
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/GetCompanyDataResponseRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/GetCompanyDataResponseRequest.kt
new file mode 100644
index 0000000..b46dfe6
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/GetCompanyDataResponseRequest.kt
@@ -0,0 +1,89 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = GetCompanyDataResponseRequestImpl::class)
+interface GetCompanyDataResponseRequest {
+ val endpoint: String
+ val code: String
+ val customId: String?
+ val query: GetCompanyDataResponseRequestQuery?
+ val options: GetCompanyDataResponseRequestOptions?
+ val client: ClientRequest?
+}
+
+data class GetCompanyDataResponseRequestImpl(
+ override val endpoint: String,
+ override val code: String,
+ override val customId: String?,
+ override val query: GetCompanyDataResponseRequestQuery?,
+ override val options: GetCompanyDataResponseRequestOptions?,
+ override val client: ClientRequest?,
+) : GetCompanyDataResponseRequest
+
+@JsonDeserialize(`as` = GetCompanyDataResponseRequestQueryImpl::class)
+interface GetCompanyDataResponseRequestQuery {
+ val country: String?
+ val registrationNumber: Any?
+}
+
+data class GetCompanyDataResponseRequestQueryImpl(
+ override val country: String?,
+ override val registrationNumber: Any?,
+) : GetCompanyDataResponseRequestQuery
+
+/** Query options. */
+@JsonDeserialize(`as` = GetCompanyDataResponseRequestOptionsImpl::class)
+interface GetCompanyDataResponseRequestOptions {
+ val dataScope: GetCompanyDataResponseRequestOptionsDataScope?
+ val dataSource: List?
+ val includeTerminatedSubjects: Boolean?
+ val zipFormat: Boolean?
+ val cityFormat: GetCompanyDataResponseRequestOptionsCityFormat?
+ val countryFormat: GetCompanyDataResponseRequestOptionsCountryFormat?
+}
+
+data class GetCompanyDataResponseRequestOptionsImpl(
+ override val dataScope: GetCompanyDataResponseRequestOptionsDataScope?,
+ override val dataSource: List?,
+ override val includeTerminatedSubjects: Boolean?,
+ override val zipFormat: Boolean?,
+ override val cityFormat: GetCompanyDataResponseRequestOptionsCityFormat?,
+ override val countryFormat: GetCompanyDataResponseRequestOptionsCountryFormat?,
+) : GetCompanyDataResponseRequestOptions
+/** Data scope of returned data. */
+enum class GetCompanyDataResponseRequestOptionsDataScope(@JsonValue val value: String) {
+ BASIC("basic"),
+ EXTENDED("extended"),
+ FULL("full"),
+}
+/**
+ * This option determines the format in which the city is returned. Minimal = Praha,
+ * basic = Praha 8, extended = Praha 8 - Karlín.
+ */
+enum class GetCompanyDataResponseRequestOptionsCityFormat(@JsonValue val value: String) {
+ MINIMAL("minimal"),
+ BASIC("basic"),
+ EXTENDED("extended"),
+}
+/**
+ * This option determines the format in which the country is returned. Choices include local and
+ * international variants with their shortened counterparts as well as ISO 3166 alpha codes.
+ */
+enum class GetCompanyDataResponseRequestOptionsCountryFormat(@JsonValue val value: String) {
+ ALPHA2("alpha2"),
+ ALPHA3("alpha3"),
+ LOCAL("local"),
+ LOCAL_SHORTENED("localShortened"),
+ INTERNATIONAL("international"),
+ INTERNATIONAL_SHORTENED("internationalShortened"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/GetCompanyDataResults.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/GetCompanyDataResults.kt
new file mode 100644
index 0000000..3ad25dc
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/GetCompanyDataResults.kt
@@ -0,0 +1,20 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = GetCompanyDataResultsImpl::class)
+interface GetCompanyDataResults {
+ val results: List
+}
+
+data class GetCompanyDataResultsImpl(
+ override val results: List,
+) : GetCompanyDataResults
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/GlobalRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/GlobalRequest.kt
new file mode 100644
index 0000000..99a1d52
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/GlobalRequest.kt
@@ -0,0 +1,24 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = GlobalRequestImpl::class)
+interface GlobalRequest {
+ val endpoint: String
+ val code: String
+ val customId: String?
+}
+
+data class GlobalRequestImpl(
+ override val endpoint: String,
+ override val code: String,
+ override val customId: String?,
+) : GlobalRequest
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationData.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationData.kt
new file mode 100644
index 0000000..b84c7fc
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationData.kt
@@ -0,0 +1,88 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = LocationDataImpl::class)
+interface LocationData {
+ val country: String?
+ val region: String?
+ val district: String?
+ val cityDistrict: String?
+ val cityDistrictSpecial: String?
+ val cityPart: String?
+ val cityAdministrative: String?
+ val cadastralArea: String?
+ val ids: LocationDataIds
+ val street: String?
+ val number: LocationNumber
+ val streetWithNumber: String?
+ val city: String?
+ val zip: String?
+ val postOffice: LocationDataPostOffice?
+ val geometry: DataGeometry?
+ val full: String?
+}
+
+data class LocationDataImpl(
+ override val country: String?,
+ override val region: String?,
+ override val district: String?,
+ override val cityDistrict: String?,
+ override val cityDistrictSpecial: String?,
+ override val cityPart: String?,
+ override val cityAdministrative: String?,
+ override val cadastralArea: String?,
+ override val ids: LocationDataIds,
+ override val street: String?,
+ override val number: LocationNumber,
+ override val streetWithNumber: String?,
+ override val city: String?,
+ override val zip: String?,
+ override val postOffice: LocationDataPostOffice?,
+ override val geometry: DataGeometry?,
+ override val full: String?,
+) : LocationData
+/** Address internal & external ids. */
+@JsonDeserialize(`as` = LocationDataIdsImpl::class)
+interface LocationDataIds {
+ val internal: String?
+ val external: String?
+ val region: String?
+ val discrict: String?
+ val cityDistrictSpecial: String?
+ val cityDistrict: String?
+ val cityPart: String?
+ val cadastralArea: String?
+ val city: String?
+ val street: String?
+}
+
+data class LocationDataIdsImpl(
+ override val internal: String?,
+ override val external: String?,
+ override val region: String?,
+ override val discrict: String?,
+ override val cityDistrictSpecial: String?,
+ override val cityDistrict: String?,
+ override val cityPart: String?,
+ override val cadastralArea: String?,
+ override val city: String?,
+ override val street: String?,
+) : LocationDataIds
+/** In what post office jurisdiction the address falls under. */
+@JsonDeserialize(`as` = LocationDataPostOfficeImpl::class)
+interface LocationDataPostOffice {
+ val name: String?
+}
+
+data class LocationDataPostOfficeImpl(
+ override val name: String?,
+) : LocationDataPostOffice
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationGet.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationGet.kt
new file mode 100644
index 0000000..ddbc4bf
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationGet.kt
@@ -0,0 +1,110 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Successful response */
+@JsonDeserialize(`as` = LocationGetImpl::class)
+interface LocationGet {
+ val status: Int
+ val request: LocationGetRequestModel
+ val response: LocationGetResults
+ val errors: List
+}
+
+data class LocationGetImpl(
+ override val status: Int,
+ override val request: LocationGetRequestModel,
+ override val response: LocationGetResults,
+ override val errors: List,
+) : LocationGet
+
+@JsonDeserialize(`as` = LocationGetRequestModelImpl::class)
+interface LocationGetRequestModel : GlobalRequest {
+ val query: LocationGetRequestModelQuery?
+ val options: LocationGetRequestModelOptions?
+ val client: ClientRequest?
+}
+
+data class LocationGetRequestModelImpl(
+ override val query: LocationGetRequestModelQuery?,
+ override val options: LocationGetRequestModelOptions?,
+ override val client: ClientRequest?,
+ override val endpoint: String,
+ override val code: String,
+ override val customId: String?
+) : LocationGetRequestModel
+
+@JsonDeserialize(`as` = LocationGetRequestModelQueryImpl::class)
+interface LocationGetRequestModelQuery {
+ val country: String
+ val id: String
+}
+
+data class LocationGetRequestModelQueryImpl(
+ override val country: String,
+ override val id: String,
+) : LocationGetRequestModelQuery
+/** Query options. */
+@JsonDeserialize(`as` = LocationGetRequestModelOptionsImpl::class)
+interface LocationGetRequestModelOptions {
+ val idType: LocationGetRequestModelOptionsIdType
+ val dataScope: LocationGetRequestModelOptionsDataScope
+ val dataSource: List?
+ val zipFormat: Boolean?
+ val cityFormat: LocationGetRequestModelOptionsCityFormat?
+ val countryFormat: LocationGetRequestModelOptionsCountryFormat?
+}
+
+data class LocationGetRequestModelOptionsImpl(
+ override val idType: LocationGetRequestModelOptionsIdType,
+ override val dataScope: LocationGetRequestModelOptionsDataScope,
+ override val dataSource: List?,
+ override val zipFormat: Boolean?,
+ override val cityFormat: LocationGetRequestModelOptionsCityFormat?,
+ override val countryFormat: LocationGetRequestModelOptionsCountryFormat?,
+) : LocationGetRequestModelOptions
+/**
+ * Internal is assigned by Foxentry. External ID may vary for every supported country. CZ = RUIAN,
+ * PL = Government data, SK = no external ID.
+ */
+enum class LocationGetRequestModelOptionsIdType(@JsonValue val value: String) {
+ INTERNAL("internal"),
+ EXTERNAL("external"),
+}
+/** Data scope of returned data. */
+enum class LocationGetRequestModelOptionsDataScope(@JsonValue val value: String) {
+ BASIC("basic"),
+ FULL("full"),
+}
+/**
+ * This option determines the format in which the city is returned. Minimal = Praha,
+ * basic = Praha 8, extended = Praha 8 - Karlín.
+ */
+enum class LocationGetRequestModelOptionsCityFormat(@JsonValue val value: String) {
+ MINIMAL("minimal"),
+ BASIC("basic"),
+ EXTENDED("extended"),
+}
+/**
+ * This option determines the format in which the country is returned. Choices include local and
+ * international variants with their shortened counterparts as well as ISO 3166 alpha codes.
+ */
+enum class LocationGetRequestModelOptionsCountryFormat(@JsonValue val value: String) {
+ ALPHA2("alpha2"),
+ ALPHA3("alpha3"),
+ LOCAL("local"),
+ LOCAL_SHORTENED("localShortened"),
+ INTERNATIONAL("international"),
+ INTERNATIONAL_SHORTENED("internationalShortened"),
+}
+
+typealias LocationGetErrors = Any
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationGetRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationGetRequest.kt
new file mode 100644
index 0000000..0e99df3
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationGetRequest.kt
@@ -0,0 +1,77 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = LocationGetRequestImpl::class)
+interface LocationGetRequest {
+ val customId: String?
+ val query: LocationGetRequestQuery
+ val options: LocationGetRequestOptions?
+ val client: ClientRequest?
+}
+
+data class LocationGetRequestImpl(
+ override val customId: String?,
+ override val query: LocationGetRequestQuery,
+ override val options: LocationGetRequestOptions?,
+ override val client: ClientRequest?,
+) : LocationGetRequest
+
+@JsonDeserialize(`as` = LocationGetRequestQueryImpl::class)
+interface LocationGetRequestQuery {
+ val country: String
+ val id: String
+}
+
+data class LocationGetRequestQueryImpl(
+ override val country: String,
+ override val id: String,
+) : LocationGetRequestQuery
+/** Query options. */
+@JsonDeserialize(`as` = LocationGetRequestOptionsImpl::class)
+interface LocationGetRequestOptions {
+ val idType: LocationGetRequestOptionsIdType
+ val dataScope: LocationGetRequestOptionsDataScope
+ val dataSource: List?
+ val zipFormat: Boolean?
+ val cityFormat: LocationGetRequestOptionsCityFormat?
+}
+
+data class LocationGetRequestOptionsImpl(
+ override val idType: LocationGetRequestOptionsIdType,
+ override val dataScope: LocationGetRequestOptionsDataScope,
+ override val dataSource: List?,
+ override val zipFormat: Boolean?,
+ override val cityFormat: LocationGetRequestOptionsCityFormat?,
+) : LocationGetRequestOptions
+/**
+ * Internal is assigned by Foxentry. External ID may vary for every supported country. CZ = RUIAN,
+ * PL = Government data, SK = no external ID.
+ */
+enum class LocationGetRequestOptionsIdType(@JsonValue val value: String) {
+ INTERNAL("internal"),
+ EXTERNAL("external"),
+}
+/** Data scope of returned data. */
+enum class LocationGetRequestOptionsDataScope(@JsonValue val value: String) {
+ BASIC("basic"),
+ FULL("full"),
+}
+/**
+ * This option determines the format in which the city is returned. Minimal = Praha,
+ * basic = Praha 8, extended = Praha 8 - Karlín.
+ */
+enum class LocationGetRequestOptionsCityFormat(@JsonValue val value: String) {
+ MINIMAL("minimal"),
+ BASIC("basic"),
+ EXTENDED("extended"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationGetResults.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationGetResults.kt
new file mode 100644
index 0000000..fc5389a
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationGetResults.kt
@@ -0,0 +1,29 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = LocationGetResultsImpl::class)
+interface LocationGetResults {
+ val results: List
+}
+
+data class LocationGetResultsImpl(
+ override val results: List,
+) : LocationGetResults
+
+@JsonDeserialize(`as` = LocationGetResultsResultsImpl::class)
+interface LocationGetResultsResults {
+ val data: LocationData
+}
+
+data class LocationGetResultsResultsImpl(
+ override val data: LocationData,
+) : LocationGetResultsResults
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationLocalization.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationLocalization.kt
new file mode 100644
index 0000000..10937b5
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationLocalization.kt
@@ -0,0 +1,73 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Successful response */
+@JsonDeserialize(`as` = LocationLocalizationImpl::class)
+interface LocationLocalization {
+ val status: Int
+ val request: LocationLocalizationRequestModel
+ val response: LocationLocalizationResults
+ val errors: List?
+}
+
+data class LocationLocalizationImpl(
+ override val status: Int,
+ override val request: LocationLocalizationRequestModel,
+ override val response: LocationLocalizationResults,
+ override val errors: List?,
+) : LocationLocalization
+
+@JsonDeserialize(`as` = LocationLocalizationRequestModelImpl::class)
+interface LocationLocalizationRequestModel : GlobalRequest {
+ val query: LocationLocalizationRequestModelQuery?
+ val options: LocationLocalizationRequestModelOptions?
+ val client: LocationLocalizationRequestModelClient?
+}
+
+data class LocationLocalizationRequestModelImpl(
+ override val query: LocationLocalizationRequestModelQuery?,
+ override val options: LocationLocalizationRequestModelOptions?,
+ override val client: LocationLocalizationRequestModelClient?,
+ override val endpoint: String,
+ override val code: String,
+ override val customId: String?
+) : LocationLocalizationRequestModel
+
+@JsonDeserialize(`as` = LocationLocalizationRequestModelQueryImpl::class)
+interface LocationLocalizationRequestModelQuery {
+ val lat: Double
+ val lon: Double
+}
+
+data class LocationLocalizationRequestModelQueryImpl(
+ override val lat: Double,
+ override val lon: Double,
+) : LocationLocalizationRequestModelQuery
+
+typealias LocationLocalizationRequestModelOptions = Any
+/**
+ * Additional information about your user (from whom you've obtained the data sent in query) in
+ * order to specify the results in response. Used mainly in web forms when you need more relevant
+ * search/autocomplete results.
+ */
+@JsonDeserialize(`as` = LocationLocalizationRequestModelClientImpl::class)
+interface LocationLocalizationRequestModelClient {
+ val ip: String?
+ val country: String?
+}
+
+data class LocationLocalizationRequestModelClientImpl(
+ override val ip: String?,
+ override val country: String?,
+) : LocationLocalizationRequestModelClient
+
+typealias LocationLocalizationErrors = Any
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationLocalizationRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationLocalizationRequest.kt
new file mode 100644
index 0000000..5ff9e91
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationLocalizationRequest.kt
@@ -0,0 +1,68 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = LocationLocalizationRequestImpl::class)
+interface LocationLocalizationRequest {
+ val customId: String?
+ val query: LocationLocalizationRequestQuery
+ val options: LocationLocalizationRequestOptions?
+ val client: LocationLocalizationRequestClient?
+}
+
+data class LocationLocalizationRequestImpl(
+ override val customId: String?,
+ override val query: LocationLocalizationRequestQuery,
+ override val options: LocationLocalizationRequestOptions?,
+ override val client: LocationLocalizationRequestClient?,
+) : LocationLocalizationRequest
+
+@JsonDeserialize(`as` = LocationLocalizationRequestQueryImpl::class)
+interface LocationLocalizationRequestQuery {
+ val lat: Double
+ val lon: Double
+}
+
+data class LocationLocalizationRequestQueryImpl(
+ override val lat: Double,
+ override val lon: Double,
+) : LocationLocalizationRequestQuery
+
+@JsonDeserialize(`as` = LocationLocalizationRequestOptionsImpl::class)
+interface LocationLocalizationRequestOptions : LocationRequestOptions {
+ val radius: Int?
+ val acceptNearest: Boolean?
+}
+
+data class LocationLocalizationRequestOptionsImpl(
+ override val radius: Int?,
+ override val acceptNearest: Boolean?,
+ override val dataScope: LocationRequestOptionsDataScope?,
+ override val dataSource: List?,
+ override val resultsLimit: Int?,
+ override val zipFormat: Boolean?,
+ override val cityFormat: LocationRequestOptionsCityFormat?
+) : LocationLocalizationRequestOptions
+/**
+ * Additional information about your user (from whom you've obtained the data sent in query) in
+ * order to specify the results in response. Used mainly in web forms when you need more relevant
+ * search/autocomplete results.
+ */
+@JsonDeserialize(`as` = LocationLocalizationRequestClientImpl::class)
+interface LocationLocalizationRequestClient {
+ val ip: String?
+ val country: String?
+}
+
+data class LocationLocalizationRequestClientImpl(
+ override val ip: String?,
+ override val country: String?,
+) : LocationLocalizationRequestClient
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationLocalizationResults.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationLocalizationResults.kt
new file mode 100644
index 0000000..ec8fa0d
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationLocalizationResults.kt
@@ -0,0 +1,31 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = LocationLocalizationResultsImpl::class)
+interface LocationLocalizationResults {
+ val resultsCount: Double
+ val results: List
+}
+
+data class LocationLocalizationResultsImpl(
+ override val resultsCount: Double,
+ override val results: List,
+) : LocationLocalizationResults
+
+@JsonDeserialize(`as` = LocationLocalizationResultsResultsImpl::class)
+interface LocationLocalizationResultsResults {
+ val data: LocationData?
+}
+
+data class LocationLocalizationResultsResultsImpl(
+ override val data: LocationData?,
+) : LocationLocalizationResultsResults
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationNumber.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationNumber.kt
new file mode 100644
index 0000000..c281d04
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationNumber.kt
@@ -0,0 +1,32 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = LocationNumberImpl::class)
+interface LocationNumber {
+ val part1: String?
+ val part1Number: String?
+ val part1Letter: String?
+ val part2: String?
+ val part2Number: String?
+ val part2Letter: String?
+ val full: String?
+}
+
+data class LocationNumberImpl(
+ override val part1: String?,
+ override val part1Number: String?,
+ override val part1Letter: String?,
+ override val part2: String?,
+ override val part2Number: String?,
+ override val part2Letter: String?,
+ override val full: String?,
+) : LocationNumber
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationOficial.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationOficial.kt
new file mode 100644
index 0000000..b80e25d
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationOficial.kt
@@ -0,0 +1,42 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Address data from the official registry. Not validated by Foxentry. */
+@JsonDeserialize(`as` = LocationOficialImpl::class)
+interface LocationOficial {
+ val data: LocationOficialData?
+}
+
+data class LocationOficialImpl(
+ override val data: LocationOficialData?,
+) : LocationOficial
+
+@JsonDeserialize(`as` = LocationOficialDataImpl::class)
+interface LocationOficialData {
+ val country: String?
+ val street: String?
+ val number: LocationNumber?
+ val streetWithNumber: String?
+ val city: String?
+ val zip: String?
+ val full: String?
+}
+
+data class LocationOficialDataImpl(
+ override val country: String?,
+ override val street: String?,
+ override val number: LocationNumber?,
+ override val streetWithNumber: String?,
+ override val city: String?,
+ override val zip: String?,
+ override val full: String?,
+) : LocationOficialData
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationRequestOptions.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationRequestOptions.kt
new file mode 100644
index 0000000..8c65bd5
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationRequestOptions.kt
@@ -0,0 +1,44 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Query options. */
+@JsonDeserialize(`as` = LocationRequestOptionsImpl::class)
+interface LocationRequestOptions {
+ val dataScope: LocationRequestOptionsDataScope?
+ val dataSource: List?
+ val resultsLimit: Int?
+ val zipFormat: Boolean?
+ val cityFormat: LocationRequestOptionsCityFormat?
+}
+
+data class LocationRequestOptionsImpl(
+ override val dataScope: LocationRequestOptionsDataScope?,
+ override val dataSource: List?,
+ override val resultsLimit: Int?,
+ override val zipFormat: Boolean?,
+ override val cityFormat: LocationRequestOptionsCityFormat?,
+) : LocationRequestOptions
+/** Data scope of returned data. */
+enum class LocationRequestOptionsDataScope(@JsonValue val value: String) {
+ BASIC("basic"),
+ FULL("full"),
+}
+/**
+ * This option determines the format in which the city is returned. Minimal = Praha,
+ * basic = Praha 8, extended = Praha 8 - Karlín.
+ */
+enum class LocationRequestOptionsCityFormat(@JsonValue val value: String) {
+ MINIMAL("minimal"),
+ BASIC("basic"),
+ EXTENDED("extended"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearch.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearch.kt
new file mode 100644
index 0000000..cfc0c22
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearch.kt
@@ -0,0 +1,100 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonProperty
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Successful response */
+@JsonDeserialize(`as` = LocationSearchImpl::class)
+interface LocationSearch {
+ val status: Int
+ val request: LocationSearchRequestModel
+ val response: LocationSearchResponse?
+ val errors: List?
+}
+
+data class LocationSearchImpl(
+ override val status: Int,
+ override val request: LocationSearchRequestModel,
+ override val response: LocationSearchResponse?,
+ override val errors: List?,
+) : LocationSearch
+
+@JsonDeserialize(`as` = LocationSearchRequestModelImpl::class)
+interface LocationSearchRequestModel : GlobalRequest {
+ val query: LocationSearchRequestModelQuery?
+ val options: LocationSearchRequestOptions?
+ val client: ClientRequest?
+}
+
+data class LocationSearchRequestModelImpl(
+ override val query: LocationSearchRequestModelQuery?,
+ override val options: LocationSearchRequestOptions?,
+ override val client: ClientRequest?,
+ override val endpoint: String,
+ override val code: String,
+ override val customId: String?
+) : LocationSearchRequestModel
+
+@JsonDeserialize(`as` = LocationSearchRequestModelQueryImpl::class)
+interface LocationSearchRequestModelQuery {
+ val type: LocationSearchRequestModelQueryType?
+ val value: String?
+ val filter: LocationSearchRequestModelQueryFilter?
+}
+
+data class LocationSearchRequestModelQueryImpl(
+ override val type: LocationSearchRequestModelQueryType?,
+ override val value: String?,
+ override val filter: LocationSearchRequestModelQueryFilter?,
+) : LocationSearchRequestModelQuery
+/** Type of search. */
+enum class LocationSearchRequestModelQueryType(@JsonValue val value: String) {
+ STREET("street"),
+ STREET_WITH_NUMBER("streetWithNumber"),
+ NUMBER_FULL("number.full"),
+ NUMBER_PART1("number.part1"),
+ NUMBER_PART1NUMBER("number.part1Number"),
+ NUMBER_PART2("number.part2"),
+ NUMBER_PART2NUMBER("number.part2Number"),
+ CITY("city"),
+ ZIP("zip"),
+ FULL("full"),
+}
+/**
+ * Additional filter in order to specify the search results. You can for example set as a filter
+ * city of Prague, so the the search engine would look for the addresses only in Prague. Pay
+ * attention to the options, which determines how the filter should behave.
+ */
+@JsonDeserialize(`as` = LocationSearchRequestModelQueryFilterImpl::class)
+interface LocationSearchRequestModelQueryFilter {
+ val street: String?
+ val streetWithNumber: String?
+ val numberFull: String?
+ val numberPart1: String?
+ val numberPart2: String?
+ val city: String?
+ val zip: String?
+ val country: String?
+}
+
+data class LocationSearchRequestModelQueryFilterImpl(
+ override val street: String?,
+ override val streetWithNumber: String?,
+ @JsonProperty("number.full") override val numberFull: String?,
+ @JsonProperty("number.part1") override val numberPart1: String?,
+ @JsonProperty("number.part2") override val numberPart2: String?,
+ override val city: String?,
+ override val zip: String?,
+ override val country: String?,
+) : LocationSearchRequestModelQueryFilter
+
+typealias LocationSearchErrors = Any
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearchRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearchRequest.kt
new file mode 100644
index 0000000..b06d2fb
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearchRequest.kt
@@ -0,0 +1,79 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonProperty
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = LocationSearchRequestImpl::class)
+interface LocationSearchRequest {
+ val customId: String?
+ val query: LocationSearchRequestQuery
+ val options: LocationSearchRequestOptions?
+ val client: ClientRequest?
+}
+
+data class LocationSearchRequestImpl(
+ override val customId: String?,
+ override val query: LocationSearchRequestQuery,
+ override val options: LocationSearchRequestOptions?,
+ override val client: ClientRequest?,
+) : LocationSearchRequest
+
+@JsonDeserialize(`as` = LocationSearchRequestQueryImpl::class)
+interface LocationSearchRequestQuery {
+ val type: LocationSearchRequestQueryType
+ val value: String
+ val filter: LocationSearchRequestQueryFilter?
+}
+
+data class LocationSearchRequestQueryImpl(
+ override val type: LocationSearchRequestQueryType,
+ override val value: String,
+ override val filter: LocationSearchRequestQueryFilter?,
+) : LocationSearchRequestQuery
+/** Type of search. */
+enum class LocationSearchRequestQueryType(@JsonValue val value: String) {
+ STREET("street"),
+ STREET_WITH_NUMBER("streetWithNumber"),
+ NUMBER_FULL("number.full"),
+ NUMBER_PART1("number.part1"),
+ NUMBER_PART2("number.part2"),
+ CITY("city"),
+ ZIP("zip"),
+ FULL("full"),
+}
+/**
+ * Additional filter in order to specify the search results. You can for example set as a filter
+ * city of Prague, so the the search engine would look for the addresses only in Prague. Pay
+ * attention to the options, which determines how the filter should behave.
+ */
+@JsonDeserialize(`as` = LocationSearchRequestQueryFilterImpl::class)
+interface LocationSearchRequestQueryFilter {
+ val street: String?
+ val streetWithNumber: String?
+ val numberFull: String?
+ val numberPart1: String?
+ val numberPart2: String?
+ val city: String?
+ val zip: String?
+ val country: String?
+}
+
+data class LocationSearchRequestQueryFilterImpl(
+ override val street: String?,
+ override val streetWithNumber: String?,
+ @JsonProperty("number.full") override val numberFull: String?,
+ @JsonProperty("number.part1") override val numberPart1: String?,
+ @JsonProperty("number.part2") override val numberPart2: String?,
+ override val city: String?,
+ override val zip: String?,
+ override val country: String?,
+) : LocationSearchRequestQueryFilter
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearchRequestOptions.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearchRequestOptions.kt
new file mode 100644
index 0000000..0852722
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearchRequestOptions.kt
@@ -0,0 +1,76 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Query options. */
+@JsonDeserialize(`as` = LocationSearchRequestOptionsImpl::class)
+interface LocationSearchRequestOptions {
+ val dataScope: LocationSearchRequestOptionsDataScope?
+ val dataSource: List?
+ val resultsLimit: Int?
+ val allowPartialResults: Boolean?
+ val filterMode: LocationSearchRequestOptionsFilterMode?
+ val filterAcceptFormat: Boolean?
+ val filterAcceptAlternatives: Boolean?
+ val filterExactMatch: Boolean?
+ val zipFormat: Boolean?
+ val countryFormat: LocationSearchRequestOptionsCountryFormat?
+ val cityFormat: LocationSearchRequestOptionsCityFormat?
+}
+
+data class LocationSearchRequestOptionsImpl(
+ override val dataScope: LocationSearchRequestOptionsDataScope?,
+ override val dataSource: List?,
+ override val resultsLimit: Int?,
+ override val allowPartialResults: Boolean?,
+ override val filterMode: LocationSearchRequestOptionsFilterMode?,
+ override val filterAcceptFormat: Boolean?,
+ override val filterAcceptAlternatives: Boolean?,
+ override val filterExactMatch: Boolean?,
+ override val zipFormat: Boolean?,
+ override val countryFormat: LocationSearchRequestOptionsCountryFormat?,
+ override val cityFormat: LocationSearchRequestOptionsCityFormat?,
+) : LocationSearchRequestOptions
+/** Data scope of returned data. */
+enum class LocationSearchRequestOptionsDataScope(@JsonValue val value: String) {
+ BASIC("basic"),
+ FULL("full"),
+}
+/**
+ * Prefer = prefer results matching the filter parameters, limit = limit to results
+ * matching the filter parameters.
+ */
+enum class LocationSearchRequestOptionsFilterMode(@JsonValue val value: String?) {
+ LIMIT("limit"),
+ PREFER("prefer"),
+}
+/**
+ * This option determines the format in which the country is returned. Choices include local and
+ * international variants with their shortened counterparts as well as ISO 3166 alpha codes.
+ */
+enum class LocationSearchRequestOptionsCountryFormat(@JsonValue val value: String) {
+ ALPHA2("alpha2"),
+ ALPHA3("alpha3"),
+ LOCAL("local"),
+ LOCAL_SHORTENED("localShortened"),
+ INTERNATIONAL("international"),
+ INTERNATIONAL_SHORTENED("internationalShortened"),
+}
+/**
+ * This option determines the format in which the city is returned. Minimal = Praha,
+ * basic = Praha 8, extended = Praha 8 - Karlín.
+ */
+enum class LocationSearchRequestOptionsCityFormat(@JsonValue val value: String) {
+ MINIMAL("minimal"),
+ BASIC("basic"),
+ EXTENDED("extended"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearchResponse.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearchResponse.kt
new file mode 100644
index 0000000..ef40812
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearchResponse.kt
@@ -0,0 +1,22 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = LocationSearchResponseImpl::class)
+interface LocationSearchResponse {
+ val resultsCount: Int
+ val results: List
+}
+
+data class LocationSearchResponseImpl(
+ override val resultsCount: Int,
+ override val results: List,
+) : LocationSearchResponse
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearchResults.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearchResults.kt
new file mode 100644
index 0000000..f0ed1ea
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationSearchResults.kt
@@ -0,0 +1,20 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = LocationSearchResultsImpl::class)
+interface LocationSearchResults {
+ val data: LocationData
+}
+
+data class LocationSearchResultsImpl(
+ override val data: LocationData,
+) : LocationSearchResults
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationValidation.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationValidation.kt
new file mode 100644
index 0000000..7569c48
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationValidation.kt
@@ -0,0 +1,118 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonProperty
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Successful response */
+@JsonDeserialize(`as` = LocationValidationImpl::class)
+interface LocationValidation {
+ val status: Int
+ val request: LocationValidationRequestModel
+ val response: LocationValidationResponse
+ val errors: List
+}
+
+data class LocationValidationImpl(
+ override val status: Int,
+ override val request: LocationValidationRequestModel,
+ override val response: LocationValidationResponse,
+ override val errors: List,
+) : LocationValidation
+
+@JsonDeserialize(`as` = LocationValidationRequestModelImpl::class)
+interface LocationValidationRequestModel : GlobalRequest {
+ val query: LocationValidationRequestModelQuery?
+ val options: LocationValidationRequestModelOptions?
+ val client: ClientRequest?
+}
+
+data class LocationValidationRequestModelImpl(
+ override val query: LocationValidationRequestModelQuery?,
+ override val options: LocationValidationRequestModelOptions?,
+ override val client: ClientRequest?,
+ override val endpoint: String,
+ override val code: String,
+ override val customId: String?
+) : LocationValidationRequestModel
+
+@JsonDeserialize(`as` = LocationValidationRequestModelQueryImpl::class)
+interface LocationValidationRequestModelQuery {
+ val street: String?
+ val streetWithNumber: String?
+ val numberFull: String?
+ val numberPart1: String?
+ val numberPart1Number: String?
+ val numberPart1Letter: String?
+ val numberPart2: String?
+ val numberPart2Number: String?
+ val numberPart2Letter: String?
+ val city: String?
+ val zip: String?
+ val full: String?
+ val country: String?
+}
+
+data class LocationValidationRequestModelQueryImpl(
+ override val street: String?,
+ override val streetWithNumber: String?,
+ @JsonProperty("number.full") override val numberFull: String?,
+ @JsonProperty("number.part1") override val numberPart1: String?,
+ @JsonProperty("number.part1Number") override val numberPart1Number: String?,
+ @JsonProperty("number.part1Letter") override val numberPart1Letter: String?,
+ @JsonProperty("number.part2") override val numberPart2: String?,
+ @JsonProperty("number.part2Number") override val numberPart2Number: String?,
+ @JsonProperty("number.part2Letter") override val numberPart2Letter: String?,
+ override val city: String?,
+ override val zip: String?,
+ override val full: String?,
+ override val country: String?,
+) : LocationValidationRequestModelQuery
+
+@JsonDeserialize(`as` = LocationValidationRequestModelOptionsImpl::class)
+interface LocationValidationRequestModelOptions : LocationRequestOptions {
+ val acceptPostOfficeAsCity: Boolean?
+ val countryFormat: LocationValidationRequestModelOptionsCountryFormat?
+ val filterMode: LocationValidationRequestModelOptionsFilterMode?
+}
+
+data class LocationValidationRequestModelOptionsImpl(
+ override val acceptPostOfficeAsCity: Boolean?,
+ override val countryFormat: LocationValidationRequestModelOptionsCountryFormat?,
+ override val filterMode: LocationValidationRequestModelOptionsFilterMode?,
+ override val dataScope: LocationRequestOptionsDataScope?,
+ override val dataSource: List?,
+ override val resultsLimit: Int?,
+ override val zipFormat: Boolean?,
+ override val cityFormat: LocationRequestOptionsCityFormat?
+) : LocationValidationRequestModelOptions
+/**
+ * This option determines the format in which the country is returned. Choices include local and
+ * international variants with their shortened counterparts as well as ISO 3166 alpha codes.
+ */
+enum class LocationValidationRequestModelOptionsCountryFormat(@JsonValue val value: String) {
+ ALPHA2("alpha2"),
+ ALPHA3("alpha3"),
+ LOCAL("local"),
+ LOCAL_SHORTENED("localShortened"),
+ INTERNATIONAL("international"),
+ INTERNATIONAL_SHORTENED("internationalShortened"),
+}
+/**
+ * Prefer = prefer results matching the filter parameters, limit = limit to results
+ * matching the filter parameters.
+ */
+enum class LocationValidationRequestModelOptionsFilterMode(@JsonValue val value: String?) {
+ LIMIT("limit"),
+ PREFER("prefer"),
+}
+
+typealias LocationValidationErrors = Any
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationValidationRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationValidationRequest.kt
new file mode 100644
index 0000000..fc1761f
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationValidationRequest.kt
@@ -0,0 +1,74 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonProperty
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = LocationValidationRequestImpl::class)
+interface LocationValidationRequest {
+ val customId: String?
+ val query: LocationValidationRequestQuery
+ val options: LocationValidationRequestOptions?
+ val client: ClientRequest?
+}
+
+data class LocationValidationRequestImpl(
+ override val customId: String?,
+ override val query: LocationValidationRequestQuery,
+ override val options: LocationValidationRequestOptions?,
+ override val client: ClientRequest?,
+) : LocationValidationRequest
+
+@JsonDeserialize(`as` = LocationValidationRequestQueryImpl::class)
+interface LocationValidationRequestQuery {
+ val street: String?
+ val streetWithNumber: String?
+ val numberFull: String?
+ val numberPart1: String?
+ val numberPart1Number: String?
+ val numberPart1Letter: String?
+ val numberPart2: String?
+ val numberPart2Number: String?
+ val numberPart2Letter: String?
+ val city: String?
+ val zip: String?
+ val full: String?
+ val country: String?
+}
+
+data class LocationValidationRequestQueryImpl(
+ override val street: String?,
+ override val streetWithNumber: String?,
+ @JsonProperty("number.full") override val numberFull: String?,
+ @JsonProperty("number.part1") override val numberPart1: String?,
+ @JsonProperty("number.part1Number") override val numberPart1Number: String?,
+ @JsonProperty("number.part1Letter") override val numberPart1Letter: String?,
+ @JsonProperty("number.part2") override val numberPart2: String?,
+ @JsonProperty("number.part2Number") override val numberPart2Number: String?,
+ @JsonProperty("number.part2Letter") override val numberPart2Letter: String?,
+ override val city: String?,
+ override val zip: String?,
+ override val full: String?,
+ override val country: String?,
+) : LocationValidationRequestQuery
+
+@JsonDeserialize(`as` = LocationValidationRequestOptionsImpl::class)
+interface LocationValidationRequestOptions : LocationRequestOptions {
+ val acceptPostOfficeAsCity: Boolean?
+}
+
+data class LocationValidationRequestOptionsImpl(
+ override val acceptPostOfficeAsCity: Boolean?,
+ override val dataScope: LocationRequestOptionsDataScope?,
+ override val dataSource: List?,
+ override val resultsLimit: Int?,
+ override val zipFormat: Boolean?,
+ override val cityFormat: LocationRequestOptionsCityFormat?
+) : LocationValidationRequestOptions
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationValidationResponse.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationValidationResponse.kt
new file mode 100644
index 0000000..24eb3d5
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/LocationValidationResponse.kt
@@ -0,0 +1,427 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonIgnore
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.core.JsonParser
+import com.fasterxml.jackson.databind.DeserializationContext
+import com.fasterxml.jackson.databind.JsonNode
+import com.fasterxml.jackson.databind.ObjectMapper
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.fasterxml.jackson.databind.deser.std.StdDeserializer
+import com.fasterxml.jackson.module.kotlin.registerKotlinModule
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = LocationValidationResponseImpl::class)
+interface LocationValidationResponse {
+ val result: LocationValidationResponseResult
+ val resultCorrected: LocationValidationResponseResultCorrected?
+ val suggestions: List?
+}
+
+data class LocationValidationResponseImpl(
+ override val result: LocationValidationResponseResult,
+ override val resultCorrected: LocationValidationResponseResultCorrected?,
+ override val suggestions: List?,
+) : LocationValidationResponse
+/** Evaluation of the sent query. */
+@JsonDeserialize(`as` = LocationValidationResponseResultImpl::class)
+interface LocationValidationResponseResult {
+ val isValid: Boolean?
+ val proposal: LocationValidationResponseResultProposal?
+ val data: LocationData
+ val errors: List?
+}
+
+data class LocationValidationResponseResultImpl(
+ override val isValid: Boolean?,
+ override val proposal: LocationValidationResponseResultProposal?,
+ override val data: LocationData,
+ override val errors: List?,
+) : LocationValidationResponseResult
+/**
+ * Proposed solution by Foxentry how you should process the response in your form or application.
+ */
+enum class LocationValidationResponseResultProposal(@JsonValue val value: String?) {
+ VALID("valid"),
+ VALID_WITH_SUGGESTION("validWithSuggestion"),
+ INVALID("invalid"),
+ INVALID_WITH_CORRECTION("invalidWithCorrection"),
+ INVALID_WITH_PARTIAL_CORRECTION("invalidWithPartialCorrection"),
+ INVALID_WITH_SUGGESTION("invalidWithSuggestion"),
+ INVALID_WITH_CORRECTION_WITH_SUGGESTION("invalidWithCorrectionWithSuggestion"),
+ NULL(null),
+}
+
+class LocationValidationResponseResultErrorsDeserializer :
+ StdDeserializer(
+ LocationValidationResponseResultErrors::class.java) {
+ override fun deserialize(
+ p: JsonParser?,
+ ctx: DeserializationContext?
+ ): LocationValidationResponseResultErrors {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return LocationValidationResponseResultErrors.ErrorSyntaxGlobal(
+ mapper.convertValue(node, ErrorSyntaxGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseResultErrors.ErrorSyntaxLocation(
+ mapper.convertValue(node, ErrorSyntaxLocation::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseResultErrors.ErrorFormatGlobal(
+ mapper.convertValue(node, ErrorFormatGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseResultErrors.ErrorValueGlobal(
+ mapper.convertValue(node, ErrorValueGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = LocationValidationResponseResultErrorsDeserializer::class)
+sealed interface LocationValidationResponseResultErrors {
+ data class ErrorSyntaxGlobal(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorSyntaxGlobal
+ ) :
+ com.foxentry.foxentrysdk.models.ErrorSyntaxGlobal by _0,
+ LocationValidationResponseResultErrors
+
+ data class ErrorSyntaxLocation(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorSyntaxLocation
+ ) :
+ com.foxentry.foxentrysdk.models.ErrorSyntaxLocation by _0,
+ LocationValidationResponseResultErrors
+
+ data class ErrorFormatGlobal(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorFormatGlobal
+ ) :
+ com.foxentry.foxentrysdk.models.ErrorFormatGlobal by _0,
+ LocationValidationResponseResultErrors
+
+ data class ErrorValueGlobal(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorValueGlobal
+ ) :
+ com.foxentry.foxentrysdk.models.ErrorValueGlobal by _0,
+ LocationValidationResponseResultErrors
+}
+/** Corrected version of the sent query. */
+@JsonDeserialize(`as` = LocationValidationResponseResultCorrectedImpl::class)
+interface LocationValidationResponseResultCorrected {
+ val isValid: Boolean
+ val data: LocationData
+ val errors: List?
+ val fixes: List?
+}
+
+data class LocationValidationResponseResultCorrectedImpl(
+ override val isValid: Boolean,
+ override val data: LocationData,
+ override val errors: List?,
+ override val fixes: List?,
+) : LocationValidationResponseResultCorrected
+
+class LocationValidationResponseResultCorrectedErrorsDeserializer :
+ StdDeserializer(
+ LocationValidationResponseResultCorrectedErrors::class.java) {
+ override fun deserialize(
+ p: JsonParser?,
+ ctx: DeserializationContext?
+ ): LocationValidationResponseResultCorrectedErrors {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return LocationValidationResponseResultCorrectedErrors.ErrorSyntaxGlobal(
+ mapper.convertValue(node, ErrorSyntaxGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseResultCorrectedErrors.ErrorSyntaxLocation(
+ mapper.convertValue(node, ErrorSyntaxLocation::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseResultCorrectedErrors.ErrorFormatGlobal(
+ mapper.convertValue(node, ErrorFormatGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseResultCorrectedErrors.ErrorValueGlobal(
+ mapper.convertValue(node, ErrorValueGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = LocationValidationResponseResultCorrectedErrorsDeserializer::class)
+sealed interface LocationValidationResponseResultCorrectedErrors {
+ data class ErrorSyntaxGlobal(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorSyntaxGlobal
+ ) :
+ com.foxentry.foxentrysdk.models.ErrorSyntaxGlobal by _0,
+ LocationValidationResponseResultCorrectedErrors
+
+ data class ErrorSyntaxLocation(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorSyntaxLocation
+ ) :
+ com.foxentry.foxentrysdk.models.ErrorSyntaxLocation by _0,
+ LocationValidationResponseResultCorrectedErrors
+
+ data class ErrorFormatGlobal(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorFormatGlobal
+ ) :
+ com.foxentry.foxentrysdk.models.ErrorFormatGlobal by _0,
+ LocationValidationResponseResultCorrectedErrors
+
+ data class ErrorValueGlobal(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorValueGlobal
+ ) :
+ com.foxentry.foxentrysdk.models.ErrorValueGlobal by _0,
+ LocationValidationResponseResultCorrectedErrors
+}
+
+class LocationValidationResponseResultCorrectedFixesDeserializer :
+ StdDeserializer(
+ LocationValidationResponseResultCorrectedFixes::class.java) {
+ override fun deserialize(
+ p: JsonParser?,
+ ctx: DeserializationContext?
+ ): LocationValidationResponseResultCorrectedFixes {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return LocationValidationResponseResultCorrectedFixes.FixFormatGlobal(
+ mapper.convertValue(node, FixFormatGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseResultCorrectedFixes.FixSyntaxGlobal(
+ mapper.convertValue(node, FixSyntaxGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseResultCorrectedFixes.FixSyntaxLocation(
+ mapper.convertValue(node, FixSyntaxLocation::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseResultCorrectedFixes.FixValueGlobal(
+ mapper.convertValue(node, FixValueGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseResultCorrectedFixes.FixValueLocation(
+ mapper.convertValue(node, FixValueLocation::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = LocationValidationResponseResultCorrectedFixesDeserializer::class)
+sealed interface LocationValidationResponseResultCorrectedFixes {
+ data class FixFormatGlobal(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixFormatGlobal) :
+ com.foxentry.foxentrysdk.models.FixFormatGlobal by _0,
+ LocationValidationResponseResultCorrectedFixes
+
+ data class FixSyntaxGlobal(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixSyntaxGlobal) :
+ com.foxentry.foxentrysdk.models.FixSyntaxGlobal by _0,
+ LocationValidationResponseResultCorrectedFixes
+
+ data class FixSyntaxLocation(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixSyntaxLocation
+ ) :
+ com.foxentry.foxentrysdk.models.FixSyntaxLocation by _0,
+ LocationValidationResponseResultCorrectedFixes
+
+ data class FixValueGlobal(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixValueGlobal) :
+ com.foxentry.foxentrysdk.models.FixValueGlobal by _0,
+ LocationValidationResponseResultCorrectedFixes
+
+ data class FixValueLocation(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixValueLocation
+ ) :
+ com.foxentry.foxentrysdk.models.FixValueLocation by _0,
+ LocationValidationResponseResultCorrectedFixes
+}
+
+@JsonDeserialize(`as` = LocationValidationResponseSuggestionsImpl::class)
+interface LocationValidationResponseSuggestions {
+ val isValid: Boolean?
+ val data: LocationData
+ val fixes: List?
+ val errors: List?
+}
+
+data class LocationValidationResponseSuggestionsImpl(
+ override val isValid: Boolean?,
+ override val data: LocationData,
+ override val fixes: List?,
+ override val errors: List?,
+) : LocationValidationResponseSuggestions
+
+class LocationValidationResponseSuggestionsFixesDeserializer :
+ StdDeserializer(
+ LocationValidationResponseSuggestionsFixes::class.java) {
+ override fun deserialize(
+ p: JsonParser?,
+ ctx: DeserializationContext?
+ ): LocationValidationResponseSuggestionsFixes {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return LocationValidationResponseSuggestionsFixes.FixFormatGlobal(
+ mapper.convertValue(node, FixFormatGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseSuggestionsFixes.FixSyntaxGlobal(
+ mapper.convertValue(node, FixSyntaxGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseSuggestionsFixes.FixSyntaxLocation(
+ mapper.convertValue(node, FixSyntaxLocation::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseSuggestionsFixes.FixValueGlobal(
+ mapper.convertValue(node, FixValueGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseSuggestionsFixes.FixValueLocation(
+ mapper.convertValue(node, FixValueLocation::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = LocationValidationResponseSuggestionsFixesDeserializer::class)
+sealed interface LocationValidationResponseSuggestionsFixes {
+ data class FixFormatGlobal(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixFormatGlobal) :
+ com.foxentry.foxentrysdk.models.FixFormatGlobal by _0,
+ LocationValidationResponseSuggestionsFixes
+
+ data class FixSyntaxGlobal(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixSyntaxGlobal) :
+ com.foxentry.foxentrysdk.models.FixSyntaxGlobal by _0,
+ LocationValidationResponseSuggestionsFixes
+
+ data class FixSyntaxLocation(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixSyntaxLocation
+ ) :
+ com.foxentry.foxentrysdk.models.FixSyntaxLocation by _0,
+ LocationValidationResponseSuggestionsFixes
+
+ data class FixValueGlobal(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixValueGlobal) :
+ com.foxentry.foxentrysdk.models.FixValueGlobal by _0,
+ LocationValidationResponseSuggestionsFixes
+
+ data class FixValueLocation(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixValueLocation
+ ) :
+ com.foxentry.foxentrysdk.models.FixValueLocation by _0,
+ LocationValidationResponseSuggestionsFixes
+}
+
+class LocationValidationResponseSuggestionsErrorsDeserializer :
+ StdDeserializer(
+ LocationValidationResponseSuggestionsErrors::class.java) {
+ override fun deserialize(
+ p: JsonParser?,
+ ctx: DeserializationContext?
+ ): LocationValidationResponseSuggestionsErrors {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return LocationValidationResponseSuggestionsErrors.ErrorSyntaxGlobal(
+ mapper.convertValue(node, ErrorSyntaxGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseSuggestionsErrors.ErrorSyntaxLocation(
+ mapper.convertValue(node, ErrorSyntaxLocation::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseSuggestionsErrors.ErrorFormatGlobal(
+ mapper.convertValue(node, ErrorFormatGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return LocationValidationResponseSuggestionsErrors.ErrorValueGlobal(
+ mapper.convertValue(node, ErrorValueGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = LocationValidationResponseSuggestionsErrorsDeserializer::class)
+sealed interface LocationValidationResponseSuggestionsErrors {
+ data class ErrorSyntaxGlobal(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorSyntaxGlobal
+ ) :
+ com.foxentry.foxentrysdk.models.ErrorSyntaxGlobal by _0,
+ LocationValidationResponseSuggestionsErrors
+
+ data class ErrorSyntaxLocation(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorSyntaxLocation
+ ) :
+ com.foxentry.foxentrysdk.models.ErrorSyntaxLocation by _0,
+ LocationValidationResponseSuggestionsErrors
+
+ data class ErrorFormatGlobal(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorFormatGlobal
+ ) :
+ com.foxentry.foxentrysdk.models.ErrorFormatGlobal by _0,
+ LocationValidationResponseSuggestionsErrors
+
+ data class ErrorValueGlobal(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorValueGlobal
+ ) :
+ com.foxentry.foxentrysdk.models.ErrorValueGlobal by _0,
+ LocationValidationResponseSuggestionsErrors
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidation.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidation.kt
new file mode 100644
index 0000000..ca21680
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidation.kt
@@ -0,0 +1,29 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Successful response */
+@JsonDeserialize(`as` = NameValidationImpl::class)
+interface NameValidation {
+ val status: Int
+ val request: NameValidationResponseRequest
+ val response: NameValidationResults
+ val errors: List
+}
+
+data class NameValidationImpl(
+ override val status: Int,
+ override val request: NameValidationResponseRequest,
+ override val response: NameValidationResults,
+ override val errors: List,
+) : NameValidation
+
+typealias NameValidationErrors = Any
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationRequest.kt
new file mode 100644
index 0000000..3898d2b
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationRequest.kt
@@ -0,0 +1,81 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonTypeInfo
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = NameValidationRequestImpl::class)
+interface NameValidationRequest {
+ val customId: String?
+ val query: NameValidationRequestQuery
+ val options: NameValidationRequestOptions?
+ val client: ClientRequest?
+}
+
+data class NameValidationRequestImpl(
+ override val customId: String?,
+ override val query: NameValidationRequestQuery,
+ override val options: NameValidationRequestOptions?,
+ override val client: ClientRequest?,
+) : NameValidationRequest
+
+@JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION)
+sealed interface NameValidationRequestQuery {
+ data class Obj0(
+ val name: String,
+ val surname: String,
+ ) : NameValidationRequestQuery
+
+ data class Obj1(
+ val nameSurname: String,
+ ) : NameValidationRequestQuery
+}
+/** Query options. */
+@JsonDeserialize(`as` = NameValidationRequestOptionsImpl::class)
+interface NameValidationRequestOptions {
+ val dataScope: NameValidationRequestOptionsDataScope?
+ val dataSource: List?
+ val acceptDegrees: Boolean?
+ val acceptContext: Boolean?
+ val validationDepth: NameValidationRequestOptionsValidationDepth?
+ val smartMode: Boolean?
+}
+
+data class NameValidationRequestOptionsImpl(
+ override val dataScope: NameValidationRequestOptionsDataScope?,
+ override val dataSource: List?,
+ override val acceptDegrees: Boolean?,
+ override val acceptContext: Boolean?,
+ override val validationDepth: NameValidationRequestOptionsValidationDepth?,
+ override val smartMode: Boolean?,
+) : NameValidationRequestOptions
+/**
+ * Data scope of returned data. In full datascope information like gender, vocative
+ * and date of the name days is returned.
+ */
+enum class NameValidationRequestOptionsDataScope(@JsonValue val value: String) {
+ BASIC("basic"),
+ FULL("full"),
+}
+/**
+ * Specifies the depth of name validation. In other words how strict the validator should behave.
+ * Minimal = all the names are considered valid as long as there are no forbidden characters
+ * used or we are 100% sure the name is invalid. Usually the only thing corrected is format.
+ * Moderate = something in between the minimal and strict validation. There are more
+ * instances of corrections like typos etc. Strict = the most strict validation depth.
+ * Missing names in our database are marked as invalid, the scoring for corrections and suggestions
+ * is tweaked.
+ */
+enum class NameValidationRequestOptionsValidationDepth(@JsonValue val value: String) {
+ MINIMAL("minimal"),
+ MODERATE("moderate"),
+ STRICT("strict"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationResponseRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationResponseRequest.kt
new file mode 100644
index 0000000..de6acc6
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationResponseRequest.kt
@@ -0,0 +1,108 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = NameValidationResponseRequestImpl::class)
+interface NameValidationResponseRequest {
+ val endpoint: String
+ val code: String
+ val customId: String?
+ val query: NameValidationResponseRequestQuery?
+ val options: NameValidationResponseRequestOptions?
+ val client: NameValidationResponseRequestClient?
+}
+
+data class NameValidationResponseRequestImpl(
+ override val endpoint: String,
+ override val code: String,
+ override val customId: String?,
+ override val query: NameValidationResponseRequestQuery?,
+ override val options: NameValidationResponseRequestOptions?,
+ override val client: NameValidationResponseRequestClient?,
+) : NameValidationResponseRequest
+
+@JsonDeserialize(`as` = NameValidationResponseRequestQueryImpl::class)
+interface NameValidationResponseRequestQuery {
+ val name: String?
+ val surname: String?
+ val nameSurname: String?
+}
+
+data class NameValidationResponseRequestQueryImpl(
+ override val name: String?,
+ override val surname: String?,
+ override val nameSurname: String?,
+) : NameValidationResponseRequestQuery
+/** Query options. */
+@JsonDeserialize(`as` = NameValidationResponseRequestOptionsImpl::class)
+interface NameValidationResponseRequestOptions {
+ val dataScope: NameValidationResponseRequestOptionsDataScope?
+ val dataSource: List?
+ val acceptDegrees: Boolean?
+ val acceptContext: Boolean?
+ val validationDepth: NameValidationResponseRequestOptionsValidationDepth?
+ val smartMode: Boolean?
+}
+
+data class NameValidationResponseRequestOptionsImpl(
+ override val dataScope: NameValidationResponseRequestOptionsDataScope?,
+ override val dataSource: List?,
+ override val acceptDegrees: Boolean?,
+ override val acceptContext: Boolean?,
+ override val validationDepth: NameValidationResponseRequestOptionsValidationDepth?,
+ override val smartMode: Boolean?,
+) : NameValidationResponseRequestOptions
+/**
+ * Data scope of returned data. In full datascope information like gender, vocative
+ * and date of the name days is returned.
+ */
+enum class NameValidationResponseRequestOptionsDataScope(@JsonValue val value: String) {
+ BASIC("basic"),
+ FULL("full"),
+}
+/**
+ * Specifies the depth of name validation. In other words how strict the validator should behave.
+ * Minimal = all the names are considered valid as long as there are no forbidden characters
+ * used or we are 100% sure the name is invalid. Usually the only thing corrected is format.
+ * Moderate = something in between the minimal and strict validation. There are more
+ * instances of corrections like typos etc. Strict = the most strict validation depth.
+ * Missing names in our database are marked as invalid, the scoring for corrections and suggestions
+ * is tweaked.
+ */
+enum class NameValidationResponseRequestOptionsValidationDepth(@JsonValue val value: String?) {
+ MINIMAL("minimal"),
+ MODERATE("moderate"),
+ STRICT("strict"),
+ NULL(null),
+}
+/** The information about your client to help specify the search or validation. */
+@JsonDeserialize(`as` = NameValidationResponseRequestClientImpl::class)
+interface NameValidationResponseRequestClient {
+ val country: String?
+ val location: NameValidationResponseRequestClientLocation?
+}
+
+data class NameValidationResponseRequestClientImpl(
+ override val country: String?,
+ override val location: NameValidationResponseRequestClientLocation?,
+) : NameValidationResponseRequestClient
+/** Client's location. */
+@JsonDeserialize(`as` = NameValidationResponseRequestClientLocationImpl::class)
+interface NameValidationResponseRequestClientLocation {
+ val lat: Double?
+ val lon: Double?
+}
+
+data class NameValidationResponseRequestClientLocationImpl(
+ override val lat: Double?,
+ override val lon: Double?,
+) : NameValidationResponseRequestClientLocation
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationResults.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationResults.kt
new file mode 100644
index 0000000..db82114
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationResults.kt
@@ -0,0 +1,247 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonIgnore
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.core.JsonParser
+import com.fasterxml.jackson.databind.DeserializationContext
+import com.fasterxml.jackson.databind.JsonNode
+import com.fasterxml.jackson.databind.ObjectMapper
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.fasterxml.jackson.databind.deser.std.StdDeserializer
+import com.fasterxml.jackson.module.kotlin.registerKotlinModule
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = NameValidationResultsImpl::class)
+interface NameValidationResults {
+ val result: NameValidationResultsResult
+ val resultCorrected: NameValidationResultsResultCorrected?
+ val suggestions: List
+}
+
+data class NameValidationResultsImpl(
+ override val result: NameValidationResultsResult,
+ override val resultCorrected: NameValidationResultsResultCorrected?,
+ override val suggestions: List,
+) : NameValidationResults
+/** Evaluation of the sent query. */
+@JsonDeserialize(`as` = NameValidationResultsResultImpl::class)
+interface NameValidationResultsResult {
+ val isValid: Boolean
+ val proposal: NameValidationResultsResultProposal
+ val data: NameValidationResultsData
+ val details: NameValidationResultsDetails?
+ val errors: List?
+}
+
+data class NameValidationResultsResultImpl(
+ override val isValid: Boolean,
+ override val proposal: NameValidationResultsResultProposal,
+ override val data: NameValidationResultsData,
+ override val details: NameValidationResultsDetails?,
+ override val errors: List?,
+) : NameValidationResultsResult
+/**
+ * Proposed solution by Foxentry how you should process the response in your form or application.
+ */
+enum class NameValidationResultsResultProposal(@JsonValue val value: String) {
+ VALID("valid"),
+ VALID_WITH_SUGGESTION("validWithSuggestion"),
+ INVALID("invalid"),
+ INVALID_WITH_CORRECTION("invalidWithCorrection"),
+ INVALID_WITH_PARTIAL_CORRECTION("invalidWithPartialCorrection"),
+ INVALID_WITH_SUGGESTION("invalidWithSuggestion"),
+ INVALID_WITH_CORRECTION_WITH_SUGGESTION("invalidWithCorrectionWithSuggestion"),
+}
+
+class NameValidationResultsResultErrorsDeserializer :
+ StdDeserializer(
+ NameValidationResultsResultErrors::class.java) {
+ override fun deserialize(
+ p: JsonParser?,
+ ctx: DeserializationContext?
+ ): NameValidationResultsResultErrors {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return NameValidationResultsResultErrors.ErrorSyntaxGlobal(
+ mapper.convertValue(node, ErrorSyntaxGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return NameValidationResultsResultErrors.ErrorSyntaxName(
+ mapper.convertValue(node, ErrorSyntaxName::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return NameValidationResultsResultErrors.ErrorFormatGlobal(
+ mapper.convertValue(node, ErrorFormatGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return NameValidationResultsResultErrors.ErrorValueGlobal(
+ mapper.convertValue(node, ErrorValueGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return NameValidationResultsResultErrors.ErrorValueName(
+ mapper.convertValue(node, ErrorValueName::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = NameValidationResultsResultErrorsDeserializer::class)
+sealed interface NameValidationResultsResultErrors {
+ data class ErrorSyntaxGlobal(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorSyntaxGlobal
+ ) : com.foxentry.foxentrysdk.models.ErrorSyntaxGlobal by _0, NameValidationResultsResultErrors
+
+ data class ErrorSyntaxName(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorSyntaxName) :
+ com.foxentry.foxentrysdk.models.ErrorSyntaxName by _0, NameValidationResultsResultErrors
+
+ data class ErrorFormatGlobal(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorFormatGlobal
+ ) : com.foxentry.foxentrysdk.models.ErrorFormatGlobal by _0, NameValidationResultsResultErrors
+
+ data class ErrorValueGlobal(
+ @JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorValueGlobal
+ ) : com.foxentry.foxentrysdk.models.ErrorValueGlobal by _0, NameValidationResultsResultErrors
+
+ data class ErrorValueName(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.ErrorValueName) :
+ com.foxentry.foxentrysdk.models.ErrorValueName by _0, NameValidationResultsResultErrors
+}
+/** Corrected version of the sent query. */
+@JsonDeserialize(`as` = NameValidationResultsResultCorrectedImpl::class)
+interface NameValidationResultsResultCorrected {
+ val isValid: Boolean
+ val data: NameValidationResultsData
+ val details: NameValidationResultsDetails?
+ val fixes: List
+}
+
+data class NameValidationResultsResultCorrectedImpl(
+ override val isValid: Boolean,
+ override val data: NameValidationResultsData,
+ override val details: NameValidationResultsDetails?,
+ override val fixes: List,
+) : NameValidationResultsResultCorrected
+
+class NameValidationResultsResultCorrectedFixesDeserializer :
+ StdDeserializer(
+ NameValidationResultsResultCorrectedFixes::class.java) {
+ override fun deserialize(
+ p: JsonParser?,
+ ctx: DeserializationContext?
+ ): NameValidationResultsResultCorrectedFixes {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return NameValidationResultsResultCorrectedFixes.FixFormatGlobal(
+ mapper.convertValue(node, FixFormatGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return NameValidationResultsResultCorrectedFixes.FixSyntaxGlobal(
+ mapper.convertValue(node, FixSyntaxGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return NameValidationResultsResultCorrectedFixes.FixValueGlobal(
+ mapper.convertValue(node, FixValueGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = NameValidationResultsResultCorrectedFixesDeserializer::class)
+sealed interface NameValidationResultsResultCorrectedFixes {
+ data class FixFormatGlobal(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixFormatGlobal) :
+ com.foxentry.foxentrysdk.models.FixFormatGlobal by _0,
+ NameValidationResultsResultCorrectedFixes
+
+ data class FixSyntaxGlobal(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixSyntaxGlobal) :
+ com.foxentry.foxentrysdk.models.FixSyntaxGlobal by _0,
+ NameValidationResultsResultCorrectedFixes
+
+ data class FixValueGlobal(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixValueGlobal) :
+ com.foxentry.foxentrysdk.models.FixValueGlobal by _0,
+ NameValidationResultsResultCorrectedFixes
+}
+/** Alternatives suggested for the sent query. */
+@JsonDeserialize(`as` = NameValidationResultsSuggestionsImpl::class)
+interface NameValidationResultsSuggestions {
+ val isValid: Boolean
+ val data: NameValidationResultsData
+ val details: NameValidationResultsDetails?
+ val fixes: List
+}
+
+data class NameValidationResultsSuggestionsImpl(
+ override val isValid: Boolean,
+ override val data: NameValidationResultsData,
+ override val details: NameValidationResultsDetails?,
+ override val fixes: List,
+) : NameValidationResultsSuggestions
+
+class NameValidationResultsSuggestionsFixesDeserializer :
+ StdDeserializer(
+ NameValidationResultsSuggestionsFixes::class.java) {
+ override fun deserialize(
+ p: JsonParser?,
+ ctx: DeserializationContext?
+ ): NameValidationResultsSuggestionsFixes {
+ val node = p?.codec?.readTree(p)
+ val mapper = ObjectMapper().registerKotlinModule()
+ var firstError: Exception? = null
+ try {
+ return NameValidationResultsSuggestionsFixes.FixFormatGlobal(
+ mapper.convertValue(node, FixFormatGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return NameValidationResultsSuggestionsFixes.FixSyntaxGlobal(
+ mapper.convertValue(node, FixSyntaxGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ try {
+ return NameValidationResultsSuggestionsFixes.FixValueGlobal(
+ mapper.convertValue(node, FixValueGlobal::class.java))
+ } catch (e: Exception) {
+ firstError = firstError ?: e
+ }
+ throw firstError!!
+ }
+}
+
+@JsonDeserialize(using = NameValidationResultsSuggestionsFixesDeserializer::class)
+sealed interface NameValidationResultsSuggestionsFixes {
+ data class FixFormatGlobal(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixFormatGlobal) :
+ com.foxentry.foxentrysdk.models.FixFormatGlobal by _0, NameValidationResultsSuggestionsFixes
+
+ data class FixSyntaxGlobal(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixSyntaxGlobal) :
+ com.foxentry.foxentrysdk.models.FixSyntaxGlobal by _0, NameValidationResultsSuggestionsFixes
+
+ data class FixValueGlobal(@JsonIgnore val _0: com.foxentry.foxentrysdk.models.FixValueGlobal) :
+ com.foxentry.foxentrysdk.models.FixValueGlobal by _0, NameValidationResultsSuggestionsFixes
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationResultsData.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationResultsData.kt
new file mode 100644
index 0000000..e22fd60
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationResultsData.kt
@@ -0,0 +1,30 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = NameValidationResultsDataImpl::class)
+interface NameValidationResultsData {
+ val nameSurname: String?
+ val name: String
+ val surname: String?
+ val context: List
+ val degreesBefore: List
+ val degreesAfter: List?
+}
+
+data class NameValidationResultsDataImpl(
+ override val nameSurname: String?,
+ override val name: String,
+ override val surname: String?,
+ override val context: List,
+ override val degreesBefore: List,
+ override val degreesAfter: List?,
+) : NameValidationResultsData
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationResultsDetails.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationResultsDetails.kt
new file mode 100644
index 0000000..e5a6e1e
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/NameValidationResultsDetails.kt
@@ -0,0 +1,56 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+typealias NameValidationResultsDetails = List
+
+@JsonDeserialize(`as` = NameValidationResultsDetailsEntryImpl::class)
+interface NameValidationResultsDetailsEntry {
+ val type: NameValidationResultsDetailsEntryType
+ val value: String
+ val gender: NameValidationResultsDetailsEntryGender?
+ val vocative: String?
+ val nameDays: List?
+}
+
+data class NameValidationResultsDetailsEntryImpl(
+ override val type: NameValidationResultsDetailsEntryType,
+ override val value: String,
+ override val gender: NameValidationResultsDetailsEntryGender?,
+ override val vocative: String?,
+ override val nameDays: List?,
+) : NameValidationResultsDetailsEntry
+/** Type of detail. */
+enum class NameValidationResultsDetailsEntryType(@JsonValue val value: String) {
+ NAME("name"),
+ SURNAME("surname"),
+ NAME_SURNAME("nameSurname"),
+}
+/** Gender of name. 0 for unspecified, 1 for men, 2 for women */
+enum class NameValidationResultsDetailsEntryGender(@JsonValue val value: Int) {
+ _0(0),
+ _1(1),
+ _2(2),
+}
+
+@JsonDeserialize(`as` = NameValidationResultsDetailsEntryNameDaysImpl::class)
+interface NameValidationResultsDetailsEntryNameDays {
+ val country: String
+ val month: Double
+ val day: Double
+}
+
+data class NameValidationResultsDetailsEntryNameDaysImpl(
+ override val country: String,
+ override val month: Double,
+ override val day: Double,
+) : NameValidationResultsDetailsEntryNameDays
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus400.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus400.kt
new file mode 100644
index 0000000..5a69fd9
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus400.kt
@@ -0,0 +1,20 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ResponseStatus400Impl::class)
+interface ResponseStatus400 {
+ val status: Int?
+}
+
+data class ResponseStatus400Impl(
+ override val status: Int?,
+) : ResponseStatus400
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus401.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus401.kt
new file mode 100644
index 0000000..919dc2c
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus401.kt
@@ -0,0 +1,20 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ResponseStatus401Impl::class)
+interface ResponseStatus401 {
+ val status: Int?
+}
+
+data class ResponseStatus401Impl(
+ override val status: Int?,
+) : ResponseStatus401
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus402.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus402.kt
new file mode 100644
index 0000000..0426f8a
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus402.kt
@@ -0,0 +1,20 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ResponseStatus402Impl::class)
+interface ResponseStatus402 {
+ val status: Int?
+}
+
+data class ResponseStatus402Impl(
+ override val status: Int?,
+) : ResponseStatus402
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus403.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus403.kt
new file mode 100644
index 0000000..bb3f5eb
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus403.kt
@@ -0,0 +1,20 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ResponseStatus403Impl::class)
+interface ResponseStatus403 {
+ val status: Int?
+}
+
+data class ResponseStatus403Impl(
+ override val status: Int?,
+) : ResponseStatus403
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus404.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus404.kt
new file mode 100644
index 0000000..0c470f1
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus404.kt
@@ -0,0 +1,20 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ResponseStatus404Impl::class)
+interface ResponseStatus404 {
+ val status: Int?
+}
+
+data class ResponseStatus404Impl(
+ override val status: Int?,
+) : ResponseStatus404
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus405.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus405.kt
new file mode 100644
index 0000000..873b3ee
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus405.kt
@@ -0,0 +1,20 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ResponseStatus405Impl::class)
+interface ResponseStatus405 {
+ val status: Int?
+}
+
+data class ResponseStatus405Impl(
+ override val status: Int?,
+) : ResponseStatus405
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus429.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus429.kt
new file mode 100644
index 0000000..8ae67ee
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus429.kt
@@ -0,0 +1,20 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ResponseStatus429Impl::class)
+interface ResponseStatus429 {
+ val status: Int?
+}
+
+data class ResponseStatus429Impl(
+ override val status: Int?,
+) : ResponseStatus429
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus500.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus500.kt
new file mode 100644
index 0000000..c5c2e01
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus500.kt
@@ -0,0 +1,20 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ResponseStatus500Impl::class)
+interface ResponseStatus500 {
+ val status: Int?
+}
+
+data class ResponseStatus500Impl(
+ override val status: Int?,
+) : ResponseStatus500
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus503.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus503.kt
new file mode 100644
index 0000000..dff45af
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ResponseStatus503.kt
@@ -0,0 +1,20 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ResponseStatus503Impl::class)
+interface ResponseStatus503 {
+ val status: Int?
+}
+
+data class ResponseStatus503Impl(
+ override val status: Int?,
+) : ResponseStatus503
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ValidateCompanyData.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ValidateCompanyData.kt
new file mode 100644
index 0000000..db10b24
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ValidateCompanyData.kt
@@ -0,0 +1,29 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+/** Successful response */
+@JsonDeserialize(`as` = ValidateCompanyDataImpl::class)
+interface ValidateCompanyData {
+ val status: Int
+ val request: ValidateCompanyDataResultsRequest
+ val response: ValidateCompanyDataResults
+ val errors: List?
+}
+
+data class ValidateCompanyDataImpl(
+ override val status: Int,
+ override val request: ValidateCompanyDataResultsRequest,
+ override val response: ValidateCompanyDataResults,
+ override val errors: List?,
+) : ValidateCompanyData
+
+typealias ValidateCompanyDataErrors = Any
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ValidateCompanyDataRequest.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ValidateCompanyDataRequest.kt
new file mode 100644
index 0000000..ebf4ced
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ValidateCompanyDataRequest.kt
@@ -0,0 +1,92 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonValue
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ValidateCompanyDataRequestImpl::class)
+interface ValidateCompanyDataRequest {
+ val customId: String?
+ val query: ValidateCompanyDataRequestQuery
+ val options: ValidateCompanyDataRequestOptions?
+ val client: ClientRequest?
+}
+
+data class ValidateCompanyDataRequestImpl(
+ override val customId: String?,
+ override val query: ValidateCompanyDataRequestQuery,
+ override val options: ValidateCompanyDataRequestOptions?,
+ override val client: ClientRequest?,
+) : ValidateCompanyDataRequest
+
+@JsonDeserialize(`as` = ValidateCompanyDataRequestQueryImpl::class)
+interface ValidateCompanyDataRequestQuery {
+ val name: String?
+ val country: String?
+ val registrationNumber: String?
+ val taxNumber: String?
+ val vatNumber: String?
+}
+
+data class ValidateCompanyDataRequestQueryImpl(
+ override val name: String?,
+ override val country: String?,
+ override val registrationNumber: String?,
+ override val taxNumber: String?,
+ override val vatNumber: String?,
+) : ValidateCompanyDataRequestQuery
+/** Query options. */
+@JsonDeserialize(`as` = ValidateCompanyDataRequestOptionsImpl::class)
+interface ValidateCompanyDataRequestOptions {
+ val dataScope: ValidateCompanyDataRequestOptionsDataScope?
+ val dataSource: List?
+ val resultsLimit: Int?
+ val includeTerminatedSubjects: Boolean?
+ val zipFormat: Boolean?
+ val cityFormat: ValidateCompanyDataRequestOptionsCityFormat?
+ val countryFormat: ValidateCompanyDataRequestOptionsCountryFormat?
+}
+
+data class ValidateCompanyDataRequestOptionsImpl(
+ override val dataScope: ValidateCompanyDataRequestOptionsDataScope?,
+ override val dataSource: List?,
+ override val resultsLimit: Int?,
+ override val includeTerminatedSubjects: Boolean?,
+ override val zipFormat: Boolean?,
+ override val cityFormat: ValidateCompanyDataRequestOptionsCityFormat?,
+ override val countryFormat: ValidateCompanyDataRequestOptionsCountryFormat?,
+) : ValidateCompanyDataRequestOptions
+/** Data scope of returned data. */
+enum class ValidateCompanyDataRequestOptionsDataScope(@JsonValue val value: String) {
+ BASIC("basic"),
+ EXTENDED("extended"),
+ FULL("full"),
+}
+/**
+ * This option determines the format in which the city is returned. Minimal = Praha,
+ * basic = Praha 8, extended = Praha 8 - Karlín.
+ */
+enum class ValidateCompanyDataRequestOptionsCityFormat(@JsonValue val value: String) {
+ MINIMAL("minimal"),
+ BASIC("basic"),
+ EXTENDED("extended"),
+}
+/**
+ * This option determines the format in which the country is returned. Choices include local and
+ * international variants with their shortened counterparts as well as ISO 3166 alpha codes.
+ */
+enum class ValidateCompanyDataRequestOptionsCountryFormat(@JsonValue val value: String) {
+ ALPHA2("alpha2"),
+ ALPHA3("alpha3"),
+ LOCAL("local"),
+ LOCAL_SHORTENED("localShortened"),
+ INTERNATIONAL("international"),
+ INTERNATIONAL_SHORTENED("internationalShortened"),
+}
diff --git a/src/main/kotlin/com/foxentry/foxentrysdk/models/ValidateCompanyDataResultCorrected.kt b/src/main/kotlin/com/foxentry/foxentrysdk/models/ValidateCompanyDataResultCorrected.kt
new file mode 100644
index 0000000..d1e978d
--- /dev/null
+++ b/src/main/kotlin/com/foxentry/foxentrysdk/models/ValidateCompanyDataResultCorrected.kt
@@ -0,0 +1,155 @@
+/**
+ * Foxentry API reference
+ *
+ * The version of the OpenAPI document: 2.0 Contact: info@foxentry.com
+ *
+ * NOTE: This file is auto generated. Do not edit the file manually.
+ */
+package com.foxentry.foxentrysdk.models
+
+import com.fasterxml.jackson.annotation.JsonIgnore
+import com.fasterxml.jackson.core.JsonParser
+import com.fasterxml.jackson.databind.DeserializationContext
+import com.fasterxml.jackson.databind.JsonNode
+import com.fasterxml.jackson.databind.ObjectMapper
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.fasterxml.jackson.databind.deser.std.StdDeserializer
+import com.fasterxml.jackson.module.kotlin.registerKotlinModule
+import com.foxentry.foxentrysdk.core.*
+
+@JsonDeserialize(`as` = ValidateCompanyDataResultCorrectedImpl::class)
+interface ValidateCompanyDataResultCorrected : CompanyResultsResponseResults {
+ val isValid: Boolean
+ val errors: List
+ val fixes: List
+}
+
+data class ValidateCompanyDataResultCorrectedImpl(
+ override val isValid: Boolean,
+ override val errors: List