Server

<back to all web services

PutBrennstoff

Brennstofflieferung
Requires Authentication
The following routes are available for this service:
PUT/api/v1/brennstofflieferung
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class PutBrennstoff implements IHasBearerToken
    {
        @ApiMember(IsRequired=true, ParameterType="body")
        public Brennstofflieferung brennstofflieferung = null;

        @ApiMember(IsRequired=true, ParameterType="body")
        public RelatedTo relatedToEnergieVerwerter = null;

        @ApiMember(IsRequired=true, ParameterType="body")
        public RelatedTo relatedToBrennstoffMedium = null;

        @ApiMember(ParameterType="body")
        public RelatedTo relatedToBillingInformation = null;

        @ApiMember(IsRequired=true, ParameterType="body")
        public String bearerToken = null;
        
        public Brennstofflieferung getBrennstofflieferung() { return brennstofflieferung; }
        public PutBrennstoff setBrennstofflieferung(Brennstofflieferung value) { this.brennstofflieferung = value; return this; }
        public RelatedTo getRelatedToEnergieVerwerter() { return relatedToEnergieVerwerter; }
        public PutBrennstoff setRelatedToEnergieVerwerter(RelatedTo value) { this.relatedToEnergieVerwerter = value; return this; }
        public RelatedTo getRelatedToBrennstoffMedium() { return relatedToBrennstoffMedium; }
        public PutBrennstoff setRelatedToBrennstoffMedium(RelatedTo value) { this.relatedToBrennstoffMedium = value; return this; }
        public RelatedTo getRelatedToBillingInformation() { return relatedToBillingInformation; }
        public PutBrennstoff setRelatedToBillingInformation(RelatedTo value) { this.relatedToBillingInformation = value; return this; }
        public String getBearerToken() { return bearerToken; }
        public PutBrennstoff setBearerToken(String value) { this.bearerToken = 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 RelatedTo
    {
        @DataMember
        public UUID guid = null;
        
        public UUID getGuid() { return guid; }
        public RelatedTo setGuid(UUID value) { this.guid = value; return this; }
    }

    public static class PutBrennstoffResponse
    {
        public ResponseStatus responseStatus = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public PutBrennstoffResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java PutBrennstoff DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /api/v1/brennstofflieferung HTTP/1.1 
Host: kromer-servdesk.eras-online.de 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<PutBrennstoff xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Put">
  <BearerToken>String</BearerToken>
  <Brennstofflieferung xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Models">
    <d2p1:Amount>0</d2p1:Amount>
    <d2p1:BillingInformation>
      <d2p1:From>0001-01-01T00:00:00</d2p1:From>
      <d2p1:Guid>String</d2p1:Guid>
      <d2p1:HasNebenkosten>false</d2p1:HasNebenkosten>
      <d2p1:IsCompleted>false</d2p1:IsCompleted>
      <d2p1:To>0001-01-01T00:00:00</d2p1:To>
    </d2p1:BillingInformation>
    <d2p1:BrennstoffMediumGuid>00000000-0000-0000-0000-000000000000</d2p1:BrennstoffMediumGuid>
    <d2p1:Brennwert>false</d2p1:Brennwert>
    <d2p1:C02Price>0</d2p1:C02Price>
    <d2p1:C02Taxes>0</d2p1:C02Taxes>
    <d2p1:C02Tons>0</d2p1:C02Tons>
    <d2p1:CO2Active>false</d2p1:CO2Active>
    <d2p1:CO2Area>0</d2p1:CO2Area>
    <d2p1:CO2Costs>0</d2p1:CO2Costs>
    <d2p1:CO2EmissionsFactor>0</d2p1:CO2EmissionsFactor>
    <d2p1:CO2KWh>0</d2p1:CO2KWh>
    <d2p1:CO2PriceKnd>false</d2p1:CO2PriceKnd>
    <d2p1:CO2PriceLandlord>0</d2p1:CO2PriceLandlord>
    <d2p1:CO2PriceRenter>0</d2p1:CO2PriceRenter>
    <d2p1:CO2Text>String</d2p1:CO2Text>
    <d2p1:CustomsTax>0</d2p1:CustomsTax>
    <d2p1:DeliveryDate>0001-01-01T00:00:00</d2p1:DeliveryDate>
    <d2p1:ElectricityReliefAmount>0</d2p1:ElectricityReliefAmount>
    <d2p1:ElectricityReliefAmountDescription>String</d2p1:ElectricityReliefAmountDescription>
    <d2p1:EmisionsTax>0</d2p1:EmisionsTax>
    <d2p1:EndMeterReadingValue>0</d2p1:EndMeterReadingValue>
    <d2p1:EnergyReliefAmount>0</d2p1:EnergyReliefAmount>
    <d2p1:EnergyReliefAmountDescription>String</d2p1:EnergyReliefAmountDescription>
    <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
    <d2p1:Heizwert>0</d2p1:Heizwert>
    <d2p1:IncludedCO2SalesTax>0</d2p1:IncludedCO2SalesTax>
    <d2p1:IsCreatedByApp>false</d2p1:IsCreatedByApp>
    <d2p1:IsDeleted>false</d2p1:IsDeleted>
    <d2p1:IsForCommercialUse>false</d2p1:IsForCommercialUse>
    <d2p1:IsHeatingPadsImproved>false</d2p1:IsHeatingPadsImproved>
    <d2p1:IsRenovationRequired>false</d2p1:IsRenovationRequired>
    <d2p1:NoTotalDeductionC02Costs>false</d2p1:NoTotalDeductionC02Costs>
    <d2p1:OtherCharges>0</d2p1:OtherCharges>
    <d2p1:Quantity>0</d2p1:Quantity>
    <d2p1:SalexTax>0</d2p1:SalexTax>
    <d2p1:StartMeterReadingValue>0</d2p1:StartMeterReadingValue>
    <d2p1:TotalC02Weight>0</d2p1:TotalC02Weight>
  </Brennstofflieferung>
  <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>
  <RelatedToBrennstoffMedium xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Models">
    <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
  </RelatedToBrennstoffMedium>
  <RelatedToEnergieVerwerter xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Models">
    <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
  </RelatedToEnergieVerwerter>
</PutBrennstoff>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PutBrennstoffResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Put">
  <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>
</PutBrennstoffResponse>