/* Options: Date: 2026-07-08 23:17:05 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DepartmentRequest.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export class Department { public DepartmentID: number; public DepartmentUID: string; public Name: string; public Description: string; public Code: string; public Color: string; public Budget: number; public BillingMethod: string; public CostCenter: string; public BillingContact: string; public BillingEmail: string; public ApprovalOn: boolean; public Threshold: number; public Active: boolean; public CreatedBy: string; public CreatedAt: string; public Members: number; 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 DepartmentResponse { public ResponseStatus: ResponseStatus; public Department: Department[] = []; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/v1/Department", "GET,POST,PUT,OPTIONS") // @Route("/v1/Department/{DepartmentID}", "GET,DELETE,OPTIONS") export class DepartmentRequest implements IReturn { public DepartmentID: number; public Department: Department; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'DepartmentRequest'; } public getMethod() { return 'GET'; } public createResponse() { return new DepartmentResponse(); } }