/* Options: Date: 2024-11-24 14:05:10 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateZipWhipMessageRequest.* //ExcludeTypes: //DefaultImports: */ export enum RestrictedResourceType { Store = 'Store', Chain = 'Chain', User = 'User', Undefined = 'Undefined', } export interface IRestrictedApiRequest extends IApiKeyEndpoint { RestrictedId?: number; RestrictedResourceType: RestrictedResourceType; } export interface IApiKeyEndpoint { ApiKey: string; } export class ApiDtoBase { public ApiKey: string; public StoreId?: number; public ChainId?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CreateZipWhipMessageRequestDto extends ApiDtoBase { public UserId: number; public Subject: string; public Text: string; public PostedBy?: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class ApiResponseBase { public Success: boolean; public Message: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CreateZipWhipMessageResponseDto extends ApiResponseBase { public NoteId: number; public ContactLogId: number; public TaskId: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class CreateZipWhipMessageResponse extends CreateZipWhipMessageResponseDto { public Success: boolean; public Message: string; public NoteId: number; public ContactLogId: number; public TaskId: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @Route("/users/{UserId}/zipwhipmessage/create", "POST") export class CreateZipWhipMessageRequest extends CreateZipWhipMessageRequestDto implements IReturn, IRestrictedApiRequest { /** * Api Key - grants access to resources */ // @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query") public ApiKey: string; /** * ClubReady Club ID (StoreID internally) */ // @ApiMember(DataType="integer", Description="ClubReady Club ID (StoreID internally)", IsRequired=true, Name="StoreId", ParameterType="query") public StoreId: number; /** * Create note for this ClubReady User ID */ // @ApiMember(DataType="integer", Description="Create note for this ClubReady User ID", IsRequired=true, Name="UserId", ParameterType="query") public UserId: number; /** * Subject of the message (Up to 255 characters) */ // @ApiMember(DataType="string", Description="Subject of the message (Up to 255 characters)", IsRequired=true, Name="Subject", ParameterType="query") public Subject: string; /** * Text body of the message (Up to 2000 characters) */ // @ApiMember(DataType="string", Description="Text body of the message (Up to 2000 characters)", IsRequired=true, Name="Text", ParameterType="query") public Text: string; public RestrictedId?: number; public RestrictedResourceType: RestrictedResourceType; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'CreateZipWhipMessageRequest'; } public getMethod() { return 'POST'; } public createResponse() { return new CreateZipWhipMessageResponse(); } }