TicketUserServices

<back to all web services

DonationListRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:ReadData
The following routes are available for this service:
GET/donations/{OwnerId}
import Foundation
import ServiceStack

public class DonationListRequest : Codable
{
    public var ownerId:Int?
    public var year:Int?

    required public init(){}
}

public class DonationListResult : Codable
{
    public var items:[Donation] = []
    public var totalAmount:Int?
    public var statusCode:Int?
    public var message:String?

    required public init(){}
}

public class Donation : Codable
{
    public var id:Int?
    public var ownerId:Int?
    public var ownerCardTypeId:Int?
    public var ownerCardId:Int?
    public var recurringPaymentId:Int?
    public var payerKennitala:String?
    public var payerName:String?
    public var payerEmail:String?
    public var amount:Int?
    public var currency:String?
    public var paidUTC:Date?
    public var paymentReference:String?
    public var status:String?
    public var refundedUTC:Date?
    public var timeStampCreatedUTC:Date?
    public var timeStampLastChangedUTC:Date?

    required public init(){}
}


Swift DonationListRequest 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 /donations/{OwnerId} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			id: 0,
			ownerId: 0,
			ownerCardTypeId: 0,
			ownerCardId: 0,
			recurringPaymentId: 0,
			payerKennitala: String,
			payerName: String,
			payerEmail: String,
			amount: 0,
			currency: String,
			paidUTC: 0001-01-01,
			paymentReference: String,
			status: String,
			refundedUTC: 0001-01-01,
			timeStampCreatedUTC: 0001-01-01,
			timeStampLastChangedUTC: 0001-01-01
		}
	],
	totalAmount: 0,
	statusCode: 0,
	message: String
}