namespace SanctionsSearch.Api2.ServiceModel.Operations.Account
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<DataContract>]
[<AllowNullLiteral>]
type ResponseError() =
[<DataMember(Order=1)>]
member val ErrorCode:String = null with get,set
[<DataMember(Order=2)>]
member val FieldName:String = null with get,set
[<DataMember(Order=3)>]
member val Message:String = null with get,set
[<DataMember(Order=4)>]
member val Meta:Dictionary<String, String> = new Dictionary<String, String>() with get,set
[<AllowNullLiteral>]
type ArrayOfResponseError() =
inherit ResizeArray<ResponseError>()
[<DataContract>]
[<AllowNullLiteral>]
type ResponseStatus() =
[<DataMember(Order=1)>]
member val ErrorCode:String = null with get,set
[<DataMember(Order=2)>]
member val Message:String = null with get,set
[<DataMember(Order=3)>]
member val StackTrace:String = null with get,set
[<DataMember(Order=4)>]
member val Errors:ArrayOfResponseError = null with get,set
[<DataMember(Order=5)>]
member val Meta:Dictionary<String, String> = new Dictionary<String, String>() with get,set
[<AllowNullLiteral>]
type BaseResponse() =
///<summary>
///The status of the response
///</summary>
[<ApiMember(Description="The status of the response")>]
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type RegisterAccountRequest() =
///<summary>
///The desired login username for the account
///</summary>
[<ApiMember(Description="The desired login username for the account", IsRequired=true)>]
member val Username:String = null with get,set
///<summary>
///The password for account login
///</summary>
[<ApiMember(Description="The password for account login", IsRequired=true)>]
member val Password:String = null with get,set
///<summary>
///The contact email address for the account holder
///</summary>
[<ApiMember(Description="The contact email address for the account holder", IsRequired=true)>]
member val Email:String = null with get,set
///<summary>
///The full legal name of the account holder
///</summary>
[<ApiMember(Description="The full legal name of the account holder", IsRequired=true)>]
member val FullName:String = null with get,set
///<summary>
///The registered name of the company associated with this account
///</summary>
[<ApiMember(Description="The registered name of the company associated with this account", IsRequired=true)>]
member val CompanyName:String = null with get,set
///<summary>
///The primary contact phone number of the company
///</summary>
[<ApiMember(Description="The primary contact phone number of the company", IsRequired=true)>]
member val CompanyPhone:String = null with get,set
///<summary>
///The first line of the company’s address (e.g., street name and number)
///</summary>
[<ApiMember(Description="The first line of the company’s address (e.g., street name and number)", IsRequired=true)>]
member val Address1:String = null with get,set
///<summary>
///The second line of the company’s address (optional)
///</summary>
[<ApiMember(Description="The second line of the company’s address (optional)")>]
member val Address2:String = null with get,set
///<summary>
///The third line of the company’s address (optional)
///</summary>
[<ApiMember(Description="The third line of the company’s address (optional)")>]
member val Address3:String = null with get,set
///<summary>
///The city where the company is located (optional)
///</summary>
[<ApiMember(Description="The city where the company is located (optional)")>]
member val City:String = null with get,set
///<summary>
///The postal or ZIP code of the company’s address
///</summary>
[<ApiMember(Description="The postal or ZIP code of the company’s address", IsRequired=true)>]
member val Postcode:String = null with get,set
///<summary>
///The country where the company is registered
///</summary>
[<ApiMember(Description="The country where the company is registered", IsRequired=true)>]
member val Country:String = null with get,set
///<summary>
///The classification of the company (e.g., LLC, Corporation, Sole Proprietorship)
///</summary>
[<ApiMember(Description="The classification of the company (e.g., LLC, Corporation, Sole Proprietorship)", IsRequired=true)>]
member val CompanyType:String = null with get,set
///<summary>
///The industry sector the company operates in
///</summary>
[<ApiMember(Description="The industry sector the company operates in", IsRequired=true)>]
member val CompanyIndustry:String = null with get,set
///<summary>
///The trade body, network, or affiliation the company is a member of (if applicable)
///</summary>
[<ApiMember(Description="The trade body, network, or affiliation the company is a member of (if applicable)")>]
member val CompanyNetwork:String = null with get,set
///<summary>
///Indicates agreement to the terms and conditions (required)
///</summary>
[<ApiMember(Description="Indicates agreement to the terms and conditions (required)", IsRequired=true)>]
member val AgreeToTerms:Boolean = new Boolean() with get,set
///<summary>
///Indicates agreement to the data protection statement (required)
///</summary>
[<ApiMember(Description="Indicates agreement to the data protection statement (required)", IsRequired=true)>]
member val AgreeToDataProtection:Boolean = new Boolean() with get,set
///<summary>
///Indicates consent to be contacted (optional)
///</summary>
[<ApiMember(Description="Indicates consent to be contacted (optional)")>]
member val AgreeToContact:Boolean = new Boolean() with get,set
///<summary>
///Indicates agreement to the privacy policy (required)
///</summary>
[<ApiMember(Description="Indicates agreement to the privacy policy (required)", IsRequired=true)>]
member val AgreeToPrivacy:Boolean = new Boolean() with get,set
///<summary>
///An optional voucher code for discounts or promotions
///</summary>
[<ApiMember(Description="An optional voucher code for discounts or promotions")>]
member val VoucherCode:String = null with get,set
///<summary>
///An optional code that grants access to certain features or subscriptions
///</summary>
[<ApiMember(Description="An optional code that grants access to certain features or subscriptions")>]
member val AccountActivationCode:String = null with get,set
///<summary>
///The company's VAT registration number (if applicable)
///</summary>
[<ApiMember(Description="The company's VAT registration number (if applicable)")>]
member val VATNumber:String = null with get,set
///<summary>
///The country where the company is VAT-registered
///</summary>
[<ApiMember(Description="The country where the company is VAT-registered")>]
member val VATCountry:String = null with get,set
[<AllowNullLiteral>]
type ArrayOfCountry() =
inherit ResizeArray<String>()
[<AllowNullLiteral>]
type ArrayOfCompanyIndustry() =
inherit ResizeArray<String>()
[<AllowNullLiteral>]
type ArrayOfCompanyType() =
inherit ResizeArray<String>()
[<AllowNullLiteral>]
type ArrayOfVATCountry() =
inherit ResizeArray<String>()
[<AllowNullLiteral>]
type ReferenceData() =
///<summary>
///A list of supported country values
///</summary>
[<ApiMember(Description="A list of supported country values")>]
member val Countries:ArrayOfCountry = null with get,set
///<summary>
///A list of valid industry classifications for companies
///</summary>
[<ApiMember(Description="A list of valid industry classifications for companies")>]
member val CompanyIndustries:ArrayOfCompanyIndustry = null with get,set
///<summary>
///A list of accepted company types
///</summary>
[<ApiMember(Description="A list of accepted company types")>]
member val CompanyTypes:ArrayOfCompanyType = null with get,set
///<summary>
///A list of countries where VAT registration is recognized
///</summary>
[<ApiMember(Description="A list of countries where VAT registration is recognized")>]
member val VATCountries:ArrayOfVATCountry = null with get,set
///<summary>
///A URL linking to the terms and conditions document
///</summary>
[<ApiMember(Description="A URL linking to the terms and conditions document")>]
member val TermsAndConditionsLink:String = null with get,set
///<summary>
///A URL linking to the privacy policy
///</summary>
[<ApiMember(Description="A URL linking to the privacy policy")>]
member val PrivacyPolicyLink:String = null with get,set
///<summary>
///The statement regarding contact preferences
///</summary>
[<ApiMember(Description="The statement regarding contact preferences")>]
member val ContactStatement:String = null with get,set
///<summary>
///The statement outlining data protection policies
///</summary>
[<ApiMember(Description="The statement outlining data protection policies")>]
member val DataProtectionStatement:String = null with get,set
[<AllowNullLiteral>]
type RegisterAccountTemplateData() =
inherit BaseResponse()
///<summary>
///The request body of the RegisterAccount endpoint
///</summary>
[<ApiMember(Description="The request body of the RegisterAccount endpoint")>]
member val Request:RegisterAccountRequest = null with get,set
///<summary>
///Reference data to fill out the RegisterAccount body
///</summary>
[<ApiMember(Description="Reference data to fill out the RegisterAccount body")>]
member val ReferenceData:ReferenceData = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type RegisterAccountTemplateResponse() =
///<summary>
///The response data
///</summary>
[<DataMember>]
[<ApiMember(Description="The response data")>]
member val Data:RegisterAccountTemplateData = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type RegisterAccountTemplate() =
class end
F# RegisterAccountTemplate DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .soap11 suffix or ?format=soap11
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /soap11 HTTP/1.1
Host: api.sanctionssearch.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: RegisterAccountTemplate
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<RegisterAccountTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types" />
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <RegisterAccountTemplateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types"> <Data> <ResponseStatus> <ErrorCode>String</ErrorCode> <Message>String</Message> <StackTrace>String</StackTrace> <Errors> <ResponseError> <ErrorCode>String</ErrorCode> <FieldName>String</FieldName> <Message>String</Message> <Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:KeyValueOfstringstring> <d6p1:Key>String</d6p1:Key> <d6p1:Value>String</d6p1:Value> </d6p1:KeyValueOfstringstring> </Meta> </ResponseError> </Errors> <Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringstring> <d4p1:Key>String</d4p1:Key> <d4p1:Value>String</d4p1:Value> </d4p1:KeyValueOfstringstring> </Meta> </ResponseStatus> <ReferenceData> <CompanyIndustries> <CompanyIndustry>String</CompanyIndustry> </CompanyIndustries> <CompanyTypes> <CompanyType>String</CompanyType> </CompanyTypes> <ContactStatement>String</ContactStatement> <Countries> <Country>String</Country> </Countries> <DataProtectionStatement>String</DataProtectionStatement> <PrivacyPolicyLink>String</PrivacyPolicyLink> <TermsAndConditionsLink>String</TermsAndConditionsLink> <VATCountries> <VATCountry>String</VATCountry> </VATCountries> </ReferenceData> <Request> <AccountActivationCode>String</AccountActivationCode> <Address1>String</Address1> <Address2>String</Address2> <Address3>String</Address3> <AgreeToContact>false</AgreeToContact> <AgreeToDataProtection>false</AgreeToDataProtection> <AgreeToPrivacy>false</AgreeToPrivacy> <AgreeToTerms>false</AgreeToTerms> <City>String</City> <CompanyIndustry>String</CompanyIndustry> <CompanyName>String</CompanyName> <CompanyNetwork>String</CompanyNetwork> <CompanyPhone>String</CompanyPhone> <CompanyType>String</CompanyType> <Country>String</Country> <Email>String</Email> <FullName>String</FullName> <Password>String</Password> <Postcode>String</Postcode> <Username>String</Username> <VATCountry>String</VATCountry> <VATNumber>String</VATNumber> <VoucherCode>String</VoucherCode> </Request> </Data> </RegisterAccountTemplateResponse> </soap:Body> </soap:Envelope>