| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /donations/payout/mark |
|---|
namespace TicketUserServices.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type DonationPayoutRow() =
member val Id:Int32 = new Int32() with get,set
member val DonationId:Int32 = new Int32() with get,set
member val OwnerId:Int32 = new Int32() with get,set
member val OwnerCardId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val PaymentMethodId:String = null with get,set
member val PaymentReference:String = null with get,set
member val Amount:Decimal = new Decimal() with get,set
member val TxnPercent:Decimal = new Decimal() with get,set
member val PayoutAmount:Decimal = new Decimal() with get,set
member val MarkPaidReference:String = null with get,set
member val Source:String = null with get,set
member val Note:String = null with get,set
member val CreatedUTC:DateTime = new DateTime() with get,set
member val CreatedBy:String = null with get,set
member val DonationPaidUTC:Nullable<DateTime> = new Nullable<DateTime>() with get,set
[<AllowNullLiteral>]
type DonationPayoutBatchResult() =
member val Rows:ResizeArray<DonationPayoutRow> = new ResizeArray<DonationPayoutRow>() with get,set
member val Count:Int32 = new Int32() with get,set
member val DonationAmount:Int64 = new Int64() with get,set
member val PayoutAmount:Decimal = new Decimal() with get,set
member val PayoutAmountIsk:Int64 = new Int64() with get,set
member val AlreadyPaidCount:Int32 = new Int32() with get,set
member val Replayed:Boolean = new Boolean() with get,set
member val MarkPaidReference:String = null with get,set
member val OwnerId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val StatusCode:Int32 = new Int32() with get,set
member val Message:String = null with get,set
[<AllowNullLiteral>]
type DonationPayoutMarkRequest() =
member val OwnerId:Int32 = new Int32() with get,set
member val MarkPaidReference:String = null with get,set
member val CutoffUTC:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val TxnPercentByMethod:Dictionary<String, Decimal> = new Dictionary<String, Decimal>() with get,set
member val DefaultTxnPercent:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val CreatedBy:String = null with get,set
F# DonationPayoutMarkRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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"}