TicketUserServices

<back to all web services

WeeklyPayoutPreviewRequest

Requires Authentication
Requires any of the roles:Admin, Admin
The following routes are available for this service:
POST/payouts/weekly/preview
GET POST/payouts/weekly/sheet
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class WeeklyPayoutPreviewRequest
    {
        public Date asOf = null;
        public Date from = null;
        public Date to = null;
        
        public Date getAsOf() { return asOf; }
        public WeeklyPayoutPreviewRequest setAsOf(Date value) { this.asOf = value; return this; }
        public Date getFrom() { return from; }
        public WeeklyPayoutPreviewRequest setFrom(Date value) { this.from = value; return this; }
        public Date getTo() { return to; }
        public WeeklyPayoutPreviewRequest setTo(Date value) { this.to = value; return this; }
    }

    public static class WeeklyPayoutPreviewResult
    {
        public Date runDate = null;
        public Date windowFromInclusive = null;
        public Date windowToInclusive = null;
        public String sheetTitle = null;
        public Long totalAmount = null;
        public Integer rowCount = null;
        public ArrayList<WeeklyPayoutPreviewRow> rows = null;
        public ArrayList<WeeklyPayoutMissingBank> missingBankInfo = null;
        public ArrayList<WeeklyPayoutMissingBank> skipped = null;
        public String sheetCsv = null;
        public String missingBankCsv = null;
        public String si080Preview = null;
        public Integer statusCode = null;
        public String message = null;
        
        public Date getRunDate() { return runDate; }
        public WeeklyPayoutPreviewResult setRunDate(Date value) { this.runDate = value; return this; }
        public Date getWindowFromInclusive() { return windowFromInclusive; }
        public WeeklyPayoutPreviewResult setWindowFromInclusive(Date value) { this.windowFromInclusive = value; return this; }
        public Date getWindowToInclusive() { return windowToInclusive; }
        public WeeklyPayoutPreviewResult setWindowToInclusive(Date value) { this.windowToInclusive = value; return this; }
        public String getSheetTitle() { return sheetTitle; }
        public WeeklyPayoutPreviewResult setSheetTitle(String value) { this.sheetTitle = value; return this; }
        public Long getTotalAmount() { return totalAmount; }
        public WeeklyPayoutPreviewResult setTotalAmount(Long value) { this.totalAmount = value; return this; }
        public Integer getRowCount() { return rowCount; }
        public WeeklyPayoutPreviewResult setRowCount(Integer value) { this.rowCount = value; return this; }
        public ArrayList<WeeklyPayoutPreviewRow> getRows() { return rows; }
        public WeeklyPayoutPreviewResult setRows(ArrayList<WeeklyPayoutPreviewRow> value) { this.rows = value; return this; }
        public ArrayList<WeeklyPayoutMissingBank> getMissingBankInfo() { return missingBankInfo; }
        public WeeklyPayoutPreviewResult setMissingBankInfo(ArrayList<WeeklyPayoutMissingBank> value) { this.missingBankInfo = value; return this; }
        public ArrayList<WeeklyPayoutMissingBank> getSkipped() { return skipped; }
        public WeeklyPayoutPreviewResult setSkipped(ArrayList<WeeklyPayoutMissingBank> value) { this.skipped = value; return this; }
        public String getSheetCsv() { return sheetCsv; }
        public WeeklyPayoutPreviewResult setSheetCsv(String value) { this.sheetCsv = value; return this; }
        public String getMissingBankCsv() { return missingBankCsv; }
        public WeeklyPayoutPreviewResult setMissingBankCsv(String value) { this.missingBankCsv = value; return this; }
        public String getSi080Preview() { return si080Preview; }
        public WeeklyPayoutPreviewResult setSi080Preview(String value) { this.si080Preview = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public WeeklyPayoutPreviewResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public WeeklyPayoutPreviewResult setMessage(String value) { this.message = value; return this; }
    }

    public static class WeeklyPayoutPreviewRow
    {
        public Integer eventId = null;
        public String eventName = null;
        public Date timeOfEvent = null;
        public String deild = null;
        public String eventOwnerName = null;
        public Integer eventOwnerId = null;
        public String teamNumber = null;
        public String kennitala = null;
        public String bankAccount = null;
        public String bankGender = null;
        public Long grossAmount = null;
        public Long amount = null;
        
        public Integer getEventId() { return eventId; }
        public WeeklyPayoutPreviewRow setEventId(Integer value) { this.eventId = value; return this; }
        public String getEventName() { return eventName; }
        public WeeklyPayoutPreviewRow setEventName(String value) { this.eventName = value; return this; }
        public Date getTimeOfEvent() { return timeOfEvent; }
        public WeeklyPayoutPreviewRow setTimeOfEvent(Date value) { this.timeOfEvent = value; return this; }
        public String getDeild() { return deild; }
        public WeeklyPayoutPreviewRow setDeild(String value) { this.deild = value; return this; }
        public String getEventOwnerName() { return eventOwnerName; }
        public WeeklyPayoutPreviewRow setEventOwnerName(String value) { this.eventOwnerName = value; return this; }
        public Integer getEventOwnerId() { return eventOwnerId; }
        public WeeklyPayoutPreviewRow setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
        public String getTeamNumber() { return teamNumber; }
        public WeeklyPayoutPreviewRow setTeamNumber(String value) { this.teamNumber = value; return this; }
        public String getKennitala() { return kennitala; }
        public WeeklyPayoutPreviewRow setKennitala(String value) { this.kennitala = value; return this; }
        public String getBankAccount() { return bankAccount; }
        public WeeklyPayoutPreviewRow setBankAccount(String value) { this.bankAccount = value; return this; }
        public String getBankGender() { return bankGender; }
        public WeeklyPayoutPreviewRow setBankGender(String value) { this.bankGender = value; return this; }
        public Long getGrossAmount() { return grossAmount; }
        public WeeklyPayoutPreviewRow setGrossAmount(Long value) { this.grossAmount = value; return this; }
        public Long getAmount() { return amount; }
        public WeeklyPayoutPreviewRow setAmount(Long value) { this.amount = value; return this; }
    }

    public static class WeeklyPayoutMissingBank
    {
        public String eventOwnerName = null;
        public Integer eventOwnerId = null;
        public String teamNumber = null;
        public Integer eventId = null;
        public String eventName = null;
        public Date timeOfEvent = null;
        public String deild = null;
        public Long amount = null;
        public String reason = null;
        
        public String getEventOwnerName() { return eventOwnerName; }
        public WeeklyPayoutMissingBank setEventOwnerName(String value) { this.eventOwnerName = value; return this; }
        public Integer getEventOwnerId() { return eventOwnerId; }
        public WeeklyPayoutMissingBank setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
        public String getTeamNumber() { return teamNumber; }
        public WeeklyPayoutMissingBank setTeamNumber(String value) { this.teamNumber = value; return this; }
        public Integer getEventId() { return eventId; }
        public WeeklyPayoutMissingBank setEventId(Integer value) { this.eventId = value; return this; }
        public String getEventName() { return eventName; }
        public WeeklyPayoutMissingBank setEventName(String value) { this.eventName = value; return this; }
        public Date getTimeOfEvent() { return timeOfEvent; }
        public WeeklyPayoutMissingBank setTimeOfEvent(Date value) { this.timeOfEvent = value; return this; }
        public String getDeild() { return deild; }
        public WeeklyPayoutMissingBank setDeild(String value) { this.deild = value; return this; }
        public Long getAmount() { return amount; }
        public WeeklyPayoutMissingBank setAmount(Long value) { this.amount = value; return this; }
        public String getReason() { return reason; }
        public WeeklyPayoutMissingBank setReason(String value) { this.reason = value; return this; }
    }

}

Java WeeklyPayoutPreviewRequest 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 /payouts/weekly/preview HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	asOf: 0001-01-01,
	from: 0001-01-01,
	to: 0001-01-01
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	runDate: 0001-01-01,
	windowFromInclusive: 0001-01-01,
	windowToInclusive: 0001-01-01,
	sheetTitle: String,
	totalAmount: 0,
	rowCount: 0,
	rows: 
	[
		{
			eventId: 0,
			eventName: String,
			timeOfEvent: 0001-01-01,
			deild: String,
			eventOwnerName: String,
			eventOwnerId: 0,
			teamNumber: String,
			kennitala: String,
			bankAccount: String,
			bankGender: String,
			grossAmount: 0,
			amount: 0
		}
	],
	missingBankInfo: 
	[
		{
			eventOwnerName: String,
			eventOwnerId: 0,
			teamNumber: String,
			eventId: 0,
			eventName: String,
			timeOfEvent: 0001-01-01,
			deild: String,
			amount: 0,
			reason: String
		}
	],
	skipped: 
	[
		{
			eventOwnerName: String,
			eventOwnerId: 0,
			teamNumber: String,
			eventId: 0,
			eventName: String,
			timeOfEvent: 0001-01-01,
			deild: String,
			amount: 0,
			reason: String
		}
	],
	sheetCsv: String,
	missingBankCsv: String,
	si080Preview: String,
	statusCode: 0,
	message: String
}