/* Options:
Date: 2024-11-21 12:03:25
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: CreateBookingLogItem.*
//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 System.IO;
using BokaMera.API.ServiceModel.Interfaces;
using BokaMera.API.ServiceModel.Dtos;
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class BookingLogEventTypeResponse
{
///
///The event type id
///
[ApiMember(Description="The event type id")]
public virtual int Id { get; set; }
///
///The event type name
///
[ApiMember(Description="The event type name")]
public virtual string Name { get; set; }
///
///The event type description
///
[ApiMember(Description="The event type description")]
public virtual string Description { get; set; }
}
public partial class BookingLogQueryResponse
{
///
///The booking log id
///
[ApiMember(Description="The booking log id")]
public virtual int Id { get; set; }
///
///The booking id
///
[ApiMember(Description="The booking id")]
public virtual int BookingId { get; set; }
///
///The type of event
///
[ApiMember(Description="The type of event")]
public virtual int EventTypeId { get; set; }
///
///The type of event
///
[ApiMember(Description="The type of event")]
public virtual BookingLogEventTypeResponse EventType { get; set; }
///
///Comments that could be added to the event log item
///
[ApiMember(Description="Comments that could be added to the event log item")]
public virtual string Comments { get; set; }
///
///The user created the event
///
[ApiMember(Description="The user created the event")]
public virtual string UserName { get; set; }
///
///Then date when the event occured
///
[ApiMember(Description="Then date when the event occured")]
public virtual DateTime Created { get; set; }
}
[Route("/bookinglog", "POST")]
[ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
[ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403)]
public partial class CreateBookingLogItem
: 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; }
///
///The booking id
///
[ApiMember(Description="The booking id", IsRequired=true)]
public virtual int BookingId { get; set; }
///
///The type of event
///
[ApiMember(Description="The type of event", IsRequired=true)]
public virtual int EventTypeId { get; set; }
///
///Comments that could be added to the event log item
///
[ApiMember(Description="Comments that could be added to the event log item", IsRequired=true)]
public virtual string Comments { get; set; }
///
///Then date when the event occured, leave blank if current datetime
///
[ApiMember(Description="Then date when the event occured, leave blank if current datetime", IsRequired=true)]
public virtual DateTime? Created { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}