/* Options: Date: 2025-12-06 07:09:47 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: GetInvoicesByProjectRequest.* //ExcludeTypes: //DefaultImports: */ export class Invoice { public InvoiceID: number; public InvoiceUID?: string; public ProjectUID?: string; public InvoiceNumber: string; public InvoiceDate?: string; public DueDate?: string; public FromName: string; public FromPhone: string; public FromEmail: string; public FromAddress: string; public FromDesc: string; public ToName: string; public ToPhone: string; public ToEmail: string; public ToAddress: string; public ToDesc: string; public Notes: string; public Currency: string; public Status: number; public Total?: number; public IsPaid?: boolean; public PaidDate?: string; public IsDeleted?: boolean; public IsLocked?: boolean; public CreatedDate?: string; public ModifiedDate?: string; public CreatedByUID?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ProjectInvoiceData { public InvoicedAmount?: number; public PaidAmount?: 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 GetInvoicesByProjectResponse { public ResponseStatus: ResponseStatus; public Invoices: Invoice[] = []; public ProjectInvoiceData: ProjectInvoiceData; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/v1/invoice/project/{ProjectUID}", "GET,OPTIONS") export class GetInvoicesByProjectRequest implements IReturn { public ProjectUID: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetInvoicesByProjectRequest'; } public getMethod() { return 'GET'; } public createResponse() { return new GetInvoicesByProjectResponse(); } }