Server

<back to all web services

GetDirektkostenList

Direktkosten
Requires Authentication
The following routes are available for this service:
GET/api/v1/direktkosten
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 GetDirektkostenList implements IHasBearerToken
    {
        @ApiMember(IsRequired=true, ParameterType="query")
        public String bearerToken = null;

        /**
        * Optional! Follow the format : /api/v1/direktkosten?filter[ObjektGuid]=*
        */
        @DataMember(Name="filter[ObjektGuid]")
        @SerializedName("filter[ObjektGuid]")
        @ApiMember(Description="Optional! Follow the format : /api/v1/direktkosten?filter[ObjektGuid]=*", ParameterType="query")
        public String filterByObjektGuid = null;

        /**
        * Optional! Follow the format : /api/v1/direktkosten?filter[NutzerGuid]=*
        */
        @DataMember(Name="filter[NutzerGuid]")
        @SerializedName("filter[NutzerGuid]")
        @ApiMember(Description="Optional! Follow the format : /api/v1/direktkosten?filter[NutzerGuid]=*", ParameterType="query")
        public String filterByNutzerGuid = null;

        /**
        * Optional! Follow the format : /api/v1/direktkosten?filter[BillingInformationGuid]=*
        */
        @DataMember(Name="filter[BillingInformationGuid]")
        @SerializedName("filter[BillingInformationGuid]")
        @ApiMember(Description="Optional! Follow the format : /api/v1/direktkosten?filter[BillingInformationGuid]=*", ParameterType="query")
        public String filterByBillingInformationGuid = null;
        
        public String getBearerToken() { return bearerToken; }
        public GetDirektkostenList setBearerToken(String value) { this.bearerToken = value; return this; }
        public String getFilterByObjektGuid() { return filterByObjektGuid; }
        public GetDirektkostenList setFilterByObjektGuid(String value) { this.filterByObjektGuid = value; return this; }
        public String getFilterByNutzerGuid() { return filterByNutzerGuid; }
        public GetDirektkostenList setFilterByNutzerGuid(String value) { this.filterByNutzerGuid = value; return this; }
        public String getFilterByBillingInformationGuid() { return filterByBillingInformationGuid; }
        public GetDirektkostenList setFilterByBillingInformationGuid(String value) { this.filterByBillingInformationGuid = value; return this; }
    }

    public static class GetDirektkostenListResponse
    {
        public ArrayList<Direktkosten> direktkostenList = null;
        public ResponseStatus responseStatus = null;
        
        public ArrayList<Direktkosten> getDirektkostenList() { return direktkostenList; }
        public GetDirektkostenListResponse setDirektkostenList(ArrayList<Direktkosten> value) { this.direktkostenList = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public GetDirektkostenListResponse setResponseStatus(ResponseStatus value) { this.responseStatus = 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; }
    }

}

Java GetDirektkostenList DTOs

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

HTTP + JSV

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

GET /api/v1/direktkosten HTTP/1.1 
Host: emg-servdesk.eras-online.de 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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