/* Options: Date: 2025-03-15 04:23:36 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sanctionssearch.com/v2 //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: AddSubUser.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using SanctionsSearch.Api2.ServiceModel.Types; using SanctionsSearch.Api2.ServiceModel.Operations.Base; using SanctionsSearch.Api2.ServiceModel.Operations.Account; namespace SanctionsSearch.Api2.ServiceModel.Operations.Account { [Route("/subusers/create", "POST")] [DataContract] public partial class AddSubUser : BaseRequest, IReturn { [DataMember] public virtual AddSubUserRequest Request { get; set; } } public partial class AddSubUserData : BaseResponse { /// ///The sub user /// [ApiMember(Description="The sub user")] public virtual SubUser SubUser { get; set; } } public partial class AddSubUserRequest { public virtual string UserName { get; set; } public virtual string Name { get; set; } public virtual string Email { get; set; } public virtual bool IsAdmin { get; set; } public virtual bool CanResolveSearches { get; set; } public virtual bool CanDeleteSearches { get; set; } public virtual bool SendWelcomeEmail { get; set; } } [DataContract] public partial class AddSubUserResponse { /// ///The response data /// [DataMember] [ApiMember(Description="The response data")] public virtual AddSubUserData Data { get; set; } } } namespace SanctionsSearch.Api2.ServiceModel.Operations.Base { public partial class ArrayOfResponseError : List { } [DataContract] public partial class BaseRequest : IBaseRequest { /// ///The authentication credentials /// [DataMember] [ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body")] public virtual Authentication Authentication { get; set; } } public partial class BaseResponse : IBaseDataResponse, IHasResponseStatus { /// ///The status of the response /// [ApiMember(Description="The status of the response")] public virtual ResponseStatus ResponseStatus { get; set; } } public partial interface IBaseDataResponse { ResponseStatus ResponseStatus { get; set; } } public partial interface IBaseRequest { Authentication Authentication { get; set; } } public partial interface IHasResponseStatus { ResponseStatus ResponseStatus { get; set; } } [DataContract] public partial class ResponseError { public ResponseError() { Meta = new Dictionary{}; } [DataMember(Order=1)] public virtual string ErrorCode { get; set; } [DataMember(Order=2)] public virtual string FieldName { get; set; } [DataMember(Order=3)] public virtual string Message { get; set; } [DataMember(Order=4)] public virtual Dictionary Meta { get; set; } } [DataContract] public partial class ResponseStatus { public ResponseStatus() { Meta = new Dictionary{}; } [DataMember(Order=1)] public virtual string ErrorCode { get; set; } [DataMember(Order=2)] public virtual string Message { get; set; } [DataMember(Order=3)] public virtual string StackTrace { get; set; } [DataMember(Order=4)] public virtual ArrayOfResponseError Errors { get; set; } [DataMember(Order=5)] public virtual Dictionary Meta { get; set; } } } namespace SanctionsSearch.Api2.ServiceModel.Types { public partial class ArrayOfUserNames : List { } [DataContract] public partial class Authentication { /// ///The API User ID provided by us when you signed up to use our API /// [DataMember] [ApiMember(Description="The API User ID provided by us when you signed up to use our API", IsRequired=true, ParameterType="header, body")] public virtual string ApiUserId { get; set; } /// ///The API User Key provided by us when you signed up to use our API /// [DataMember] [ApiMember(Description="The API User Key provided by us when you signed up to use our API", IsRequired=true, ParameterType="header, body")] public virtual string ApiUserKey { get; set; } } public partial class SubUser { /// ///Is this user the main user (i.e. the user who created the account) /// [ApiMember(Description="Is this user the main user (i.e. the user who created the account)")] public virtual bool IsMainUser { get; set; } /// ///The sub user's id (GUID) /// [ApiMember(Description="The sub user's id (GUID)")] public virtual Guid UserId { get; set; } /// ///The sub user's UserName (i.e. the sign-in username) /// [ApiMember(Description="The sub user's UserName (i.e. the sign-in username)")] public virtual string UserName { get; set; } /// ///The sub user's name /// [ApiMember(Description="The sub user's name")] public virtual string Name { get; set; } /// ///The sub user's email address /// [ApiMember(Description="The sub user's email address")] public virtual string Email { get; set; } /// ///Does this sub user have admin privileges, such as managing purchases and sub users /// [ApiMember(Description="Does this sub user have admin privileges, such as managing purchases and sub users")] public virtual bool IsAdmin { get; set; } /// ///Can this sub user resolve searches (UpdateSearch) they have access to /// [ApiMember(Description="Can this sub user resolve searches (UpdateSearch) they have access to")] public virtual bool CanResolveSearches { get; set; } /// ///Can this sub user delete searches (DeleteSearch) they have access to /// [ApiMember(Description="Can this sub user delete searches (DeleteSearch) they have access to")] public virtual bool CanDeleteSearches { get; set; } /// ///The user names for which searches will be made available to the sub user /// [ApiMember(Description="The user names for which searches will be made available to the sub user")] public virtual ArrayOfUserNames Permissions { get; set; } } }