TicketUserServices

<back to all web services

PayoutCalcRequest

Requires Authentication
Requires the role:Admin
The following routes are available for this service:
GET/payout/calc/{EventId}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class PayoutCalcRequest
    {
        public Integer eventId = null;
        
        public Integer getEventId() { return eventId; }
        public PayoutCalcRequest setEventId(Integer value) { this.eventId = value; return this; }
    }

    public static class PayoutCalcResult
    {
        public Integer eventId = null;
        public String eventName = null;
        public Date timeOfEvent = null;
        public Integer eventOwnerId = null;
        public Long grossAmount = null;
        public Long platformCut = null;
        public Long transactionFee = null;
        public Long freeTicketDeduction = null;
        public Long minimumFeeDeduction = null;
        public Long extraCostDeduction = null;
        public Long netAmount = null;
        public Long kassLegacyAmount = null;
        public Integer freeFoodVoucherCount = null;
        public Boolean skipNoRevenue = null;
        public Integer statusCode = null;
        public String message = null;
        
        public Integer getEventId() { return eventId; }
        public PayoutCalcResult setEventId(Integer value) { this.eventId = value; return this; }
        public String getEventName() { return eventName; }
        public PayoutCalcResult setEventName(String value) { this.eventName = value; return this; }
        public Date getTimeOfEvent() { return timeOfEvent; }
        public PayoutCalcResult setTimeOfEvent(Date value) { this.timeOfEvent = value; return this; }
        public Integer getEventOwnerId() { return eventOwnerId; }
        public PayoutCalcResult setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
        public Long getGrossAmount() { return grossAmount; }
        public PayoutCalcResult setGrossAmount(Long value) { this.grossAmount = value; return this; }
        public Long getPlatformCut() { return platformCut; }
        public PayoutCalcResult setPlatformCut(Long value) { this.platformCut = value; return this; }
        public Long getTransactionFee() { return transactionFee; }
        public PayoutCalcResult setTransactionFee(Long value) { this.transactionFee = value; return this; }
        public Long getFreeTicketDeduction() { return freeTicketDeduction; }
        public PayoutCalcResult setFreeTicketDeduction(Long value) { this.freeTicketDeduction = value; return this; }
        public Long getMinimumFeeDeduction() { return minimumFeeDeduction; }
        public PayoutCalcResult setMinimumFeeDeduction(Long value) { this.minimumFeeDeduction = value; return this; }
        public Long getExtraCostDeduction() { return extraCostDeduction; }
        public PayoutCalcResult setExtraCostDeduction(Long value) { this.extraCostDeduction = value; return this; }
        public Long getNetAmount() { return netAmount; }
        public PayoutCalcResult setNetAmount(Long value) { this.netAmount = value; return this; }
        public Long getKassLegacyAmount() { return kassLegacyAmount; }
        public PayoutCalcResult setKassLegacyAmount(Long value) { this.kassLegacyAmount = value; return this; }
        public Integer getFreeFoodVoucherCount() { return freeFoodVoucherCount; }
        public PayoutCalcResult setFreeFoodVoucherCount(Integer value) { this.freeFoodVoucherCount = value; return this; }
        public Boolean isSkipNoRevenue() { return skipNoRevenue; }
        public PayoutCalcResult setSkipNoRevenue(Boolean value) { this.skipNoRevenue = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public PayoutCalcResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public PayoutCalcResult setMessage(String value) { this.message = value; return this; }
    }

}

Java PayoutCalcRequest 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 /payout/calc/{EventId} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	eventId: 0,
	eventName: String,
	timeOfEvent: 0001-01-01,
	eventOwnerId: 0,
	grossAmount: 0,
	platformCut: 0,
	transactionFee: 0,
	freeTicketDeduction: 0,
	minimumFeeDeduction: 0,
	extraCostDeduction: 0,
	netAmount: 0,
	kassLegacyAmount: 0,
	freeFoodVoucherCount: 0,
	skipNoRevenue: False,
	statusCode: 0,
	message: String
}