/* Options: Date: 2024-07-03 12:34:15 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: GDPRCustomerQuery.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } // @DataContract export class ResponseError { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public FieldName: string; // @DataMember(Order=3) public Message: string; // @DataMember(Order=4) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message: string; // @DataMember(Order=3) public StackTrace: string; // @DataMember(Order=4) public Errors: ResponseError[]; // @DataMember(Order=5) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class GDPRCustomerBookingsResponse { public CompanyId: string; public Id: number; public CustomerId: string; public ServiceId: number; public StatusId: number; public From: string; public To: string; public UnbookedOn?: string; public UnbookedComments: string; public BookedComments: string; public BookedBy: string; public Comments: string; public TextField1: string; public TextField2: string; public TextField3: string; public TextField4: string; public TextField5: string; public TextField6: string; public TextField7: string; public TextField8: string; public TextField9: string; public TextField10: string; public TextField11: string; public TextField12: string; public TextField13: string; public TextField14: string; public TextField15: string; public TextField16: string; public TextField17: string; public TextField18: string; public TextField19: string; public TextField20: string; public UpdatedDate: string; public CreatedDate: string; public CommentsToCustomer: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class GDPRCustomerMessageLogResponse { public CompanyId: string; public Id: number; public BookingId?: number; public Receiver: string; public Sender: string; public MessageTitle: string; public MessageBody: string; public CreatedBy: string; public Created: string; public Sent: boolean; public SentDate?: string; public SendMethodId: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class UserProfileResponse { public Id: string; public Firstname: string; public Lastname: string; public Phone: string; public Email: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class GDPRCustomerInfoResponse { public UserId: string; public Firstname: string; public Lastname: string; public Phone: string; public Email: string; public Active: boolean; public FacebookUsername: string; public TextField1: string; public TextField2: string; public TextField3: string; public TextField4: string; public TextField5: string; public TextField6: string; public TextField7: string; public TextField8: string; public TextField9: string; public TextField10: string; public TextField11: string; public TextField12: string; public TextField13: string; public TextField14: string; public TextField15: string; public TextField16: string; public TextField17: string; public TextField18: string; public TextField19: string; public TextField20: string; public Updated: string; public Created: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class GDPRCustomerCommentsResponse { public CompanyId: string; public Id: number; public CustomerId: string; public Comments: string; public Updated: string; public Created: string; public ImageUrl: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class GDPRCustomerNewsletterLogResponse { public CompanyId: string; public Id: number; public NewslettersId?: number; public Receiver: string; public Sender: string; public MessageTitle: string; public MessageBody: string; public Sent: boolean; public Created: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class GDPRCustomerQueryResponse { public Bookings: GDPRCustomerBookingsResponse[]; public MessageLog: GDPRCustomerMessageLogResponse[]; public UserProfile: UserProfileResponse; public Customer: GDPRCustomerInfoResponse; public CustomerComment: GDPRCustomerCommentsResponse[]; public NewsletterLog: GDPRCustomerNewsletterLogResponse[]; public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/gdpr/customers/{CustomerId}", "GET") // @ValidateRequest(Validator="IsAuthenticated") export class GDPRCustomerQuery implements IReturn, ICompany { /** @description Enter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown */ // @ApiMember(Description="Enter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown ", IsRequired=true, ParameterType="query") public CompanyId: string; /** @description Id of the customer */ // @ApiMember(Description="Id of the customer", IsRequired=true, ParameterType="path") public CustomerId: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GDPRCustomerQuery'; } public getMethod() { return 'GET'; } public createResponse() { return new GDPRCustomerQueryResponse(); } }