/* Options: Date: 2025-12-16 10:20:27 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sanctionssearch.com/v2 //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RegisterAccountTemplate.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.* import java.util.* import net.servicestack.client.* import com.google.gson.annotations.* import com.google.gson.reflect.* @Route(Path="/account/register/template", Verbs="GET") @DataContract open class RegisterAccountTemplate : BaseRequest(), IReturn { companion object { private val responseType = RegisterAccountTemplateResponse::class.java } override fun getResponseType(): Any? = RegisterAccountTemplate.responseType } @DataContract open class RegisterAccountTemplateResponse { /** * The response data */ @DataMember @ApiMember(Description="The response data") @SerializedName("data") var Data:RegisterAccountTemplateData? = null } @DataContract open class Authentication { /** * The API User ID provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-User) */ @DataMember @ApiMember(Description="The API User ID provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-User)", IsRequired=true, ParameterType="header, body") var apiUserId:String? = null /** * The API User Key provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-Key) */ @DataMember @ApiMember(Description="The API User Key provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-Key)", IsRequired=true, ParameterType="header, body") var apiUserKey:String? = null /** * The User ID of the user making the request (e.g. a sub user). This is optional but can be used to associate API requests with a specific user, thereby allowing user permissions to be enforced. Can be provided in the body, or as a header parameter (X-User-Id). */ @DataMember @ApiMember(Description="The User ID of the user making the request (e.g. a sub user). This is optional but can be used to associate API requests with a specific user, thereby allowing user permissions to be enforced. Can be provided in the body, or as a header parameter (X-User-Id).", ParameterType="header, body") var userId:String? = null } @DataContract open class BaseRequest : IBaseRequest { /** * The authentication credentials */ @DataMember @ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body") var authentication:Authentication? = null } open interface IBaseRequest { var authentication:Authentication? } open class RegisterAccountRequest { /** * The desired login username for the account */ @ApiMember(Description="The desired login username for the account", IsRequired=true) var username:String? = null /** * The password for account login */ @ApiMember(Description="The password for account login", IsRequired=true) var password:String? = null /** * The contact email address for the account holder */ @ApiMember(Description="The contact email address for the account holder", IsRequired=true) var email:String? = null /** * The full legal name of the account holder */ @ApiMember(Description="The full legal name of the account holder", IsRequired=true) var fullName:String? = null /** * The registered name of the company associated with this account */ @ApiMember(Description="The registered name of the company associated with this account", IsRequired=true) var companyName:String? = null /** * The primary contact phone number of the company */ @ApiMember(Description="The primary contact phone number of the company", IsRequired=true) var companyPhone:String? = null /** * The first line of the company’s address (e.g., street name and number) */ @ApiMember(Description="The first line of the company’s address (e.g., street name and number)", IsRequired=true) var address1:String? = null /** * The second line of the company’s address (optional) */ @ApiMember(Description="The second line of the company’s address (optional)") var address2:String? = null /** * The third line of the company’s address (optional) */ @ApiMember(Description="The third line of the company’s address (optional)") var address3:String? = null /** * The city where the company is located (optional) */ @ApiMember(Description="The city where the company is located (optional)") var city:String? = null /** * The postal or ZIP code of the company’s address */ @ApiMember(Description="The postal or ZIP code of the company’s address", IsRequired=true) var postcode:String? = null /** * The country where the company is registered */ @ApiMember(Description="The country where the company is registered", IsRequired=true) var country:String? = null /** * The classification of the company (e.g., LLC, Corporation, Sole Proprietorship) */ @ApiMember(Description="The classification of the company (e.g., LLC, Corporation, Sole Proprietorship)", IsRequired=true) var companyType:String? = null /** * The industry sector the company operates in */ @ApiMember(Description="The industry sector the company operates in", IsRequired=true) var companyIndustry:String? = null /** * The trade body, network, or affiliation the company is a member of (if applicable) */ @ApiMember(Description="The trade body, network, or affiliation the company is a member of (if applicable)") var companyNetwork:String? = null /** * Indicates agreement to the terms and conditions (required) */ @ApiMember(Description="Indicates agreement to the terms and conditions (required)", IsRequired=true) var agreeToTerms:Boolean? = null /** * Indicates agreement to the data protection statement (required) */ @ApiMember(Description="Indicates agreement to the data protection statement (required)", IsRequired=true) var agreeToDataProtection:Boolean? = null /** * Indicates consent to be contacted (optional) */ @ApiMember(Description="Indicates consent to be contacted (optional)") var agreeToContact:Boolean? = null /** * Indicates agreement to the privacy policy (required) */ @ApiMember(Description="Indicates agreement to the privacy policy (required)", IsRequired=true) var agreeToPrivacy:Boolean? = null /** * An optional voucher code for discounts or promotions */ @ApiMember(Description="An optional voucher code for discounts or promotions") var voucherCode:String? = null /** * An optional code that grants access to certain features or subscriptions */ @ApiMember(Description="An optional code that grants access to certain features or subscriptions") var accountActivationCode:String? = null /** * The company's VAT registration number (if applicable) */ @ApiMember(Description="The company's VAT registration number (if applicable)") var vatNumber:String? = null /** * The country where the company is VAT-registered */ @ApiMember(Description="The country where the company is VAT-registered") var vatCountry:String? = null } open class RegisterAccountTemplateData : BaseResponse() { /** * The request body of the RegisterAccount endpoint */ @ApiMember(Description="The request body of the RegisterAccount endpoint") var request:RegisterAccountRequest? = null /** * Reference data to fill out the RegisterAccount body */ @ApiMember(Description="Reference data to fill out the RegisterAccount body") var referenceData:ReferenceData? = null } open class BaseResponse : IBaseDataResponse, IHasResponseStatus { /** * The status of the response */ @ApiMember(Description="The status of the response") var responseStatus:ResponseStatus? = null } open interface IBaseDataResponse { var responseStatus:ResponseStatus? } open interface IHasResponseStatus { var responseStatus:ResponseStatus? } open class ReferenceData { /** * A list of supported country values */ @ApiMember(Description="A list of supported country values") var countries:ArrayOfCountry? = null /** * A list of valid industry classifications for companies */ @ApiMember(Description="A list of valid industry classifications for companies") var companyIndustries:ArrayOfCompanyIndustry? = null /** * A list of accepted company types */ @ApiMember(Description="A list of accepted company types") var companyTypes:ArrayOfCompanyType? = null /** * A list of countries where VAT registration is recognized */ @ApiMember(Description="A list of countries where VAT registration is recognized") var vatCountries:ArrayOfVATCountry? = null /** * A URL linking to the terms and conditions document */ @ApiMember(Description="A URL linking to the terms and conditions document") var termsAndConditionsLink:String? = null /** * A URL linking to the privacy policy */ @ApiMember(Description="A URL linking to the privacy policy") var privacyPolicyLink:String? = null /** * The statement regarding contact preferences */ @ApiMember(Description="The statement regarding contact preferences") var contactStatement:String? = null /** * The statement outlining data protection policies */ @ApiMember(Description="The statement outlining data protection policies") var dataProtectionStatement:String? = null } open class ArrayOfResponseError : ArrayList() { } open class ArrayOfCountry : ArrayList() { } open class ArrayOfCompanyIndustry : ArrayList() { } open class ArrayOfCompanyType : ArrayList() { } open class ArrayOfVATCountry : ArrayList() { }