/* Options:
Date: 2025-09-14 20:50:19
Version: 8.80
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://api.bookmore.com
//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: CreateCompanyUser.*
//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 AddCompanyUserRolesResponse
{
public virtual Guid RoleId { get; set; }
}
public partial class CompanyUserQueryResponse
{
public virtual Guid Id { get; set; }
public virtual Guid CompanyId { get; set; }
public virtual string Firstname { get; set; }
public virtual string Lastname { get; set; }
public virtual string Email { get; set; }
public virtual string Phone { get; set; }
public virtual string WorkerId { get; set; }
public virtual int? ResourceId { get; set; }
///
///The resource information connected to the administrator.
///
[ApiMember(Description="The resource information connected to the administrator.")]
public virtual CompanyUserResource Resource { get; set; }
///
///The roles that are connected to the administrator.
///
[ApiMember(Description="The roles that are connected to the administrator.")]
public virtual List Roles { get; set; }
///
///If the admin should receive Push notification when booked
///
[ApiMember(Description="If the admin should receive Push notification when booked")]
public virtual bool SendPushNotification { get; set; }
///
///If the admin should receive Push notification reminders on bookings
///
[ApiMember(Description="If the admin should receive Push notification reminders on bookings")]
public virtual bool SendPushNotificationReminder { get; set; }
public virtual bool Active { get; set; }
public virtual DateTime Created { get; set; }
public virtual DateTime Updated { get; set; }
}
public partial class CompanyUserResource
{
///
///The resource id
///
[ApiMember(Description="The resource id")]
public virtual int Id { get; set; }
///
///The resource name
///
[ApiMember(Description="The resource name")]
public virtual string Name { get; set; }
///
///The resource status
///
[ApiMember(Description="The resource status")]
public virtual bool Active { get; set; }
///
///The resource description
///
[ApiMember(Description="The resource description")]
public virtual string Description { get; set; }
///
///The resource email
///
[ApiMember(Description="The resource email")]
public virtual string Email { get; set; }
///
///The resource phone
///
[ApiMember(Description="The resource phone")]
public virtual string Phone { get; set; }
///
///The resource color
///
[ApiMember(Description="The resource color")]
public virtual string Color { get; set; }
///
///The resource image
///
[ApiMember(Description="The resource image")]
public virtual Uri ImageUrl { get; set; }
///
///If the resource want to receive email notifications
///
[ApiMember(Description="If the resource want to receive email notifications")]
public virtual bool EmailNotification { get; set; }
///
///If the resource want to receive sms notifications
///
[ApiMember(Description="If the resource want to receive sms notifications")]
public virtual bool SMSNotification { get; set; }
///
///If the resource want to receive email reminders
///
[ApiMember(Description="If the resource want to receive email reminders")]
public virtual bool EmailReminder { get; set; }
///
///If the resource want to receive sms reminders
///
[ApiMember(Description="If the resource want to receive sms reminders")]
public virtual bool SMSReminder { get; set; }
}
public partial class CompanyUserRolesQueryResponse
{
public virtual Guid RoleId { get; set; }
public virtual string Name { get; set; }
public virtual string Description { get; set; }
}
[Route("/administrators/", "POST")]
[ApiResponse(Description="Returned if there is a validation error on the input parameters", StatusCode=400)]
[ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401)]
[ValidateRequest("IsAuthenticated")]
public partial class CreateCompanyUser
: IReturn, ICompany
{
///
///Enter the company and id for the customer, if blank company id and you are an admin, your company id will be used.
///
[ApiMember(Description="Enter the company and id for the customer, if blank company id and you are an admin, your company id will be used.", ParameterType="query")]
public virtual Guid? CompanyId { get; set; }
[ApiMember(IsRequired=true)]
public virtual string Firstname { get; set; }
[ApiMember(IsRequired=true)]
public virtual string Lastname { get; set; }
[ApiMember(IsRequired=true)]
public virtual string Phone { get; set; }
[ApiMember(IsRequired=true)]
public virtual string Email { get; set; }
[ApiMember]
public virtual int? ResourceId { get; set; }
[ApiMember]
public virtual List Roles { get; set; }
[ApiMember]
public virtual int? WorkerId { get; set; }
///
///If the admin should receive Push notification when booked
///
[ApiMember(Description="If the admin should receive Push notification when booked")]
public virtual bool SendPushNotification { get; set; }
///
///If the resource should receive Push notification reminders on bookings
///
[ApiMember(Description="If the resource should receive Push notification reminders on bookings")]
public virtual bool SendPushNotificationReminder { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}