/* Options: Date: 2024-11-21 12:29:24 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeleteCustomerSuperAdminUser.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/superadmin/company/{Id}", Verbs="DELETE") @ApiResponse(Description="", StatusCode=400) // @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) open class DeleteCustomerSuperAdminUser : IReturn, ICompany { /** * Enter the companyId for the customer */ @ApiMember(Description="Enter the companyId for the customer", ParameterType="query") var CompanyId:UUID? = null /** * Id (guid) of company you wish to delete. */ @ApiMember(Description="Id (guid) of company you wish to delete.", IsRequired=true) var Id:UUID? = null var GotApprovedByAdmin:Boolean? = null companion object { private val responseType = DeletedCustomerInfoResponse::class.java } override fun getResponseType(): Any? = DeleteCustomerSuperAdminUser.responseType } open class DeletedCustomerInfoResponse { var CompanyId:UUID? = null var ActiveLicenses:ArrayList = ArrayList() var Comment:String? = null } open interface ICompany { var CompanyId:UUID? } open class Country : BaseModel() { @References(Currency.class) var CurrencyId:String? = null var CurrencyInfo:Currency? = null @Required() var Name:String? = null var Culture:String? = null var TimeZone:String? = null var ModifiedDate:Date? = null @Required() var Id:String? = null } open class Currency : BaseModel() { @Required() var Name:String? = null @Required() var CurrencySign:String? = null @Required() var Active:Boolean? = null var ModifiedDate:Date? = null @Required() var Id:String? = null } open class License : BaseModel() { var Type:LicenseType? = null @Required() var CompanyId:UUID? = null var Id:Int? = null @Required() var TypeId:Int? = null @Required() var ValidFrom:Date? = null @Required() var ValidTo:Date? = null @Required() var Active:Boolean? = null @Required() var Updated:Date? = null @Required() var Created:Date? = null var ModifiedDate:Date? = null var MetaData:String? = null } open class LicenseType : BaseModel() { @Ignore() var LicenseItems:IList? = null @Ignore() var Prices:IList? = null @Ignore() var PeriodOfNoticeDays:Int? = null @Ignore() var NextLicenseOption:LicenseType? = null @Required() var Name:String? = null @Required() var Description:String? = null @Required() var ExtraLicenseOption:Boolean? = null var ModifiedDate:Date? = null var Active:Boolean? = null var Id:Int? = null } open class BaseModel { } open class LicensePrice : BaseModel() { @Ignore() var Country:Country? = null @Ignore() var MonthlyPayment:Boolean? = null @Required() var LicenseTypeId:Int? = null @Required() var CountryId:String? = null @Required() var Price:Int? = null var ModifiedDate:Date? = null } open class LicenseTypeItem : BaseModel() { @Ignore() var Name:String? = null @Ignore() var LicenseType:LicenseType? = null @Required() var LicenseTypesId:Int? = null @Required() var LicenseItemsId:Int? = null @Required() var NumberOfItems:Int? = null var Id:Int? = null var ModifiedDate:Date? = null } enum class Currency(val value:Int) { Sek(1), Eur(2), }