TicketUserServices

<back to all web services

StigHistoryRequest

Requires Authentication
Requires the role:AdminRequires the permission:ReadData
The following routes are available for this service:
GET/stig/history

export class LocalizedMessage
{
    public is?: string;
    public en?: string;

    public constructor(init?: Partial<LocalizedMessage>) { (Object as any).assign(this, init); }
}

export class StigHistoryEntry
{
    public id?: number;
    public kind?: string;
    public label?: LocalizedMessage;
    public amount?: number;
    public affectsBalance?: boolean;
    public eventId?: number;
    public eventName?: string;
    public eventTimeUtc?: string;
    public ownerId?: number;
    public ownerName?: string;
    public ticketId?: number;
    public orderReference?: string;
    public sourceAmountMinor?: number;
    public multiplierBasisPoints?: number;
    public campaignCode?: string;
    public status?: string;
    public createdUtc?: string;
    public note?: string;

    public constructor(init?: Partial<StigHistoryEntry>) { (Object as any).assign(this, init); }
}

export class StigHistoryResult
{
    public fullPhoneNumber?: string;
    public known?: boolean;
    public items?: StigHistoryEntry[];
    public totalCount?: number;
    public skip?: number;
    public take?: number;
    public statusCode?: number;
    public message?: string;

    public constructor(init?: Partial<StigHistoryResult>) { (Object as any).assign(this, init); }
}

export class StigHistoryRequest
{
    public fullPhoneNumber?: string;
    public skip?: number;
    public take?: number;
    public includeHolds?: boolean;

    public constructor(init?: Partial<StigHistoryRequest>) { (Object as any).assign(this, init); }
}

TypeScript StigHistoryRequest 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 /stig/history HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	fullPhoneNumber: String,
	known: False,
	items: 
	[
		{
			id: 0,
			kind: String,
			label: 
			{
				is: String,
				en: String
			},
			amount: 0,
			affectsBalance: False,
			eventId: 0,
			eventName: String,
			eventTimeUtc: 0001-01-01,
			ownerId: 0,
			ownerName: String,
			ticketId: 0,
			orderReference: String,
			sourceAmountMinor: 0,
			multiplierBasisPoints: 0,
			campaignCode: String,
			status: String,
			createdUtc: 0001-01-01,
			note: String
		}
	],
	totalCount: 0,
	skip: 0,
	take: 0,
	statusCode: 0,
	message: String
}