| GET | /api/v1/brennstofflieferung |
|---|
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 GetBrennstoffList implements IHasBearerToken
{
@ApiMember(IsRequired=true, ParameterType="query")
public String bearerToken = null;
/**
* Optional! Follow the format : /api/v1/brennstofflieferung?filter[ObjektGuid]=*
*/
@DataMember(Name="filter[ObjektGuid]")
@SerializedName("filter[ObjektGuid]")
@ApiMember(Description="Optional! Follow the format : /api/v1/brennstofflieferung?filter[ObjektGuid]=*", ParameterType="query")
public String filterByObjektGuid = null;
/**
* Optional! Follow the format : /api/v1/brennstofflieferung?filter[EnergieVerwerterGuid]=*
*/
@DataMember(Name="filter[EnergieVerwerterGuid]")
@SerializedName("filter[EnergieVerwerterGuid]")
@ApiMember(Description="Optional! Follow the format : /api/v1/brennstofflieferung?filter[EnergieVerwerterGuid]=*", ParameterType="query")
public String filterByEnergieVerwerterGuid = null;
/**
* Optional! Follow the format : /api/v1/brennstofflieferung?filter[BillingInformationGuid]=*
*/
@DataMember(Name="filter[BillingInformationGuid]")
@SerializedName("filter[BillingInformationGuid]")
@ApiMember(Description="Optional! Follow the format : /api/v1/brennstofflieferung?filter[BillingInformationGuid]=*", ParameterType="query")
public String filterByBillingInformationGuid = null;
public String getBearerToken() { return bearerToken; }
public GetBrennstoffList setBearerToken(String value) { this.bearerToken = value; return this; }
public String getFilterByObjektGuid() { return filterByObjektGuid; }
public GetBrennstoffList setFilterByObjektGuid(String value) { this.filterByObjektGuid = value; return this; }
public String getFilterByEnergieVerwerterGuid() { return filterByEnergieVerwerterGuid; }
public GetBrennstoffList setFilterByEnergieVerwerterGuid(String value) { this.filterByEnergieVerwerterGuid = value; return this; }
public String getFilterByBillingInformationGuid() { return filterByBillingInformationGuid; }
public GetBrennstoffList setFilterByBillingInformationGuid(String value) { this.filterByBillingInformationGuid = value; return this; }
}
public static class GetBrennstoffListResponse
{
public ArrayList<Brennstofflieferung> brennstofflieferungen = null;
public ArrayList<BrennstoffMedium> brennstoffMedium = null;
public ResponseStatus responseStatus = null;
public ArrayList<Brennstofflieferung> getBrennstofflieferungen() { return brennstofflieferungen; }
public GetBrennstoffListResponse setBrennstofflieferungen(ArrayList<Brennstofflieferung> value) { this.brennstofflieferungen = value; return this; }
public ArrayList<BrennstoffMedium> getBrennstoffMedium() { return brennstoffMedium; }
public GetBrennstoffListResponse setBrennstoffMedium(ArrayList<BrennstoffMedium> value) { this.brennstoffMedium = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public GetBrennstoffListResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
@DataContract
public static class Brennstofflieferung
{
@DataMember
public UUID guid = null;
@DataMember
public Date deliveryDate = null;
@DataMember
public BigDecimal salexTax = null;
@DataMember
public BigDecimal emisionsTax = null;
@DataMember
public BigDecimal c02Taxes = null;
@DataMember
public BigDecimal customsTax = null;
@DataMember
public BigDecimal otherCharges = null;
@DataMember
public BigDecimal c02Price = null;
@DataMember
public BigDecimal c02Tons = null;
@DataMember
public BigDecimal quantity = null;
@DataMember
public BigDecimal amount = null;
@DataMember
public BigDecimal startMeterReadingValue = null;
@DataMember
public BigDecimal endMeterReadingValue = null;
@DataMember
public BigDecimal heizwert = null;
@DataMember
public Boolean brennwert = null;
@DataMember
public String energyReliefAmountDescription = null;
@DataMember
public BigDecimal energyReliefAmount = null;
@DataMember
public String electricityReliefAmountDescription = null;
@DataMember
public BigDecimal electricityReliefAmount = null;
@DataMember
public BigDecimal cO2EmissionsFactor = null;
@DataMember
public String cO2Text = null;
@DataMember
public Boolean cO2Active = null;
@DataMember
public Boolean cO2PriceKnd = null;
@DataMember
public BigDecimal cO2PriceLandlord = null;
@DataMember
public BigDecimal cO2PriceRenter = null;
@DataMember
public BigDecimal cO2Area = null;
@DataMember
public Boolean isForCommercialUse = null;
@DataMember
public Boolean isRenovationRequired = null;
@DataMember
public Boolean isHeatingPadsImproved = null;
@DataMember
public BigDecimal cO2KWh = null;
@DataMember
public BigDecimal includedCO2SalesTax = null;
@DataMember
public BigDecimal cO2Costs = null;
@DataMember
public BigDecimal totalC02Weight = null;
@DataMember
public Boolean noTotalDeductionC02Costs = null;
@DataMember
public Boolean isDeleted = null;
@DataMember
public Boolean isCreatedByApp = null;
@DataMember
public UUID brennstoffMediumGuid = null;
@DataMember
public BillingInformation billingInformation = null;
public UUID getGuid() { return guid; }
public Brennstofflieferung setGuid(UUID value) { this.guid = value; return this; }
public Date getDeliveryDate() { return deliveryDate; }
public Brennstofflieferung setDeliveryDate(Date value) { this.deliveryDate = value; return this; }
public BigDecimal getSalexTax() { return salexTax; }
public Brennstofflieferung setSalexTax(BigDecimal value) { this.salexTax = value; return this; }
public BigDecimal getEmisionsTax() { return emisionsTax; }
public Brennstofflieferung setEmisionsTax(BigDecimal value) { this.emisionsTax = value; return this; }
public BigDecimal getC02Taxes() { return c02Taxes; }
public Brennstofflieferung setC02Taxes(BigDecimal value) { this.c02Taxes = value; return this; }
public BigDecimal getCustomsTax() { return customsTax; }
public Brennstofflieferung setCustomsTax(BigDecimal value) { this.customsTax = value; return this; }
public BigDecimal getOtherCharges() { return otherCharges; }
public Brennstofflieferung setOtherCharges(BigDecimal value) { this.otherCharges = value; return this; }
public BigDecimal getC02Price() { return c02Price; }
public Brennstofflieferung setC02Price(BigDecimal value) { this.c02Price = value; return this; }
public BigDecimal getC02Tons() { return c02Tons; }
public Brennstofflieferung setC02Tons(BigDecimal value) { this.c02Tons = value; return this; }
public BigDecimal getQuantity() { return quantity; }
public Brennstofflieferung setQuantity(BigDecimal value) { this.quantity = value; return this; }
public BigDecimal getAmount() { return amount; }
public Brennstofflieferung setAmount(BigDecimal value) { this.amount = value; return this; }
public BigDecimal getStartMeterReadingValue() { return startMeterReadingValue; }
public Brennstofflieferung setStartMeterReadingValue(BigDecimal value) { this.startMeterReadingValue = value; return this; }
public BigDecimal getEndMeterReadingValue() { return endMeterReadingValue; }
public Brennstofflieferung setEndMeterReadingValue(BigDecimal value) { this.endMeterReadingValue = value; return this; }
public BigDecimal getHeizwert() { return heizwert; }
public Brennstofflieferung setHeizwert(BigDecimal value) { this.heizwert = value; return this; }
public Boolean isBrennwert() { return brennwert; }
public Brennstofflieferung setBrennwert(Boolean value) { this.brennwert = value; return this; }
public String getEnergyReliefAmountDescription() { return energyReliefAmountDescription; }
public Brennstofflieferung setEnergyReliefAmountDescription(String value) { this.energyReliefAmountDescription = value; return this; }
public BigDecimal getEnergyReliefAmount() { return energyReliefAmount; }
public Brennstofflieferung setEnergyReliefAmount(BigDecimal value) { this.energyReliefAmount = value; return this; }
public String getElectricityReliefAmountDescription() { return electricityReliefAmountDescription; }
public Brennstofflieferung setElectricityReliefAmountDescription(String value) { this.electricityReliefAmountDescription = value; return this; }
public BigDecimal getElectricityReliefAmount() { return electricityReliefAmount; }
public Brennstofflieferung setElectricityReliefAmount(BigDecimal value) { this.electricityReliefAmount = value; return this; }
public BigDecimal getCO2EmissionsFactor() { return cO2EmissionsFactor; }
public Brennstofflieferung setCO2EmissionsFactor(BigDecimal value) { this.cO2EmissionsFactor = value; return this; }
public String getCO2Text() { return cO2Text; }
public Brennstofflieferung setCO2Text(String value) { this.cO2Text = value; return this; }
public Boolean isCO2Active() { return cO2Active; }
public Brennstofflieferung setCO2Active(Boolean value) { this.cO2Active = value; return this; }
public Boolean isCO2PriceKnd() { return cO2PriceKnd; }
public Brennstofflieferung setCO2PriceKnd(Boolean value) { this.cO2PriceKnd = value; return this; }
public BigDecimal getCO2PriceLandlord() { return cO2PriceLandlord; }
public Brennstofflieferung setCO2PriceLandlord(BigDecimal value) { this.cO2PriceLandlord = value; return this; }
public BigDecimal getCO2PriceRenter() { return cO2PriceRenter; }
public Brennstofflieferung setCO2PriceRenter(BigDecimal value) { this.cO2PriceRenter = value; return this; }
public BigDecimal getCO2Area() { return cO2Area; }
public Brennstofflieferung setCO2Area(BigDecimal value) { this.cO2Area = value; return this; }
public Boolean getIsForCommercialUse() { return isForCommercialUse; }
public Brennstofflieferung setIsForCommercialUse(Boolean value) { this.isForCommercialUse = value; return this; }
public Boolean getIsRenovationRequired() { return isRenovationRequired; }
public Brennstofflieferung setIsRenovationRequired(Boolean value) { this.isRenovationRequired = value; return this; }
public Boolean getIsHeatingPadsImproved() { return isHeatingPadsImproved; }
public Brennstofflieferung setIsHeatingPadsImproved(Boolean value) { this.isHeatingPadsImproved = value; return this; }
public BigDecimal getCO2KWh() { return cO2KWh; }
public Brennstofflieferung setCO2KWh(BigDecimal value) { this.cO2KWh = value; return this; }
public BigDecimal getIncludedCO2SalesTax() { return includedCO2SalesTax; }
public Brennstofflieferung setIncludedCO2SalesTax(BigDecimal value) { this.includedCO2SalesTax = value; return this; }
public BigDecimal getCO2Costs() { return cO2Costs; }
public Brennstofflieferung setCO2Costs(BigDecimal value) { this.cO2Costs = value; return this; }
public BigDecimal getTotalC02Weight() { return totalC02Weight; }
public Brennstofflieferung setTotalC02Weight(BigDecimal value) { this.totalC02Weight = value; return this; }
public Boolean isNoTotalDeductionC02Costs() { return noTotalDeductionC02Costs; }
public Brennstofflieferung setNoTotalDeductionC02Costs(Boolean value) { this.noTotalDeductionC02Costs = value; return this; }
public Boolean getIsDeleted() { return isDeleted; }
public Brennstofflieferung setIsDeleted(Boolean value) { this.isDeleted = value; return this; }
public Boolean getIsCreatedByApp() { return isCreatedByApp; }
public Brennstofflieferung setIsCreatedByApp(Boolean value) { this.isCreatedByApp = value; return this; }
public UUID getBrennstoffMediumGuid() { return brennstoffMediumGuid; }
public Brennstofflieferung setBrennstoffMediumGuid(UUID value) { this.brennstoffMediumGuid = value; return this; }
public BillingInformation getBillingInformation() { return billingInformation; }
public Brennstofflieferung setBillingInformation(BillingInformation value) { this.billingInformation = value; return this; }
}
@DataContract
public static class BillingInformation
{
@DataMember
public String guid = null;
@DataMember
public Date from = null;
@DataMember
public Date to = null;
@DataMember
public Boolean isCompleted = null;
@DataMember
public Boolean hasNebenkosten = null;
public String getGuid() { return guid; }
public BillingInformation setGuid(String value) { this.guid = value; return this; }
public Date getFrom() { return from; }
public BillingInformation setFrom(Date value) { this.from = value; return this; }
public Date getTo() { return to; }
public BillingInformation setTo(Date value) { this.to = value; return this; }
public Boolean getIsCompleted() { return isCompleted; }
public BillingInformation setIsCompleted(Boolean value) { this.isCompleted = value; return this; }
public Boolean isHasNebenkosten() { return hasNebenkosten; }
public BillingInformation setHasNebenkosten(Boolean value) { this.hasNebenkosten = value; return this; }
}
@DataContract
public static class BrennstoffMedium
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public String guid = null;
@DataMember(Name="Bezeichnung")
@SerializedName("Bezeichnung")
public String label = null;
@DataMember(Name="Lagernd")
@SerializedName("Lagernd")
public Boolean storable = null;
@DataMember(Name="EinheitTyp")
@SerializedName("EinheitTyp")
public String einheitType = null;
@DataMember(Name="Heizwert")
@SerializedName("Heizwert")
public BigDecimal heizwert = null;
public String getGuid() { return guid; }
public BrennstoffMedium setGuid(String value) { this.guid = value; return this; }
public String getLabel() { return label; }
public BrennstoffMedium setLabel(String value) { this.label = value; return this; }
public Boolean isStorable() { return storable; }
public BrennstoffMedium setStorable(Boolean value) { this.storable = value; return this; }
public String getEinheitType() { return einheitType; }
public BrennstoffMedium setEinheitType(String value) { this.einheitType = value; return this; }
public BigDecimal getHeizwert() { return heizwert; }
public BrennstoffMedium setHeizwert(BigDecimal value) { this.heizwert = value; return this; }
}
}
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/brennstofflieferung HTTP/1.1 Host: develop-servdesk.eras-online.de Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetBrennstoffListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Get">
<BrennstoffMedium xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Stammdaten" i:nil="true" />
<Brennstofflieferungen 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>
</GetBrennstoffListResponse>