| POST | /api/v1/heizbetriebskosten |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class PostHeizbetriebskosten implements IHasBearerToken
{
@ApiMember(IsRequired=true, ParameterType="body")
public Heizbetriebskosten heizbetriebskosten = null;
@ApiMember(IsRequired=true, ParameterType="body")
public RelatedTo relatedToObjekt = null;
@ApiMember(IsRequired=true, ParameterType="body")
public RelatedTo relatedToBillingInformation = null;
@ApiMember(IsRequired=true, ParameterType="body")
public String bearerToken = null;
public Heizbetriebskosten getHeizbetriebskosten() { return heizbetriebskosten; }
public PostHeizbetriebskosten setHeizbetriebskosten(Heizbetriebskosten value) { this.heizbetriebskosten = value; return this; }
public RelatedTo getRelatedToObjekt() { return relatedToObjekt; }
public PostHeizbetriebskosten setRelatedToObjekt(RelatedTo value) { this.relatedToObjekt = value; return this; }
public RelatedTo getRelatedToBillingInformation() { return relatedToBillingInformation; }
public PostHeizbetriebskosten setRelatedToBillingInformation(RelatedTo value) { this.relatedToBillingInformation = value; return this; }
public String getBearerToken() { return bearerToken; }
public PostHeizbetriebskosten setBearerToken(String value) { this.bearerToken = value; return this; }
}
@DataContract
public static class Heizbetriebskosten
{
@DataMember
public UUID guid = null;
@DataMember
public Date from = null;
@DataMember
public Date to = null;
@DataMember
public BigDecimal salesTax = null;
@DataMember
public BigDecimal haushatlsnahediensteBrutto = null;
@DataMember
public BigDecimal brutto = null;
@DataMember
public String haushatlsnahediensteLabel = null;
@DataMember
public String description = null;
@DataMember
public Boolean isDeleted = null;
@DataMember
public Boolean isCreatedByApp = null;
public UUID getGuid() { return guid; }
public Heizbetriebskosten setGuid(UUID value) { this.guid = value; return this; }
public Date getFrom() { return from; }
public Heizbetriebskosten setFrom(Date value) { this.from = value; return this; }
public Date getTo() { return to; }
public Heizbetriebskosten setTo(Date value) { this.to = value; return this; }
public BigDecimal getSalesTax() { return salesTax; }
public Heizbetriebskosten setSalesTax(BigDecimal value) { this.salesTax = value; return this; }
public BigDecimal getHaushatlsnahediensteBrutto() { return haushatlsnahediensteBrutto; }
public Heizbetriebskosten setHaushatlsnahediensteBrutto(BigDecimal value) { this.haushatlsnahediensteBrutto = value; return this; }
public BigDecimal getBrutto() { return brutto; }
public Heizbetriebskosten setBrutto(BigDecimal value) { this.brutto = value; return this; }
public String getHaushatlsnahediensteLabel() { return haushatlsnahediensteLabel; }
public Heizbetriebskosten setHaushatlsnahediensteLabel(String value) { this.haushatlsnahediensteLabel = value; return this; }
public String getDescription() { return description; }
public Heizbetriebskosten setDescription(String value) { this.description = value; return this; }
public Boolean getIsDeleted() { return isDeleted; }
public Heizbetriebskosten setIsDeleted(Boolean value) { this.isDeleted = value; return this; }
public Boolean getIsCreatedByApp() { return isCreatedByApp; }
public Heizbetriebskosten setIsCreatedByApp(Boolean value) { this.isCreatedByApp = value; return this; }
}
@DataContract
public static class RelatedTo
{
@DataMember
public UUID guid = null;
public UUID getGuid() { return guid; }
public RelatedTo setGuid(UUID value) { this.guid = value; return this; }
}
public static class PostHeizbetriebskostenResponse
{
public ResponseStatus responseStatus = null;
public String checksumMD5 = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public PostHeizbetriebskostenResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public String getChecksumMD5() { return checksumMD5; }
public PostHeizbetriebskostenResponse setChecksumMD5(String value) { this.checksumMD5 = value; return this; }
}
}
Java PostHeizbetriebskosten DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/v1/heizbetriebskosten HTTP/1.1
Host: g-lange-servdesk.eras-online.de
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PostHeizbetriebskosten xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Post">
<BearerToken>String</BearerToken>
<Heizbetriebskosten xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Models">
<d2p1:Brutto>0</d2p1:Brutto>
<d2p1:Description>String</d2p1:Description>
<d2p1:From>0001-01-01T00:00:00</d2p1:From>
<d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
<d2p1:HaushatlsnahediensteBrutto>0</d2p1:HaushatlsnahediensteBrutto>
<d2p1:HaushatlsnahediensteLabel>String</d2p1:HaushatlsnahediensteLabel>
<d2p1:IsCreatedByApp>false</d2p1:IsCreatedByApp>
<d2p1:IsDeleted>false</d2p1:IsDeleted>
<d2p1:SalesTax>0</d2p1:SalesTax>
<d2p1:To>0001-01-01T00:00:00</d2p1:To>
</Heizbetriebskosten>
<RelatedToBillingInformation xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Models">
<d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
</RelatedToBillingInformation>
<RelatedToObjekt xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Models">
<d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
</RelatedToObjekt>
</PostHeizbetriebskosten>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PostHeizbetriebskostenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Post">
<ChecksumMD5>String</ChecksumMD5>
<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>
</PostHeizbetriebskostenResponse>