/* Options: Date: 2024-11-21 13:18:51 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: SuperAdminCompanyInvoiceQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class BaseModel implements IConvertible { BaseModel(); BaseModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "BaseModel"; TypeContext? context = _ctx; } class BillingMethodCountriesRelation extends BaseModel implements IConvertible { // @Required() int? BillingMethodId; // @Required() String? CountryId; DateTime? ModifiedDate; BillingMethodCountriesRelation({this.BillingMethodId,this.CountryId,this.ModifiedDate}); BillingMethodCountriesRelation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); BillingMethodId = json['BillingMethodId']; CountryId = json['CountryId']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'BillingMethodId': BillingMethodId, 'CountryId': CountryId, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "BillingMethodCountriesRelation"; TypeContext? context = _ctx; } class BillingMethod extends BaseModel implements IConvertible { List? BillingMethodCountriesRelation; // @Required() String? Name; // @Required() String? Description; DateTime? ModifiedDate; int? Id; BillingMethod({this.BillingMethodCountriesRelation,this.Name,this.Description,this.ModifiedDate,this.Id}); BillingMethod.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); BillingMethodCountriesRelation = JsonConverters.fromJson(json['BillingMethodCountriesRelation'],'List',context!); Name = json['Name']; Description = json['Description']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'BillingMethodCountriesRelation': JsonConverters.toJson(BillingMethodCountriesRelation,'List',context!), 'Name': Name, 'Description': Description, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "BillingMethod"; TypeContext? context = _ctx; } class BillingInformation extends BaseModel implements IConvertible { BillingMethod? BillingMethod; // @Required() int? BillingMethodId; // @Required() String? Name; String? Attention; String? Street1; String? Street2; String? ZipCode; String? City; String? Email; String? CreditCard; String? CreditCardHolder; String? CreditCardNumber; int? ValidToYear; int? ValidToMonth; String? CSV; // @Required() DateTime? Updated; // @Required() DateTime? Created; // @Required() String? CountryId; // @Required() int? PaymentTermsDays; String? VATRegistrationNumber; String? GLN; String? ReferenceLine1; String? ReferenceLine2; DateTime? ModifiedDate; // @Required() String? Id; BillingInformation({this.BillingMethod,this.BillingMethodId,this.Name,this.Attention,this.Street1,this.Street2,this.ZipCode,this.City,this.Email,this.CreditCard,this.CreditCardHolder,this.CreditCardNumber,this.ValidToYear,this.ValidToMonth,this.CSV,this.Updated,this.Created,this.CountryId,this.PaymentTermsDays,this.VATRegistrationNumber,this.GLN,this.ReferenceLine1,this.ReferenceLine2,this.ModifiedDate,this.Id}); BillingInformation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); BillingMethod = JsonConverters.fromJson(json['BillingMethod'],'BillingMethod',context!); BillingMethodId = json['BillingMethodId']; Name = json['Name']; Attention = json['Attention']; Street1 = json['Street1']; Street2 = json['Street2']; ZipCode = json['ZipCode']; City = json['City']; Email = json['Email']; CreditCard = json['CreditCard']; CreditCardHolder = json['CreditCardHolder']; CreditCardNumber = json['CreditCardNumber']; ValidToYear = json['ValidToYear']; ValidToMonth = json['ValidToMonth']; CSV = json['CSV']; Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); CountryId = json['CountryId']; PaymentTermsDays = json['PaymentTermsDays']; VATRegistrationNumber = json['VATRegistrationNumber']; GLN = json['GLN']; ReferenceLine1 = json['ReferenceLine1']; ReferenceLine2 = json['ReferenceLine2']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'BillingMethod': JsonConverters.toJson(BillingMethod,'BillingMethod',context!), 'BillingMethodId': BillingMethodId, 'Name': Name, 'Attention': Attention, 'Street1': Street1, 'Street2': Street2, 'ZipCode': ZipCode, 'City': City, 'Email': Email, 'CreditCard': CreditCard, 'CreditCardHolder': CreditCardHolder, 'CreditCardNumber': CreditCardNumber, 'ValidToYear': ValidToYear, 'ValidToMonth': ValidToMonth, 'CSV': CSV, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'CountryId': CountryId, 'PaymentTermsDays': PaymentTermsDays, 'VATRegistrationNumber': VATRegistrationNumber, 'GLN': GLN, 'ReferenceLine1': ReferenceLine1, 'ReferenceLine2': ReferenceLine2, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "BillingInformation"; TypeContext? context = _ctx; } enum Currency { SEK, EUR, } class InvoiceStatus extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; DateTime? ModifiedDate; // @Required() int? Id; InvoiceStatus({this.Name,this.Description,this.ModifiedDate,this.Id}); InvoiceStatus.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() => "InvoiceStatus"; TypeContext? context = _ctx; } class CompanyInvoiceLine extends BaseModel implements IConvertible { // @Required() String? CompanyId; // @Required() int? InvoiceId; // @Required() int? Id; // @Required() DateTime? PeriodFrom; // @Required() DateTime? PeriodTo; int? ArticleNumber; // @Required() String? ArticleName; // @Required() String? ArticleDescription; // @Required() int? Quantity; // @Required() double? UnitPrice; // @Required() double? SubTotal; // @Required() int? Rebate; DateTime? Updated; DateTime? Created; DateTime? ModifiedDate; CompanyInvoiceLine({this.CompanyId,this.InvoiceId,this.Id,this.PeriodFrom,this.PeriodTo,this.ArticleNumber,this.ArticleName,this.ArticleDescription,this.Quantity,this.UnitPrice,this.SubTotal,this.Rebate,this.Updated,this.Created,this.ModifiedDate}); CompanyInvoiceLine.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; InvoiceId = json['InvoiceId']; Id = json['Id']; PeriodFrom = JsonConverters.fromJson(json['PeriodFrom'],'DateTime',context!); PeriodTo = JsonConverters.fromJson(json['PeriodTo'],'DateTime',context!); ArticleNumber = json['ArticleNumber']; ArticleName = json['ArticleName']; ArticleDescription = json['ArticleDescription']; Quantity = json['Quantity']; UnitPrice = JsonConverters.toDouble(json['UnitPrice']); SubTotal = JsonConverters.toDouble(json['SubTotal']); Rebate = json['Rebate']; Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'InvoiceId': InvoiceId, 'Id': Id, 'PeriodFrom': JsonConverters.toJson(PeriodFrom,'DateTime',context!), 'PeriodTo': JsonConverters.toJson(PeriodTo,'DateTime',context!), 'ArticleNumber': ArticleNumber, 'ArticleName': ArticleName, 'ArticleDescription': ArticleDescription, 'Quantity': Quantity, 'UnitPrice': UnitPrice, 'SubTotal': SubTotal, 'Rebate': Rebate, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "CompanyInvoiceLine"; TypeContext? context = _ctx; } class ExternalReference extends BaseModel implements IConvertible { // @Required() String? CompanyId; // @Required() String? Id; // @Required() String? OwnerId; // @Required() String? ReferenceType; String? ExternalData; String? CreatedBy; // @Required() DateTime? Updated; // @Required() DateTime? Created; DateTime? ModifiedDate; ExternalReference({this.CompanyId,this.Id,this.OwnerId,this.ReferenceType,this.ExternalData,this.CreatedBy,this.Updated,this.Created,this.ModifiedDate}); ExternalReference.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; Id = json['Id']; OwnerId = json['OwnerId']; ReferenceType = json['ReferenceType']; ExternalData = json['ExternalData']; CreatedBy = json['CreatedBy']; Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'Id': Id, 'OwnerId': OwnerId, 'ReferenceType': ReferenceType, 'ExternalData': ExternalData, 'CreatedBy': CreatedBy, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "ExternalReference"; TypeContext? context = _ctx; } enum CompanyStatus { Registered, AwaitingApproval, Approved, Inactive, ClosedDown, NotApproved, } class CustomFieldValue extends BaseModel implements IConvertible { // @Required() String? CompanyId; int? Id; // @Required() String? Value; // @Required() bool? Active; int? SortOrder; DateTime? ModifiedDate; CustomFieldValue({this.CompanyId,this.Id,this.Value,this.Active,this.SortOrder,this.ModifiedDate}); CustomFieldValue.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; Id = json['Id']; Value = json['Value']; Active = json['Active']; SortOrder = json['SortOrder']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'Id': Id, 'Value': Value, 'Active': Active, 'SortOrder': SortOrder, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "CustomFieldValue"; TypeContext? context = _ctx; } class CustomField extends BaseModel implements IConvertible { // @Required() String? Table; // @Required() String? Column; // @Required() String? DataType; // @Required() String? Description; // @Required() bool? Active; DateTime? ModifiedDate; int? Id; CustomField({this.Table,this.Column,this.DataType,this.Description,this.Active,this.ModifiedDate,this.Id}); CustomField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Table = json['Table']; Column = json['Column']; DataType = json['DataType']; Description = json['Description']; Active = json['Active']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Table': Table, 'Column': Column, 'DataType': DataType, 'Description': Description, 'Active': Active, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "CustomField"; TypeContext? context = _ctx; } class RegEx extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; // @Required() String? RegExCode; String? ErrorMessage; DateTime? ModifiedDate; int? Id; RegEx({this.Name,this.Description,this.RegExCode,this.ErrorMessage,this.ModifiedDate,this.Id}); RegEx.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; RegExCode = json['RegExCode']; ErrorMessage = json['ErrorMessage']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'RegExCode': RegExCode, 'ErrorMessage': ErrorMessage, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "RegEx"; TypeContext? context = _ctx; } class CustomFieldServiceRelation extends BaseModel implements IConvertible { // @Required() String? CompanyId; int? Id; // @Required() int? CustomFieldConfigId; // @Required() int? ServiceId; DateTime? ModifiedDate; CustomFieldServiceRelation({this.CompanyId,this.Id,this.CustomFieldConfigId,this.ServiceId,this.ModifiedDate}); CustomFieldServiceRelation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; Id = json['Id']; CustomFieldConfigId = json['CustomFieldConfigId']; ServiceId = json['ServiceId']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'Id': Id, 'CustomFieldConfigId': CustomFieldConfigId, 'ServiceId': ServiceId, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "CustomFieldServiceRelation"; TypeContext? context = _ctx; } class CustomFieldConfig extends BaseModel implements IConvertible { // @Ignore() List? Values; CustomField? CustomField; // @Ignore() RegEx? RegEx; // @Ignore() List? Services; List? CustomFieldServiceRelation; // @Required() String? CompanyId; int? Id; int? GroupId; // @Required() int? FieldId; // @Required() int? IconId; int? RegExId; // @Required() String? Name; // @Required() String? Description; // @Required() String? Datatype; // @Required() int? MaxLength; // @Required() bool? IsPublic; // @Required() bool? IsHidden; // @Required() bool? IsMandatory; String? DefaultValue; String? RegExErrorMessage; String? MandatoryErrorMessage; int? Width; // @Required() bool? MultipleLineText; DateTime? ModifiedDate; CustomFieldConfig({this.Values,this.CustomField,this.RegEx,this.Services,this.CustomFieldServiceRelation,this.CompanyId,this.Id,this.GroupId,this.FieldId,this.IconId,this.RegExId,this.Name,this.Description,this.Datatype,this.MaxLength,this.IsPublic,this.IsHidden,this.IsMandatory,this.DefaultValue,this.RegExErrorMessage,this.MandatoryErrorMessage,this.Width,this.MultipleLineText,this.ModifiedDate}); CustomFieldConfig.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Values = JsonConverters.fromJson(json['Values'],'List',context!); CustomField = JsonConverters.fromJson(json['CustomField'],'CustomField',context!); RegEx = JsonConverters.fromJson(json['RegEx'],'RegEx',context!); Services = JsonConverters.fromJson(json['Services'],'List',context!); CustomFieldServiceRelation = JsonConverters.fromJson(json['CustomFieldServiceRelation'],'List',context!); CompanyId = json['CompanyId']; Id = json['Id']; GroupId = json['GroupId']; FieldId = json['FieldId']; IconId = json['IconId']; RegExId = json['RegExId']; Name = json['Name']; Description = json['Description']; Datatype = json['Datatype']; MaxLength = json['MaxLength']; IsPublic = json['IsPublic']; IsHidden = json['IsHidden']; IsMandatory = json['IsMandatory']; DefaultValue = json['DefaultValue']; RegExErrorMessage = json['RegExErrorMessage']; MandatoryErrorMessage = json['MandatoryErrorMessage']; Width = json['Width']; MultipleLineText = json['MultipleLineText']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Values': JsonConverters.toJson(Values,'List',context!), 'CustomField': JsonConverters.toJson(CustomField,'CustomField',context!), 'RegEx': JsonConverters.toJson(RegEx,'RegEx',context!), 'Services': JsonConverters.toJson(Services,'List',context!), 'CustomFieldServiceRelation': JsonConverters.toJson(CustomFieldServiceRelation,'List',context!), 'CompanyId': CompanyId, 'Id': Id, 'GroupId': GroupId, 'FieldId': FieldId, 'IconId': IconId, 'RegExId': RegExId, 'Name': Name, 'Description': Description, 'Datatype': Datatype, 'MaxLength': MaxLength, 'IsPublic': IsPublic, 'IsHidden': IsHidden, 'IsMandatory': IsMandatory, 'DefaultValue': DefaultValue, 'RegExErrorMessage': RegExErrorMessage, 'MandatoryErrorMessage': MandatoryErrorMessage, 'Width': Width, 'MultipleLineText': MultipleLineText, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "CustomFieldConfig"; TypeContext? context = _ctx; } class ScheduleView extends BaseModel implements IConvertible { // @Required() String? Name; DateTime? ModifiedDate; int? Id; ScheduleView({this.Name,this.ModifiedDate,this.Id}); ScheduleView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "ScheduleView"; TypeContext? context = _ctx; } class WeekNumberSetting extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; DateTime? ModifiedDate; // @Required() int? Id; WeekNumberSetting({this.Name,this.Description,this.ModifiedDate,this.Id}); WeekNumberSetting.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() => "WeekNumberSetting"; TypeContext? context = _ctx; } class BookingTemplate extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; // @Required() String? UsedByApplication; DateTime? ModifiedDate; int? Id; BookingTemplate({this.Name,this.Description,this.UsedByApplication,this.ModifiedDate,this.Id}); BookingTemplate.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; UsedByApplication = json['UsedByApplication']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'UsedByApplication': UsedByApplication, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "BookingTemplate"; TypeContext? context = _ctx; } class CalendarType extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; // @Required() bool? Active; DateTime? ModifiedDate; int? Id; CalendarType({this.Name,this.Description,this.Active,this.ModifiedDate,this.Id}); CalendarType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; Active = json['Active']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'Active': Active, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "CalendarType"; TypeContext? context = _ctx; } class FreeSpotTexts extends BaseModel implements IConvertible { // @Required() String? TextSingular; // @Required() String? TextPlural; DateTime? ModifiedDate; // @Required() int? Id; FreeSpotTexts({this.TextSingular,this.TextPlural,this.ModifiedDate,this.Id}); FreeSpotTexts.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); TextSingular = json['TextSingular']; TextPlural = json['TextPlural']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'TextSingular': TextSingular, 'TextPlural': TextPlural, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "FreeSpotTexts"; TypeContext? context = _ctx; } class BookingStatusOptions implements IConvertible { int? Id; String? Name; String? Description; BookingStatusOptions({this.Id,this.Name,this.Description}); BookingStatusOptions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description }; getTypeName() => "BookingStatusOptions"; TypeContext? context = _ctx; } class BookingSettings extends BaseModel implements IConvertible { // @References(typeof(FreeSpotTexts)) int? FreeSpotTextsId; // @Ignore() bool? SendEmailConfirmation; // @Ignore() List? ScheduleViewOptions; // @Ignore() List? WeekNumberSettingOptions; // @Ignore() List? BookingTemplateOptions; // @Ignore() List? CalendarTypeOptions; // @Ignore() List? FreeSpotTextOptions; // @Ignore() List? BookingStatusOptions; FreeSpotTexts? FreeSpotTextsInfo; // @Ignore() String? FreeSpotsTextSingular; // @Ignore() String? FreeSpotsTextPlural; // @Required() int? BookingStatusId; // @Required() int? ScheduleViewId; // @Required() int? BookingTemplateId; // @Required() int? CalendarTypeId; // @Required() bool? AllowBookingOnUnbookedTimes; // @Required() bool? SendEmailReminder; // @Required() bool? SendSmsReminder; // @Required() bool? SendSmsConfirmation; // @Required() int? EmailReminderTime; // @Required() int? SmsReminderTime; // @Required() int? MaxActiveBookings; // @Required() bool? SendNotifications; String? SendNotificationsEmail; // @Required() bool? EnableMobileApp; Duration? ScheduleStartTime; Duration? ScheduleEndTime; String? ReceiptTemplate; // @Required() int? ScheduleTimeSlotMinutes; // @Required() bool? ShowFreeTimesLeft; // @Required() bool? EnableICalGroupBookings; String? AgreementTemplate; // @Required() bool? ScheduleShowTimeExeptions; // @Required() bool? EnableBookingsOnSameTime; // @Required() int? ShowWeekNumberSettingId; // @Required() bool? EnableShowBookedTimes; // @Required() bool? EnableSendFollowUpMessage; // @Required() int? FollowUpMessageTime; String? MessageText; // @Required() bool? ScheduleGroupResources; // @Required() int? BookSpotUserResponseMinutes; // @Required() bool? IsBookSpotDirectly; // @Required() int? BookSpotDirectlyTimeLeftMinutes; // @Required() bool? SendEmailNotificationQueue; // @Required() bool? SendSMSNotificationQueue; // @Required() bool? SchedulerDisableHorizontalScrolling; // @Required() bool? BookOnlyOnExistingCustomers; // @Required() bool? AutoGenerateUniquePinCode; // @Required() bool? WeightedPrices; DateTime? ModifiedDate; // @Required() bool? AutoCreateUserProfile; bool? ShowMultipleResourcesAsOne; bool? ShowMultiDayAsTime; // @Required() String? Id; BookingSettings({this.FreeSpotTextsId,this.SendEmailConfirmation,this.ScheduleViewOptions,this.WeekNumberSettingOptions,this.BookingTemplateOptions,this.CalendarTypeOptions,this.FreeSpotTextOptions,this.BookingStatusOptions,this.FreeSpotTextsInfo,this.FreeSpotsTextSingular,this.FreeSpotsTextPlural,this.BookingStatusId,this.ScheduleViewId,this.BookingTemplateId,this.CalendarTypeId,this.AllowBookingOnUnbookedTimes,this.SendEmailReminder,this.SendSmsReminder,this.SendSmsConfirmation,this.EmailReminderTime,this.SmsReminderTime,this.MaxActiveBookings,this.SendNotifications,this.SendNotificationsEmail,this.EnableMobileApp,this.ScheduleStartTime,this.ScheduleEndTime,this.ReceiptTemplate,this.ScheduleTimeSlotMinutes,this.ShowFreeTimesLeft,this.EnableICalGroupBookings,this.AgreementTemplate,this.ScheduleShowTimeExeptions,this.EnableBookingsOnSameTime,this.ShowWeekNumberSettingId,this.EnableShowBookedTimes,this.EnableSendFollowUpMessage,this.FollowUpMessageTime,this.MessageText,this.ScheduleGroupResources,this.BookSpotUserResponseMinutes,this.IsBookSpotDirectly,this.BookSpotDirectlyTimeLeftMinutes,this.SendEmailNotificationQueue,this.SendSMSNotificationQueue,this.SchedulerDisableHorizontalScrolling,this.BookOnlyOnExistingCustomers,this.AutoGenerateUniquePinCode,this.WeightedPrices,this.ModifiedDate,this.AutoCreateUserProfile,this.ShowMultipleResourcesAsOne,this.ShowMultiDayAsTime,this.Id}); BookingSettings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); FreeSpotTextsId = json['FreeSpotTextsId']; SendEmailConfirmation = json['SendEmailConfirmation']; ScheduleViewOptions = JsonConverters.fromJson(json['ScheduleViewOptions'],'List',context!); WeekNumberSettingOptions = JsonConverters.fromJson(json['WeekNumberSettingOptions'],'List',context!); BookingTemplateOptions = JsonConverters.fromJson(json['BookingTemplateOptions'],'List',context!); CalendarTypeOptions = JsonConverters.fromJson(json['CalendarTypeOptions'],'List',context!); FreeSpotTextOptions = JsonConverters.fromJson(json['FreeSpotTextOptions'],'List',context!); BookingStatusOptions = JsonConverters.fromJson(json['BookingStatusOptions'],'List',context!); FreeSpotTextsInfo = JsonConverters.fromJson(json['FreeSpotTextsInfo'],'FreeSpotTexts',context!); FreeSpotsTextSingular = json['FreeSpotsTextSingular']; FreeSpotsTextPlural = json['FreeSpotsTextPlural']; BookingStatusId = json['BookingStatusId']; ScheduleViewId = json['ScheduleViewId']; BookingTemplateId = json['BookingTemplateId']; CalendarTypeId = json['CalendarTypeId']; AllowBookingOnUnbookedTimes = json['AllowBookingOnUnbookedTimes']; SendEmailReminder = json['SendEmailReminder']; SendSmsReminder = json['SendSmsReminder']; SendSmsConfirmation = json['SendSmsConfirmation']; EmailReminderTime = json['EmailReminderTime']; SmsReminderTime = json['SmsReminderTime']; MaxActiveBookings = json['MaxActiveBookings']; SendNotifications = json['SendNotifications']; SendNotificationsEmail = json['SendNotificationsEmail']; EnableMobileApp = json['EnableMobileApp']; ScheduleStartTime = JsonConverters.fromJson(json['ScheduleStartTime'],'Duration',context!); ScheduleEndTime = JsonConverters.fromJson(json['ScheduleEndTime'],'Duration',context!); ReceiptTemplate = json['ReceiptTemplate']; ScheduleTimeSlotMinutes = json['ScheduleTimeSlotMinutes']; ShowFreeTimesLeft = json['ShowFreeTimesLeft']; EnableICalGroupBookings = json['EnableICalGroupBookings']; AgreementTemplate = json['AgreementTemplate']; ScheduleShowTimeExeptions = json['ScheduleShowTimeExeptions']; EnableBookingsOnSameTime = json['EnableBookingsOnSameTime']; ShowWeekNumberSettingId = json['ShowWeekNumberSettingId']; EnableShowBookedTimes = json['EnableShowBookedTimes']; EnableSendFollowUpMessage = json['EnableSendFollowUpMessage']; FollowUpMessageTime = json['FollowUpMessageTime']; MessageText = json['MessageText']; ScheduleGroupResources = json['ScheduleGroupResources']; BookSpotUserResponseMinutes = json['BookSpotUserResponseMinutes']; IsBookSpotDirectly = json['IsBookSpotDirectly']; BookSpotDirectlyTimeLeftMinutes = json['BookSpotDirectlyTimeLeftMinutes']; SendEmailNotificationQueue = json['SendEmailNotificationQueue']; SendSMSNotificationQueue = json['SendSMSNotificationQueue']; SchedulerDisableHorizontalScrolling = json['SchedulerDisableHorizontalScrolling']; BookOnlyOnExistingCustomers = json['BookOnlyOnExistingCustomers']; AutoGenerateUniquePinCode = json['AutoGenerateUniquePinCode']; WeightedPrices = json['WeightedPrices']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); AutoCreateUserProfile = json['AutoCreateUserProfile']; ShowMultipleResourcesAsOne = json['ShowMultipleResourcesAsOne']; ShowMultiDayAsTime = json['ShowMultiDayAsTime']; Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'FreeSpotTextsId': FreeSpotTextsId, 'SendEmailConfirmation': SendEmailConfirmation, 'ScheduleViewOptions': JsonConverters.toJson(ScheduleViewOptions,'List',context!), 'WeekNumberSettingOptions': JsonConverters.toJson(WeekNumberSettingOptions,'List',context!), 'BookingTemplateOptions': JsonConverters.toJson(BookingTemplateOptions,'List',context!), 'CalendarTypeOptions': JsonConverters.toJson(CalendarTypeOptions,'List',context!), 'FreeSpotTextOptions': JsonConverters.toJson(FreeSpotTextOptions,'List',context!), 'BookingStatusOptions': JsonConverters.toJson(BookingStatusOptions,'List',context!), 'FreeSpotTextsInfo': JsonConverters.toJson(FreeSpotTextsInfo,'FreeSpotTexts',context!), 'FreeSpotsTextSingular': FreeSpotsTextSingular, 'FreeSpotsTextPlural': FreeSpotsTextPlural, 'BookingStatusId': BookingStatusId, 'ScheduleViewId': ScheduleViewId, 'BookingTemplateId': BookingTemplateId, 'CalendarTypeId': CalendarTypeId, 'AllowBookingOnUnbookedTimes': AllowBookingOnUnbookedTimes, 'SendEmailReminder': SendEmailReminder, 'SendSmsReminder': SendSmsReminder, 'SendSmsConfirmation': SendSmsConfirmation, 'EmailReminderTime': EmailReminderTime, 'SmsReminderTime': SmsReminderTime, 'MaxActiveBookings': MaxActiveBookings, 'SendNotifications': SendNotifications, 'SendNotificationsEmail': SendNotificationsEmail, 'EnableMobileApp': EnableMobileApp, 'ScheduleStartTime': JsonConverters.toJson(ScheduleStartTime,'Duration',context!), 'ScheduleEndTime': JsonConverters.toJson(ScheduleEndTime,'Duration',context!), 'ReceiptTemplate': ReceiptTemplate, 'ScheduleTimeSlotMinutes': ScheduleTimeSlotMinutes, 'ShowFreeTimesLeft': ShowFreeTimesLeft, 'EnableICalGroupBookings': EnableICalGroupBookings, 'AgreementTemplate': AgreementTemplate, 'ScheduleShowTimeExeptions': ScheduleShowTimeExeptions, 'EnableBookingsOnSameTime': EnableBookingsOnSameTime, 'ShowWeekNumberSettingId': ShowWeekNumberSettingId, 'EnableShowBookedTimes': EnableShowBookedTimes, 'EnableSendFollowUpMessage': EnableSendFollowUpMessage, 'FollowUpMessageTime': FollowUpMessageTime, 'MessageText': MessageText, 'ScheduleGroupResources': ScheduleGroupResources, 'BookSpotUserResponseMinutes': BookSpotUserResponseMinutes, 'IsBookSpotDirectly': IsBookSpotDirectly, 'BookSpotDirectlyTimeLeftMinutes': BookSpotDirectlyTimeLeftMinutes, 'SendEmailNotificationQueue': SendEmailNotificationQueue, 'SendSMSNotificationQueue': SendSMSNotificationQueue, 'SchedulerDisableHorizontalScrolling': SchedulerDisableHorizontalScrolling, 'BookOnlyOnExistingCustomers': BookOnlyOnExistingCustomers, 'AutoGenerateUniquePinCode': AutoGenerateUniquePinCode, 'WeightedPrices': WeightedPrices, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'AutoCreateUserProfile': AutoCreateUserProfile, 'ShowMultipleResourcesAsOne': ShowMultipleResourcesAsOne, 'ShowMultiDayAsTime': ShowMultiDayAsTime, 'Id': Id }); getTypeName() => "BookingSettings"; TypeContext? context = _ctx; } class CompanyType extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; DateTime? ModifiedDate; // @Required() int? Id; CompanyType({this.Name,this.Description,this.ModifiedDate,this.Id}); CompanyType.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() => "CompanyType"; TypeContext? context = _ctx; } class CodeLockSystem extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Supplier; String? LogoType; // @Required() String? Description; DateTime? ModifiedDate; // @Required() int? Id; CodeLockSystem({this.Name,this.Supplier,this.LogoType,this.Description,this.ModifiedDate,this.Id}); CodeLockSystem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Supplier = json['Supplier']; LogoType = json['LogoType']; Description = json['Description']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Supplier': Supplier, 'LogoType': LogoType, 'Description': Description, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "CodeLockSystem"; TypeContext? context = _ctx; } class CodeLockSetting extends BaseModel implements IConvertible { // @Ignore() List? CodeLockSystemOptions; // @Required() bool? Active; // @Required() int? CodeLockSystemsId; // @Required() int? ValidBeforeMinutes; // @Required() int? ValidAfterMinutes; // @Required() bool? DeleteOldBySchedule; // @Required() DateTime? Created; // @Required() DateTime? Updated; DateTime? ModifiedDate; // @Required() bool? SendEmailNotification; // @Required() bool? SendSMSNotification; // @Required() int? EmailNotificationTime; // @Required() int? SMSNotificationTime; // @Required() String? Id; CodeLockSetting({this.CodeLockSystemOptions,this.Active,this.CodeLockSystemsId,this.ValidBeforeMinutes,this.ValidAfterMinutes,this.DeleteOldBySchedule,this.Created,this.Updated,this.ModifiedDate,this.SendEmailNotification,this.SendSMSNotification,this.EmailNotificationTime,this.SMSNotificationTime,this.Id}); CodeLockSetting.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CodeLockSystemOptions = JsonConverters.fromJson(json['CodeLockSystemOptions'],'List',context!); Active = json['Active']; CodeLockSystemsId = json['CodeLockSystemsId']; ValidBeforeMinutes = json['ValidBeforeMinutes']; ValidAfterMinutes = json['ValidAfterMinutes']; DeleteOldBySchedule = json['DeleteOldBySchedule']; Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); SendEmailNotification = json['SendEmailNotification']; SendSMSNotification = json['SendSMSNotification']; EmailNotificationTime = json['EmailNotificationTime']; SMSNotificationTime = json['SMSNotificationTime']; Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'CodeLockSystemOptions': JsonConverters.toJson(CodeLockSystemOptions,'List',context!), 'Active': Active, 'CodeLockSystemsId': CodeLockSystemsId, 'ValidBeforeMinutes': ValidBeforeMinutes, 'ValidAfterMinutes': ValidAfterMinutes, 'DeleteOldBySchedule': DeleteOldBySchedule, 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'SendEmailNotification': SendEmailNotification, 'SendSMSNotification': SendSMSNotification, 'EmailNotificationTime': EmailNotificationTime, 'SMSNotificationTime': SMSNotificationTime, 'Id': Id }); getTypeName() => "CodeLockSetting"; TypeContext? context = _ctx; } class AdminPaymentOptions extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; DateTime? ModifiedDate; // @Required() int? Id; AdminPaymentOptions({this.Name,this.Description,this.ModifiedDate,this.Id}); AdminPaymentOptions.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() => "AdminPaymentOptions"; TypeContext? context = _ctx; } class PaymentProviders extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; // @Required() String? Category; String? Url; // @Required() bool? Active; DateTime? ModifiedDate; // @Required() int? Id; PaymentProviders({this.Name,this.Description,this.Category,this.Url,this.Active,this.ModifiedDate,this.Id}); PaymentProviders.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; Category = json['Category']; Url = json['Url']; Active = json['Active']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'Category': Category, 'Url': Url, 'Active': Active, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "PaymentProviders"; TypeContext? context = _ctx; } class PaymentSetting extends BaseModel implements IConvertible { AdminPaymentOptions? AdminPaymentOption; // @Ignore() List? AdminPaymentOptions; // @Ignore() List? PaymentProviderOptions; // @Required() bool? Enabled; // @Required() int? InvoiceFee; // @Required() bool? AllowCreditCardPayment; // @Required() bool? AllowInvoicePayment; // @Required() bool? AllowBankPayment; // @Required() bool? GuaranteeOffered; // @Required() bool? RefundOnCancelBooking; int? DefaultPaymentOptionId; // @Required() int? PaymentProviderId; // @Required() bool? SendPaymentRequestDirectly; DateTime? ModifiedDate; // @Required() String? Id; PaymentSetting({this.AdminPaymentOption,this.AdminPaymentOptions,this.PaymentProviderOptions,this.Enabled,this.InvoiceFee,this.AllowCreditCardPayment,this.AllowInvoicePayment,this.AllowBankPayment,this.GuaranteeOffered,this.RefundOnCancelBooking,this.DefaultPaymentOptionId,this.PaymentProviderId,this.SendPaymentRequestDirectly,this.ModifiedDate,this.Id}); PaymentSetting.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AdminPaymentOption = JsonConverters.fromJson(json['AdminPaymentOption'],'AdminPaymentOptions',context!); AdminPaymentOptions = JsonConverters.fromJson(json['AdminPaymentOptions'],'List',context!); PaymentProviderOptions = JsonConverters.fromJson(json['PaymentProviderOptions'],'List',context!); Enabled = json['Enabled']; InvoiceFee = json['InvoiceFee']; AllowCreditCardPayment = json['AllowCreditCardPayment']; AllowInvoicePayment = json['AllowInvoicePayment']; AllowBankPayment = json['AllowBankPayment']; GuaranteeOffered = json['GuaranteeOffered']; RefundOnCancelBooking = json['RefundOnCancelBooking']; DefaultPaymentOptionId = json['DefaultPaymentOptionId']; PaymentProviderId = json['PaymentProviderId']; SendPaymentRequestDirectly = json['SendPaymentRequestDirectly']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'AdminPaymentOption': JsonConverters.toJson(AdminPaymentOption,'AdminPaymentOptions',context!), 'AdminPaymentOptions': JsonConverters.toJson(AdminPaymentOptions,'List',context!), 'PaymentProviderOptions': JsonConverters.toJson(PaymentProviderOptions,'List',context!), 'Enabled': Enabled, 'InvoiceFee': InvoiceFee, 'AllowCreditCardPayment': AllowCreditCardPayment, 'AllowInvoicePayment': AllowInvoicePayment, 'AllowBankPayment': AllowBankPayment, 'GuaranteeOffered': GuaranteeOffered, 'RefundOnCancelBooking': RefundOnCancelBooking, 'DefaultPaymentOptionId': DefaultPaymentOptionId, 'PaymentProviderId': PaymentProviderId, 'SendPaymentRequestDirectly': SendPaymentRequestDirectly, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "PaymentSetting"; TypeContext? context = _ctx; } class LanguageResponse implements IConvertible { String? Id; String? Name; LanguageResponse({this.Id,this.Name}); LanguageResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; return this; } Map toJson() => { 'Id': Id, 'Name': Name }; getTypeName() => "LanguageResponse"; TypeContext? context = _ctx; } class CompanySetting extends BaseModel implements IConvertible { // @Ignore() List? Languages; // @Required() bool? Active; String? InactiveMessage; // @Required() bool? Searchable; String? GATrackingId; String? FacebookPixelId; // @Required() bool? MultiLanguage; // @Required() bool? EnableAPITranslation; // @Required() String? DefaultLanguage; DateTime? ModifiedDate; String? GTMTrackingId; // @Required() bool? ShowOnMarketPlace; String? GoogleAdsConversionId; String? LinkedinTagId; String? GoogleAdsConversionLabel; bool? SendCustomerInformationToExternalProviders; // @Required() String? Id; CompanySetting({this.Languages,this.Active,this.InactiveMessage,this.Searchable,this.GATrackingId,this.FacebookPixelId,this.MultiLanguage,this.EnableAPITranslation,this.DefaultLanguage,this.ModifiedDate,this.GTMTrackingId,this.ShowOnMarketPlace,this.GoogleAdsConversionId,this.LinkedinTagId,this.GoogleAdsConversionLabel,this.SendCustomerInformationToExternalProviders,this.Id}); CompanySetting.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Languages = JsonConverters.fromJson(json['Languages'],'List',context!); Active = json['Active']; InactiveMessage = json['InactiveMessage']; Searchable = json['Searchable']; GATrackingId = json['GATrackingId']; FacebookPixelId = json['FacebookPixelId']; MultiLanguage = json['MultiLanguage']; EnableAPITranslation = json['EnableAPITranslation']; DefaultLanguage = json['DefaultLanguage']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); GTMTrackingId = json['GTMTrackingId']; ShowOnMarketPlace = json['ShowOnMarketPlace']; GoogleAdsConversionId = json['GoogleAdsConversionId']; LinkedinTagId = json['LinkedinTagId']; GoogleAdsConversionLabel = json['GoogleAdsConversionLabel']; SendCustomerInformationToExternalProviders = json['SendCustomerInformationToExternalProviders']; Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Languages': JsonConverters.toJson(Languages,'List',context!), 'Active': Active, 'InactiveMessage': InactiveMessage, 'Searchable': Searchable, 'GATrackingId': GATrackingId, 'FacebookPixelId': FacebookPixelId, 'MultiLanguage': MultiLanguage, 'EnableAPITranslation': EnableAPITranslation, 'DefaultLanguage': DefaultLanguage, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'GTMTrackingId': GTMTrackingId, 'ShowOnMarketPlace': ShowOnMarketPlace, 'GoogleAdsConversionId': GoogleAdsConversionId, 'LinkedinTagId': LinkedinTagId, 'GoogleAdsConversionLabel': GoogleAdsConversionLabel, 'SendCustomerInformationToExternalProviders': SendCustomerInformationToExternalProviders, 'Id': Id }); getTypeName() => "CompanySetting"; TypeContext? context = _ctx; } class WidgetServiceLayouts extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; // @Required() String? Code; DateTime? ModifiedDate; // @Required() int? Id; WidgetServiceLayouts({this.Name,this.Description,this.Code,this.ModifiedDate,this.Id}); WidgetServiceLayouts.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; Code = json['Code']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'Code': Code, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "WidgetServiceLayouts"; TypeContext? context = _ctx; } class WidgetTimeLayouts extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; // @Required() String? Code; DateTime? ModifiedDate; // @Required() int? Id; WidgetTimeLayouts({this.Name,this.Description,this.Code,this.ModifiedDate,this.Id}); WidgetTimeLayouts.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; Code = json['Code']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'Code': Code, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "WidgetTimeLayouts"; TypeContext? context = _ctx; } class WidgetBookingLayouts extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; // @Required() String? Code; DateTime? ModifiedDate; // @Required() int? Id; WidgetBookingLayouts({this.Name,this.Description,this.Code,this.ModifiedDate,this.Id}); WidgetBookingLayouts.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; Code = json['Code']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'Code': Code, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "WidgetBookingLayouts"; TypeContext? context = _ctx; } class WidgetBookingMethods extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; // @Required() String? Code; DateTime? ModifiedDate; // @Required() int? Id; WidgetBookingMethods({this.Name,this.Description,this.Code,this.ModifiedDate,this.Id}); WidgetBookingMethods.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; Code = json['Code']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'Code': Code, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "WidgetBookingMethods"; TypeContext? context = _ctx; } class HomepageWidgetSetting extends BaseModel implements IConvertible { // @Ignore() List? WidgetServiceLayoutOptions; // @Ignore() List? WidgetTimeLayoutOptions; // @Ignore() List? WidgetBookingLayoutOptions; // @Ignore() List? WidgetBookingMethodOptions; // @Required() int? ServiceLayoutId; // @Required() int? TimeLayoutId; // @Required() int? BookingLayoutId; // @Required() String? PrimaryColor; // @Required() bool? ShowServiceImage; // @Required() bool? ShowNextAvailableTime; // @Required() bool? ShowEndTime; String? BookedTimeSlotText; // @Required() bool? DarkTheme; // @Required() bool? ShowRebateCodeField; DateTime? ModifiedDate; // @Required() bool? EnableCreateAccount; // @Required() bool? EnableLogin; // @Required() bool? EnableDirectBooking; // @Required() bool? EnableFacebookLogin; // @Required() bool? ShowSubscribeToNewsletter; // @Required() String? Id; HomepageWidgetSetting({this.WidgetServiceLayoutOptions,this.WidgetTimeLayoutOptions,this.WidgetBookingLayoutOptions,this.WidgetBookingMethodOptions,this.ServiceLayoutId,this.TimeLayoutId,this.BookingLayoutId,this.PrimaryColor,this.ShowServiceImage,this.ShowNextAvailableTime,this.ShowEndTime,this.BookedTimeSlotText,this.DarkTheme,this.ShowRebateCodeField,this.ModifiedDate,this.EnableCreateAccount,this.EnableLogin,this.EnableDirectBooking,this.EnableFacebookLogin,this.ShowSubscribeToNewsletter,this.Id}); HomepageWidgetSetting.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); WidgetServiceLayoutOptions = JsonConverters.fromJson(json['WidgetServiceLayoutOptions'],'List',context!); WidgetTimeLayoutOptions = JsonConverters.fromJson(json['WidgetTimeLayoutOptions'],'List',context!); WidgetBookingLayoutOptions = JsonConverters.fromJson(json['WidgetBookingLayoutOptions'],'List',context!); WidgetBookingMethodOptions = JsonConverters.fromJson(json['WidgetBookingMethodOptions'],'List',context!); ServiceLayoutId = json['ServiceLayoutId']; TimeLayoutId = json['TimeLayoutId']; BookingLayoutId = json['BookingLayoutId']; PrimaryColor = json['PrimaryColor']; ShowServiceImage = json['ShowServiceImage']; ShowNextAvailableTime = json['ShowNextAvailableTime']; ShowEndTime = json['ShowEndTime']; BookedTimeSlotText = json['BookedTimeSlotText']; DarkTheme = json['DarkTheme']; ShowRebateCodeField = json['ShowRebateCodeField']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); EnableCreateAccount = json['EnableCreateAccount']; EnableLogin = json['EnableLogin']; EnableDirectBooking = json['EnableDirectBooking']; EnableFacebookLogin = json['EnableFacebookLogin']; ShowSubscribeToNewsletter = json['ShowSubscribeToNewsletter']; Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'WidgetServiceLayoutOptions': JsonConverters.toJson(WidgetServiceLayoutOptions,'List',context!), 'WidgetTimeLayoutOptions': JsonConverters.toJson(WidgetTimeLayoutOptions,'List',context!), 'WidgetBookingLayoutOptions': JsonConverters.toJson(WidgetBookingLayoutOptions,'List',context!), 'WidgetBookingMethodOptions': JsonConverters.toJson(WidgetBookingMethodOptions,'List',context!), 'ServiceLayoutId': ServiceLayoutId, 'TimeLayoutId': TimeLayoutId, 'BookingLayoutId': BookingLayoutId, 'PrimaryColor': PrimaryColor, 'ShowServiceImage': ShowServiceImage, 'ShowNextAvailableTime': ShowNextAvailableTime, 'ShowEndTime': ShowEndTime, 'BookedTimeSlotText': BookedTimeSlotText, 'DarkTheme': DarkTheme, 'ShowRebateCodeField': ShowRebateCodeField, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'EnableCreateAccount': EnableCreateAccount, 'EnableLogin': EnableLogin, 'EnableDirectBooking': EnableDirectBooking, 'EnableFacebookLogin': EnableFacebookLogin, 'ShowSubscribeToNewsletter': ShowSubscribeToNewsletter, 'Id': Id }); getTypeName() => "HomepageWidgetSetting"; TypeContext? context = _ctx; } class HomepageTemplate extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; Uri? ImageUrl; // @Required() bool? Premium; DateTime? ModifiedDate; int? Id; HomepageTemplate({this.Name,this.Description,this.ImageUrl,this.Premium,this.ModifiedDate,this.Id}); HomepageTemplate.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; ImageUrl = JsonConverters.fromJson(json['ImageUrl'],'Uri',context!); Premium = json['Premium']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'ImageUrl': JsonConverters.toJson(ImageUrl,'Uri',context!), 'Premium': Premium, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "HomepageTemplate"; TypeContext? context = _ctx; } class HeroSectionStyle extends BaseModel implements IConvertible { // @Required() String? Name; String? Description; DateTime? ModifiedDate; // @Required() int? Id; HeroSectionStyle({this.Name,this.Description,this.ModifiedDate,this.Id}); HeroSectionStyle.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() => "HeroSectionStyle"; TypeContext? context = _ctx; } class HomepageSetting extends BaseModel implements ICompany, IConvertible { // @Ignore() List? HomepageTemplateOptions; // @Ignore() List? HomepageHeroSectionStyleOptions; // @Ignore() String? CompanyId; String? WelcomePageHeading; String? WelcomePageBody; String? AboutUsPageHeading; String? AboutUsPageBody; // @Required() int? HomePageTemplateId; String? ImageUrl; // @Required() DateTime? Updated; // @Required() DateTime? Created; String? HomepageHeading; // @Required() int? HeroSectionStyleId; DateTime? ModifiedDate; // @Required() bool? ShowRating; // @Required() bool? EnableHomepage; // @Required() String? Id; HomepageSetting({this.HomepageTemplateOptions,this.HomepageHeroSectionStyleOptions,this.CompanyId,this.WelcomePageHeading,this.WelcomePageBody,this.AboutUsPageHeading,this.AboutUsPageBody,this.HomePageTemplateId,this.ImageUrl,this.Updated,this.Created,this.HomepageHeading,this.HeroSectionStyleId,this.ModifiedDate,this.ShowRating,this.EnableHomepage,this.Id}); HomepageSetting.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); HomepageTemplateOptions = JsonConverters.fromJson(json['HomepageTemplateOptions'],'List',context!); HomepageHeroSectionStyleOptions = JsonConverters.fromJson(json['HomepageHeroSectionStyleOptions'],'List',context!); CompanyId = json['CompanyId']; WelcomePageHeading = json['WelcomePageHeading']; WelcomePageBody = json['WelcomePageBody']; AboutUsPageHeading = json['AboutUsPageHeading']; AboutUsPageBody = json['AboutUsPageBody']; HomePageTemplateId = json['HomePageTemplateId']; ImageUrl = json['ImageUrl']; Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); HomepageHeading = json['HomepageHeading']; HeroSectionStyleId = json['HeroSectionStyleId']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); ShowRating = json['ShowRating']; EnableHomepage = json['EnableHomepage']; Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'HomepageTemplateOptions': JsonConverters.toJson(HomepageTemplateOptions,'List',context!), 'HomepageHeroSectionStyleOptions': JsonConverters.toJson(HomepageHeroSectionStyleOptions,'List',context!), 'CompanyId': CompanyId, 'WelcomePageHeading': WelcomePageHeading, 'WelcomePageBody': WelcomePageBody, 'AboutUsPageHeading': AboutUsPageHeading, 'AboutUsPageBody': AboutUsPageBody, 'HomePageTemplateId': HomePageTemplateId, 'ImageUrl': ImageUrl, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'HomepageHeading': HomepageHeading, 'HeroSectionStyleId': HeroSectionStyleId, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'ShowRating': ShowRating, 'EnableHomepage': EnableHomepage, 'Id': Id }); getTypeName() => "HomepageSetting"; TypeContext? context = _ctx; } class AverageRatingScore implements IConvertible { double? AverageScore; int? Score1Count; int? Score2Count; int? Score3Count; int? Score4Count; int? Score5Count; int? Count; AverageRatingScore({this.AverageScore,this.Score1Count,this.Score2Count,this.Score3Count,this.Score4Count,this.Score5Count,this.Count}); AverageRatingScore.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AverageScore = JsonConverters.toDouble(json['AverageScore']); Score1Count = json['Score1Count']; Score2Count = json['Score2Count']; Score3Count = json['Score3Count']; Score4Count = json['Score4Count']; Score5Count = json['Score5Count']; Count = json['Count']; return this; } Map toJson() => { 'AverageScore': AverageScore, 'Score1Count': Score1Count, 'Score2Count': Score2Count, 'Score3Count': Score3Count, 'Score4Count': Score4Count, 'Score5Count': Score5Count, 'Count': Count }; getTypeName() => "AverageRatingScore"; TypeContext? context = _ctx; } class Review extends BaseModel implements IConvertible { String? ReviewId; // @Required() String? CompanyId; // @Required() String? Title; // @Required() String? Description; // @Required() String? Author; // @Required() int? Status; // @Required() DateTime? Created; // @Required() DateTime? Updated; DateTime? ModifiedDate; String? ReviewAnswer; Review({this.ReviewId,this.CompanyId,this.Title,this.Description,this.Author,this.Status,this.Created,this.Updated,this.ModifiedDate,this.ReviewAnswer}); Review.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ReviewId = json['ReviewId']; CompanyId = json['CompanyId']; Title = json['Title']; Description = json['Description']; Author = json['Author']; Status = json['Status']; Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); ReviewAnswer = json['ReviewAnswer']; return this; } Map toJson() => super.toJson()..addAll({ 'ReviewId': ReviewId, 'CompanyId': CompanyId, 'Title': Title, 'Description': Description, 'Author': Author, 'Status': Status, 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'ReviewAnswer': ReviewAnswer }); getTypeName() => "Review"; TypeContext? context = _ctx; } class Rating extends BaseModel implements IConvertible { String? ReviewId; Review? Review; // @Required() String? CompanyId; // @Required() int? BookingId; // @Required() int? RatingScore; // @Required() int? Status; // @Required() DateTime? Created; // @Required() DateTime? Updated; DateTime? ModifiedDate; Rating({this.ReviewId,this.Review,this.CompanyId,this.BookingId,this.RatingScore,this.Status,this.Created,this.Updated,this.ModifiedDate}); Rating.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ReviewId = json['ReviewId']; Review = JsonConverters.fromJson(json['Review'],'Review',context!); CompanyId = json['CompanyId']; BookingId = json['BookingId']; RatingScore = json['RatingScore']; Status = json['Status']; Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ReviewId': ReviewId, 'Review': JsonConverters.toJson(Review,'Review',context!), 'CompanyId': CompanyId, 'BookingId': BookingId, 'RatingScore': RatingScore, 'Status': Status, 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "Rating"; TypeContext? context = _ctx; } class LicenseTypeItem extends BaseModel implements IConvertible { // @Ignore() String? Name; // @Ignore() LicenseType? LicenseType; // @Required() int? LicenseTypesId; // @Required() int? LicenseItemsId; // @Required() int? NumberOfItems; int? Id; DateTime? ModifiedDate; LicenseTypeItem({this.Name,this.LicenseType,this.LicenseTypesId,this.LicenseItemsId,this.NumberOfItems,this.Id,this.ModifiedDate}); LicenseTypeItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; LicenseType = JsonConverters.fromJson(json['LicenseType'],'LicenseType',context!); LicenseTypesId = json['LicenseTypesId']; LicenseItemsId = json['LicenseItemsId']; NumberOfItems = json['NumberOfItems']; Id = json['Id']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'LicenseType': JsonConverters.toJson(LicenseType,'LicenseType',context!), 'LicenseTypesId': LicenseTypesId, 'LicenseItemsId': LicenseItemsId, 'NumberOfItems': NumberOfItems, 'Id': Id, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "LicenseTypeItem"; TypeContext? context = _ctx; } class Country extends BaseModel implements IConvertible { // @References(typeof(Currency)) String? CurrencyId; Currency? CurrencyInfo; // @Required() String? Name; String? Culture; String? TimeZone; DateTime? ModifiedDate; // @Required() String? Id; Country({this.CurrencyId,this.CurrencyInfo,this.Name,this.Culture,this.TimeZone,this.ModifiedDate,this.Id}); Country.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CurrencyId = json['CurrencyId']; CurrencyInfo = JsonConverters.fromJson(json['CurrencyInfo'],'Currency',context!); Name = json['Name']; Culture = json['Culture']; TimeZone = json['TimeZone']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'CurrencyId': CurrencyId, 'CurrencyInfo': JsonConverters.toJson(CurrencyInfo,'Currency',context!), 'Name': Name, 'Culture': Culture, 'TimeZone': TimeZone, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "Country"; TypeContext? context = _ctx; } class LicensePrice extends BaseModel implements IConvertible { // @Ignore() Country? Country; // @Ignore() bool? MonthlyPayment; // @Required() int? LicenseTypeId; // @Required() String? CountryId; // @Required() int? Price; DateTime? ModifiedDate; LicensePrice({this.Country,this.MonthlyPayment,this.LicenseTypeId,this.CountryId,this.Price,this.ModifiedDate}); LicensePrice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Country = JsonConverters.fromJson(json['Country'],'Country',context!); MonthlyPayment = json['MonthlyPayment']; LicenseTypeId = json['LicenseTypeId']; CountryId = json['CountryId']; Price = json['Price']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Country': JsonConverters.toJson(Country,'Country',context!), 'MonthlyPayment': MonthlyPayment, 'LicenseTypeId': LicenseTypeId, 'CountryId': CountryId, 'Price': Price, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "LicensePrice"; TypeContext? context = _ctx; } class LicenseType extends BaseModel implements IConvertible { // @Ignore() List? LicenseItems; // @Ignore() List? Prices; // @Ignore() int? PeriodOfNoticeDays; // @Ignore() LicenseType? NextLicenseOption; // @Required() String? Name; // @Required() String? Description; // @Required() bool? ExtraLicenseOption; DateTime? ModifiedDate; bool? Active; int? Id; LicenseType({this.LicenseItems,this.Prices,this.PeriodOfNoticeDays,this.NextLicenseOption,this.Name,this.Description,this.ExtraLicenseOption,this.ModifiedDate,this.Active,this.Id}); LicenseType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); LicenseItems = JsonConverters.fromJson(json['LicenseItems'],'List',context!); Prices = JsonConverters.fromJson(json['Prices'],'List',context!); PeriodOfNoticeDays = json['PeriodOfNoticeDays']; NextLicenseOption = JsonConverters.fromJson(json['NextLicenseOption'],'LicenseType',context!); Name = json['Name']; Description = json['Description']; ExtraLicenseOption = json['ExtraLicenseOption']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Active = json['Active']; Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'LicenseItems': JsonConverters.toJson(LicenseItems,'List',context!), 'Prices': JsonConverters.toJson(Prices,'List',context!), 'PeriodOfNoticeDays': PeriodOfNoticeDays, 'NextLicenseOption': JsonConverters.toJson(NextLicenseOption,'LicenseType',context!), 'Name': Name, 'Description': Description, 'ExtraLicenseOption': ExtraLicenseOption, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Active': Active, 'Id': Id }); getTypeName() => "LicenseType"; TypeContext? context = _ctx; } class License extends BaseModel implements IConvertible { LicenseType? Type; // @Required() String? CompanyId; int? Id; // @Required() int? TypeId; // @Required() DateTime? ValidFrom; // @Required() DateTime? ValidTo; // @Required() bool? Active; // @Required() DateTime? Updated; // @Required() DateTime? Created; DateTime? ModifiedDate; String? MetaData; License({this.Type,this.CompanyId,this.Id,this.TypeId,this.ValidFrom,this.ValidTo,this.Active,this.Updated,this.Created,this.ModifiedDate,this.MetaData}); License.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Type = JsonConverters.fromJson(json['Type'],'LicenseType',context!); CompanyId = json['CompanyId']; Id = json['Id']; TypeId = json['TypeId']; ValidFrom = JsonConverters.fromJson(json['ValidFrom'],'DateTime',context!); ValidTo = JsonConverters.fromJson(json['ValidTo'],'DateTime',context!); Active = json['Active']; Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); MetaData = json['MetaData']; return this; } Map toJson() => super.toJson()..addAll({ 'Type': JsonConverters.toJson(Type,'LicenseType',context!), 'CompanyId': CompanyId, 'Id': Id, 'TypeId': TypeId, 'ValidFrom': JsonConverters.toJson(ValidFrom,'DateTime',context!), 'ValidTo': JsonConverters.toJson(ValidTo,'DateTime',context!), 'Active': Active, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'MetaData': MetaData }); getTypeName() => "License"; TypeContext? context = _ctx; } class CompanyCategory extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Header; // @Required() String? Description; Uri? ImageUrl; // @Required() bool? Active; int? SortOrder; DateTime? ModifiedDate; int? Id; CompanyCategory({this.Name,this.Header,this.Description,this.ImageUrl,this.Active,this.SortOrder,this.ModifiedDate,this.Id}); CompanyCategory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Header = json['Header']; Description = json['Description']; ImageUrl = JsonConverters.fromJson(json['ImageUrl'],'Uri',context!); Active = json['Active']; SortOrder = json['SortOrder']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Header': Header, 'Description': Description, 'ImageUrl': JsonConverters.toJson(ImageUrl,'Uri',context!), 'Active': Active, 'SortOrder': SortOrder, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "CompanyCategory"; TypeContext? context = _ctx; } class Company extends BaseModel implements IConvertible { // @Ignore() CompanyStatus? Status; // @Ignore() bool? Active; // @Ignore() List? CustomerCustomFieldsConfig; // @Ignore() String? BookingAgreements; // @Ignore() BookingSettings? BookingSettings; // @Ignore() CompanyType? CompanyType; // @Ignore() CodeLockSetting? CodeLockSettings; // @Ignore() PaymentSetting? PaymentSettings; // @Ignore() CompanySetting? Settings; // @Ignore() HomepageWidgetSetting? WidgetSettings; // @Ignore() HomepageSetting? HomepageSettings; // @Ignore() AverageRatingScore? RatingScore; // @Ignore() List? Ratings; // @Ignore() double? Distance; // @Ignore() List? Licenses; // @Ignore() List? ActiveLicenses; // @Ignore() License? CurrentLicense; // @Ignore() bool? IsFreeAccount; // @Ignore() CultureInfo? DefaultLanguage; CompanyCategory? Category; // @Ignore() double? Lat; // @Ignore() double? Lon; // @Ignore() bool? IsFavorite; // @Ignore() List? ExternalReferences; // @Required() String? OrganisationNumber; // @Required() int? StatusId; // @Required() int? CategoryId; // @Required() String? SitePath; // @Required() String? Name; String? Street1; String? Street2; String? ZipCode; String? City; String? OpeningHours; String? FaxNumber; // @Required() String? Email; String? Phone; String? Details; String? LogoType; // @Required() bool? ApprovedByAdmin; // @Required() DateTime? Updated; // @Required() DateTime? Created; String? IpAddress; String? Homepage; String? DomainName; // @Required() String? CountryId; // @Required() int? CompanyOwnerId; int? TypeId; DateTime? ModifiedDate; // @Required() String? Id; Company({this.Status,this.Active,this.CustomerCustomFieldsConfig,this.BookingAgreements,this.BookingSettings,this.CompanyType,this.CodeLockSettings,this.PaymentSettings,this.Settings,this.WidgetSettings,this.HomepageSettings,this.RatingScore,this.Ratings,this.Distance,this.Licenses,this.ActiveLicenses,this.CurrentLicense,this.IsFreeAccount,this.DefaultLanguage,this.Category,this.Lat,this.Lon,this.IsFavorite,this.ExternalReferences,this.OrganisationNumber,this.StatusId,this.CategoryId,this.SitePath,this.Name,this.Street1,this.Street2,this.ZipCode,this.City,this.OpeningHours,this.FaxNumber,this.Email,this.Phone,this.Details,this.LogoType,this.ApprovedByAdmin,this.Updated,this.Created,this.IpAddress,this.Homepage,this.DomainName,this.CountryId,this.CompanyOwnerId,this.TypeId,this.ModifiedDate,this.Id}); Company.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Status = JsonConverters.fromJson(json['Status'],'CompanyStatus',context!); Active = json['Active']; CustomerCustomFieldsConfig = JsonConverters.fromJson(json['CustomerCustomFieldsConfig'],'List',context!); BookingAgreements = json['BookingAgreements']; BookingSettings = JsonConverters.fromJson(json['BookingSettings'],'BookingSettings',context!); CompanyType = JsonConverters.fromJson(json['CompanyType'],'CompanyType',context!); CodeLockSettings = JsonConverters.fromJson(json['CodeLockSettings'],'CodeLockSetting',context!); PaymentSettings = JsonConverters.fromJson(json['PaymentSettings'],'PaymentSetting',context!); Settings = JsonConverters.fromJson(json['Settings'],'CompanySetting',context!); WidgetSettings = JsonConverters.fromJson(json['WidgetSettings'],'HomepageWidgetSetting',context!); HomepageSettings = JsonConverters.fromJson(json['HomepageSettings'],'HomepageSetting',context!); RatingScore = JsonConverters.fromJson(json['RatingScore'],'AverageRatingScore',context!); Ratings = JsonConverters.fromJson(json['Ratings'],'List',context!); Distance = JsonConverters.toDouble(json['Distance']); Licenses = JsonConverters.fromJson(json['Licenses'],'List',context!); ActiveLicenses = JsonConverters.fromJson(json['ActiveLicenses'],'List',context!); CurrentLicense = JsonConverters.fromJson(json['CurrentLicense'],'License',context!); IsFreeAccount = json['IsFreeAccount']; DefaultLanguage = JsonConverters.fromJson(json['DefaultLanguage'],'CultureInfo',context!); Category = JsonConverters.fromJson(json['Category'],'CompanyCategory',context!); Lat = JsonConverters.toDouble(json['Lat']); Lon = JsonConverters.toDouble(json['Lon']); IsFavorite = json['IsFavorite']; ExternalReferences = JsonConverters.fromJson(json['ExternalReferences'],'List',context!); OrganisationNumber = json['OrganisationNumber']; StatusId = json['StatusId']; CategoryId = json['CategoryId']; SitePath = json['SitePath']; Name = json['Name']; Street1 = json['Street1']; Street2 = json['Street2']; ZipCode = json['ZipCode']; City = json['City']; OpeningHours = json['OpeningHours']; FaxNumber = json['FaxNumber']; Email = json['Email']; Phone = json['Phone']; Details = json['Details']; LogoType = json['LogoType']; ApprovedByAdmin = json['ApprovedByAdmin']; Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); IpAddress = json['IpAddress']; Homepage = json['Homepage']; DomainName = json['DomainName']; CountryId = json['CountryId']; CompanyOwnerId = json['CompanyOwnerId']; TypeId = json['TypeId']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Status': JsonConverters.toJson(Status,'CompanyStatus',context!), 'Active': Active, 'CustomerCustomFieldsConfig': JsonConverters.toJson(CustomerCustomFieldsConfig,'List',context!), 'BookingAgreements': BookingAgreements, 'BookingSettings': JsonConverters.toJson(BookingSettings,'BookingSettings',context!), 'CompanyType': JsonConverters.toJson(CompanyType,'CompanyType',context!), 'CodeLockSettings': JsonConverters.toJson(CodeLockSettings,'CodeLockSetting',context!), 'PaymentSettings': JsonConverters.toJson(PaymentSettings,'PaymentSetting',context!), 'Settings': JsonConverters.toJson(Settings,'CompanySetting',context!), 'WidgetSettings': JsonConverters.toJson(WidgetSettings,'HomepageWidgetSetting',context!), 'HomepageSettings': JsonConverters.toJson(HomepageSettings,'HomepageSetting',context!), 'RatingScore': JsonConverters.toJson(RatingScore,'AverageRatingScore',context!), 'Ratings': JsonConverters.toJson(Ratings,'List',context!), 'Distance': Distance, 'Licenses': JsonConverters.toJson(Licenses,'List',context!), 'ActiveLicenses': JsonConverters.toJson(ActiveLicenses,'List',context!), 'CurrentLicense': JsonConverters.toJson(CurrentLicense,'License',context!), 'IsFreeAccount': IsFreeAccount, 'DefaultLanguage': JsonConverters.toJson(DefaultLanguage,'CultureInfo',context!), 'Category': JsonConverters.toJson(Category,'CompanyCategory',context!), 'Lat': Lat, 'Lon': Lon, 'IsFavorite': IsFavorite, 'ExternalReferences': JsonConverters.toJson(ExternalReferences,'List',context!), 'OrganisationNumber': OrganisationNumber, 'StatusId': StatusId, 'CategoryId': CategoryId, 'SitePath': SitePath, 'Name': Name, 'Street1': Street1, 'Street2': Street2, 'ZipCode': ZipCode, 'City': City, 'OpeningHours': OpeningHours, 'FaxNumber': FaxNumber, 'Email': Email, 'Phone': Phone, 'Details': Details, 'LogoType': LogoType, 'ApprovedByAdmin': ApprovedByAdmin, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'IpAddress': IpAddress, 'Homepage': Homepage, 'DomainName': DomainName, 'CountryId': CountryId, 'CompanyOwnerId': CompanyOwnerId, 'TypeId': TypeId, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "Company"; TypeContext? context = _ctx; } class CompanyInvoice extends BaseModel implements IConvertible { // @References(typeof(Currency)) String? CurrencyId; Currency? CurrencyInfo; InvoiceStatus? InvoiceStatus; // @Ignore() List? InvoiceLines; // @Ignore() BillingInformation? BillingInformation; // @Ignore() List? ExternalReferences; // @Ignore() Company? Company; // @Required() String? CompanyId; int? Id; // @Required() int? StatusId; // @Required() DateTime? InvoiceDate; DateTime? DueDate; // @Required() DateTime? PeriodFrom; // @Required() DateTime? PeriodTo; // @Required() double? TotalAmount; // @Required() double? Rounding; // @Required() double? VAT; // @Required() String? VATRegistrationNo; // @Required() String? RegistrationNumber; // @Required() String? CompanyName; String? ContactPerson; String? Street1; String? Street2; String? City; String? Zip; String? Country; String? PaymentMethod; DateTime? ViewedDate; String? ViewedBy; String? Message; DateTime? Updated; DateTime? Created; int? PromikBookInvoiceId; DateTime? ModifiedDate; CompanyInvoice({this.CurrencyId,this.CurrencyInfo,this.InvoiceStatus,this.InvoiceLines,this.BillingInformation,this.ExternalReferences,this.Company,this.CompanyId,this.Id,this.StatusId,this.InvoiceDate,this.DueDate,this.PeriodFrom,this.PeriodTo,this.TotalAmount,this.Rounding,this.VAT,this.VATRegistrationNo,this.RegistrationNumber,this.CompanyName,this.ContactPerson,this.Street1,this.Street2,this.City,this.Zip,this.Country,this.PaymentMethod,this.ViewedDate,this.ViewedBy,this.Message,this.Updated,this.Created,this.PromikBookInvoiceId,this.ModifiedDate}); CompanyInvoice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CurrencyId = json['CurrencyId']; CurrencyInfo = JsonConverters.fromJson(json['CurrencyInfo'],'Currency',context!); InvoiceStatus = JsonConverters.fromJson(json['InvoiceStatus'],'InvoiceStatus',context!); InvoiceLines = JsonConverters.fromJson(json['InvoiceLines'],'List',context!); BillingInformation = JsonConverters.fromJson(json['BillingInformation'],'BillingInformation',context!); ExternalReferences = JsonConverters.fromJson(json['ExternalReferences'],'List',context!); Company = JsonConverters.fromJson(json['Company'],'Company',context!); CompanyId = json['CompanyId']; Id = json['Id']; StatusId = json['StatusId']; InvoiceDate = JsonConverters.fromJson(json['InvoiceDate'],'DateTime',context!); DueDate = JsonConverters.fromJson(json['DueDate'],'DateTime',context!); PeriodFrom = JsonConverters.fromJson(json['PeriodFrom'],'DateTime',context!); PeriodTo = JsonConverters.fromJson(json['PeriodTo'],'DateTime',context!); TotalAmount = JsonConverters.toDouble(json['TotalAmount']); Rounding = JsonConverters.toDouble(json['Rounding']); VAT = JsonConverters.toDouble(json['VAT']); VATRegistrationNo = json['VATRegistrationNo']; RegistrationNumber = json['RegistrationNumber']; CompanyName = json['CompanyName']; ContactPerson = json['ContactPerson']; Street1 = json['Street1']; Street2 = json['Street2']; City = json['City']; Zip = json['Zip']; Country = json['Country']; PaymentMethod = json['PaymentMethod']; ViewedDate = JsonConverters.fromJson(json['ViewedDate'],'DateTime',context!); ViewedBy = json['ViewedBy']; Message = json['Message']; Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); PromikBookInvoiceId = json['PromikBookInvoiceId']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CurrencyId': CurrencyId, 'CurrencyInfo': JsonConverters.toJson(CurrencyInfo,'Currency',context!), 'InvoiceStatus': JsonConverters.toJson(InvoiceStatus,'InvoiceStatus',context!), 'InvoiceLines': JsonConverters.toJson(InvoiceLines,'List',context!), 'BillingInformation': JsonConverters.toJson(BillingInformation,'BillingInformation',context!), 'ExternalReferences': JsonConverters.toJson(ExternalReferences,'List',context!), 'Company': JsonConverters.toJson(Company,'Company',context!), 'CompanyId': CompanyId, 'Id': Id, 'StatusId': StatusId, 'InvoiceDate': JsonConverters.toJson(InvoiceDate,'DateTime',context!), 'DueDate': JsonConverters.toJson(DueDate,'DateTime',context!), 'PeriodFrom': JsonConverters.toJson(PeriodFrom,'DateTime',context!), 'PeriodTo': JsonConverters.toJson(PeriodTo,'DateTime',context!), 'TotalAmount': TotalAmount, 'Rounding': Rounding, 'VAT': VAT, 'VATRegistrationNo': VATRegistrationNo, 'RegistrationNumber': RegistrationNumber, 'CompanyName': CompanyName, 'ContactPerson': ContactPerson, 'Street1': Street1, 'Street2': Street2, 'City': City, 'Zip': Zip, 'Country': Country, 'PaymentMethod': PaymentMethod, 'ViewedDate': JsonConverters.toJson(ViewedDate,'DateTime',context!), 'ViewedBy': ViewedBy, 'Message': Message, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'PromikBookInvoiceId': PromikBookInvoiceId, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }); getTypeName() => "CompanyInvoice"; TypeContext? context = _ctx; } class CompanyOwnerResponse implements IConvertible { /** * Company owner id */ // @ApiMember(Description="Company owner id") int? Id; /** * Company owner name */ // @ApiMember(Description="Company owner name") String? Name; CompanyOwnerResponse({this.Id,this.Name}); CompanyOwnerResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; return this; } Map toJson() => { 'Id': Id, 'Name': Name }; getTypeName() => "CompanyOwnerResponse"; TypeContext? context = _ctx; } class CompanyTypeResponse implements IConvertible { /** * Company type id */ // @ApiMember(Description="Company type id") int? Id; /** * Company type name */ // @ApiMember(Description="Company type name") String? Name; CompanyTypeResponse({this.Id,this.Name}); CompanyTypeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; return this; } Map toJson() => { 'Id': Id, 'Name': Name }; getTypeName() => "CompanyTypeResponse"; TypeContext? context = _ctx; } class CurrencyInfoResponse implements IConvertible { /** * The currency id */ // @ApiMember(Description="The currency id") String? Id; /** * The currency id */ // @ApiMember(Description="The currency id") String? Name; /** * The currency id */ // @ApiMember(Description="The currency id") String? CurrencySign; CurrencyInfoResponse({this.Id,this.Name,this.CurrencySign}); CurrencyInfoResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; CurrencySign = json['CurrencySign']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'CurrencySign': CurrencySign }; getTypeName() => "CurrencyInfoResponse"; TypeContext? context = _ctx; } class InvoiceStatusResponse implements IConvertible { /** * The status id */ // @ApiMember(Description="The status id") int? Id; /** * The status name */ // @ApiMember(Description="The status name") String? Name; /** * The status description */ // @ApiMember(Description="The status description") String? Description; InvoiceStatusResponse({this.Id,this.Name,this.Description}); InvoiceStatusResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description }; getTypeName() => "InvoiceStatusResponse"; TypeContext? context = _ctx; } class InvoiceLineResponse implements IConvertible { /** * The invoice id */ // @ApiMember(Description="The invoice id") int? InvoiceId; /** * The invoice line id */ // @ApiMember(Description="The invoice line id") int? Id; /** * The invoice line period from date */ // @ApiMember(Description="The invoice line period from date") DateTime? PeriodFrom; /** * The invoice line period to date */ // @ApiMember(Description="The invoice line period to date") DateTime? PeriodTo; /** * The invoice line article number */ // @ApiMember(Description="The invoice line article number") int? ArticleNumber; /** * The invoice line article name */ // @ApiMember(Description="The invoice line article name") String? ArticleName; /** * The invoice line article description */ // @ApiMember(Description="The invoice line article description") String? ArticleDescription; /** * The invoice line quantity */ // @ApiMember(Description="The invoice line quantity") int? Quantity; /** * The invoice line unit price */ // @ApiMember(Description="The invoice line unit price") double? UnitPrice; /** * The invoice line sub total */ // @ApiMember(Description="The invoice line sub total") double? SubTotal; /** * The invoice line rebate in percent */ // @ApiMember(Description="The invoice line rebate in percent") int? Rebate; /** * The invoice line updated date */ // @ApiMember(Description="The invoice line updated date") DateTime? Updated; /** * The invoice line created date */ // @ApiMember(Description="The invoice line created date") DateTime? Created; InvoiceLineResponse({this.InvoiceId,this.Id,this.PeriodFrom,this.PeriodTo,this.ArticleNumber,this.ArticleName,this.ArticleDescription,this.Quantity,this.UnitPrice,this.SubTotal,this.Rebate,this.Updated,this.Created}); InvoiceLineResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InvoiceId = json['InvoiceId']; Id = json['Id']; PeriodFrom = JsonConverters.fromJson(json['PeriodFrom'],'DateTime',context!); PeriodTo = JsonConverters.fromJson(json['PeriodTo'],'DateTime',context!); ArticleNumber = json['ArticleNumber']; ArticleName = json['ArticleName']; ArticleDescription = json['ArticleDescription']; Quantity = json['Quantity']; UnitPrice = JsonConverters.toDouble(json['UnitPrice']); SubTotal = JsonConverters.toDouble(json['SubTotal']); Rebate = json['Rebate']; Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); return this; } Map toJson() => { 'InvoiceId': InvoiceId, 'Id': Id, 'PeriodFrom': JsonConverters.toJson(PeriodFrom,'DateTime',context!), 'PeriodTo': JsonConverters.toJson(PeriodTo,'DateTime',context!), 'ArticleNumber': ArticleNumber, 'ArticleName': ArticleName, 'ArticleDescription': ArticleDescription, 'Quantity': Quantity, 'UnitPrice': UnitPrice, 'SubTotal': SubTotal, 'Rebate': Rebate, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!) }; getTypeName() => "InvoiceLineResponse"; TypeContext? context = _ctx; } class BillingInformationResponse implements IConvertible { /** * The company id. */ // @ApiMember(Description="The company id.") String? CompanyId; /** * The prefered billing method. */ // @ApiMember(Description="The prefered billing method.", IsRequired=true) int? BillingMethodId; /** * The name that should be printed on the billing information, normally this would be your company name. */ // @ApiMember(Description="The name that should be printed on the billing information, normally this would be your company name.") String? Name; /** * If you want to add the attention to the billing address. */ // @ApiMember(Description="If you want to add the attention to the billing address.") String? Attention; /** * The street for the billing adress. This is required when having postal invoice as billing method. */ // @ApiMember(Description="The street for the billing adress. This is required when having postal invoice as billing method.") String? Street1; /** * The street for the billing adress. */ // @ApiMember(Description="The street for the billing adress.") String? Street2; /** * The zip code (postal code) for the billing adress. This is required when having postal invoice as billing method. */ // @ApiMember(Description="The zip code (postal code) for the billing adress. This is required when having postal invoice as billing method.") String? ZipCode; /** * The city for the billing adress. This is required when having postal invoice as billing method. */ // @ApiMember(Description="The city for the billing adress. This is required when having postal invoice as billing method.") String? City; /** * The country for the billing adress. This is required when having postal invoice as billing method. */ // @ApiMember(Description="The country for the billing adress. This is required when having postal invoice as billing method.") String? CountryId; /** * The billing email. This is required when having email invoice as billing method. */ // @ApiMember(Description="The billing email. This is required when having email invoice as billing method.") String? Email; /** * The company global location number. */ // @ApiMember(Description="The company global location number.") String? GLN; /** * You're internal rereference. */ // @ApiMember(Description="You're internal rereference.") String? ReferenceLine1; /** * You're internal rereference. */ // @ApiMember(Description="You're internal rereference.") String? ReferenceLine2; /** * The billing payment terms in days. This is default 15 days. */ // @ApiMember(Description="The billing payment terms in days. This is default 15 days.") int? PaymentTermsDays; /** * The company vat registration number. */ // @ApiMember(Description="The company vat registration number.") String? VatRegistrationNumber; /** * The billing method options to choose from */ // @ApiMember(Description="The billing method options to choose from") List? BillingMethodOptions; BillingInformationResponse({this.CompanyId,this.BillingMethodId,this.Name,this.Attention,this.Street1,this.Street2,this.ZipCode,this.City,this.CountryId,this.Email,this.GLN,this.ReferenceLine1,this.ReferenceLine2,this.PaymentTermsDays,this.VatRegistrationNumber,this.BillingMethodOptions}); BillingInformationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; BillingMethodId = json['BillingMethodId']; Name = json['Name']; Attention = json['Attention']; Street1 = json['Street1']; Street2 = json['Street2']; ZipCode = json['ZipCode']; City = json['City']; CountryId = json['CountryId']; Email = json['Email']; GLN = json['GLN']; ReferenceLine1 = json['ReferenceLine1']; ReferenceLine2 = json['ReferenceLine2']; PaymentTermsDays = json['PaymentTermsDays']; VatRegistrationNumber = json['VatRegistrationNumber']; BillingMethodOptions = JsonConverters.fromJson(json['BillingMethodOptions'],'List',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'BillingMethodId': BillingMethodId, 'Name': Name, 'Attention': Attention, 'Street1': Street1, 'Street2': Street2, 'ZipCode': ZipCode, 'City': City, 'CountryId': CountryId, 'Email': Email, 'GLN': GLN, 'ReferenceLine1': ReferenceLine1, 'ReferenceLine2': ReferenceLine2, 'PaymentTermsDays': PaymentTermsDays, 'VatRegistrationNumber': VatRegistrationNumber, 'BillingMethodOptions': JsonConverters.toJson(BillingMethodOptions,'List',context!) }; getTypeName() => "BillingInformationResponse"; TypeContext? context = _ctx; } class CompanyInvoiceQueryResponse implements IConvertible { /** * The company id */ // @ApiMember(Description="The company id") String? CompanyId; /** * The invoice id */ // @ApiMember(Description="The invoice id") int? Id; /** * Status of the invoice */ // @ApiMember(Description="Status of the invoice") int? StatusId; /** * Date of the invoice */ // @ApiMember(Description="Date of the invoice") DateTime? InvoiceDate; /** * Due date of the invoice */ // @ApiMember(Description="Due date of the invoice") DateTime? DueDate; /** * What start date of the invoice period */ // @ApiMember(Description="What start date of the invoice period") DateTime? PeriodFrom; /** * What end date of the invoice period */ // @ApiMember(Description="What end date of the invoice period") DateTime? PeriodTo; /** * The total amount of the invoice */ // @ApiMember(Description="The total amount of the invoice") double? TotalAmount; /** * The rounding of the total amount */ // @ApiMember(Description="The rounding of the total amount") double? Rounding; /** * The VAT */ // @ApiMember(Description="The VAT") double? VAT; /** * The VAT registration number */ // @ApiMember(Description="The VAT registration number") String? VATRegistrationNo; /** * The company registration number */ // @ApiMember(Description="The company registration number") String? RegistrationNumber; /** * The company name */ // @ApiMember(Description="The company name") String? CompanyName; /** * The company owner, used for grouping invoices per CompanyOwner */ // @ApiMember(Description="The company owner, used for grouping invoices per CompanyOwner") CompanyOwnerResponse? CompanyOwner; /** * The company type */ // @ApiMember(Description="The company type") CompanyTypeResponse? CompanyType; /** * The company contact person */ // @ApiMember(Description="The company contact person") String? ContactPerson; /** * The company street */ // @ApiMember(Description="The company street") String? Street1; /** * The company street */ // @ApiMember(Description="The company street") String? Street2; /** * The company city */ // @ApiMember(Description="The company city") String? City; /** * The company zip */ // @ApiMember(Description="The company zip") String? Zip; /** * The company country */ // @ApiMember(Description="The company country") String? CountryId; /** * The invoice currency */ // @ApiMember(Description="The invoice currency") String? CurrencyId; /** * The invoice created date */ // @ApiMember(Description="The invoice created date") DateTime? Created; /** * The invoice updated date */ // @ApiMember(Description="The invoice updated date") DateTime? Updated; /** * The reference to promikbook invoice */ // @ApiMember(Description="The reference to promikbook invoice") int? PromikBookInvoiceId; /** * Any invoice message */ // @ApiMember(Description="Any invoice message") String? Message; /** * The currency information */ // @ApiMember(Description="The currency information") CurrencyInfoResponse? CurrencyInfo; /** * The currency information */ // @ApiMember(Description="The currency information") InvoiceStatusResponse? InvoiceStatus; /** * The currency information */ // @ApiMember(Description="The currency information") List? InvoiceLines; /** * Billing information */ // @ApiMember(Description="Billing information") BillingInformationResponse? BillingInformation; List? ExternalReferences; CompanyInvoiceQueryResponse({this.CompanyId,this.Id,this.StatusId,this.InvoiceDate,this.DueDate,this.PeriodFrom,this.PeriodTo,this.TotalAmount,this.Rounding,this.VAT,this.VATRegistrationNo,this.RegistrationNumber,this.CompanyName,this.CompanyOwner,this.CompanyType,this.ContactPerson,this.Street1,this.Street2,this.City,this.Zip,this.CountryId,this.CurrencyId,this.Created,this.Updated,this.PromikBookInvoiceId,this.Message,this.CurrencyInfo,this.InvoiceStatus,this.InvoiceLines,this.BillingInformation,this.ExternalReferences}); CompanyInvoiceQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; StatusId = json['StatusId']; InvoiceDate = JsonConverters.fromJson(json['InvoiceDate'],'DateTime',context!); DueDate = JsonConverters.fromJson(json['DueDate'],'DateTime',context!); PeriodFrom = JsonConverters.fromJson(json['PeriodFrom'],'DateTime',context!); PeriodTo = JsonConverters.fromJson(json['PeriodTo'],'DateTime',context!); TotalAmount = JsonConverters.toDouble(json['TotalAmount']); Rounding = JsonConverters.toDouble(json['Rounding']); VAT = JsonConverters.toDouble(json['VAT']); VATRegistrationNo = json['VATRegistrationNo']; RegistrationNumber = json['RegistrationNumber']; CompanyName = json['CompanyName']; CompanyOwner = JsonConverters.fromJson(json['CompanyOwner'],'CompanyOwnerResponse',context!); CompanyType = JsonConverters.fromJson(json['CompanyType'],'CompanyTypeResponse',context!); ContactPerson = json['ContactPerson']; Street1 = json['Street1']; Street2 = json['Street2']; City = json['City']; Zip = json['Zip']; CountryId = json['CountryId']; CurrencyId = json['CurrencyId']; Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); PromikBookInvoiceId = json['PromikBookInvoiceId']; Message = json['Message']; CurrencyInfo = JsonConverters.fromJson(json['CurrencyInfo'],'CurrencyInfoResponse',context!); InvoiceStatus = JsonConverters.fromJson(json['InvoiceStatus'],'InvoiceStatusResponse',context!); InvoiceLines = JsonConverters.fromJson(json['InvoiceLines'],'List',context!); BillingInformation = JsonConverters.fromJson(json['BillingInformation'],'BillingInformationResponse',context!); ExternalReferences = JsonConverters.fromJson(json['ExternalReferences'],'List',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id, 'StatusId': StatusId, 'InvoiceDate': JsonConverters.toJson(InvoiceDate,'DateTime',context!), 'DueDate': JsonConverters.toJson(DueDate,'DateTime',context!), 'PeriodFrom': JsonConverters.toJson(PeriodFrom,'DateTime',context!), 'PeriodTo': JsonConverters.toJson(PeriodTo,'DateTime',context!), 'TotalAmount': TotalAmount, 'Rounding': Rounding, 'VAT': VAT, 'VATRegistrationNo': VATRegistrationNo, 'RegistrationNumber': RegistrationNumber, 'CompanyName': CompanyName, 'CompanyOwner': JsonConverters.toJson(CompanyOwner,'CompanyOwnerResponse',context!), 'CompanyType': JsonConverters.toJson(CompanyType,'CompanyTypeResponse',context!), 'ContactPerson': ContactPerson, 'Street1': Street1, 'Street2': Street2, 'City': City, 'Zip': Zip, 'CountryId': CountryId, 'CurrencyId': CurrencyId, 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'PromikBookInvoiceId': PromikBookInvoiceId, 'Message': Message, 'CurrencyInfo': JsonConverters.toJson(CurrencyInfo,'CurrencyInfoResponse',context!), 'InvoiceStatus': JsonConverters.toJson(InvoiceStatus,'InvoiceStatusResponse',context!), 'InvoiceLines': JsonConverters.toJson(InvoiceLines,'List',context!), 'BillingInformation': JsonConverters.toJson(BillingInformation,'BillingInformationResponse',context!), 'ExternalReferences': JsonConverters.toJson(ExternalReferences,'List',context!) }; getTypeName() => "CompanyInvoiceQueryResponse"; 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; } // @Route("/superadmin/billing/company/invoices", "GET") // @ValidateRequest(Validator="IsAuthenticated") class SuperAdminCompanyInvoiceQuery extends QueryDb2 implements IReturn>, ICompany, IConvertible, IGet { /** * 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.") String? CompanyId; /** * Id of the invoice */ // @ApiMember(Description="Id of the invoice") int? Id; /** * Id of the invoice */ // @ApiMember(Description="Id of the invoice") int? StatusId; /** * If you want to include the invoice lines */ // @ApiMember(DataType="boolean", Description="If you want to include the invoice lines", ParameterType="query") bool? IncludeInvoiceLines; /** * If you want to include the currency information */ // @ApiMember(DataType="boolean", Description="If you want to include the currency information", ParameterType="query") bool? IncludeCurrencyInformation; /** * If you want to include the invoice status information */ // @ApiMember(DataType="boolean", Description="If you want to include the invoice status information", ParameterType="query") bool? IncludeInvoiceStatusInformation; SuperAdminCompanyInvoiceQuery({this.CompanyId,this.Id,this.StatusId,this.IncludeInvoiceLines,this.IncludeCurrencyInformation,this.IncludeInvoiceStatusInformation}); SuperAdminCompanyInvoiceQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; Id = json['Id']; StatusId = json['StatusId']; IncludeInvoiceLines = json['IncludeInvoiceLines']; IncludeCurrencyInformation = json['IncludeCurrencyInformation']; IncludeInvoiceStatusInformation = json['IncludeInvoiceStatusInformation']; return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'Id': Id, 'StatusId': StatusId, 'IncludeInvoiceLines': IncludeInvoiceLines, 'IncludeCurrencyInformation': IncludeCurrencyInformation, 'IncludeInvoiceStatusInformation': IncludeInvoiceStatusInformation }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "SuperAdminCompanyInvoiceQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'BillingMethodCountriesRelation': TypeInfo(TypeOf.Class, create:() => BillingMethodCountriesRelation()), 'BillingMethod': TypeInfo(TypeOf.Class, create:() => BillingMethod()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BillingInformation': TypeInfo(TypeOf.Class, create:() => BillingInformation()), 'Currency': TypeInfo(TypeOf.Enum, enumValues:Currency.values), 'InvoiceStatus': TypeInfo(TypeOf.Class, create:() => InvoiceStatus()), 'CompanyInvoiceLine': TypeInfo(TypeOf.Class, create:() => CompanyInvoiceLine()), 'ExternalReference': TypeInfo(TypeOf.Class, create:() => ExternalReference()), 'CompanyStatus': TypeInfo(TypeOf.Enum, enumValues:CompanyStatus.values), 'CustomFieldValue': TypeInfo(TypeOf.Class, create:() => CustomFieldValue()), 'CustomField': TypeInfo(TypeOf.Class, create:() => CustomField()), 'RegEx': TypeInfo(TypeOf.Class, create:() => RegEx()), 'CustomFieldServiceRelation': TypeInfo(TypeOf.Class, create:() => CustomFieldServiceRelation()), 'CustomFieldConfig': TypeInfo(TypeOf.Class, create:() => CustomFieldConfig()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Service': TypeInfo(TypeOf.Class, create:() => Service()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ScheduleView': TypeInfo(TypeOf.Class, create:() => ScheduleView()), 'WeekNumberSetting': TypeInfo(TypeOf.Class, create:() => WeekNumberSetting()), 'BookingTemplate': TypeInfo(TypeOf.Class, create:() => BookingTemplate()), 'CalendarType': TypeInfo(TypeOf.Class, create:() => CalendarType()), 'FreeSpotTexts': TypeInfo(TypeOf.Class, create:() => FreeSpotTexts()), 'BookingStatusOptions': TypeInfo(TypeOf.Class, create:() => BookingStatusOptions()), 'BookingSettings': TypeInfo(TypeOf.Class, create:() => BookingSettings()), '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:() => []), 'CompanyType': TypeInfo(TypeOf.Class, create:() => CompanyType()), 'CodeLockSystem': TypeInfo(TypeOf.Class, create:() => CodeLockSystem()), 'CodeLockSetting': TypeInfo(TypeOf.Class, create:() => CodeLockSetting()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AdminPaymentOptions': TypeInfo(TypeOf.Class, create:() => AdminPaymentOptions()), 'PaymentProviders': TypeInfo(TypeOf.Class, create:() => PaymentProviders()), 'PaymentSetting': TypeInfo(TypeOf.Class, create:() => PaymentSetting()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LanguageResponse': TypeInfo(TypeOf.Class, create:() => LanguageResponse()), 'CompanySetting': TypeInfo(TypeOf.Class, create:() => CompanySetting()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'WidgetServiceLayouts': TypeInfo(TypeOf.Class, create:() => WidgetServiceLayouts()), 'WidgetTimeLayouts': TypeInfo(TypeOf.Class, create:() => WidgetTimeLayouts()), 'WidgetBookingLayouts': TypeInfo(TypeOf.Class, create:() => WidgetBookingLayouts()), 'WidgetBookingMethods': TypeInfo(TypeOf.Class, create:() => WidgetBookingMethods()), 'HomepageWidgetSetting': TypeInfo(TypeOf.Class, create:() => HomepageWidgetSetting()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'HomepageTemplate': TypeInfo(TypeOf.Class, create:() => HomepageTemplate()), 'Uri': TypeInfo(TypeOf.Class, create:() => Uri()), 'HeroSectionStyle': TypeInfo(TypeOf.Class, create:() => HeroSectionStyle()), 'HomepageSetting': TypeInfo(TypeOf.Class, create:() => HomepageSetting()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AverageRatingScore': TypeInfo(TypeOf.Class, create:() => AverageRatingScore()), 'Review': TypeInfo(TypeOf.Class, create:() => Review()), 'Rating': TypeInfo(TypeOf.Class, create:() => Rating()), 'LicenseTypeItem': TypeInfo(TypeOf.Class, create:() => LicenseTypeItem()), 'LicenseType': TypeInfo(TypeOf.Class, create:() => LicenseType()), 'Country': TypeInfo(TypeOf.Class, create:() => Country()), 'LicensePrice': TypeInfo(TypeOf.Class, create:() => LicensePrice()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'License': TypeInfo(TypeOf.Class, create:() => License()), 'CompanyCategory': TypeInfo(TypeOf.Class, create:() => CompanyCategory()), 'Company': TypeInfo(TypeOf.Class, create:() => Company()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CultureInfo': TypeInfo(TypeOf.Class, create:() => CultureInfo()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CompanyInvoice': TypeInfo(TypeOf.Class, create:() => CompanyInvoice()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CompanyOwnerResponse': TypeInfo(TypeOf.Class, create:() => CompanyOwnerResponse()), 'CompanyTypeResponse': TypeInfo(TypeOf.Class, create:() => CompanyTypeResponse()), 'CurrencyInfoResponse': TypeInfo(TypeOf.Class, create:() => CurrencyInfoResponse()), 'InvoiceStatusResponse': TypeInfo(TypeOf.Class, create:() => InvoiceStatusResponse()), 'InvoiceLineResponse': TypeInfo(TypeOf.Class, create:() => InvoiceLineResponse()), 'BillingInformationResponse': TypeInfo(TypeOf.Class, create:() => BillingInformationResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CompanyInvoiceQueryResponse': TypeInfo(TypeOf.Class, create:() => CompanyInvoiceQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'SuperAdminCompanyInvoiceQuery': TypeInfo(TypeOf.Class, create:() => SuperAdminCompanyInvoiceQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });