/* Options: Date: 2024-11-21 16:56:16 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: QueryOrders.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.* import java.util.* import net.servicestack.client.* import com.google.gson.annotations.* import com.google.gson.reflect.* @Route("/query/orders") open class QueryOrders : QueryDb(), IReturn> { var freight:BigDecimal? = null companion object { private val responseType = object : TypeToken>(){}.type } override fun getResponseType(): Any? = QueryOrders.responseType } @DataContract open class QueryResponse { @DataMember(Order=1) var offset:Int? = null @DataMember(Order=2) var total:Int? = null @DataMember(Order=3) var results:ArrayList = ArrayList() @DataMember(Order=4) var meta:HashMap = HashMap() @DataMember(Order=5) var responseStatus:ResponseStatus? = null } open class QueryDb : QueryBase() { } @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 QueryBase { @DataMember(Order=1) var skip:Int? = null @DataMember(Order=2) var take:Int? = null @DataMember(Order=3) var orderBy:String? = null @DataMember(Order=4) var orderByDesc:String? = null @DataMember(Order=5) var include:String? = null @DataMember(Order=6) var fields:String? = null @DataMember(Order=7) var meta:HashMap = HashMap() }