/* Options: Date: 2024-07-03 13:01:18 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ServicePricesQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IInterval { DateTime? From; DateTime? To; } class BaseModel implements IConvertible { BaseModel(); BaseModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "BaseModel"; TypeContext? context = _ctx; } class Currency extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? CurrencySign; // @Required() bool? Active; DateTime? ModifiedDate; // @Required() String? Id; Currency({this.Name,this.CurrencySign,this.Active,this.ModifiedDate,this.Id}); Currency.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; CurrencySign = json['CurrencySign']; Active = json['Active']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'CurrencySign': CurrencySign, 'Active': Active, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "Currency"; TypeContext? context = _ctx; } class Customer extends BaseModel implements IUser, ICustomFieldTable, IConvertible { int? IdentityId; String? Id; // @Ignore() String? CustomerId; // @Ignore() List? AccessKeys; String? Email; // @Ignore() List? ExternalReferences; // @Ignore() List? CustomFieldsConfig; // @Ignore() List? CustomFieldsData; // @Ignore() List? Comments; String? Firstname; // @Ignore() String? ImageUrl; // @Required() bool? Active; String? FacebookUsername; // @Required() DateTime? Updated; // @Required() DateTime? Created; String? IpAddress; DateTime? ModifiedDate; String? TextField1; String? TextField2; String? TextField3; String? TextField4; String? TextField5; String? TextField6; String? TextField7; String? TextField8; String? TextField9; String? TextField10; String? TextField11; String? TextField12; String? TextField13; String? TextField14; String? TextField15; String? TextField16; String? TextField17; String? TextField18; String? TextField19; String? TextField20; String? UserId; String? Lastname; String? Phone; String? CorporateIdentityNumber; String? InvoiceAddress1; String? InvoiceAddress2; String? InvoiceCity; String? InvoicePostalCode; String? InvoiceCountryCode; // @Required() String? CompanyId; bool? SubscribedToNewsletter; Customer({this.IdentityId,this.Id,this.CustomerId,this.AccessKeys,this.Email,this.ExternalReferences,this.CustomFieldsConfig,this.CustomFieldsData,this.Comments,this.Firstname,this.ImageUrl,this.Active,this.FacebookUsername,this.Updated,this.Created,this.IpAddress,this.ModifiedDate,this.TextField1,this.TextField2,this.TextField3,this.TextField4,this.TextField5,this.TextField6,this.TextField7,this.TextField8,this.TextField9,this.TextField10,this.TextField11,this.TextField12,this.TextField13,this.TextField14,this.TextField15,this.TextField16,this.TextField17,this.TextField18,this.TextField19,this.TextField20,this.UserId,this.Lastname,this.Phone,this.CorporateIdentityNumber,this.InvoiceAddress1,this.InvoiceAddress2,this.InvoiceCity,this.InvoicePostalCode,this.InvoiceCountryCode,this.CompanyId,this.SubscribedToNewsletter}); Customer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); IdentityId = json['IdentityId']; Id = json['Id']; CustomerId = json['CustomerId']; AccessKeys = JsonConverters.fromJson(json['AccessKeys'],'List',context!); Email = json['Email']; ExternalReferences = JsonConverters.fromJson(json['ExternalReferences'],'List',context!); CustomFieldsConfig = JsonConverters.fromJson(json['CustomFieldsConfig'],'List',context!); CustomFieldsData = JsonConverters.fromJson(json['CustomFieldsData'],'List',context!); Comments = JsonConverters.fromJson(json['Comments'],'List',context!); Firstname = json['Firstname']; ImageUrl = json['ImageUrl']; Active = json['Active']; FacebookUsername = json['FacebookUsername']; Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); IpAddress = json['IpAddress']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); TextField1 = json['TextField1']; TextField2 = json['TextField2']; TextField3 = json['TextField3']; TextField4 = json['TextField4']; TextField5 = json['TextField5']; TextField6 = json['TextField6']; TextField7 = json['TextField7']; TextField8 = json['TextField8']; TextField9 = json['TextField9']; TextField10 = json['TextField10']; TextField11 = json['TextField11']; TextField12 = json['TextField12']; TextField13 = json['TextField13']; TextField14 = json['TextField14']; TextField15 = json['TextField15']; TextField16 = json['TextField16']; TextField17 = json['TextField17']; TextField18 = json['TextField18']; TextField19 = json['TextField19']; TextField20 = json['TextField20']; UserId = json['UserId']; Lastname = json['Lastname']; Phone = json['Phone']; CorporateIdentityNumber = json['CorporateIdentityNumber']; InvoiceAddress1 = json['InvoiceAddress1']; InvoiceAddress2 = json['InvoiceAddress2']; InvoiceCity = json['InvoiceCity']; InvoicePostalCode = json['InvoicePostalCode']; InvoiceCountryCode = json['InvoiceCountryCode']; CompanyId = json['CompanyId']; SubscribedToNewsletter = json['SubscribedToNewsletter']; return this; } Map toJson() => super.toJson()..addAll({ 'IdentityId': IdentityId, 'Id': Id, 'CustomerId': CustomerId, 'AccessKeys': JsonConverters.toJson(AccessKeys,'List',context!), 'Email': Email, 'ExternalReferences': JsonConverters.toJson(ExternalReferences,'List',context!), 'CustomFieldsConfig': JsonConverters.toJson(CustomFieldsConfig,'List',context!), 'CustomFieldsData': JsonConverters.toJson(CustomFieldsData,'List',context!), 'Comments': JsonConverters.toJson(Comments,'List',context!), 'Firstname': Firstname, 'ImageUrl': ImageUrl, 'Active': Active, 'FacebookUsername': FacebookUsername, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'IpAddress': IpAddress, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'TextField1': TextField1, 'TextField2': TextField2, 'TextField3': TextField3, 'TextField4': TextField4, 'TextField5': TextField5, 'TextField6': TextField6, 'TextField7': TextField7, 'TextField8': TextField8, 'TextField9': TextField9, 'TextField10': TextField10, 'TextField11': TextField11, 'TextField12': TextField12, 'TextField13': TextField13, 'TextField14': TextField14, 'TextField15': TextField15, 'TextField16': TextField16, 'TextField17': TextField17, 'TextField18': TextField18, 'TextField19': TextField19, 'TextField20': TextField20, 'UserId': UserId, 'Lastname': Lastname, 'Phone': Phone, 'CorporateIdentityNumber': CorporateIdentityNumber, 'InvoiceAddress1': InvoiceAddress1, 'InvoiceAddress2': InvoiceAddress2, 'InvoiceCity': InvoiceCity, 'InvoicePostalCode': InvoicePostalCode, 'InvoiceCountryCode': InvoiceCountryCode, 'CompanyId': CompanyId, 'SubscribedToNewsletter': SubscribedToNewsletter }); getTypeName() => "Customer"; TypeContext? context = _ctx; } class RebateCodeType extends BaseModel implements IConvertible { // @Required() String? Name; String? Description; DateTime? ModifiedDate; int? Id; RebateCodeType({this.Name,this.Description,this.ModifiedDate,this.Id}); RebateCodeType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "RebateCodeType"; TypeContext? context = _ctx; } enum BokaMeraDayOfWeek { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, } class RebateCodeDayOfWeekRelation extends BaseModel implements IConvertible { // @Ignore() BokaMeraDayOfWeek? DayOfWeek; // @Required() int? DayOfWeekId; // @Required() int? RebateCodeId; // @Required() String? CompanyId; int? Id; DateTime? ModifiedDate; RebateCodeDayOfWeekRelation({this.DayOfWeek,this.DayOfWeekId,this.RebateCodeId,this.CompanyId,this.Id,this.ModifiedDate}); RebateCodeDayOfWeekRelation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DayOfWeek = JsonConverters.fromJson(json['DayOfWeek'],'BokaMeraDayOfWeek',context!); DayOfWeekId = json['DayOfWeekId']; RebateCodeId = json['RebateCodeId']; CompanyId = json['CompanyId']; Id = json['Id']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'DayOfWeek': JsonConverters.toJson(DayOfWeek,'BokaMeraDayOfWeek',context!), 'DayOfWeekId': DayOfWeekId, 'RebateCodeId': RebateCodeId, 'CompanyId': CompanyId, 'Id': Id, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "RebateCodeDayOfWeekRelation"; TypeContext? context = _ctx; } class RebateCodeServiceRelation extends BaseModel implements IConvertible { // @Required() String? CompanyId; // @Required() int? ServiceId; // @Required() int? RebateCodeId; int? Id; DateTime? ModifiedDate; RebateCodeServiceRelation({this.CompanyId,this.ServiceId,this.RebateCodeId,this.Id,this.ModifiedDate}); RebateCodeServiceRelation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; ServiceId = json['ServiceId']; RebateCodeId = json['RebateCodeId']; Id = json['Id']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'ServiceId': ServiceId, 'RebateCodeId': RebateCodeId, 'Id': Id, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "RebateCodeServiceRelation"; TypeContext? context = _ctx; } class RebateCodeBookingPriceRelation extends BaseModel implements IConvertible { // @Required() String? CompanyId; // @Required() int? PriceId; // @Required() int? RebateCodeId; int? Id; DateTime? ModifiedDate; RebateCodeBookingPriceRelation({this.CompanyId,this.PriceId,this.RebateCodeId,this.Id,this.ModifiedDate}); RebateCodeBookingPriceRelation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; PriceId = json['PriceId']; RebateCodeId = json['RebateCodeId']; Id = json['Id']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'PriceId': PriceId, 'RebateCodeId': RebateCodeId, 'Id': Id, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "RebateCodeBookingPriceRelation"; TypeContext? context = _ctx; } class RebateCodeCustomerRelation extends BaseModel implements IConvertible { // @Required() String? CompanyId; // @Required() String? CustomerId; // @Required() int? RebateCodeId; int? Id; DateTime? ModifiedDate; RebateCodeCustomerRelation({this.CompanyId,this.CustomerId,this.RebateCodeId,this.Id,this.ModifiedDate}); RebateCodeCustomerRelation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; CustomerId = json['CustomerId']; RebateCodeId = json['RebateCodeId']; Id = json['Id']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'CustomerId': CustomerId, 'RebateCodeId': RebateCodeId, 'Id': Id, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "RebateCodeCustomerRelation"; TypeContext? context = _ctx; } class DaysOfWeek extends BaseModel implements IConvertible { // @Required() String? DayOfWeek; // @Required() String? DayOfWeekTranslation; bool? DayOfWeekActive; int? DayOfWeekSortOrder; DateTime? ModifiedDate; int? Id; DaysOfWeek({this.DayOfWeek,this.DayOfWeekTranslation,this.DayOfWeekActive,this.DayOfWeekSortOrder,this.ModifiedDate,this.Id}); DaysOfWeek.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DayOfWeek = json['DayOfWeek']; DayOfWeekTranslation = json['DayOfWeekTranslation']; DayOfWeekActive = json['DayOfWeekActive']; DayOfWeekSortOrder = json['DayOfWeekSortOrder']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'DayOfWeek': DayOfWeek, 'DayOfWeekTranslation': DayOfWeekTranslation, 'DayOfWeekActive': DayOfWeekActive, 'DayOfWeekSortOrder': DayOfWeekSortOrder, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "DaysOfWeek"; TypeContext? context = _ctx; } class RebateCodeStatus extends BaseModel implements IConvertible { // @Required() String? Name; String? Description; DateTime? ModifiedDate; int? Id; RebateCodeStatus({this.Name,this.Description,this.ModifiedDate,this.Id}); RebateCodeStatus.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "RebateCodeStatus"; TypeContext? context = _ctx; } class RebateCode extends BaseModel implements IConvertible { // @References(typeof(RebateCodeType)) int? RebateCodeTypeId; RebateCodeType? RebateCodeTypeInfo; // @References(typeof(RebateCodeStatus)) int? RebateCodeStatusId; RebateCodeType? RebateCodeStatusInfo; // @Ignore() List? Services; List? RebateCodeDayOfWeekRelation; List? RebateCodeServiceRelation; List? RebateCodeBookingPriceRelation; List? RebateCodeCustomerRelation; // @Ignore() List? DaysOfWeek; // @Ignore() List? Customers; // @Ignore() RebateCodeStatus? RebateCodeStatus; // @Ignore() RebateCodeType? RebateCodeType; // @Ignore() int? CurrentNumberOfUsesPerCustomer; // @Ignore() bool? IsSpecificByDayOfWeek; // @Ignore() bool? Active; String? CompanyId; // @Required() DateTime? ValidFrom; // @Required() DateTime? ValidTo; // @Required() String? RebateCodeSign; // @Required() int? RebateCodeValue; // @Required() int? MaxNumberOfUses; // @Required() int? MaxNumberOfUsesPerCustomer; // @Required() int? NumberOfUsesUsed; String? PersonalNote; // @Required() String? CreatedBy; // @Required() DateTime? Created; // @Required() String? UpdatedBy; // @Required() DateTime? Updated; // @Required() Duration? FromTime; // @Required() Duration? ToTime; DateTime? ModifiedDate; int? Id; RebateCode({this.RebateCodeTypeId,this.RebateCodeTypeInfo,this.RebateCodeStatusId,this.RebateCodeStatusInfo,this.Services,this.RebateCodeDayOfWeekRelation,this.RebateCodeServiceRelation,this.RebateCodeBookingPriceRelation,this.RebateCodeCustomerRelation,this.DaysOfWeek,this.Customers,this.RebateCodeStatus,this.RebateCodeType,this.CurrentNumberOfUsesPerCustomer,this.IsSpecificByDayOfWeek,this.Active,this.CompanyId,this.ValidFrom,this.ValidTo,this.RebateCodeSign,this.RebateCodeValue,this.MaxNumberOfUses,this.MaxNumberOfUsesPerCustomer,this.NumberOfUsesUsed,this.PersonalNote,this.CreatedBy,this.Created,this.UpdatedBy,this.Updated,this.FromTime,this.ToTime,this.ModifiedDate,this.Id}); RebateCode.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); RebateCodeTypeId = json['RebateCodeTypeId']; RebateCodeTypeInfo = JsonConverters.fromJson(json['RebateCodeTypeInfo'],'RebateCodeType',context!); RebateCodeStatusId = json['RebateCodeStatusId']; RebateCodeStatusInfo = JsonConverters.fromJson(json['RebateCodeStatusInfo'],'RebateCodeType',context!); Services = JsonConverters.fromJson(json['Services'],'List',context!); RebateCodeDayOfWeekRelation = JsonConverters.fromJson(json['RebateCodeDayOfWeekRelation'],'List',context!); RebateCodeServiceRelation = JsonConverters.fromJson(json['RebateCodeServiceRelation'],'List',context!); RebateCodeBookingPriceRelation = JsonConverters.fromJson(json['RebateCodeBookingPriceRelation'],'List',context!); RebateCodeCustomerRelation = JsonConverters.fromJson(json['RebateCodeCustomerRelation'],'List',context!); DaysOfWeek = JsonConverters.fromJson(json['DaysOfWeek'],'List',context!); Customers = JsonConverters.fromJson(json['Customers'],'List',context!); RebateCodeStatus = JsonConverters.fromJson(json['RebateCodeStatus'],'RebateCodeStatus',context!); RebateCodeType = JsonConverters.fromJson(json['RebateCodeType'],'RebateCodeType',context!); CurrentNumberOfUsesPerCustomer = json['CurrentNumberOfUsesPerCustomer']; IsSpecificByDayOfWeek = json['IsSpecificByDayOfWeek']; Active = json['Active']; CompanyId = json['CompanyId']; ValidFrom = JsonConverters.fromJson(json['ValidFrom'],'DateTime',context!); ValidTo = JsonConverters.fromJson(json['ValidTo'],'DateTime',context!); RebateCodeSign = json['RebateCodeSign']; RebateCodeValue = json['RebateCodeValue']; MaxNumberOfUses = json['MaxNumberOfUses']; MaxNumberOfUsesPerCustomer = json['MaxNumberOfUsesPerCustomer']; NumberOfUsesUsed = json['NumberOfUsesUsed']; PersonalNote = json['PersonalNote']; CreatedBy = json['CreatedBy']; Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); UpdatedBy = json['UpdatedBy']; Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); FromTime = JsonConverters.fromJson(json['FromTime'],'Duration',context!); ToTime = JsonConverters.fromJson(json['ToTime'],'Duration',context!); ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'RebateCodeTypeId': RebateCodeTypeId, 'RebateCodeTypeInfo': JsonConverters.toJson(RebateCodeTypeInfo,'RebateCodeType',context!), 'RebateCodeStatusId': RebateCodeStatusId, 'RebateCodeStatusInfo': JsonConverters.toJson(RebateCodeStatusInfo,'RebateCodeType',context!), 'Services': JsonConverters.toJson(Services,'List',context!), 'RebateCodeDayOfWeekRelation': JsonConverters.toJson(RebateCodeDayOfWeekRelation,'List',context!), 'RebateCodeServiceRelation': JsonConverters.toJson(RebateCodeServiceRelation,'List',context!), 'RebateCodeBookingPriceRelation': JsonConverters.toJson(RebateCodeBookingPriceRelation,'List',context!), 'RebateCodeCustomerRelation': JsonConverters.toJson(RebateCodeCustomerRelation,'List',context!), 'DaysOfWeek': JsonConverters.toJson(DaysOfWeek,'List',context!), 'Customers': JsonConverters.toJson(Customers,'List',context!), 'RebateCodeStatus': JsonConverters.toJson(RebateCodeStatus,'RebateCodeStatus',context!), 'RebateCodeType': JsonConverters.toJson(RebateCodeType,'RebateCodeType',context!), 'CurrentNumberOfUsesPerCustomer': CurrentNumberOfUsesPerCustomer, 'IsSpecificByDayOfWeek': IsSpecificByDayOfWeek, 'Active': Active, 'CompanyId': CompanyId, 'ValidFrom': JsonConverters.toJson(ValidFrom,'DateTime',context!), 'ValidTo': JsonConverters.toJson(ValidTo,'DateTime',context!), 'RebateCodeSign': RebateCodeSign, 'RebateCodeValue': RebateCodeValue, 'MaxNumberOfUses': MaxNumberOfUses, 'MaxNumberOfUsesPerCustomer': MaxNumberOfUsesPerCustomer, 'NumberOfUsesUsed': NumberOfUsesUsed, 'PersonalNote': PersonalNote, 'CreatedBy': CreatedBy, 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'UpdatedBy': UpdatedBy, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'FromTime': JsonConverters.toJson(FromTime,'Duration',context!), 'ToTime': JsonConverters.toJson(ToTime,'Duration',context!), 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "RebateCode"; TypeContext? context = _ctx; } class PriceMapping extends BaseModel implements IConvertible { // @Required() String? CompanyId; // @Required() String? Id; // @Required() int? PriceId; String? ReferenceType; String? ExternalReference; // @Required() DateTime? UpdatedDate; // @Required() DateTime? CreatedDate; DateTime? ModifiedDate; PriceMapping({this.CompanyId,this.Id,this.PriceId,this.ReferenceType,this.ExternalReference,this.UpdatedDate,this.CreatedDate,this.ModifiedDate}); PriceMapping.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; Id = json['Id']; PriceId = json['PriceId']; ReferenceType = json['ReferenceType']; ExternalReference = json['ExternalReference']; UpdatedDate = JsonConverters.fromJson(json['UpdatedDate'],'DateTime',context!); CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'Id': Id, 'PriceId': PriceId, 'ReferenceType': ReferenceType, 'ExternalReference': ExternalReference, 'UpdatedDate': JsonConverters.toJson(UpdatedDate,'DateTime',context!), 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "PriceMapping"; TypeContext? context = _ctx; } class ServicePriceDayOfWeekRelation extends BaseModel implements IConvertible { // @Ignore() BokaMeraDayOfWeek? DayOfWeek; // @Required() String? CompanyId; // @Required() int? ServicePriceId; // @Required() int? DayOfWeekId; DateTime? ModifiedDate; int? Id; ServicePriceDayOfWeekRelation({this.DayOfWeek,this.CompanyId,this.ServicePriceId,this.DayOfWeekId,this.ModifiedDate,this.Id}); ServicePriceDayOfWeekRelation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DayOfWeek = JsonConverters.fromJson(json['DayOfWeek'],'BokaMeraDayOfWeek',context!); CompanyId = json['CompanyId']; ServicePriceId = json['ServicePriceId']; DayOfWeekId = json['DayOfWeekId']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'DayOfWeek': JsonConverters.toJson(DayOfWeek,'BokaMeraDayOfWeek',context!), 'CompanyId': CompanyId, 'ServicePriceId': ServicePriceId, 'DayOfWeekId': DayOfWeekId, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "ServicePriceDayOfWeekRelation"; TypeContext? context = _ctx; } class ServicePrice extends BaseModel implements IInterval, IConvertible { // @References(typeof(Currency)) String? CurrencyId; Currency? CurrencyInfo; // @Ignore() Service? Service; // @Ignore() List? PriceMappings; // @Ignore() bool? isTimeSpecific; // @Ignore() bool? isDaysOfWeekSpecific; List? DayOfWeeks; // @Ignore() double? PriceBeforeRebate; // @Ignore() List? RebateCodesApplied; // @Ignore() String? PriceText; // @Ignore() bool? IsWeighted; // @Ignore() List? OverlappingPrices; // @Required() String? CompanyId; int? Id; // @Required() int? ServiceId; double? Price; // @Required() DateTime? Updated; // @Required() DateTime? Created; // @Required() Duration? FromTime; // @Required() Duration? ToTime; // @Required() double? VAT; String? Category; DateTime? ModifiedDate; // @Required() DateTime? From; // @Required() DateTime? To; // @Required() int? CalculationTypeId; ServicePrice({this.CurrencyId,this.CurrencyInfo,this.Service,this.PriceMappings,this.isTimeSpecific,this.isDaysOfWeekSpecific,this.DayOfWeeks,this.PriceBeforeRebate,this.RebateCodesApplied,this.PriceText,this.IsWeighted,this.OverlappingPrices,this.CompanyId,this.Id,this.ServiceId,this.Price,this.Updated,this.Created,this.FromTime,this.ToTime,this.VAT,this.Category,this.ModifiedDate,this.From,this.To,this.CalculationTypeId}); ServicePrice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CurrencyId = json['CurrencyId']; CurrencyInfo = JsonConverters.fromJson(json['CurrencyInfo'],'Currency',context!); Service = JsonConverters.fromJson(json['Service'],'Service',context!); PriceMappings = JsonConverters.fromJson(json['PriceMappings'],'List',context!); isTimeSpecific = json['isTimeSpecific']; isDaysOfWeekSpecific = json['isDaysOfWeekSpecific']; DayOfWeeks = JsonConverters.fromJson(json['DayOfWeeks'],'List',context!); PriceBeforeRebate = JsonConverters.toDouble(json['PriceBeforeRebate']); RebateCodesApplied = JsonConverters.fromJson(json['RebateCodesApplied'],'List',context!); PriceText = json['PriceText']; IsWeighted = json['IsWeighted']; OverlappingPrices = JsonConverters.fromJson(json['OverlappingPrices'],'List',context!); CompanyId = json['CompanyId']; Id = json['Id']; ServiceId = json['ServiceId']; Price = JsonConverters.toDouble(json['Price']); Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); FromTime = JsonConverters.fromJson(json['FromTime'],'Duration',context!); ToTime = JsonConverters.fromJson(json['ToTime'],'Duration',context!); VAT = JsonConverters.toDouble(json['VAT']); Category = json['Category']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); From = JsonConverters.fromJson(json['From'],'DateTime',context!); To = JsonConverters.fromJson(json['To'],'DateTime',context!); CalculationTypeId = json['CalculationTypeId']; return this; } Map toJson() => super.toJson()..addAll({ 'CurrencyId': CurrencyId, 'CurrencyInfo': JsonConverters.toJson(CurrencyInfo,'Currency',context!), 'Service': JsonConverters.toJson(Service,'Service',context!), 'PriceMappings': JsonConverters.toJson(PriceMappings,'List',context!), 'isTimeSpecific': isTimeSpecific, 'isDaysOfWeekSpecific': isDaysOfWeekSpecific, 'DayOfWeeks': JsonConverters.toJson(DayOfWeeks,'List',context!), 'PriceBeforeRebate': PriceBeforeRebate, 'RebateCodesApplied': JsonConverters.toJson(RebateCodesApplied,'List',context!), 'PriceText': PriceText, 'IsWeighted': IsWeighted, 'OverlappingPrices': JsonConverters.toJson(OverlappingPrices,'List',context!), 'CompanyId': CompanyId, 'Id': Id, 'ServiceId': ServiceId, 'Price': Price, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'FromTime': JsonConverters.toJson(FromTime,'Duration',context!), 'ToTime': JsonConverters.toJson(ToTime,'Duration',context!), 'VAT': VAT, 'Category': Category, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'From': JsonConverters.toJson(From,'DateTime',context!), 'To': JsonConverters.toJson(To,'DateTime',context!), 'CalculationTypeId': CalculationTypeId }); getTypeName() => "ServicePrice"; TypeContext? context = _ctx; } class GroupBookingSettings implements IConvertible { bool? Active; int? Min; int? Max; GroupBookingSettings({this.Active,this.Min,this.Max}); GroupBookingSettings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Active = json['Active']; Min = json['Min']; Max = json['Max']; return this; } Map toJson() => { 'Active': Active, 'Min': Min, 'Max': Max }; getTypeName() => "GroupBookingSettings"; TypeContext? context = _ctx; } class MultipleResourceSettings implements IConvertible { bool? Active; int? Min; int? Max; MultipleResourceSettings({this.Active,this.Min,this.Max}); MultipleResourceSettings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Active = json['Active']; Min = json['Min']; Max = json['Max']; return this; } Map toJson() => { 'Active': Active, 'Min': Min, 'Max': Max }; getTypeName() => "MultipleResourceSettings"; TypeContext? context = _ctx; } class ServiceInfoResponse implements IConvertible { int? Id; String? Name; String? Description; Uri? ImageUrl; int? LengthInMinutes; int? MaxNumberOfSpotsPerBooking; GroupBookingSettings? GroupBooking; MultipleResourceSettings? MultipleResource; bool? IsGroupBooking; bool? IsPaymentEnabled; ServiceInfoResponse({this.Id,this.Name,this.Description,this.ImageUrl,this.LengthInMinutes,this.MaxNumberOfSpotsPerBooking,this.GroupBooking,this.MultipleResource,this.IsGroupBooking,this.IsPaymentEnabled}); ServiceInfoResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; ImageUrl = JsonConverters.fromJson(json['ImageUrl'],'Uri',context!); LengthInMinutes = json['LengthInMinutes']; MaxNumberOfSpotsPerBooking = json['MaxNumberOfSpotsPerBooking']; GroupBooking = JsonConverters.fromJson(json['GroupBooking'],'GroupBookingSettings',context!); MultipleResource = JsonConverters.fromJson(json['MultipleResource'],'MultipleResourceSettings',context!); IsGroupBooking = json['IsGroupBooking']; IsPaymentEnabled = json['IsPaymentEnabled']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description, 'ImageUrl': JsonConverters.toJson(ImageUrl,'Uri',context!), 'LengthInMinutes': LengthInMinutes, 'MaxNumberOfSpotsPerBooking': MaxNumberOfSpotsPerBooking, 'GroupBooking': JsonConverters.toJson(GroupBooking,'GroupBookingSettings',context!), 'MultipleResource': JsonConverters.toJson(MultipleResource,'MultipleResourceSettings',context!), 'IsGroupBooking': IsGroupBooking, 'IsPaymentEnabled': IsPaymentEnabled }; getTypeName() => "ServiceInfoResponse"; TypeContext? context = _ctx; } class DayOfWeekDto implements IConvertible { int? DayOfWeekId; int? DotNetDayOfWeekId; String? DayOfWeek; DayOfWeekDto({this.DayOfWeekId,this.DotNetDayOfWeekId,this.DayOfWeek}); DayOfWeekDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DayOfWeekId = json['DayOfWeekId']; DotNetDayOfWeekId = json['DotNetDayOfWeekId']; DayOfWeek = json['DayOfWeek']; return this; } Map toJson() => { 'DayOfWeekId': DayOfWeekId, 'DotNetDayOfWeekId': DotNetDayOfWeekId, 'DayOfWeek': DayOfWeek }; getTypeName() => "DayOfWeekDto"; TypeContext? context = _ctx; } class Customer implements IConvertible { String? City; String? CountryCode; String? IdentityNumber; String? Email; String? FirstName; String? LastName; String? Phone; String? PostalCode; String? Street; String? Reference; CustomerType? Type; Customer({this.City,this.CountryCode,this.IdentityNumber,this.Email,this.FirstName,this.LastName,this.Phone,this.PostalCode,this.Street,this.Reference,this.Type}); Customer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { City = json['City']; CountryCode = json['CountryCode']; IdentityNumber = json['IdentityNumber']; Email = json['Email']; FirstName = json['FirstName']; LastName = json['LastName']; Phone = json['Phone']; PostalCode = json['PostalCode']; Street = json['Street']; Reference = json['Reference']; Type = JsonConverters.fromJson(json['Type'],'CustomerType',context!); return this; } Map toJson() => { 'City': City, 'CountryCode': CountryCode, 'IdentityNumber': IdentityNumber, 'Email': Email, 'FirstName': FirstName, 'LastName': LastName, 'Phone': Phone, 'PostalCode': PostalCode, 'Street': Street, 'Reference': Reference, 'Type': JsonConverters.toJson(Type,'CustomerType',context!) }; getTypeName() => "Customer"; TypeContext? context = _ctx; } enum Currency { SEK, EUR, } class ServicePriceResponse implements IConvertible { /** * The company id */ // @ApiMember(Description="The company id") String? CompanyId; /** * The price id */ // @ApiMember(Description="The price id") int? Id; /** * The service id */ // @ApiMember(Description="The service id") int? ServiceId; /** * The price */ // @ApiMember(Description="The price") double? Price; /** * The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day */ // @ApiMember(Description="The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day") int? CalculationTypeId; /** * The price currency */ // @ApiMember(Description="The price currency") String? CurrencyId; /** * The price sign */ // @ApiMember(Description="The price sign") String? PriceSign; /** * The price VAT in percent */ // @ApiMember(Description="The price VAT in percent") double? VAT; /** * The price category if price has a category */ // @ApiMember(Description="The price category if price has a category") String? Category; /** * The price text to display */ // @ApiMember(Description="The price text to display") String? PriceText; /** * The valid from date for the price. */ // @ApiMember(Description="The valid from date for the price.") DateTime? From; /** * The valid to date for the price. */ // @ApiMember(Description="The valid to date for the price.") DateTime? To; /** * If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. */ // @ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.") List? DaysOfWeek; /** * If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. */ // @ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.") Duration? FromTime; /** * If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters. */ // @ApiMember(Description="If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters.") Duration? ToTime; ServiceInfoResponse? Service; /** * If the price is only valid for a specific time span */ // @ApiMember(Description="If the price is only valid for a specific time span") bool? IsTimeSpecific; /** * If the price is only valid for specific days of week */ // @ApiMember(Description="If the price is only valid for specific days of week") bool? IsDaysOfWeekSpecific; /** * If the price is Weighted */ // @ApiMember(Description="If the price is Weighted") bool? IsWeighted; ServicePriceResponse({this.CompanyId,this.Id,this.ServiceId,this.Price,this.CalculationTypeId,this.CurrencyId,this.PriceSign,this.VAT,this.Category,this.PriceText,this.From,this.To,this.DaysOfWeek,this.FromTime,this.ToTime,this.Service,this.IsTimeSpecific,this.IsDaysOfWeekSpecific,this.IsWeighted}); ServicePriceResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; ServiceId = json['ServiceId']; Price = JsonConverters.toDouble(json['Price']); CalculationTypeId = json['CalculationTypeId']; CurrencyId = json['CurrencyId']; PriceSign = json['PriceSign']; VAT = JsonConverters.toDouble(json['VAT']); Category = json['Category']; PriceText = json['PriceText']; From = JsonConverters.fromJson(json['From'],'DateTime',context!); To = JsonConverters.fromJson(json['To'],'DateTime',context!); DaysOfWeek = JsonConverters.fromJson(json['DaysOfWeek'],'List',context!); FromTime = JsonConverters.fromJson(json['FromTime'],'Duration',context!); ToTime = JsonConverters.fromJson(json['ToTime'],'Duration',context!); Service = JsonConverters.fromJson(json['Service'],'ServiceInfoResponse',context!); IsTimeSpecific = json['IsTimeSpecific']; IsDaysOfWeekSpecific = json['IsDaysOfWeekSpecific']; IsWeighted = json['IsWeighted']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id, 'ServiceId': ServiceId, 'Price': Price, 'CalculationTypeId': CalculationTypeId, 'CurrencyId': CurrencyId, 'PriceSign': PriceSign, 'VAT': VAT, 'Category': Category, 'PriceText': PriceText, 'From': JsonConverters.toJson(From,'DateTime',context!), 'To': JsonConverters.toJson(To,'DateTime',context!), 'DaysOfWeek': JsonConverters.toJson(DaysOfWeek,'List',context!), 'FromTime': JsonConverters.toJson(FromTime,'Duration',context!), 'ToTime': JsonConverters.toJson(ToTime,'Duration',context!), 'Service': JsonConverters.toJson(Service,'ServiceInfoResponse',context!), 'IsTimeSpecific': IsTimeSpecific, 'IsDaysOfWeekSpecific': IsDaysOfWeekSpecific, 'IsWeighted': IsWeighted }; getTypeName() => "ServicePriceResponse"; TypeContext? context = _ctx; } // @Route("/services/prices", "GET") // @ValidateRequest(Validator="IsAuthenticated") class ServicePricesQuery extends QueryDb2 implements IReturn>, IConvertible, IGet { /** * Company to show services for */ // @ApiMember(Description="Company to show services for", ParameterType="query") String? CompanyId; /** * Service id */ // @ApiMember(Description="Service id", ParameterType="query") int? ServiceId; /** * Only get prices for active services */ // @ApiMember(Description="Only get prices for active services", ParameterType="query") bool? Active; /** * The max limit of records you want to retrieve, default is 100 */ // @ApiMember(DataType="int", Description="The max limit of records you want to retrieve, default is 100", ParameterType="query") int? MaxLimit; /** * If you want to include the service information for the booking */ // @ApiMember(DataType="boolean", Description="If you want to include the service information for the booking", ParameterType="query") bool? IncludeServiceInformation; ServicePricesQuery({this.CompanyId,this.ServiceId,this.Active,this.MaxLimit,this.IncludeServiceInformation}); ServicePricesQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; ServiceId = json['ServiceId']; Active = json['Active']; MaxLimit = json['MaxLimit']; IncludeServiceInformation = json['IncludeServiceInformation']; return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'ServiceId': ServiceId, 'Active': Active, 'MaxLimit': MaxLimit, 'IncludeServiceInformation': IncludeServiceInformation }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "ServicePricesQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'IInterval': TypeInfo(TypeOf.Interface), 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'Currency': TypeInfo(TypeOf.Class, create:() => Currency()), 'Customer': TypeInfo(TypeOf.Class, create:() => Customer()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'UserAccessKeys': TypeInfo(TypeOf.Class, create:() => UserAccessKeys()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ExternalReference': TypeInfo(TypeOf.Class, create:() => ExternalReference()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomFieldConfig': TypeInfo(TypeOf.Class, create:() => CustomFieldConfig()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomFieldDataResponse': TypeInfo(TypeOf.Class, create:() => CustomFieldDataResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomerComment': TypeInfo(TypeOf.Class, create:() => CustomerComment()), 'RebateCodeType': TypeInfo(TypeOf.Class, create:() => RebateCodeType()), 'BokaMeraDayOfWeek': TypeInfo(TypeOf.Enum, enumValues:BokaMeraDayOfWeek.values), 'RebateCodeDayOfWeekRelation': TypeInfo(TypeOf.Class, create:() => RebateCodeDayOfWeekRelation()), 'RebateCodeServiceRelation': TypeInfo(TypeOf.Class, create:() => RebateCodeServiceRelation()), 'RebateCodeBookingPriceRelation': TypeInfo(TypeOf.Class, create:() => RebateCodeBookingPriceRelation()), 'RebateCodeCustomerRelation': TypeInfo(TypeOf.Class, create:() => RebateCodeCustomerRelation()), 'DaysOfWeek': TypeInfo(TypeOf.Class, create:() => DaysOfWeek()), 'RebateCodeStatus': TypeInfo(TypeOf.Class, create:() => RebateCodeStatus()), 'RebateCode': TypeInfo(TypeOf.Class, create:() => RebateCode()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Service': TypeInfo(TypeOf.Class, create:() => Service()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PriceMapping': TypeInfo(TypeOf.Class, create:() => PriceMapping()), 'ServicePriceDayOfWeekRelation': TypeInfo(TypeOf.Class, create:() => ServicePriceDayOfWeekRelation()), 'ServicePrice': TypeInfo(TypeOf.Class, create:() => ServicePrice()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GroupBookingSettings': TypeInfo(TypeOf.Class, create:() => GroupBookingSettings()), 'MultipleResourceSettings': TypeInfo(TypeOf.Class, create:() => MultipleResourceSettings()), 'ServiceInfoResponse': TypeInfo(TypeOf.Class, create:() => ServiceInfoResponse()), 'Uri': TypeInfo(TypeOf.Class, create:() => Uri()), 'DayOfWeekDto': TypeInfo(TypeOf.Class, create:() => DayOfWeekDto()), 'CustomerType': TypeInfo(TypeOf.Class, create:() => CustomerType()), 'ServicePriceResponse': TypeInfo(TypeOf.Class, create:() => ServicePriceResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'ServicePricesQuery': TypeInfo(TypeOf.Class, create:() => ServicePricesQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });