Server

<back to all web services

UpdateNutzeinheit

Requires Authentication
The following routes are available for this service:
PUT/App/{UserId}/Nutzeinheit
"use strict";
export class Eras2AppServiceModelBase {
    /** @param {{UserId?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    UserId;
}
export class UpdateNutzeinheitResponse {
    /** @param {{responseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    responseStatus;
}
export class Address {
    /** @param {{Guid?:string,Stra_e?:string,Stra_e2?:string,Hausnummer?:string,Postleitzahl?:string,Ort?:string,Postfach?:string,Adresszusatz?:string,Breitengrad?:number,Laengengrad?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {string} */
    Stra_e;
    /** @type {string} */
    Stra_e2;
    /** @type {string} */
    Hausnummer;
    /** @type {string} */
    Postleitzahl;
    /** @type {string} */
    Ort;
    /** @type {string} */
    Postfach;
    /** @type {string} */
    Adresszusatz;
    /** @type {number} */
    Breitengrad;
    /** @type {number} */
    Laengengrad;
}
/** @typedef {'L'|'Kg'|'CBM'|'Stck'|'KWH'|'MWH'|'GWH'|'T'|'RM'|'Einheit'|'Qm'|'GJ'|'MJ'|'Null'} */
export var UnitKind;
(function (UnitKind) {
    UnitKind["L"] = "L"
    UnitKind["Kg"] = "Kg"
    UnitKind["CBM"] = "CBM"
    UnitKind["Stck"] = "Stck"
    UnitKind["KWH"] = "KWH"
    UnitKind["MWH"] = "MWH"
    UnitKind["GWH"] = "GWH"
    UnitKind["T"] = "T"
    UnitKind["RM"] = "RM"
    UnitKind["Einheit"] = "Einheit"
    UnitKind["Qm"] = "Qm"
    UnitKind["GJ"] = "GJ"
    UnitKind["MJ"] = "MJ"
    UnitKind["Null"] = "Null"
})(UnitKind || (UnitKind = {}));
/** @typedef {'Null'|'S1'|'S2'|'S3'|'S4'|'S5'|'N1'|'N2'} */
export var EstimationKind;
(function (EstimationKind) {
    EstimationKind["Null"] = "Null"
    EstimationKind["S1"] = "S1"
    EstimationKind["S2"] = "S2"
    EstimationKind["S3"] = "S3"
    EstimationKind["S4"] = "S4"
    EstimationKind["S5"] = "S5"
    EstimationKind["N1"] = "N1"
    EstimationKind["N2"] = "N2"
})(EstimationKind || (EstimationKind = {}));
/** @typedef {'Null'|'RMInOrdnung'|'RMFehler'|'RMNichtGepr'|'RMFehlerTausch'|'KeinWohnungszutritt'|'Defekt'|'FalschLaufend'|'Überlauf'|'EichungBeachten'|'ProbeEntnommen'|'ProbeZumLabor'|'ProbePositiv'|'ProbeNegativ'} */
export var DeviceConsumptionState;
(function (DeviceConsumptionState) {
    DeviceConsumptionState["Null"] = "Null"
    DeviceConsumptionState["RMInOrdnung"] = "RMInOrdnung"
    DeviceConsumptionState["RMFehler"] = "RMFehler"
    DeviceConsumptionState["RMNichtGepr"] = "RMNichtGepr"
    DeviceConsumptionState["RMFehlerTausch"] = "RMFehlerTausch"
    DeviceConsumptionState["KeinWohnungszutritt"] = "KeinWohnungszutritt"
    DeviceConsumptionState["Defekt"] = "Defekt"
    DeviceConsumptionState["FalschLaufend"] = "FalschLaufend"
    DeviceConsumptionState["Überlauf"] = "Überlauf"
    DeviceConsumptionState["EichungBeachten"] = "EichungBeachten"
    DeviceConsumptionState["ProbeEntnommen"] = "ProbeEntnommen"
    DeviceConsumptionState["ProbeZumLabor"] = "ProbeZumLabor"
    DeviceConsumptionState["ProbePositiv"] = "ProbePositiv"
    DeviceConsumptionState["ProbeNegativ"] = "ProbeNegativ"
})(DeviceConsumptionState || (DeviceConsumptionState = {}));
/** @typedef {'Unbekannt'|'Manual'|'Emr'|'Walkby'|'Deleted'} */
export var DeviceConsumptionOrigin;
(function (DeviceConsumptionOrigin) {
    DeviceConsumptionOrigin["Unbekannt"] = "Unbekannt"
    DeviceConsumptionOrigin["Manual"] = "Manual"
    DeviceConsumptionOrigin["Emr"] = "Emr"
    DeviceConsumptionOrigin["Walkby"] = "Walkby"
    DeviceConsumptionOrigin["Deleted"] = "Deleted"
})(DeviceConsumptionOrigin || (DeviceConsumptionOrigin = {}));
export class DeviceConsumption {
    /** @param {{Guid?:string,LastModified?:string,Ablesedatum?:string,Faktor?:number,Ablesung?:number,Verbrauch?:number,Aenderungsdatum?:string,Schaetzung?:EstimationKind,Status?:DeviceConsumptionState,Anmerkung?:string,IstRekonstruiert?:boolean,Manuell?:number,Herkunft?:DeviceConsumptionOrigin,Lufttemperatur?:number,Heizk_rperTemperatur?:number,LetzterfehlerDatum?:string,Fehler?:string,Ampullenfarbe?:string,AbleseartGuid?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {?string} */
    LastModified;
    /** @type {?string} */
    Ablesedatum;
    /** @type {number} */
    Faktor;
    /** @type {?number} */
    Ablesung;
    /** @type {?number} */
    Verbrauch;
    /** @type {?string} */
    Aenderungsdatum;
    /** @type {?EstimationKind} */
    Schaetzung;
    /** @type {?DeviceConsumptionState} */
    Status;
    /** @type {string} */
    Anmerkung;
    /** @type {boolean} */
    IstRekonstruiert;
    /** @type {?number} */
    Manuell;
    /** @type {?DeviceConsumptionOrigin} */
    Herkunft;
    /** @type {?number} */
    Lufttemperatur;
    /** @type {?number} */
    Heizk_rperTemperatur;
    /** @type {?string} */
    LetzterfehlerDatum;
    /** @type {string} */
    Fehler;
    /** @type {string} */
    Ampullenfarbe;
    /** @type {string} */
    AbleseartGuid;
}
export class Photo {
    /** @param {{Guid?:string,Timestamp?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {string} */
    Timestamp;
}
export class DeviceAdditionalArticle {
    /** @param {{Guid?:string,Menge?:number,LastModified?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {?number} */
    Menge;
    /** @type {?string} */
    LastModified;
}
export class Device {
    /** @param {{Guid?:string,LastModified?:string,Geraetenummer?:string,Bezeichnung?:string,Beschreibung?:string,Einbaudatum?:string,Ausbaudatum?:string,Eichdatum?:string,Einheit?:UnitKind,Memo?:string,Abzug?:boolean,GrpKennung?:string,Dauerschaetzung?:EstimationKind,ErstInbetriebnahme?:string,FirmwareVersion?:string,RaumGuid?:string,LaufendeNummer?:string,Gemietet?:boolean,Gewartet?:boolean,GeraeteKatalogGuid?:string,Verbraeuche?:IList<DeviceConsumption>,Fotos?:IList<Photo>,ZusatzArtikel?:IList<DeviceAdditionalArticle>}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {?string} */
    LastModified;
    /** @type {string} */
    Geraetenummer;
    /** @type {string} */
    Bezeichnung;
    /** @type {string} */
    Beschreibung;
    /** @type {string} */
    Einbaudatum;
    /** @type {?string} */
    Ausbaudatum;
    /** @type {?string} */
    Eichdatum;
    /** @type {?UnitKind} */
    Einheit;
    /** @type {string} */
    Memo;
    /** @type {boolean} */
    Abzug;
    /** @type {string} */
    GrpKennung;
    /** @type {?EstimationKind} */
    Dauerschaetzung;
    /** @type {?string} */
    ErstInbetriebnahme;
    /** @type {string} */
    FirmwareVersion;
    /** @type {string} */
    RaumGuid;
    /** @type {string} */
    LaufendeNummer;
    /** @type {boolean} */
    Gemietet;
    /** @type {boolean} */
    Gewartet;
    /** @type {string} */
    GeraeteKatalogGuid;
    /** @type {IList<DeviceConsumption>} */
    Verbraeuche;
    /** @type {IList<Photo>} */
    Fotos;
    /** @type {IList<DeviceAdditionalArticle>} */
    ZusatzArtikel;
}
/** @typedef {'Leerstand'|'Gewerblich'|'Privat'|'AllgemeineNutzung'} */
export var NutzerKind;
(function (NutzerKind) {
    NutzerKind["Leerstand"] = "Leerstand"
    NutzerKind["Gewerblich"] = "Gewerblich"
    NutzerKind["Privat"] = "Privat"
    NutzerKind["AllgemeineNutzung"] = "AllgemeineNutzung"
})(NutzerKind || (NutzerKind = {}));
export class NutzerCommunication {
    /** @param {{Guid?:string,LastModified?:string,Adresse?:string,Anmerkung?:string,KommunikationsFunktionGuid?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {?string} */
    LastModified;
    /** @type {string} */
    Adresse;
    /** @type {string} */
    Anmerkung;
    /** @type {string} */
    KommunikationsFunktionGuid;
}
export class NutzerPersonen {
    /** @param {{Guid?:string,LastModified?:string,Personen?:number,Von?:string,Bis?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {?string} */
    LastModified;
    /** @type {?number} */
    Personen;
    /** @type {string} */
    Von;
    /** @type {?string} */
    Bis;
}
export class NutzerCoOwnership {
    /** @param {{Guid?:string,LastModified?:string,ShareValue?:number,Von?:string,Bis?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {?string} */
    LastModified;
    /** @type {?number} */
    ShareValue;
    /** @type {string} */
    Von;
    /** @type {?string} */
    Bis;
}
export class NutzerQuadratmeter {
    /** @param {{Guid?:string,LastModified?:string,Quadratmeter_Hzg?:number,Quadratmeter_Ww?:number,Quadratmeter_Nk?:number,Von?:string,Bis?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {?string} */
    LastModified;
    /** @type {?number} */
    Quadratmeter_Hzg;
    /** @type {?number} */
    Quadratmeter_Ww;
    /** @type {?number} */
    Quadratmeter_Nk;
    /** @type {string} */
    Von;
    /** @type {?string} */
    Bis;
}
export class Nutzer {
    /** @param {{Guid?:string,LastModified?:string,ArtDerNutzung?:NutzerKind,Einzug?:string,Auszug?:string,Name1?:string,Name2?:string,Name3?:string,Name4?:string,Anmerkung?:string,NaechsterTermin?:string,Anrede?:string,Titel?:string,NutzerKommunikationen?:NutzerCommunication[],NutzerPersonen?:NutzerPersonen[],NutzerCoOwnership?:NutzerCoOwnership[],NutzerQuadratmeter?:NutzerQuadratmeter[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {?string} */
    LastModified;
    /** @type {?NutzerKind} */
    ArtDerNutzung;
    /** @type {?string} */
    Einzug;
    /** @type {?string} */
    Auszug;
    /** @type {string} */
    Name1;
    /** @type {string} */
    Name2;
    /** @type {string} */
    Name3;
    /** @type {string} */
    Name4;
    /** @type {string} */
    Anmerkung;
    /** @type {?string} */
    NaechsterTermin;
    /** @type {string} */
    Anrede;
    /** @type {string} */
    Titel;
    /** @type {NutzerCommunication[]} */
    NutzerKommunikationen;
    /** @type {NutzerPersonen[]} */
    NutzerPersonen;
    /** @type {NutzerCoOwnership[]} */
    NutzerCoOwnership;
    /** @type {NutzerQuadratmeter[]} */
    NutzerQuadratmeter;
}
export class Nutzeinheit {
    /** @param {{Guid?:string,LastModified?:string,NeNummerInt?:string,Lage?:string,BegeReihenfolge?:string,Anmerkung?:string,AbrechnungseinheitGuid?:string,Adresse?:Address,Geraete?:IList<Device>,Nutzer?:IList<Nutzer>,Fotos?:IList<Photo>}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {?string} */
    LastModified;
    /** @type {string} */
    NeNummerInt;
    /** @type {string} */
    Lage;
    /** @type {string} */
    BegeReihenfolge;
    /** @type {string} */
    Anmerkung;
    /** @type {string} */
    AbrechnungseinheitGuid;
    /** @type {Address} */
    Adresse;
    /** @type {IList<Device>} */
    Geraete;
    /** @type {IList<Nutzer>} */
    Nutzer;
    /** @type {IList<Photo>} */
    Fotos;
}
export class UpdateNutzeinheit extends Eras2AppServiceModelBase {
    /** @param {{Nutzeinheit?:Nutzeinheit,UserId?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {Nutzeinheit} */
    Nutzeinheit;
}

JavaScript UpdateNutzeinheit DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /App/{UserId}/Nutzeinheit HTTP/1.1 
Host: eca-abrechnungsservice-servamw.eras-online.de 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<UpdateNutzeinheit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Amw.Service.Server.ServiceModel.Eras2App.Update">
  <UserId xmlns="http://schemas.datacontract.org/2004/07/Eras2Amw.Service.Server.ServiceModel.Eras2App">00000000-0000-0000-0000-000000000000</UserId>
  <Nutzeinheit xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Amw.Service.Server.ServiceModel.Common">
    <d2p1:AbrechnungseinheitGuid>00000000-0000-0000-0000-000000000000</d2p1:AbrechnungseinheitGuid>
    <d2p1:Address>
      <d2p1:Adresszusatz>String</d2p1:Adresszusatz>
      <d2p1:Breitengrad>0</d2p1:Breitengrad>
      <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
      <d2p1:Hausnummer>String</d2p1:Hausnummer>
      <d2p1:Laengengrad>0</d2p1:Laengengrad>
      <d2p1:Ort>String</d2p1:Ort>
      <d2p1:Postfach>String</d2p1:Postfach>
      <d2p1:Postleitzahl>String</d2p1:Postleitzahl>
      <d2p1:Straße>String</d2p1:Straße>
      <d2p1:Straße2>String</d2p1:Straße2>
    </d2p1:Address>
    <d2p1:Devices i:nil="true" />
    <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
    <d2p1:LastModified>0001-01-01T00:00:00</d2p1:LastModified>
    <d2p1:Location>String</d2p1:Location>
    <d2p1:Note>String</d2p1:Note>
    <d2p1:Number>String</d2p1:Number>
    <d2p1:Nutzer i:nil="true" />
    <d2p1:Photos i:nil="true" />
    <d2p1:WalkSequence>String</d2p1:WalkSequence>
  </Nutzeinheit>
</UpdateNutzeinheit>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<UpdateNutzeinheitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Amw.Service.Server.ServiceModel.Eras2App.Update">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</UpdateNutzeinheitResponse>