| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /donations/payout/mark |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;
namespace TicketUserServices.ServiceModel
{
public partial class DonationPayoutBatchResult
{
public DonationPayoutBatchResult()
{
Rows = new List<DonationPayoutRow>{};
}
public virtual List<DonationPayoutRow> Rows { get; set; }
public virtual int Count { get; set; }
public virtual long DonationAmount { get; set; }
public virtual decimal PayoutAmount { get; set; }
public virtual long PayoutAmountIsk { get; set; }
public virtual int AlreadyPaidCount { get; set; }
public virtual bool Replayed { get; set; }
public virtual string MarkPaidReference { get; set; }
public virtual int? OwnerId { get; set; }
public virtual int StatusCode { get; set; }
public virtual string Message { get; set; }
}
public partial class DonationPayoutMarkRequest
{
public DonationPayoutMarkRequest()
{
TxnPercentByMethod = new Dictionary<string, decimal>{};
}
public virtual int OwnerId { get; set; }
public virtual string MarkPaidReference { get; set; }
public virtual DateTime? CutoffUTC { get; set; }
public virtual Dictionary<string, decimal> TxnPercentByMethod { get; set; }
public virtual decimal? DefaultTxnPercent { get; set; }
public virtual string CreatedBy { get; set; }
}
public partial class DonationPayoutRow
{
public virtual int Id { get; set; }
public virtual int DonationId { get; set; }
public virtual int OwnerId { get; set; }
public virtual int? OwnerCardId { get; set; }
public virtual string PaymentMethodId { get; set; }
public virtual string PaymentReference { get; set; }
public virtual decimal Amount { get; set; }
public virtual decimal TxnPercent { get; set; }
public virtual decimal PayoutAmount { get; set; }
public virtual string MarkPaidReference { get; set; }
public virtual string Source { get; set; }
public virtual string Note { get; set; }
public virtual DateTime CreatedUTC { get; set; }
public virtual string CreatedBy { get; set; }
public virtual DateTime? DonationPaidUTC { get; set; }
}
}
C# DonationPayoutMarkRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
Content-Type: application/json
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: application/json
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"}