| GET | /api/v1/brennstofflieferung |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
// @DataContract
class BillingInformation implements IConvertible
{
// @DataMember
String? guid;
// @DataMember
DateTime? from;
// @DataMember
DateTime? to;
// @DataMember
bool? isCompleted;
// @DataMember
bool? hasNebenkosten;
BillingInformation({this.guid,this.from,this.to,this.isCompleted,this.hasNebenkosten});
BillingInformation.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
guid = json['guid'];
from = JsonConverters.fromJson(json['from'],'DateTime',context!);
to = JsonConverters.fromJson(json['to'],'DateTime',context!);
isCompleted = json['isCompleted'];
hasNebenkosten = json['hasNebenkosten'];
return this;
}
Map<String, dynamic> toJson() => {
'guid': guid,
'from': JsonConverters.toJson(from,'DateTime',context!),
'to': JsonConverters.toJson(to,'DateTime',context!),
'isCompleted': isCompleted,
'hasNebenkosten': hasNebenkosten
};
getTypeName() => "BillingInformation";
TypeContext? context = _ctx;
}
// @DataContract
class Brennstofflieferung implements IConvertible
{
// @DataMember
String? guid;
// @DataMember
DateTime? deliveryDate;
// @DataMember
double? salexTax;
// @DataMember
double? emisionsTax;
// @DataMember
double? c02Taxes;
// @DataMember
double? customsTax;
// @DataMember
double? otherCharges;
// @DataMember
double? c02Price;
// @DataMember
double? c02Tons;
// @DataMember
double? quantity;
// @DataMember
double? amount;
// @DataMember
double? startMeterReadingValue;
// @DataMember
double? endMeterReadingValue;
// @DataMember
double? heizwert;
// @DataMember
bool? brennwert;
// @DataMember
String? energyReliefAmountDescription;
// @DataMember
double? energyReliefAmount;
// @DataMember
String? electricityReliefAmountDescription;
// @DataMember
double? electricityReliefAmount;
// @DataMember
double? cO2EmissionsFactor;
// @DataMember
String? cO2Text;
// @DataMember
bool? cO2Active;
// @DataMember
bool? cO2PriceKnd;
// @DataMember
double? cO2PriceLandlord;
// @DataMember
double? cO2PriceRenter;
// @DataMember
double? cO2Area;
// @DataMember
bool? isForCommercialUse;
// @DataMember
bool? isRenovationRequired;
// @DataMember
bool? isHeatingPadsImproved;
// @DataMember
double? cO2KWh;
// @DataMember
double? includedCO2SalesTax;
// @DataMember
double? cO2Costs;
// @DataMember
double? totalC02Weight;
// @DataMember
bool? noTotalDeductionC02Costs;
// @DataMember
bool? isDeleted;
// @DataMember
bool? isCreatedByApp;
// @DataMember
String? brennstoffMediumGuid;
// @DataMember
BillingInformation? billingInformation;
Brennstofflieferung({this.guid,this.deliveryDate,this.salexTax,this.emisionsTax,this.c02Taxes,this.customsTax,this.otherCharges,this.c02Price,this.c02Tons,this.quantity,this.amount,this.startMeterReadingValue,this.endMeterReadingValue,this.heizwert,this.brennwert,this.energyReliefAmountDescription,this.energyReliefAmount,this.electricityReliefAmountDescription,this.electricityReliefAmount,this.cO2EmissionsFactor,this.cO2Text,this.cO2Active,this.cO2PriceKnd,this.cO2PriceLandlord,this.cO2PriceRenter,this.cO2Area,this.isForCommercialUse,this.isRenovationRequired,this.isHeatingPadsImproved,this.cO2KWh,this.includedCO2SalesTax,this.cO2Costs,this.totalC02Weight,this.noTotalDeductionC02Costs,this.isDeleted,this.isCreatedByApp,this.brennstoffMediumGuid,this.billingInformation});
Brennstofflieferung.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
guid = json['guid'];
deliveryDate = JsonConverters.fromJson(json['deliveryDate'],'DateTime',context!);
salexTax = JsonConverters.toDouble(json['salexTax']);
emisionsTax = JsonConverters.toDouble(json['emisionsTax']);
c02Taxes = JsonConverters.toDouble(json['c02Taxes']);
customsTax = JsonConverters.toDouble(json['customsTax']);
otherCharges = JsonConverters.toDouble(json['otherCharges']);
c02Price = JsonConverters.toDouble(json['c02Price']);
c02Tons = JsonConverters.toDouble(json['c02Tons']);
quantity = JsonConverters.toDouble(json['quantity']);
amount = JsonConverters.toDouble(json['amount']);
startMeterReadingValue = JsonConverters.toDouble(json['startMeterReadingValue']);
endMeterReadingValue = JsonConverters.toDouble(json['endMeterReadingValue']);
heizwert = JsonConverters.toDouble(json['heizwert']);
brennwert = json['brennwert'];
energyReliefAmountDescription = json['energyReliefAmountDescription'];
energyReliefAmount = JsonConverters.toDouble(json['energyReliefAmount']);
electricityReliefAmountDescription = json['electricityReliefAmountDescription'];
electricityReliefAmount = JsonConverters.toDouble(json['electricityReliefAmount']);
cO2EmissionsFactor = JsonConverters.toDouble(json['cO2EmissionsFactor']);
cO2Text = json['cO2Text'];
cO2Active = json['cO2Active'];
cO2PriceKnd = json['cO2PriceKnd'];
cO2PriceLandlord = JsonConverters.toDouble(json['cO2PriceLandlord']);
cO2PriceRenter = JsonConverters.toDouble(json['cO2PriceRenter']);
cO2Area = JsonConverters.toDouble(json['cO2Area']);
isForCommercialUse = json['isForCommercialUse'];
isRenovationRequired = json['isRenovationRequired'];
isHeatingPadsImproved = json['isHeatingPadsImproved'];
cO2KWh = JsonConverters.toDouble(json['cO2KWh']);
includedCO2SalesTax = JsonConverters.toDouble(json['includedCO2SalesTax']);
cO2Costs = JsonConverters.toDouble(json['cO2Costs']);
totalC02Weight = JsonConverters.toDouble(json['totalC02Weight']);
noTotalDeductionC02Costs = json['noTotalDeductionC02Costs'];
isDeleted = json['isDeleted'];
isCreatedByApp = json['isCreatedByApp'];
brennstoffMediumGuid = json['brennstoffMediumGuid'];
billingInformation = JsonConverters.fromJson(json['billingInformation'],'BillingInformation',context!);
return this;
}
Map<String, dynamic> toJson() => {
'guid': guid,
'deliveryDate': JsonConverters.toJson(deliveryDate,'DateTime',context!),
'salexTax': salexTax,
'emisionsTax': emisionsTax,
'c02Taxes': c02Taxes,
'customsTax': customsTax,
'otherCharges': otherCharges,
'c02Price': c02Price,
'c02Tons': c02Tons,
'quantity': quantity,
'amount': amount,
'startMeterReadingValue': startMeterReadingValue,
'endMeterReadingValue': endMeterReadingValue,
'heizwert': heizwert,
'brennwert': brennwert,
'energyReliefAmountDescription': energyReliefAmountDescription,
'energyReliefAmount': energyReliefAmount,
'electricityReliefAmountDescription': electricityReliefAmountDescription,
'electricityReliefAmount': electricityReliefAmount,
'cO2EmissionsFactor': cO2EmissionsFactor,
'cO2Text': cO2Text,
'cO2Active': cO2Active,
'cO2PriceKnd': cO2PriceKnd,
'cO2PriceLandlord': cO2PriceLandlord,
'cO2PriceRenter': cO2PriceRenter,
'cO2Area': cO2Area,
'isForCommercialUse': isForCommercialUse,
'isRenovationRequired': isRenovationRequired,
'isHeatingPadsImproved': isHeatingPadsImproved,
'cO2KWh': cO2KWh,
'includedCO2SalesTax': includedCO2SalesTax,
'cO2Costs': cO2Costs,
'totalC02Weight': totalC02Weight,
'noTotalDeductionC02Costs': noTotalDeductionC02Costs,
'isDeleted': isDeleted,
'isCreatedByApp': isCreatedByApp,
'brennstoffMediumGuid': brennstoffMediumGuid,
'billingInformation': JsonConverters.toJson(billingInformation,'BillingInformation',context!)
};
getTypeName() => "Brennstofflieferung";
TypeContext? context = _ctx;
}
// @DataContract
class BrennstoffMedium implements IConvertible
{
// @DataMember(Name="Guid")
String? Guid;
// @DataMember(Name="Bezeichnung")
String? Bezeichnung;
// @DataMember(Name="Lagernd")
bool? Lagernd;
// @DataMember(Name="EinheitTyp")
String? EinheitTyp;
// @DataMember(Name="Heizwert")
double? Heizwert;
BrennstoffMedium({this.Guid,this.Bezeichnung,this.Lagernd,this.EinheitTyp,this.Heizwert});
BrennstoffMedium.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Guid = json['guid'];
Bezeichnung = json['label'];
Lagernd = json['storable'];
EinheitTyp = json['einheitType'];
Heizwert = JsonConverters.toDouble(json['heizwert']);
return this;
}
Map<String, dynamic> toJson() => {
'guid': Guid,
'bezeichnung': Bezeichnung,
'lagernd': Lagernd,
'einheitTyp': EinheitTyp,
'heizwert': Heizwert
};
getTypeName() => "BrennstoffMedium";
TypeContext? context = _ctx;
}
class GetBrennstoffListResponse implements IConvertible
{
List<Brennstofflieferung>? brennstofflieferungen;
List<BrennstoffMedium>? brennstoffMedium;
ResponseStatus? responseStatus;
GetBrennstoffListResponse({this.brennstofflieferungen,this.brennstoffMedium,this.responseStatus});
GetBrennstoffListResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
brennstofflieferungen = JsonConverters.fromJson(json['brennstofflieferungen'],'List<Brennstofflieferung>',context!);
brennstoffMedium = JsonConverters.fromJson(json['brennstoffMedium'],'List<BrennstoffMedium>',context!);
responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'brennstofflieferungen': JsonConverters.toJson(brennstofflieferungen,'List<Brennstofflieferung>',context!),
'brennstoffMedium': JsonConverters.toJson(brennstoffMedium,'List<BrennstoffMedium>',context!),
'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
};
getTypeName() => "GetBrennstoffListResponse";
TypeContext? context = _ctx;
}
class GetBrennstoffList implements IHasBearerToken, IConvertible
{
// @ApiMember(IsRequired=true, ParameterType="query")
String? bearerToken;
/**
* Optional! Follow the format : /api/v1/brennstofflieferung?filter[ObjektGuid]=*
*/
// @DataMember(Name="filter[ObjektGuid]")
// @ApiMember(Description="Optional! Follow the format : /api/v1/brennstofflieferung?filter[ObjektGuid]=*", ParameterType="query")
String? filter_ObjektGuid_;
/**
* Optional! Follow the format : /api/v1/brennstofflieferung?filter[EnergieVerwerterGuid]=*
*/
// @DataMember(Name="filter[EnergieVerwerterGuid]")
// @ApiMember(Description="Optional! Follow the format : /api/v1/brennstofflieferung?filter[EnergieVerwerterGuid]=*", ParameterType="query")
String? filter_EnergieVerwerterGuid_;
/**
* Optional! Follow the format : /api/v1/brennstofflieferung?filter[BillingInformationGuid]=*
*/
// @DataMember(Name="filter[BillingInformationGuid]")
// @ApiMember(Description="Optional! Follow the format : /api/v1/brennstofflieferung?filter[BillingInformationGuid]=*", ParameterType="query")
String? filter_BillingInformationGuid_;
GetBrennstoffList({this.bearerToken,this.filter_ObjektGuid_,this.filter_EnergieVerwerterGuid_,this.filter_BillingInformationGuid_});
GetBrennstoffList.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
bearerToken = json['bearerToken'];
filter_ObjektGuid_ = json['filterByObjektGuid'];
filter_EnergieVerwerterGuid_ = json['filterByEnergieVerwerterGuid'];
filter_BillingInformationGuid_ = json['filterByBillingInformationGuid'];
return this;
}
Map<String, dynamic> toJson() => {
'bearerToken': bearerToken,
'filter_ObjektGuid_': filter_ObjektGuid_,
'filter_EnergieVerwerterGuid_': filter_EnergieVerwerterGuid_,
'filter_BillingInformationGuid_': filter_BillingInformationGuid_
};
getTypeName() => "GetBrennstoffList";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'inea_servdesk.eras_online.de', types: <String, TypeInfo> {
'BillingInformation': TypeInfo(TypeOf.Class, create:() => BillingInformation()),
'Brennstofflieferung': TypeInfo(TypeOf.Class, create:() => Brennstofflieferung()),
'BrennstoffMedium': TypeInfo(TypeOf.Class, create:() => BrennstoffMedium()),
'GetBrennstoffListResponse': TypeInfo(TypeOf.Class, create:() => GetBrennstoffListResponse()),
'List<Brennstofflieferung>': TypeInfo(TypeOf.Class, create:() => <Brennstofflieferung>[]),
'List<BrennstoffMedium>': TypeInfo(TypeOf.Class, create:() => <BrennstoffMedium>[]),
'GetBrennstoffList': TypeInfo(TypeOf.Class, create:() => GetBrennstoffList()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/v1/brennstofflieferung HTTP/1.1 Host: inea-servdesk.eras-online.de Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}