| Requires any of the roles: | Admin, Admin |
| 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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<WeeklyPayoutPreviewRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<AsOf>0001-01-01T00:00:00</AsOf>
<From>0001-01-01T00:00:00</From>
<To>0001-01-01T00:00:00</To>
</WeeklyPayoutPreviewRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<WeeklyPayoutPreviewResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Message>String</Message>
<MissingBankCsv>String</MissingBankCsv>
<MissingBankInfo>
<WeeklyPayoutMissingBank>
<Amount>0</Amount>
<Deild>String</Deild>
<EventId>0</EventId>
<EventName>String</EventName>
<EventOwnerId>0</EventOwnerId>
<EventOwnerName>String</EventOwnerName>
<Reason>String</Reason>
<TeamNumber>String</TeamNumber>
<TimeOfEvent>0001-01-01T00:00:00</TimeOfEvent>
</WeeklyPayoutMissingBank>
</MissingBankInfo>
<RowCount>0</RowCount>
<Rows>
<WeeklyPayoutPreviewRow>
<Amount>0</Amount>
<BankAccount>String</BankAccount>
<BankGender>String</BankGender>
<Deild>String</Deild>
<EventId>0</EventId>
<EventName>String</EventName>
<EventOwnerId>0</EventOwnerId>
<EventOwnerName>String</EventOwnerName>
<GrossAmount>0</GrossAmount>
<Kennitala>String</Kennitala>
<TeamNumber>String</TeamNumber>
<TimeOfEvent>0001-01-01T00:00:00</TimeOfEvent>
</WeeklyPayoutPreviewRow>
</Rows>
<RunDate>0001-01-01T00:00:00</RunDate>
<SheetCsv>String</SheetCsv>
<SheetTitle>String</SheetTitle>
<Si080Preview>String</Si080Preview>
<Skipped>
<WeeklyPayoutMissingBank>
<Amount>0</Amount>
<Deild>String</Deild>
<EventId>0</EventId>
<EventName>String</EventName>
<EventOwnerId>0</EventOwnerId>
<EventOwnerName>String</EventOwnerName>
<Reason>String</Reason>
<TeamNumber>String</TeamNumber>
<TimeOfEvent>0001-01-01T00:00:00</TimeOfEvent>
</WeeklyPayoutMissingBank>
</Skipped>
<StatusCode>0</StatusCode>
<TotalAmount>0</TotalAmount>
<WindowFromInclusive>0001-01-01T00:00:00</WindowFromInclusive>
<WindowToInclusive>0001-01-01T00:00:00</WindowToInclusive>
</WeeklyPayoutPreviewResult>