/* Options: Date: 2024-12-03 17:53:11 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: HomepageWidgetSettingsQuery.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } export interface ICompanyRequest { CompanyId?: string; SitePath: string; } export class HomepageWidgetServiceLayoutsResponse { /** @description The layout id. */ // @ApiMember(Description="The layout id.") public Id: number; /** @description The layout name. */ // @ApiMember(Description="The layout name.") public Name: string; /** @description The layout description. */ // @ApiMember(Description="The layout description.") public Description: string; /** @description The layout code. */ // @ApiMember(Description="The layout code.") public Code: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HomepageWidgetTimeLayoutsResponse { /** @description The layout id. */ // @ApiMember(Description="The layout id.") public Id: number; /** @description The layout name. */ // @ApiMember(Description="The layout name.") public Name: string; /** @description The layout description. */ // @ApiMember(Description="The layout description.") public Description: string; /** @description The layout code. */ // @ApiMember(Description="The layout code.") public Code: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HomepageWidgetBookingLayoutsResponse { /** @description The layout id. */ // @ApiMember(Description="The layout id.") public Id: number; /** @description The layout name. */ // @ApiMember(Description="The layout name.") public Name: string; /** @description The layout description. */ // @ApiMember(Description="The layout description.") public Description: string; /** @description The layout code. */ // @ApiMember(Description="The layout code.") public Code: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HomepageWidgetBookingMethodsResponse { /** @description The layout id. */ // @ApiMember(Description="The layout id.") public Id: number; /** @description The layout name. */ // @ApiMember(Description="The layout name.") public Name: string; /** @description The layout description. */ // @ApiMember(Description="The layout description.") public Description: string; /** @description The layout code. */ // @ApiMember(Description="The layout code.") public Code: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HomepageWidgetSettingsQueryResponse { /** @description The company id. */ // @ApiMember(Description="The company id.") public CompanyId: string; /** @description The service layouts id. */ // @ApiMember(Description="The service layouts id.") public ServiceLayoutId: number; /** @description The time layouts id. */ // @ApiMember(Description="The time layouts id.") public TimeLayoutId: number; /** @description The booking layouts id. */ // @ApiMember(Description="The booking layouts id.") public BookingLayoutId: number; /** @description The primary color of the booking widget. */ // @ApiMember(Description="The primary color of the booking widget.") public PrimaryColor: string; /** @description If you should show the service image in the booking widget. */ // @ApiMember(Description="If you should show the service image in the booking widget.") public ShowServiceImage: boolean; /** @description If you should show the rebate code field in the booking widget. */ // @ApiMember(Description="If you should show the rebate code field in the booking widget.") public ShowRebateCodeField: boolean; /** @description If you should show the next available time in the booking widget. */ // @ApiMember(Description="If you should show the next available time in the booking widget.") public ShowNextAvailableTime: boolean; /** @description If you should show the subscribe to newsletter checkbox in the booking widget. */ // @ApiMember(Description="If you should show the subscribe to newsletter checkbox in the booking widget.") public ShowSubscribeToNewsletter: boolean; /** @description If you should show the create account option. */ // @ApiMember(Description="If you should show the create account option.") public EnableCreateAccount: boolean; /** @description If you should show the login to account option. */ // @ApiMember(Description="If you should show the login to account option.") public EnableLogin: boolean; /** @description If you should show the facebook login to account option. */ // @ApiMember(Description="If you should show the facebook login to account option.") public EnableFacebookLogin: boolean; /** @description If you should show the direct booking option. This enables customer to book with entering contact information. */ // @ApiMember(Description="If you should show the direct booking option. This enables customer to book with entering contact information.") public EnableDirectBooking: boolean; /** @description If the site should have dark theme or not. */ // @ApiMember(Description="If the site should have dark theme or not.") public DarkTheme: boolean; /** @description If you should show the end time in the booking widget. */ // @ApiMember(Description="If you should show the end time in the booking widget.") public ShowEndTime: boolean; /** @description What text to show on booked time slots. Default text is Booked */ // @ApiMember(Description="What text to show on booked time slots. Default text is Booked") public BookedTimeSlotText: string; public ServiceLayoutOptions: HomepageWidgetServiceLayoutsResponse[]; public TimeLayoutOptions: HomepageWidgetTimeLayoutsResponse[]; public BookingLayoutOptions: HomepageWidgetBookingLayoutsResponse[]; public BookingMethodOptions: HomepageWidgetBookingMethodsResponse[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/homepage/widget/settings", "GET") export class HomepageWidgetSettingsQuery implements IReturn, ICompany, ICompanyRequest { /** @description The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") public CompanyId?: string; /** @description The homepage sitepath. */ // @ApiMember(Description="The homepage sitepath.") public SitePath: string; /** @description If you want to include what service layout options to select from */ // @ApiMember(Description="If you want to include what service layout options to select from") public IncludeServiceLayoutOptions: boolean; /** @description If you want to include what time layout options to select from */ // @ApiMember(Description="If you want to include what time layout options to select from") public IncludeTimeLayoutOptions: boolean; /** @description If you want to include what booking layout options to select from */ // @ApiMember(Description="If you want to include what booking layout options to select from") public IncludeBookingLayoutOptions: boolean; /** @description If you want to include what booking method options to select from */ // @ApiMember(Description="If you want to include what booking method options to select from") public IncludeBookingMethodOptions: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HomepageWidgetSettingsQuery'; } public getMethod() { return 'GET'; } public createResponse() { return new HomepageWidgetSettingsQueryResponse(); } }