/* Options:
Date: 2024-12-03 17:59:47
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: UpdateReference.*
//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.Dtos;
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class ReferenceQueryResponse
{
///
///The company id
///
[ApiMember(Description="The company id")]
public virtual Guid CompanyId { get; set; }
///
///Id of the reference
///
[ApiMember(Description="Id of the reference")]
public virtual Guid Id { get; set; }
///
///Internal Id of the reference. Example could be the Booking Id
///
[ApiMember(Description="Internal Id of the reference. Example could be the Booking Id")]
public virtual Guid OwnerId { get; set; }
///
///The type of reference, you can name this parameter what you like. Example could be system_bookingid where the system is the external system
///
[ApiMember(Description="The type of reference, you can name this parameter what you like. Example could be system_bookingid where the system is the external system")]
public virtual string ReferenceType { get; set; }
///
///The external data. Could be a Id or a JSON object or anything
///
[ApiMember(Description="The external data. Could be a Id or a JSON object or anything")]
public virtual string ExternalData { get; set; }
///
///Will show when the reference was updated.
///
[ApiMember(DataType="datetime", Description="Will show when the reference was updated.")]
public virtual DateTime Updated { get; set; }
///
///Will show when the reference was created.
///
[ApiMember(DataType="datetime", Description="Will show when the reference was created.")]
public virtual DateTime Created { get; set; }
///
///Will show who created the reference.
///
[ApiMember(DataType="datetime", Description="Will show who created the reference.")]
public virtual string CreatedBy { get; set; }
///
///Will show who update the reference.
///
[ApiMember(DataType="datetime", Description="Will show who update the reference.")]
public virtual string UpdatedBy { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
[Route("/references/{Id}", "PUT")]
[ValidateRequest("IsAuthenticated")]
public partial class UpdateReference
: 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; }
///
///Id of the reference
///
[ApiMember(Description="Id of the reference", IsRequired=true, ParameterType="path")]
public virtual Guid Id { get; set; }
///
///Internal Id of the reference. Example could be the Booking Id
///
[ApiMember(Description="Internal Id of the reference. Example could be the Booking Id")]
public virtual Guid? OwnerId { get; set; }
///
///The type of reference, you can name this parameter what you like. Example could be system_bookingid where the system is the external system
///
[ApiMember(Description="The type of reference, you can name this parameter what you like. Example could be system_bookingid where the system is the external system")]
public virtual string ReferenceType { get; set; }
///
///The external data. Could be a Id or a JSON object or anything
///
[ApiMember(Description="The external data. Could be a Id or a JSON object or anything")]
public virtual string ExternalData { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}