/* Options: Date: 2026-01-12 04:59:05 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://p4.smartdatasolutions.eu //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ReadingsBulk.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* @Route(Path="/v8/readings-bulk", Verbs="GET") // @Route(Path="/v8/readings-bulk/{from}", Verbs="GET") open class ReadingsBulk : Generic(), IReturn, IGet { /** * If not given, the first object is given after the last request, otherwise gives the first ... data objects received from EDSN/Grid operator received after the given time stamp. Keep in mind, the time stamp is related to when SDS received the data from EDSN, not the date of the data itself! */ @ApiMember(DataType="Time stamp with format: yyyyMMdd-HHmmss-ffffff", Description="If not given, the first object is given after the last request, otherwise gives the first ... data objects received from EDSN/Grid operator received after the given time stamp. Keep in mind, the time stamp is related to when SDS received the data from EDSN, not the date of the data itself!", Name="From") open var from:String? = null /** * Include received interval objects in the result */ @ApiMember(DataType="Boolean, default: true", Description="Include received interval objects in the result", Name="IncludeIntervalObjects") open var includeIntervalObjects:Boolean? = null /** * Include received day objects in the result */ @ApiMember(DataType="Boolean, default: false", Description="Include received day objects in the result", Name="IncludeDayObjects") open var includeDayObjects:Boolean? = null /** * Gives option to filter return objects, for example to get always only hour records or day records */ @ApiMember(DataType="Enum: None, Hour, Day, LastDayOnly, Month", Description="Gives option to filter return objects, for example to get always only hour records or day records", Name="ObjectFilter") open var objectFilter:Filter? = null companion object { private val responseType = P4ReadingsBulk::class.java } override fun getResponseType(): Any? = ReadingsBulk.responseType } open class P4ReadingsBulk { open var message:String? = null open var timeStamp:String? = null open var dayObjectCount:Int? = null open var intervalObjectCount:Int? = null open var rejectionObjectCount:Int? = null open var dayObjects:ArrayList? = null open var intervalObjects:ArrayList? = null open var rejectionObjects:ArrayList? = null } enum class Filter { None, Hour, Day, LastDayOnly, Month, } open class Generic { /** * Api-key. Used to provide credentials to the api. Can also be provided through the request headers with key: X-API-KEY */ @ApiMember(DataType="String", Description="Api-key. Used to provide credentials to the api. Can also be provided through the request headers with key: X-API-KEY", IsRequired=true, Name="ApiKey") open var apiKey:String? = null } open class P4ReadingDay { open var ean:String? = null open var meterId:String? = null open var queryDate:Date? = null open var measureUnit:String? = null open var r180:BigDecimal? = null open var r181:BigDecimal? = null open var r182:BigDecimal? = null open var r280:BigDecimal? = null open var r281:BigDecimal? = null open var r282:BigDecimal? = null } open class P4ReadingInterval { open var ean:String? = null open var meterId:String? = null open var queryDate:Date? = null open var measureUnit:String? = null open var items:ArrayList? = null } open class P4Rejection { open var ean:String? = null open var queryDate:Date? = null open var queryReason:String? = null open var rejectionCode:String? = null open var rejectionText:String? = null } open class P4ReadingIntervalItem { open var dateTimeOffset:Date? = null open var r180:BigDecimal? = null open var r280:BigDecimal? = null }