/* Options: Date: 2024-11-23 20:14:09 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://northwind.netcore.io //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetOrders.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route("/orders") // @Route("/orders/page/{Page}") // @Route("/customers/{CustomerId}/orders") open class GetOrders : IReturn, IGet { var page:Int? = null var customerId:String? = null companion object { private val responseType = OrdersResponse::class.java } override fun getResponseType(): Any? = GetOrders.responseType } @DataContract open class OrdersResponse { @DataMember var results:ArrayList = ArrayList() @DataMember var responseStatus:ResponseStatus? = null } @DataContract open class Order { @DataMember var id:Int? = null @DataMember var customerId:String? = null @DataMember var employeeId:Int? = null @DataMember var orderDate:Date? = null @DataMember var requiredDate:Date? = null @DataMember var shippedDate:Date? = null @DataMember var shipVia:Int? = null @DataMember var freight:BigDecimal? = null @DataMember var shipName:String? = null @DataMember var shipAddress:String? = null @DataMember var shipCity:String? = null @DataMember var shipRegion:String? = null @DataMember var shipPostalCode:String? = null @DataMember var shipCountry:String? = null } @DataContract open class CustomerOrder { @DataMember var order:Order? = null @DataMember var orderDetails:ArrayList = ArrayList() } @DataContract open class OrderDetail { @DataMember var orderId:Int? = null @DataMember var productId:Int? = null @DataMember var unitPrice:BigDecimal? = null @DataMember var quantity:Short? = null @DataMember var discount:Double? = null }