/* Options:
Date: 2025-10-13 18:39:13
Version: 8.80
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://testapi.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: False
//ExportValueTypes: False
IncludeTypes: UpdateCodeLockSetting.*
//ExcludeTypes:
//AddNamespaces:
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using System.Globalization;
using ServiceStack.Data;
using System.Net;
using System.Net.Http.Headers;
using BokaMera.API.ServiceModel.Interfaces;
using BokaMera.API.ServiceModel.Dtos;
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class CodeLockSettingResponse
{
public virtual Guid CompanyId { get; set; }
///
///The system type of the code lock
///
[ApiMember(DataType="int", Description="The system type of the code lock")]
public virtual int CodeLockSystemsId { get; set; }
///
///If code lock sync is active
///
[ApiMember(DataType="bool", Description="If code lock sync is active")]
public virtual bool Active { get; set; }
///
///Number of minutes the access should be valid before booking starts.
///
[ApiMember(DataType="int", Description="Number of minutes the access should be valid before booking starts.")]
public virtual int ValidBeforeMinutes { get; set; }
///
///Number of minutes the access should be valid after booking ends.
///
[ApiMember(DataType="int", Description="Number of minutes the access should be valid after booking ends.")]
public virtual int ValidAfterMinutes { get; set; }
///
///If it should clean up old bookings after they have passed
///
[ApiMember(DataType="boolean", Description="If it should clean up old bookings after they have passed")]
public virtual bool DeleteOldBySchedule { get; set; }
///
///If a notification should be sent by Email
///
[ApiMember(DataType="boolean", Description="If a notification should be sent by Email")]
public virtual bool SendEmailNotification { get; set; }
///
///If a notification should be sent by SMS
///
[ApiMember(DataType="boolean", Description="If a notification should be sent by SMS")]
public virtual bool SendSMSNotification { get; set; }
///
///How long before the booking starts in minutes the notification should be sent
///
[ApiMember(DataType="int", Description="How long before the booking starts in minutes the notification should be sent")]
public virtual int EmailNotificationTime { get; set; }
///
///How long before the booking starts in minutes the notification should be sent
///
[ApiMember(DataType="int", Description="How long before the booking starts in minutes the notification should be sent")]
public virtual int SMSNotificationTime { get; set; }
///
///When settings was created
///
[ApiMember(DataType="datetime", Description="When settings was created")]
public virtual DateTime Created { get; set; }
///
///When settings were updated
///
[ApiMember(DataType="datetime", Description="When settings were updated")]
public virtual DateTime Updated { get; set; }
///
///The available code lock systems to choose from
///
[ApiMember(Description="The available code lock systems to choose from")]
public virtual List CodeLockSystemOptions { get; set; } = [];
}
public partial class CodeLockSystemResponse
{
///
///The system type of the code lock
///
[ApiMember(DataType="int", Description="The system type of the code lock")]
public virtual int Id { get; set; }
///
///The name of the code lock system
///
[ApiMember(DataType="string", Description="The name of the code lock system")]
public virtual string Name { get; set; }
///
///The description of the code lock system
///
[ApiMember(DataType="string", Description="The description of the code lock system")]
public virtual string Description { get; set; }
///
///The logotype of the code lock system
///
[ApiMember(Description="The logotype of the code lock system")]
public virtual Uri LogoType { get; set; }
///
///The supplier name of the code lock system
///
[ApiMember(Description="The supplier name of the code lock system")]
public virtual string Supplier { get; set; }
}
[Route("/codelock/settings", "PUT")]
[ValidateRequest("IsAuthenticated")]
[ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
[ApiResponse(Description="You have too low privileges to call this service", StatusCode=403)]
public partial class UpdateCodeLockSetting
: IReturn, ICompany
{
///
///The company id, if empty will use the company id for the user you are logged in with.
///
[ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")]
public virtual Guid? CompanyId { get; set; }
///
///If code lock sync is active
///
[ApiMember(DataType="bool", Description="If code lock sync is active")]
public virtual bool? Active { get; set; }
///
///The system type of the code lock
///
[ApiMember(DataType="int", Description="The system type of the code lock")]
public virtual int? CodeLockSystemsId { get; set; }
///
///Number of minutes the access should be valid before booking starts.
///
[ApiMember(DataType="int", Description="Number of minutes the access should be valid before booking starts.")]
public virtual int? ValidBeforeMinutes { get; set; }
///
///Number of minutes the access should be valid after booking ends.
///
[ApiMember(DataType="int", Description="Number of minutes the access should be valid after booking ends.")]
public virtual int? ValidAfterMinutes { get; set; }
///
///If it should clean up old bookings after they have passed.
///
[ApiMember(DataType="boolean", Description="If it should clean up old bookings after they have passed.")]
public virtual bool? DeleteOldBySchedule { get; set; }
///
///If a notification should be sent by Email
///
[ApiMember(DataType="boolean", Description="If a notification should be sent by Email")]
public virtual bool? SendEmailNotification { get; set; }
///
///If a notification should be sent by SMS
///
[ApiMember(DataType="boolean", Description="If a notification should be sent by SMS")]
public virtual bool? SendSMSNotification { get; set; }
///
///How long before the booking starts in minutes the notification should be sent
///
[ApiMember(DataType="int", Description="How long before the booking starts in minutes the notification should be sent")]
public virtual int? EmailNotificationTime { get; set; }
///
///How long before the booking starts in minutes the notification should be sent
///
[ApiMember(DataType="int", Description="How long before the booking starts in minutes the notification should be sent")]
public virtual int? SMSNotificationTime { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}