/* Options: Date: 2024-11-21 14:12:30 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: GetCustomerDetails.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route("/customers/{Id}") open class GetCustomerDetails : IReturn, IGet { var id:String? = null companion object { private val responseType = CustomerDetailsResponse::class.java } override fun getResponseType(): Any? = GetCustomerDetails.responseType } @DataContract open class CustomerDetailsResponse { @DataMember var customer:Customer? = null @DataMember var orders:ArrayList = ArrayList() @DataMember var responseStatus:ResponseStatus? = null } @DataContract open class Customer { @DataMember var id:String? = null @DataMember var companyName:String? = null @DataMember var contactName:String? = null @DataMember var contactTitle:String? = null @DataMember var address:String? = null @DataMember var city:String? = null @DataMember var region:String? = null @DataMember var postalCode:String? = null @DataMember var country:String? = null @DataMember var phone:String? = null @DataMember var fax:String? = 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 }