Server

<back to all web services

PutDirektkosten

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

public class dtos
{

    public static class PutDirektkosten implements IHasBearerToken
    {
        @ApiMember(IsRequired=true, ParameterType="body")
        public Direktkosten direktkosten = null;

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

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

        @ApiMember(IsRequired=true, ParameterType="body")
        public String bearerToken = null;
        
        public Direktkosten getDirektkosten() { return direktkosten; }
        public PutDirektkosten setDirektkosten(Direktkosten value) { this.direktkosten = value; return this; }
        public RelatedTo getRelatedToObjekt() { return relatedToObjekt; }
        public PutDirektkosten setRelatedToObjekt(RelatedTo value) { this.relatedToObjekt = value; return this; }
        public RelatedTo getRelatedToNutzer() { return relatedToNutzer; }
        public PutDirektkosten setRelatedToNutzer(RelatedTo value) { this.relatedToNutzer = value; return this; }
        public String getBearerToken() { return bearerToken; }
        public PutDirektkosten setBearerToken(String value) { this.bearerToken = value; return this; }
    }

    @DataContract
    public static class Direktkosten
    {
        @DataMember
        public UUID guid = null;

        @DataMember
        public String label = null;

        @DataMember
        public Date date = null;

        @DataMember
        public BigDecimal brutto = null;

        @DataMember
        public BigDecimal salesTax = null;

        @DataMember
        public BigDecimal quantity = null;

        @DataMember
        public String type = null;

        @DataMember
        public Boolean isDeleted = null;

        @DataMember
        public Boolean isCreatedByApp = null;

        @DataMember
        public UUID nutzerGuid = null;

        @DataMember
        public BillingInformation billingInformation = null;
        
        public UUID getGuid() { return guid; }
        public Direktkosten setGuid(UUID value) { this.guid = value; return this; }
        public String getLabel() { return label; }
        public Direktkosten setLabel(String value) { this.label = value; return this; }
        public Date getDate() { return date; }
        public Direktkosten setDate(Date value) { this.date = value; return this; }
        public BigDecimal getBrutto() { return brutto; }
        public Direktkosten setBrutto(BigDecimal value) { this.brutto = value; return this; }
        public BigDecimal getSalesTax() { return salesTax; }
        public Direktkosten setSalesTax(BigDecimal value) { this.salesTax = value; return this; }
        public BigDecimal getQuantity() { return quantity; }
        public Direktkosten setQuantity(BigDecimal value) { this.quantity = value; return this; }
        public String getType() { return type; }
        public Direktkosten setType(String value) { this.type = value; return this; }
        public Boolean getIsDeleted() { return isDeleted; }
        public Direktkosten setIsDeleted(Boolean value) { this.isDeleted = value; return this; }
        public Boolean getIsCreatedByApp() { return isCreatedByApp; }
        public Direktkosten setIsCreatedByApp(Boolean value) { this.isCreatedByApp = value; return this; }
        public UUID getNutzerGuid() { return nutzerGuid; }
        public Direktkosten setNutzerGuid(UUID value) { this.nutzerGuid = value; return this; }
        public BillingInformation getBillingInformation() { return billingInformation; }
        public Direktkosten 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 PutDirektkostenResponse
    {
        public ResponseStatus responseStatus = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public PutDirektkostenResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java PutDirektkosten 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/direktkosten HTTP/1.1 
Host: elotesch-servdesk.eras-online.de 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<PutDirektkosten 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>
  <Direktkosten xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Models">
    <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:Brutto>0</d2p1:Brutto>
    <d2p1:Date>0001-01-01T00:00:00</d2p1:Date>
    <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
    <d2p1:IsCreatedByApp>false</d2p1:IsCreatedByApp>
    <d2p1:IsDeleted>false</d2p1:IsDeleted>
    <d2p1:Label>String</d2p1:Label>
    <d2p1:NutzerGuid>00000000-0000-0000-0000-000000000000</d2p1:NutzerGuid>
    <d2p1:Quantity>0</d2p1:Quantity>
    <d2p1:SalesTax>0</d2p1:SalesTax>
    <d2p1:Type>String</d2p1:Type>
  </Direktkosten>
  <RelatedToNutzer xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Models">
    <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
  </RelatedToNutzer>
  <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>
</PutDirektkosten>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PutDirektkostenResponse 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>
</PutDirektkostenResponse>