| POST | /Abrechnungseinheit |
|---|
"use strict";
export class AddAbrechnungseinheitResponse {
/** @param {{responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
responseStatus;
}
export class Customer {
/** @param {{Guid?:string,Name?:string,Name2?:string,Name3?:string,Kundennummer?:string,Notiz?:string,Anrede?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {string} */
Name;
/** @type {string} */
Name2;
/** @type {string} */
Name3;
/** @type {string} */
Kundennummer;
/** @type {string} */
Notiz;
/** @type {string} */
Anrede;
}
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;
}
export class PersonAbrechnungseinheit {
/** @param {{Guid?:string,LastModified?:string,Anmerkung?:string,PersonGuid?:string,BetrieblichePosition?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {?string} */
LastModified;
/** @type {string} */
Anmerkung;
/** @type {string} */
PersonGuid;
/** @type {string} */
BetrieblichePosition;
}
export class PersonCommunication {
/** @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 Person {
/** @param {{Guid?:string,LastModified?:string,Nachname1?:string,Nachname2?:string,Nachname3?:string,Vorname1?:string,Vorname2?:string,Anmerkung?:string,Anrede?:string,Titel?:string,PersonKommunikationen?:PersonCommunication[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {?string} */
LastModified;
/** @type {string} */
Nachname1;
/** @type {string} */
Nachname2;
/** @type {string} */
Nachname3;
/** @type {string} */
Vorname1;
/** @type {string} */
Vorname2;
/** @type {string} */
Anmerkung;
/** @type {string} */
Anrede;
/** @type {string} */
Titel;
/** @type {PersonCommunication[]} */
PersonKommunikationen;
}
export class Abrechnungseinheit {
/** @param {{Guid?:string,LastModified?:string,Objektnummer?:string,Notiz?:string,NotizIntern?:string,NotizLegionellen?:string,Kunde?:Customer,Adresse?:Address,BillingPeriodEnd?:string,PersonAbrechnungseinheit?:IList<PersonAbrechnungseinheit>,Persons?:IList<Person>}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {?string} */
LastModified;
/** @type {string} */
Objektnummer;
/** @type {string} */
Notiz;
/** @type {string} */
NotizIntern;
/** @type {string} */
NotizLegionellen;
/** @type {Customer} */
Kunde;
/** @type {Address} */
Adresse;
/** @type {?string} */
BillingPeriodEnd;
/** @type {IList<PersonAbrechnungseinheit>} */
PersonAbrechnungseinheit;
/** @type {IList<Person>} */
Persons;
}
export class AddAbrechnungseinheit {
/** @param {{Abrechnungseinheit?:Abrechnungseinheit}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {Abrechnungseinheit} */
Abrechnungseinheit;
}
JavaScript AddAbrechnungseinheit DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Abrechnungseinheit HTTP/1.1
Host: kromer-servamw.eras-online.de
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Abrechnungseinheit":{"Guid":"00000000000000000000000000000000","LastModified":"0001-01-01T00:00:00.0000000Z","Objektnummer":"String","Notiz":"String","NotizIntern":"String","NotizLegionellen":"String","Kunde":{"Guid":"00000000000000000000000000000000","Name":"String","Name2":"String","Name3":"String","Kundennummer":"String","Notiz":"String","Anrede":"String"},"Adresse":{"Guid":"00000000000000000000000000000000","Straße":"String","Straße2":"String","Hausnummer":"String","Postleitzahl":"String","Ort":"String","Postfach":"String","Adresszusatz":"String","Breitengrad":0,"Laengengrad":0},"BillingPeriodEnd":"0001-01-01T00:00:00.0000000Z"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}