/* Options: Date: 2024-11-24 00:17:40 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://northwind.netcore.io //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: GetOrders.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using Northwind.ServiceModel.Types; using Northwind.ServiceModel; namespace Northwind.ServiceModel { [Route("/orders")] [Route("/orders/page/{Page}")] [Route("/customers/{CustomerId}/orders")] public partial class GetOrders : IReturn, IGet { public virtual int? Page { get; set; } public virtual string CustomerId { get; set; } } [DataContract] public partial class OrdersResponse { public OrdersResponse() { Results = new List{}; } [DataMember] public virtual List Results { get; set; } [DataMember] public virtual ResponseStatus ResponseStatus { get; set; } } } namespace Northwind.ServiceModel.Types { [DataContract] public partial class CustomerOrder { public CustomerOrder() { OrderDetails = new List{}; } [DataMember] public virtual Order Order { get; set; } [DataMember] public virtual List OrderDetails { get; set; } } [DataContract] public partial class Order { [DataMember] public virtual int Id { get; set; } [DataMember] public virtual string CustomerId { get; set; } [DataMember] public virtual int EmployeeId { get; set; } [DataMember] public virtual DateTime? OrderDate { get; set; } [DataMember] public virtual DateTime? RequiredDate { get; set; } [DataMember] public virtual DateTime? ShippedDate { get; set; } [DataMember] public virtual int? ShipVia { get; set; } [DataMember] public virtual decimal Freight { get; set; } [DataMember] public virtual string ShipName { get; set; } [DataMember] public virtual string ShipAddress { get; set; } [DataMember] public virtual string ShipCity { get; set; } [DataMember] public virtual string ShipRegion { get; set; } [DataMember] public virtual string ShipPostalCode { get; set; } [DataMember] public virtual string ShipCountry { get; set; } } [DataContract] public partial class OrderDetail { [DataMember] public virtual int OrderId { get; set; } [DataMember] public virtual int ProductId { get; set; } [DataMember] public virtual decimal UnitPrice { get; set; } [DataMember] public virtual short Quantity { get; set; } [DataMember] public virtual double Discount { get; set; } } }