/* Options: Date: 2024-11-21 13:51:19 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://northwind.netcore.io //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CachedGetOrders.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface IGet { } // @DataContract export class Order { // @DataMember public id: number; // @DataMember public customerId: string; // @DataMember public employeeId: number; // @DataMember public orderDate?: string; // @DataMember public requiredDate?: string; // @DataMember public shippedDate?: string; // @DataMember public shipVia?: number; // @DataMember public freight: number; // @DataMember public shipName: string; // @DataMember public shipAddress: string; // @DataMember public shipCity: string; // @DataMember public shipRegion: string; // @DataMember public shipPostalCode: string; // @DataMember public shipCountry: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @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); } } // @DataContract export class OrderDetail { // @DataMember public orderId: number; // @DataMember public productId: number; // @DataMember public unitPrice: number; // @DataMember public quantity: number; // @DataMember public discount: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class CustomerOrder { // @DataMember public order: Order; // @DataMember public orderDetails: OrderDetail[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class OrdersResponse { // @DataMember public results: CustomerOrder[]; // @DataMember public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/cached/orders") // @Route("/cached/orders/page/{Page}") // @Route("/cached/customers/{CustomerId}/orders") export class CachedGetOrders implements IReturn, IGet { public page?: number; public customerId: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CachedGetOrders'; } public getMethod() { return 'GET'; } public createResponse() { return new OrdersResponse(); } }