/* Options: Date: 2024-06-17 01:58:55 Version: 8.23 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: True //ExportValueTypes: False IncludeTypes: ChangeResourceOnBooking.* //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 System.IO; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; using BokaMera.API.ServiceModel.Enums; namespace BokaMera.API.ServiceModel.Dtos { public partial class BookedCompany { public virtual Guid Id { get; set; } public virtual string Name { get; set; } public virtual Uri LogoType { get; set; } public virtual string Category { get; set; } public virtual string Street1 { get; set; } public virtual string Street2 { get; set; } public virtual string ZipCode { get; set; } public virtual string City { get; set; } public virtual string CountryId { get; set; } public virtual string Longitude { get; set; } public virtual string Latitude { get; set; } public virtual string Phone { get; set; } public virtual string Email { get; set; } public virtual string HomePage { get; set; } public virtual string SitePath { get; set; } public virtual bool IsFavorite { get; set; } public virtual int? PaymentProviderId { get; set; } } public partial class BookedCustomer { public virtual Guid Id { 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 FacebookUserName { get; set; } public virtual string ImageUrl { get; set; } public virtual string CorporateIdentityNumber { get; set; } public virtual string InvoiceAddress1 { get; set; } public virtual string InvoiceAddress2 { get; set; } public virtual string InvoiceCity { get; set; } public virtual string InvoicePostalCode { get; set; } public virtual string InvoiceCountryCode { get; set; } } public partial class BookedQuantity { /// ///The quantity Id /// [ApiMember(Description="The quantity Id")] public virtual int Id { get; set; } /// ///The quantity for booked on this price category /// [ApiMember(Description="The quantity for booked on this price category")] public virtual int Quantity { get; set; } /// ///The price /// [ApiMember(Description="The price")] public virtual double? Price { get; set; } /// ///The price bofore rebate codes /// [ApiMember(Description="The price bofore rebate codes")] public virtual double? PriceBeforeRebate { get; set; } /// ///The price currency /// [ApiMember(Description="The price currency")] public virtual string CurrencyId { get; set; } /// ///The price sign /// [ApiMember(Description="The price sign")] public virtual string PriceSign { get; set; } /// ///The price category /// [ApiMember(Description="The price category")] public virtual string Category { get; set; } /// ///The price VAT in percent /// [ApiMember(Description="The price VAT in percent")] public virtual decimal? VAT { get; set; } /// ///The price text to display /// [ApiMember(Description="The price text to display")] public virtual string PriceText { get; set; } /// ///If the quantity you add should occupy a spot. Default is true. If no it will only be a row that includes price information. /// [ApiMember(Description="If the quantity you add should occupy a spot. Default is true. If no it will only be a row that includes price information.")] public virtual bool OccupiesSpot { get; set; } } public partial class BookedResource { public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual string Color { get; set; } public virtual Uri ImageUrl { get; set; } public virtual string Email { get; set; } public virtual string MobilePhone { get; set; } public virtual string AccessGroup { get; set; } public virtual bool EmailNotification { get; set; } public virtual bool SMSNotification { get; set; } public virtual bool EmailReminder { get; set; } public virtual bool SMSReminder { get; set; } } public partial class BookedResourceType { public BookedResourceType() { Resources = new List{}; } /// ///The resource type id /// [ApiMember(Description="The resource type id")] public virtual int Id { get; set; } /// ///The resource type name /// [ApiMember(Description="The resource type name")] public virtual string Name { get; set; } /// ///The resources inside resource type /// [ApiMember(Description="The resources inside resource type")] public virtual List Resources { get; set; } } public partial class BookingCalendarExportStatus { public virtual string CalendarId { get; set; } public virtual int BookingId { get; set; } public virtual bool? Synced { get; set; } } public partial class BookingCheckoutQueryResponse { /// ///The checkout id /// [ApiMember(Description="The checkout id")] public virtual Guid Id { get; set; } /// ///The booking id /// [ApiMember(Description="The booking id")] public virtual int BookingId { get; set; } /// ///The purchase id /// [ApiMember(Description="The purchase id")] public virtual int? PurchaseId { get; set; } /// ///The payment checkout expiration datetime /// [ApiMember(Description="The payment checkout expiration datetime")] public virtual DateTime? ExpirationTime { get; set; } /// ///The payment snippet code /// [ApiMember(Description="The payment snippet code")] public virtual string Snippet { get; set; } /// ///The payment status /// [ApiMember(Description="The payment status")] public virtual string Status { get; set; } /// ///Log message /// [ApiMember(Description="Log message")] public virtual string Message { get; set; } /// ///When the checkout log item was created /// [ApiMember(Description="When the checkout log item was created")] public virtual DateTime Created { get; set; } /// ///When the checkout log item was updated /// [ApiMember(Description="When the checkout log item was updated")] public virtual DateTime Updated { 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; } } public partial class BookingPaymentLogQueryResponse { /// ///The booking payment log id /// [ApiMember(Description="The booking payment log id")] public virtual int Id { get; set; } /// ///The booking id /// [ApiMember(Description="The booking id")] public virtual int BookingId { get; set; } /// ///The payment reference id /// [ApiMember(Description="The payment reference id")] public virtual string PaymentReferenceId { get; set; } /// ///The payment order item reference id /// [ApiMember(Description="The payment order item reference id")] public virtual string OrderItemReferenceId { get; set; } /// ///The payment reference id /// [ApiMember(Description="The payment reference id")] public virtual int? PaymentProviderId { get; set; } /// ///The payment amount /// [ApiMember(Description="The payment amount")] public virtual double Amount { get; set; } /// ///The payment VAT in percent /// [ApiMember(Description="The payment VAT in percent")] public virtual decimal VAT { get; set; } /// ///The payment amount that is credited /// [ApiMember(Description="The payment amount that is credited")] public virtual double AmountCredited { get; set; } /// ///The payment currency id /// [ApiMember(Description="The payment currency id")] public virtual string CurrencyId { get; set; } /// ///The payment currency info /// [ApiMember(Description="The payment currency info")] public virtual CurrencyInfoResponse CurrencyInfo { 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 date when the payment items was created /// [ApiMember(Description="The date when the payment items was created")] public virtual DateTime Created { get; set; } /// ///The date when the payment items was update /// [ApiMember(Description="The date when the payment items was update")] public virtual DateTime Updated { get; set; } } public partial class BookingQueryResponse { public BookingQueryResponse() { CustomFields = new List{}; CustomFieldValues = new List{}; BookedResourceTypes = new List{}; Quantities = new List{}; Log = new List{}; PaymentLog = new List{}; CheckoutLog = new List{}; ExternalReference = new List{}; } public virtual int Id { get; set; } public virtual Guid CompanyId { get; set; } public virtual DateTime From { get; set; } public virtual DateTime To { get; set; } public virtual BookingStatusEnum Status { get; set; } public virtual int StatusId { get; set; } public virtual string StatusName { get; set; } public virtual BookingStatusQueryResponse StatusInfo { get; set; } public virtual bool SendEmailReminder { get; set; } public virtual bool SendSmsReminder { get; set; } public virtual bool SendSmsConfirmation { get; set; } public virtual bool SendEmailConfirmation { get; set; } public virtual DateTime? LastTimeToUnBook { get; set; } public virtual List CustomFields { get; set; } public virtual List CustomFieldValues { get; set; } public virtual List BookedResourceTypes { get; set; } public virtual BookedCompany Company { get; set; } public virtual BookedCustomer Customer { get; set; } public virtual List Quantities { get; set; } public virtual ServiceInfoResponse Service { get; set; } public virtual DateTime? PaymentExpiration { get; set; } public virtual List Log { get; set; } public virtual List PaymentLog { get; set; } public virtual List CheckoutLog { get; set; } public virtual List ExternalReference { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } public virtual BookingCalendarExportStatus CalendarExportStatus { get; set; } public virtual int? LengthInMinutes { get; set; } public virtual string BookedBy { get; set; } public virtual string BookedComments { get; set; } public virtual string UnbookedComments { get; set; } public virtual string CommentsToCustomer { get; set; } public virtual DateTime CreatedDate { get; set; } public virtual DateTime UpdatedDate { get; set; } public virtual DateTime? UnbookedOn { get; set; } public virtual string CancellationCode { get; set; } public virtual string RatingCode { get; set; } } public partial class BookingStatusQueryResponse { public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } public virtual string Icon { get; set; } public virtual string Color { get; set; } } [Route("/bookings/{Id}/resource", "PUT")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403)] [ValidateRequest("IsAuthenticated")] public partial class ChangeResourceOnBooking : 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 booking /// [ApiMember(Description="Id of the booking", IsRequired=true, ParameterType="path")] public virtual int? Id { get; set; } /// ///The resource type id /// [ApiMember(Description="The resource type id")] public virtual int ResourceTypeId { get; set; } /// ///The resource id you want to replace /// [ApiMember(Description="The resource id you want to replace")] public virtual int ResourceId { get; set; } /// ///The resource id to be replaced with /// [ApiMember(Description="The resource id to be replaced with")] public virtual int NewResourceId { get; set; } } public partial class CurrencyInfoResponse { /// ///The currency id /// [ApiMember(Description="The currency id")] public virtual string Id { get; set; } /// ///The currency id /// [ApiMember(Description="The currency id")] public virtual string Name { get; set; } /// ///The currency id /// [ApiMember(Description="The currency id")] public virtual string CurrencySign { get; set; } } public partial class CustomFieldConfigData { public CustomFieldConfigData() { Values = new List{}; } /// ///Custom field id /// [ApiMember(Description="Custom field id")] public virtual int Id { get; set; } /// ///Configuration name. Example: 'Number of persons'. /// [ApiMember(Description="Configuration name. Example: 'Number of persons'.")] public virtual string Name { get; set; } /// ///Custom field description. Example: 'For how many persons is this booking?' /// [ApiMember(Description="Custom field description. Example: 'For how many persons is this booking?'")] public virtual string Description { get; set; } /// ///Field width. Example: 20 for 20px /// [ApiMember(Description="Field width. Example: 20 for 20px")] public virtual int? Width { get; set; } /// ///Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' /// [ApiMember(Description="Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'")] public virtual string DataType { get; set; } /// ///Default value of the field. Example: '3' /// [ApiMember(Description="Default value of the field. Example: '3'")] public virtual string DefaultValue { get; set; } /// ///Determines if the field is required to have a value or not /// [ApiMember(Description="Determines if the field is required to have a value or not")] public virtual bool IsMandatory { get; set; } /// ///Error message shown to the user if the field data is required but not entered /// [ApiMember(Description="Error message shown to the user if the field data is required but not entered")] public virtual string MandatoryErrorMessage { get; set; } /// ///Max lenght of the field /// [ApiMember(Description="Max lenght of the field")] public virtual int MaxLength { get; set; } /// ///If the field should have multiple lines /// [ApiMember(Description="If the field should have multiple lines")] public virtual bool MultipleLineText { get; set; } /// ///Regular expression used for validation of the field /// [ApiMember(Description="Regular expression used for validation of the field")] public virtual string RegEx { get; set; } /// ///Error message shown if the regular expression validation failed /// [ApiMember(Description="Error message shown if the regular expression validation failed")] public virtual string RegExErrorMessage { get; set; } /// ///The values to select from if Datatype is DropDown for this custom field /// [ApiMember(Description="The values to select from if Datatype is DropDown for this custom field")] public virtual List Values { get; set; } } public partial class CustomFieldDataResponse { public virtual int Id { get; set; } public virtual string Column { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } public virtual string Value { get; set; } /// ///Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' /// [ApiMember(Description="Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'")] public virtual string DataType { get; set; } } public partial class CustomFieldValueResponse { public virtual string Value { get; set; } } public partial class ExternalReferenceResponse { public virtual Guid CompanyId { get; set; } public virtual Guid Id { get; set; } public virtual Guid OwnerId { get; set; } public virtual string ReferenceType { get; set; } public virtual string ExternalData { get; set; } public virtual string CreatedBy { get; set; } public virtual DateTime Updated { get; set; } public virtual DateTime Created { get; set; } } public partial class GroupBookingSettings { public virtual bool Active { get; set; } public virtual int Min { get; set; } public virtual int Max { get; set; } } public partial class MultipleResourceSettings { public virtual bool Active { get; set; } public virtual int Min { get; set; } public virtual int Max { get; set; } } public partial class ServiceInfoResponse { public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } public virtual Uri ImageUrl { get; set; } public virtual int? LengthInMinutes { get; set; } public virtual int MaxNumberOfSpotsPerBooking { get; set; } public virtual GroupBookingSettings GroupBooking { get; set; } public virtual MultipleResourceSettings MultipleResource { get; set; } public virtual bool IsGroupBooking { get; set; } public virtual bool IsPaymentEnabled { get; set; } } } namespace BokaMera.API.ServiceModel.Enums { public enum BookingStatusEnum { Booked = 1, Unbooked = 2, Reserved = 3, Canceled = 4, AwaitingPayment = 5, AwaitingPaymentNoTimeLimit = 6, Payed = 7, AwaitingPaymentRequestFromAdmin = 8, AwaitingPaymentFromProvider = 9, Invoiced = 10, } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }