""" Options: Date: 2026-01-12 03:42:52 Version: 8.22 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://p4v8.smartdatasolutions.nl/api #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: Meteringpoints.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum class DateTimeFormat(str, Enum): IS_O8601 = 'ISO8601' UTC = 'UTC' NL = 'NL' NL_OFFSET = 'NLOffset' IN_ = 'IN' IN_OFFSET = 'INOffset' UNIX = 'Unix' UNIX_MILLIS = 'UnixMillis' @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Generic: # @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") api_key: Optional[str] = None """ Api-key. Used to provide credentials to the api. Can also be provided through the request headers with key: X-API-KEY """ # @ApiMember(DataType="Boolean", Description="Normally the result of the request is put inside a resultobject with some status information about the request. If you want the output as csv this outer object can be irritating. Default value: FALSE ", Name="OnlyPayload") only_payload: bool = False """ Normally the result of the request is put inside a resultobject with some status information about the request. If you want the output as csv this outer object can be irritating. Default value: FALSE """ # @ApiMember(DataType="Boolean", Description="Show the request as interpreted by the api. Useful to see how filters / dates are parsed. If no value us provided, the default value is: FALSE ", Name="ShowRequest") show_request: bool = False """ Show the request as interpreted by the api. Useful to see how filters / dates are parsed. If no value us provided, the default value is: FALSE """ # @ApiMember(DataType="Enum", Description="Format all DateTime in the response object. If used in browser, sometimes ISO8601 is not correctly transformed. Enum options: ISO8601 (DEFAULT), UTC, NL, NLOffset, Unix, UnixMillis", Name="DateTimeFormat") date_time_format: Optional[DateTimeFormat] = None """ Format all DateTime in the response object. If used in browser, sometimes ISO8601 is not correctly transformed. Enum options: ISO8601 (DEFAULT), UTC, NL, NLOffset, Unix, UnixMillis """ # @Route("/v5/meteringpoints/", "GET") # @Route("/v5/meteringpoints/{Ean}", "GET") # @Api(Description="Get list of metering points") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Meteringpoints(Generic): """ Get list of metering points """ # @ApiMember(DataType="Integer", Description="Skip the first ... metering points", Name="Offset") offset: int = 0 """ Skip the first ... metering points """ # @ApiMember(DataType="Integer", Description="Limit response to ... metering points", Name="Limit") limit: int = 0 """ Limit response to ... metering points """ # @ApiMember(DataType="EAN (18 numbers)", Description="Request of details of specific metering point with Ean", Name="Ean") ean: Optional[str] = None """ Request of details of specific metering point with Ean """ # @ApiMember(DataType="Boolean", Description="Include metering points with ended contracts (Default: false)", Name="ShowEnded") show_ended: bool = False """ Include metering points with ended contracts (Default: false) """ # @ApiMember(DataType="Boolean", Description="Include additional info about the metering point (Default: false)", Name="AddExtraInfo") add_extra_info: bool = False """ Include additional info about the metering point (Default: false) """