/* Options: Date: 2024-11-23 22:16:44 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //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: DeleteCustomerSuperAdminUser.* //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 System.Globalization; using ServiceStack.Data; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Db; using PaysonIntegrationCO2.Models.Enums; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Db { public partial class BaseModel { } public partial class Country : BaseModel { [References(typeof(BokaMera.API.ServiceModel.Db.Currency))] public virtual string CurrencyId { get; set; } public virtual Currency CurrencyInfo { get; set; } [Required] public virtual string Name { get; set; } public virtual string Culture { get; set; } public virtual string TimeZone { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } [Required] public virtual string Id { get; set; } } public partial class Currency : BaseModel { [Required] public virtual string Name { get; set; } [Required] public virtual string CurrencySign { get; set; } [Required] public virtual bool Active { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } [Required] public virtual string Id { get; set; } } public partial class License : BaseModel { public virtual LicenseType Type { get; set; } [Required] public virtual Guid CompanyId { get; set; } public virtual int Id { get; set; } [Required] public virtual int TypeId { get; set; } [Required] public virtual DateTime ValidFrom { get; set; } [Required] public virtual DateTime ValidTo { get; set; } [Required] public virtual bool Active { get; set; } [Required] public virtual DateTime Updated { get; set; } [Required] public virtual DateTime Created { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } public virtual string MetaData { get; set; } } public partial class LicensePrice : BaseModel { [Ignore] public virtual Country Country { get; set; } [Ignore] public virtual bool MonthlyPayment { get; set; } [Required] public virtual int LicenseTypeId { get; set; } [Required] public virtual string CountryId { get; set; } [Required] public virtual int Price { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } } public partial class LicenseType : BaseModel { [Ignore] public virtual IList LicenseItems { get; set; } [Ignore] public virtual IList Prices { get; set; } [Ignore] public virtual int PeriodOfNoticeDays { get; set; } [Ignore] public virtual LicenseType NextLicenseOption { get; set; } [Required] public virtual string Name { get; set; } [Required] public virtual string Description { get; set; } [Required] public virtual bool ExtraLicenseOption { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } public virtual bool Active { get; set; } public virtual int Id { get; set; } } public partial class LicenseTypeItem : BaseModel { [Ignore] public virtual string Name { get; set; } [Ignore] public virtual LicenseType LicenseType { get; set; } [Required] public virtual int LicenseTypesId { get; set; } [Required] public virtual int LicenseItemsId { get; set; } [Required] public virtual int NumberOfItems { get; set; } public virtual int Id { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { [Route("/superadmin/company/{Id}", "DELETE")] [ApiResponse(Description="", StatusCode=400)] [ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401)] public partial class DeleteCustomerSuperAdminUser : IReturn, ICompany { /// ///Enter the companyId for the customer /// [ApiMember(Description="Enter the companyId for the customer", ParameterType="query")] public virtual Guid? CompanyId { get; set; } /// ///Id (guid) of company you wish to delete. /// [ApiMember(Description="Id (guid) of company you wish to delete.", IsRequired=true)] public virtual Guid Id { get; set; } public virtual bool GotApprovedByAdmin { get; set; } } public partial class DeletedCustomerInfoResponse { public DeletedCustomerInfoResponse() { ActiveLicenses = new List{}; } public virtual Guid? CompanyId { get; set; } public virtual List ActiveLicenses { get; set; } public virtual string Comment { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } } namespace PaysonIntegrationCO2.Models.Enums { public enum Currency { SEK = 1, EUR = 2, } }