| GET | /api/v1/heizbetriebskosten |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
public static class GetHeizbetriebskostenList implements IHasBearerToken
{
@ApiMember(IsRequired=true, ParameterType="query")
public String bearerToken = null;
/**
* Optional! Follow the format : /api/v1/heizbetriebskosten?filter[ObjektGuid]=*
*/
@DataMember(Name="filter[ObjektGuid]")
@SerializedName("filter[ObjektGuid]")
@ApiMember(Description="Optional! Follow the format : /api/v1/heizbetriebskosten?filter[ObjektGuid]=*", ParameterType="query")
public String filterByObjektGuid = null;
/**
* Optional! Follow the format : /api/v1/heizbetriebskosten?filter[BillingInformationGuid]=*
*/
@DataMember(Name="filter[BillingInformationGuid]")
@SerializedName("filter[BillingInformationGuid]")
@ApiMember(Description="Optional! Follow the format : /api/v1/heizbetriebskosten?filter[BillingInformationGuid]=*", ParameterType="query")
public String filterByBillingInformationGuid = null;
public String getBearerToken() { return bearerToken; }
public GetHeizbetriebskostenList setBearerToken(String value) { this.bearerToken = value; return this; }
public String getFilterByObjektGuid() { return filterByObjektGuid; }
public GetHeizbetriebskostenList setFilterByObjektGuid(String value) { this.filterByObjektGuid = value; return this; }
public String getFilterByBillingInformationGuid() { return filterByBillingInformationGuid; }
public GetHeizbetriebskostenList setFilterByBillingInformationGuid(String value) { this.filterByBillingInformationGuid = value; return this; }
}
public static class GetHeizbetriebskostenListResponse
{
public ArrayList<Heizbetriebskosten> heizbetriebskostenList = null;
public ResponseStatus responseStatus = null;
public ArrayList<Heizbetriebskosten> getHeizbetriebskostenList() { return heizbetriebskostenList; }
public GetHeizbetriebskostenListResponse setHeizbetriebskostenList(ArrayList<Heizbetriebskosten> value) { this.heizbetriebskostenList = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public GetHeizbetriebskostenListResponse setResponseStatus(ResponseStatus value) { this.responseStatus = 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; }
}
}
Java GetHeizbetriebskostenList 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.
GET /api/v1/heizbetriebskosten HTTP/1.1 Host: dumpro-servdesk.eras-online.de Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetHeizbetriebskostenListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Get">
<HeizbetriebskostenList xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Models" i:nil="true" />
<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>
</GetHeizbetriebskostenListResponse>