| POST | /Abrechnungseinheit |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
@DataContract
public static class AddAbrechnungseinheit
{
@DataMember(Name="Abrechnungseinheit")
@SerializedName("Abrechnungseinheit")
public Abrechnungseinheit abrechnungseinheit = null;
public Abrechnungseinheit getAbrechnungseinheit() { return abrechnungseinheit; }
public AddAbrechnungseinheit setAbrechnungseinheit(Abrechnungseinheit value) { this.abrechnungseinheit = value; return this; }
}
public static class Abrechnungseinheit
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="LastModified")
@SerializedName("LastModified")
public Date lastModified = null;
@DataMember(Name="Objektnummer")
@SerializedName("Objektnummer")
public String number = null;
@DataMember(Name="Notiz")
@SerializedName("Notiz")
public String note = null;
@DataMember(Name="NotizIntern")
@SerializedName("NotizIntern")
public String noteInternal = null;
@DataMember(Name="NotizLegionellen")
@SerializedName("NotizLegionellen")
public String noteLegionella = null;
@DataMember(Name="Kunde")
@SerializedName("Kunde")
public Customer customer = null;
@DataMember(Name="Adresse")
@SerializedName("Adresse")
public Address address = null;
@DataMember(Name="BillingPeriodEnd")
@SerializedName("BillingPeriodEnd")
public Date billigPeriodEnd = null;
@DataMember(Name="PersonAbrechnungseinheit")
@SerializedName("PersonAbrechnungseinheit")
public IList<PersonAbrechnungseinheit> personAbrechnungseinheiten = null;
@DataMember(Name="Persons")
@SerializedName("Persons")
public IList<Person> persons = null;
public UUID getGuid() { return guid; }
public Abrechnungseinheit setGuid(UUID value) { this.guid = value; return this; }
public Date getLastModified() { return lastModified; }
public Abrechnungseinheit setLastModified(Date value) { this.lastModified = value; return this; }
public String getNumber() { return number; }
public Abrechnungseinheit setNumber(String value) { this.number = value; return this; }
public String getNote() { return note; }
public Abrechnungseinheit setNote(String value) { this.note = value; return this; }
public String getNoteInternal() { return noteInternal; }
public Abrechnungseinheit setNoteInternal(String value) { this.noteInternal = value; return this; }
public String getNoteLegionella() { return noteLegionella; }
public Abrechnungseinheit setNoteLegionella(String value) { this.noteLegionella = value; return this; }
public Customer getCustomer() { return customer; }
public Abrechnungseinheit setCustomer(Customer value) { this.customer = value; return this; }
public Address getAddress() { return address; }
public Abrechnungseinheit setAddress(Address value) { this.address = value; return this; }
public Date getBilligPeriodEnd() { return billigPeriodEnd; }
public Abrechnungseinheit setBilligPeriodEnd(Date value) { this.billigPeriodEnd = value; return this; }
public IList<PersonAbrechnungseinheit> getPersonAbrechnungseinheiten() { return personAbrechnungseinheiten; }
public Abrechnungseinheit setPersonAbrechnungseinheiten(IList<PersonAbrechnungseinheit> value) { this.personAbrechnungseinheiten = value; return this; }
public IList<Person> getPersons() { return persons; }
public Abrechnungseinheit setPersons(IList<Person> value) { this.persons = value; return this; }
}
@DataContract
public static class Customer
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="Name")
@SerializedName("Name")
public String name = null;
@DataMember(Name="Name2")
@SerializedName("Name2")
public String name2 = null;
@DataMember(Name="Name3")
@SerializedName("Name3")
public String name3 = null;
@DataMember(Name="Kundennummer")
@SerializedName("Kundennummer")
public String number = null;
@DataMember(Name="Notiz")
@SerializedName("Notiz")
public String note = null;
@DataMember(Name="Anrede")
@SerializedName("Anrede")
public String salutation = null;
public UUID getGuid() { return guid; }
public Customer setGuid(UUID value) { this.guid = value; return this; }
public String getName() { return name; }
public Customer setName(String value) { this.name = value; return this; }
public String getName2() { return name2; }
public Customer setName2(String value) { this.name2 = value; return this; }
public String getName3() { return name3; }
public Customer setName3(String value) { this.name3 = value; return this; }
public String getNumber() { return number; }
public Customer setNumber(String value) { this.number = value; return this; }
public String getNote() { return note; }
public Customer setNote(String value) { this.note = value; return this; }
public String getSalutation() { return salutation; }
public Customer setSalutation(String value) { this.salutation = value; return this; }
}
@DataContract
public static class Address
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="Straße")
@SerializedName("Straße")
public String street = null;
@DataMember(Name="Straße2")
@SerializedName("Straße2")
public String street2 = null;
@DataMember(Name="Hausnummer")
@SerializedName("Hausnummer")
public String streetNumber = null;
@DataMember(Name="Postleitzahl")
@SerializedName("Postleitzahl")
public String zipcode = null;
@DataMember(Name="Ort")
@SerializedName("Ort")
public String city = null;
@DataMember(Name="Postfach")
@SerializedName("Postfach")
public String mailbox = null;
@DataMember(Name="Adresszusatz")
@SerializedName("Adresszusatz")
public String additional = null;
@DataMember(Name="Breitengrad")
@SerializedName("Breitengrad")
public Double latitude = null;
@DataMember(Name="Laengengrad")
@SerializedName("Laengengrad")
public Double longitude = null;
public UUID getGuid() { return guid; }
public Address setGuid(UUID value) { this.guid = value; return this; }
public String getStreet() { return street; }
public Address setStreet(String value) { this.street = value; return this; }
public String getStreet2() { return street2; }
public Address setStreet2(String value) { this.street2 = value; return this; }
public String getStreetNumber() { return streetNumber; }
public Address setStreetNumber(String value) { this.streetNumber = value; return this; }
public String getZipcode() { return zipcode; }
public Address setZipcode(String value) { this.zipcode = value; return this; }
public String getCity() { return city; }
public Address setCity(String value) { this.city = value; return this; }
public String getMailbox() { return mailbox; }
public Address setMailbox(String value) { this.mailbox = value; return this; }
public String getAdditional() { return additional; }
public Address setAdditional(String value) { this.additional = value; return this; }
public Double getLatitude() { return latitude; }
public Address setLatitude(Double value) { this.latitude = value; return this; }
public Double getLongitude() { return longitude; }
public Address setLongitude(Double value) { this.longitude = value; return this; }
}
@DataContract
public static class PersonAbrechnungseinheit
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="LastModified")
@SerializedName("LastModified")
public Date lastModified = null;
@DataMember(Name="Anmerkung")
@SerializedName("Anmerkung")
public String note = null;
@DataMember(Name="PersonGuid")
@SerializedName("PersonGuid")
public UUID personGuid = null;
@DataMember(Name="BetrieblichePosition")
@SerializedName("BetrieblichePosition")
public String businessPosition = null;
public UUID getGuid() { return guid; }
public PersonAbrechnungseinheit setGuid(UUID value) { this.guid = value; return this; }
public Date getLastModified() { return lastModified; }
public PersonAbrechnungseinheit setLastModified(Date value) { this.lastModified = value; return this; }
public String getNote() { return note; }
public PersonAbrechnungseinheit setNote(String value) { this.note = value; return this; }
public UUID getPersonGuid() { return personGuid; }
public PersonAbrechnungseinheit setPersonGuid(UUID value) { this.personGuid = value; return this; }
public String getBusinessPosition() { return businessPosition; }
public PersonAbrechnungseinheit setBusinessPosition(String value) { this.businessPosition = value; return this; }
}
@DataContract
public static class Person
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="LastModified")
@SerializedName("LastModified")
public Date lastModified = null;
@DataMember(Name="Nachname1")
@SerializedName("Nachname1")
public String lastname1 = null;
@DataMember(Name="Nachname2")
@SerializedName("Nachname2")
public String lastname2 = null;
@DataMember(Name="Nachname3")
@SerializedName("Nachname3")
public String lastname3 = null;
@DataMember(Name="Vorname1")
@SerializedName("Vorname1")
public String firstname1 = null;
@DataMember(Name="Vorname2")
@SerializedName("Vorname2")
public String firstname2 = null;
@DataMember(Name="Anmerkung")
@SerializedName("Anmerkung")
public String note = null;
@DataMember(Name="Anrede")
@SerializedName("Anrede")
public String salutation = null;
@DataMember(Name="Titel")
@SerializedName("Titel")
public String title = null;
@DataMember(Name="PersonKommunikationen")
@SerializedName("PersonKommunikationen")
public ArrayList<PersonCommunication> personCommunications = null;
public UUID getGuid() { return guid; }
public Person setGuid(UUID value) { this.guid = value; return this; }
public Date getLastModified() { return lastModified; }
public Person setLastModified(Date value) { this.lastModified = value; return this; }
public String getLastname1() { return lastname1; }
public Person setLastname1(String value) { this.lastname1 = value; return this; }
public String getLastname2() { return lastname2; }
public Person setLastname2(String value) { this.lastname2 = value; return this; }
public String getLastname3() { return lastname3; }
public Person setLastname3(String value) { this.lastname3 = value; return this; }
public String getFirstname1() { return firstname1; }
public Person setFirstname1(String value) { this.firstname1 = value; return this; }
public String getFirstname2() { return firstname2; }
public Person setFirstname2(String value) { this.firstname2 = value; return this; }
public String getNote() { return note; }
public Person setNote(String value) { this.note = value; return this; }
public String getSalutation() { return salutation; }
public Person setSalutation(String value) { this.salutation = value; return this; }
public String getTitle() { return title; }
public Person setTitle(String value) { this.title = value; return this; }
public ArrayList<PersonCommunication> getPersonCommunications() { return personCommunications; }
public Person setPersonCommunications(ArrayList<PersonCommunication> value) { this.personCommunications = value; return this; }
}
@DataContract
public static class PersonCommunication
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="LastModified")
@SerializedName("LastModified")
public Date lastModified = null;
@DataMember(Name="Adresse")
@SerializedName("Adresse")
public String address = null;
@DataMember(Name="Anmerkung")
@SerializedName("Anmerkung")
public String note = null;
@DataMember(Name="KommunikationsFunktionGuid")
@SerializedName("KommunikationsFunktionGuid")
public UUID communicationFeatureGuid = null;
public UUID getGuid() { return guid; }
public PersonCommunication setGuid(UUID value) { this.guid = value; return this; }
public Date getLastModified() { return lastModified; }
public PersonCommunication setLastModified(Date value) { this.lastModified = value; return this; }
public String getAddress() { return address; }
public PersonCommunication setAddress(String value) { this.address = value; return this; }
public String getNote() { return note; }
public PersonCommunication setNote(String value) { this.note = value; return this; }
public UUID getCommunicationFeatureGuid() { return communicationFeatureGuid; }
public PersonCommunication setCommunicationFeatureGuid(UUID value) { this.communicationFeatureGuid = value; return this; }
}
public static class AddAbrechnungseinheitResponse
{
public ResponseStatus responseStatus = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public AddAbrechnungseinheitResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
}
Java AddAbrechnungseinheit DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Abrechnungseinheit HTTP/1.1
Host: stage-servamw.eras-online.de
Accept: text/jsonl
Content-Type: text/jsonl
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/jsonl
Content-Length: length
{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}