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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: marneth-messdienst-servdesk.eras-online.de 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"direktkosten":{"guid":"00000000000000000000000000000000","label":"String","date":"0001-01-01T00:00:00.0000000Z","brutto":0,"salesTax":0,"quantity":0,"type":"String","isDeleted":false,"isCreatedByApp":false,"nutzerGuid":"00000000000000000000000000000000","billingInformation":{"guid":"String","from":"0001-01-01T00:00:00.0000000Z","to":"0001-01-01T00:00:00.0000000Z","isCompleted":false,"hasNebenkosten":false}},"relatedToObjekt":{"guid":"00000000000000000000000000000000"},"relatedToNutzer":{"guid":"00000000000000000000000000000000"},"bearerToken":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}