TicketUserServices

<back to all web services

EventExtraCostCreateRequest

Requires Authentication
Requires the role:Admin
The following routes are available for this service:
POST/EventExtraCost
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class EventExtraCostCreateRequest
    {
        public EventExtraCost item = null;
        
        public EventExtraCost getItem() { return item; }
        public EventExtraCostCreateRequest setItem(EventExtraCost value) { this.item = value; return this; }
    }

    public static class EventExtraCost
    {
        public Integer id = null;
        public Integer eventId = null;
        public Integer amount = null;
        public String reason = null;
        public Date createdAt = null;
        
        public Integer getId() { return id; }
        public EventExtraCost setId(Integer value) { this.id = value; return this; }
        public Integer getEventId() { return eventId; }
        public EventExtraCost setEventId(Integer value) { this.eventId = value; return this; }
        public Integer getAmount() { return amount; }
        public EventExtraCost setAmount(Integer value) { this.amount = value; return this; }
        public String getReason() { return reason; }
        public EventExtraCost setReason(String value) { this.reason = value; return this; }
        public Date getCreatedAt() { return createdAt; }
        public EventExtraCost setCreatedAt(Date value) { this.createdAt = value; return this; }
    }

    public static class EventExtraCostResult
    {
        public EventExtraCost item = null;
        public Integer statusCode = null;
        public String message = null;
        
        public EventExtraCost getItem() { return item; }
        public EventExtraCostResult setItem(EventExtraCost value) { this.item = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public EventExtraCostResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public EventExtraCostResult setMessage(String value) { this.message = value; return this; }
    }

}

Java EventExtraCostCreateRequest 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.

POST /EventExtraCost HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	item: 
	{
		id: 0,
		eventId: 0,
		amount: 0,
		reason: String,
		createdAt: 0001-01-01
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	item: 
	{
		id: 0,
		eventId: 0,
		amount: 0,
		reason: String,
		createdAt: 0001-01-01
	},
	statusCode: 0,
	message: String
}