/* Options: Date: 2026-05-14 01:16:12 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: True //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: UpdateWidgetConfiguration.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using System.Net; using System.Net.Http.Headers; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { [Route("/widget/configuration/{Id}", "PUT")] [ApiResponse(Description="Returned if there is a validation error on the input parameters", StatusCode=400)] [ApiResponse(Description="Returned if the configuration was not found", StatusCode=404)] [ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class UpdateWidgetConfiguration : IReturn, ICompany { /// ///The company id, if empty will use the company id for the user you are logged in with. /// [ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")] public virtual Guid? CompanyId { get; set; } /// ///The widget configuration id (6-character NanoID). /// [ApiMember(Description="The widget configuration id (6-character NanoID).", IsRequired=true, ParameterType="path")] public virtual string Id { get; set; } /// ///The widget configuration name. /// [ApiMember(Description="The widget configuration name.", IsRequired=true)] public virtual string Name { get; set; } /// ///Optional slug (URL-friendly identifier). The API will append the last 3 characters of the company ID. Example: 'hairsalon' becomes 'hairsalon-001'. /// [ApiMember(Description="Optional slug (URL-friendly identifier). The API will append the last 3 characters of the company ID. Example: 'hairsalon' becomes 'hairsalon-001'.")] public virtual string? Slug { get; set; } /// ///Optional description. /// [ApiMember(Description="Optional description.")] public virtual string? Description { get; set; } /// ///The widget configuration as a JSON string. Must validate against the schema for SchemaVersion. /// [ApiMember(Description="The widget configuration as a JSON string. Must validate against the schema for SchemaVersion.", IsRequired=true)] public virtual string Configuration { get; set; } /// ///Version of the configuration schema this Configuration adheres to. /// [ApiMember(Description="Version of the configuration schema this Configuration adheres to.", IsRequired=true)] public virtual int SchemaVersion { get; set; } } public partial class WidgetConfigurationResponse { public virtual string Id { get; set; } public virtual Guid CompanyId { get; set; } public virtual string Name { get; set; } public virtual string? Slug { get; set; } public virtual string? Description { get; set; } public virtual string Configuration { get; set; } public virtual int SchemaVersion { get; set; } public virtual DateTime CreatedDate { get; set; } public virtual DateTimeOffset? UpdatedDate { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }