| GET | /api/v1/brennstofflieferung/{Guid} |
|---|
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 GetBrennstoff implements IHasBearerToken
{
@ApiMember(IsRequired=true, ParameterType="query")
public String bearerToken = null;
@ApiMember(IsRequired=true, ParameterType="path")
public UUID guid = null;
public String getBearerToken() { return bearerToken; }
public GetBrennstoff setBearerToken(String value) { this.bearerToken = value; return this; }
public UUID getGuid() { return guid; }
public GetBrennstoff setGuid(UUID value) { this.guid = value; return this; }
}
public static class GetBrennstoffResponse
{
public Brennstofflieferung brennstofflieferung = null;
public BrennstoffMedium brennstoffMedium = null;
public ResponseStatus responseStatus = null;
public Brennstofflieferung getBrennstofflieferung() { return brennstofflieferung; }
public GetBrennstoffResponse setBrennstofflieferung(Brennstofflieferung value) { this.brennstofflieferung = value; return this; }
public BrennstoffMedium getBrennstoffMedium() { return brennstoffMedium; }
public GetBrennstoffResponse setBrennstoffMedium(BrennstoffMedium value) { this.brennstoffMedium = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public GetBrennstoffResponse 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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/v1/brennstofflieferung/{Guid} HTTP/1.1
Host: mdf-servdesk.eras-online.de
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
brennstofflieferung:
{
guid: 00000000000000000000000000000000,
deliveryDate: 0001-01-01T00:00:00Z,
salexTax: 0,
emisionsTax: 0,
c02Taxes: 0,
customsTax: 0,
otherCharges: 0,
c02Price: 0,
c02Tons: 0,
quantity: 0,
amount: 0,
startMeterReadingValue: 0,
endMeterReadingValue: 0,
heizwert: 0,
brennwert: False,
energyReliefAmountDescription: String,
energyReliefAmount: 0,
electricityReliefAmountDescription: String,
electricityReliefAmount: 0,
cO2EmissionsFactor: 0,
cO2Text: String,
cO2Active: False,
cO2PriceKnd: False,
cO2PriceLandlord: 0,
cO2PriceRenter: 0,
cO2Area: 0,
isForCommercialUse: False,
isRenovationRequired: False,
isHeatingPadsImproved: False,
cO2KWh: 0,
includedCO2SalesTax: 0,
cO2Costs: 0,
totalC02Weight: 0,
noTotalDeductionC02Costs: False,
isDeleted: False,
isCreatedByApp: False,
brennstoffMediumGuid: 00000000000000000000000000000000,
billingInformation:
{
guid: String,
from: 0001-01-01T00:00:00Z,
to: 0001-01-01T00:00:00Z,
isCompleted: False,
hasNebenkosten: False
}
},
brennstoffMedium:
{
Guid: String,
Bezeichnung: String,
Lagernd: False,
EinheitTyp: String,
Heizwert: 0
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}