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

GET /payout/calc/{EventId} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PayoutCalcResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <EventId>0</EventId>
  <EventName>String</EventName>
  <EventOwnerId>0</EventOwnerId>
  <ExtraCostDeduction>0</ExtraCostDeduction>
  <FreeFoodVoucherCount>0</FreeFoodVoucherCount>
  <FreeTicketDeduction>0</FreeTicketDeduction>
  <GrossAmount>0</GrossAmount>
  <KassLegacyAmount>0</KassLegacyAmount>
  <Message>String</Message>
  <MinimumFeeDeduction>0</MinimumFeeDeduction>
  <NetAmount>0</NetAmount>
  <PlatformCut>0</PlatformCut>
  <SkipNoRevenue>false</SkipNoRevenue>
  <StatusCode>0</StatusCode>
  <TimeOfEvent>0001-01-01T00:00:00</TimeOfEvent>
  <TransactionFee>0</TransactionFee>
</PayoutCalcResult>