/* Options: Date: 2024-11-21 11:48:47 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: SubscribeToNewsletter.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } export class SubscribedUserResponse { public Subscribed: boolean; public CompanyId: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/newsletter/subscribe", "PUT") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) export class SubscribeToNewsletter implements IReturn, ICompany { /** @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 Companies for which user is subscribed. */ // @ApiMember(Description="Companies for which user is subscribed.", IsRequired=true) public SubscribedCompanies: SubscribedUserResponse[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SubscribeToNewsletter'; } public getMethod() { return 'PUT'; } public createResponse() { return new Array(); } }