TicketUserServices

<back to all web services

DonationPayoutMarkRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
POST/donations/payout/mark
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel

Namespace Global

    Namespace TicketUserServices.ServiceModel

        Public Partial Class DonationPayoutBatchResult
            Public Sub New()
                Rows = New List(Of DonationPayoutRow)
            End Sub

            Public Overridable Property Rows As List(Of DonationPayoutRow)
            Public Overridable Property Count As Integer
            Public Overridable Property DonationAmount As Long
            Public Overridable Property PayoutAmount As Decimal
            Public Overridable Property PayoutAmountIsk As Long
            Public Overridable Property AlreadyPaidCount As Integer
            Public Overridable Property Replayed As Boolean
            Public Overridable Property MarkPaidReference As String
            Public Overridable Property OwnerId As Nullable(Of Integer)
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        End Class

        Public Partial Class DonationPayoutMarkRequest
            Public Sub New()
                TxnPercentByMethod = New Dictionary(Of String, Decimal)
            End Sub

            Public Overridable Property OwnerId As Integer
            Public Overridable Property MarkPaidReference As String
            Public Overridable Property CutoffUTC As Nullable(Of Date)
            Public Overridable Property TxnPercentByMethod As Dictionary(Of String, Decimal)
            Public Overridable Property DefaultTxnPercent As Nullable(Of Decimal)
            Public Overridable Property CreatedBy As String
        End Class

        Public Partial Class DonationPayoutRow
            Public Overridable Property Id As Integer
            Public Overridable Property DonationId As Integer
            Public Overridable Property OwnerId As Integer
            Public Overridable Property OwnerCardId As Nullable(Of Integer)
            Public Overridable Property PaymentMethodId As String
            Public Overridable Property PaymentReference As String
            Public Overridable Property Amount As Decimal
            Public Overridable Property TxnPercent As Decimal
            Public Overridable Property PayoutAmount As Decimal
            Public Overridable Property MarkPaidReference As String
            Public Overridable Property Source As String
            Public Overridable Property Note As String
            Public Overridable Property CreatedUTC As Date
            Public Overridable Property CreatedBy As String
            Public Overridable Property DonationPaidUTC As Nullable(Of Date)
        End Class
    End Namespace
End Namespace

VB.NET DonationPayoutMarkRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /donations/payout/mark HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ownerId":0,"markPaidReference":"String","cutoffUTC":"0001-01-01T00:00:00.0000000","txnPercentByMethod":{"String":0},"defaultTxnPercent":0,"createdBy":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"rows":[{"id":0,"donationId":0,"ownerId":0,"ownerCardId":0,"paymentMethodId":"String","paymentReference":"String","amount":0,"txnPercent":0,"payoutAmount":0,"markPaidReference":"String","source":"String","note":"String","createdUTC":"0001-01-01T00:00:00.0000000","createdBy":"String","donationPaidUTC":"0001-01-01T00:00:00.0000000"}],"count":0,"donationAmount":0,"payoutAmount":0,"payoutAmountIsk":0,"alreadyPaidCount":0,"replayed":false,"markPaidReference":"String","ownerId":0,"statusCode":0,"message":"String"}