/* Options: Date: 2024-07-03 13:27:30 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: SendNewsLetter.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } export class SendNewslettersResponse { /** @description The number of messages that are added into queue. */ // @ApiMember(Description="The number of messages that are added into queue.") public Total: number; /** @description Send Method. 1 = Email, 2 = SMS */ // @ApiMember(Description="Send Method. 1 = Email, 2 = SMS") public SendMethodId: number; /** @description Message example sent (in HTML format) */ // @ApiMember(Description="Message example sent (in HTML format)") public MessageExample: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/newsletter/send", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") export class SendNewsLetter implements IReturn, ICompany { /** @description The newsletter template id. */ // @ApiMember(Description="The newsletter template id.", IsRequired=true) public Id: number; /** @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 datetime when the newsletters should be sent. */ // @ApiMember(Description="The datetime when the newsletters should be sent.", IsRequired=true) public SendDate: string; /** @description The customer ids to send newsletters to. */ // @ApiMember(Description="The customer ids to send newsletters to.", IsRequired=true) public Customers: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SendNewsLetter'; } public getMethod() { return 'POST'; } public createResponse() { return new SendNewslettersResponse(); } }