| Requires any of the roles: | Admin, Admin |
| POST | /payouts/weekly/preview | ||
|---|---|---|---|
| GET POST | /payouts/weekly/sheet |
export class WeeklyPayoutPreviewRow
{
public eventId?: number;
public eventName?: string;
public timeOfEvent?: string;
public deild?: string;
public eventOwnerName?: string;
public eventOwnerId?: number;
public teamNumber?: string;
public kennitala?: string;
public bankAccount?: string;
public bankGender?: string;
public grossAmount?: number;
public amount?: number;
public constructor(init?: Partial<WeeklyPayoutPreviewRow>) { (Object as any).assign(this, init); }
}
export class WeeklyPayoutMissingBank
{
public eventOwnerName?: string;
public eventOwnerId?: number;
public teamNumber?: string;
public eventId?: number;
public eventName?: string;
public timeOfEvent?: string;
public deild?: string;
public amount?: number;
public reason?: string;
public constructor(init?: Partial<WeeklyPayoutMissingBank>) { (Object as any).assign(this, init); }
}
export class WeeklyPayoutPreviewResult
{
public runDate?: string;
public windowFromInclusive?: string;
public windowToInclusive?: string;
public sheetTitle?: string;
public totalAmount?: number;
public rowCount?: number;
public rows?: WeeklyPayoutPreviewRow[];
public missingBankInfo?: WeeklyPayoutMissingBank[];
public skipped?: WeeklyPayoutMissingBank[];
public sheetCsv?: string;
public missingBankCsv?: string;
public si080Preview?: string;
public statusCode?: number;
public message?: string;
public constructor(init?: Partial<WeeklyPayoutPreviewResult>) { (Object as any).assign(this, init); }
}
export class WeeklyPayoutPreviewRequest
{
public asOf?: string;
public from?: string;
public to?: string;
public constructor(init?: Partial<WeeklyPayoutPreviewRequest>) { (Object as any).assign(this, init); }
}
TypeScript WeeklyPayoutPreviewRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}