TicketUserServices

<back to all web services

DonationPayoutByReferenceRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:ReadData
The following routes are available for this service:
GET/donations/payout/{MarkPaidReference}
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 DonationPayoutByReferenceRequest
    {
        public virtual string MarkPaidReference { 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# DonationPayoutByReferenceRequest DTOs

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

HTTP + XML

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

GET /donations/payout/{MarkPaidReference} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DonationPayoutBatchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <AlreadyPaidCount>0</AlreadyPaidCount>
  <Count>0</Count>
  <DonationAmount>0</DonationAmount>
  <MarkPaidReference>String</MarkPaidReference>
  <Message>String</Message>
  <OwnerId>0</OwnerId>
  <PayoutAmount>0</PayoutAmount>
  <PayoutAmountIsk>0</PayoutAmountIsk>
  <Replayed>false</Replayed>
  <Rows>
    <DonationPayoutRow>
      <Amount>0</Amount>
      <CreatedBy>String</CreatedBy>
      <CreatedUTC>0001-01-01T00:00:00</CreatedUTC>
      <DonationId>0</DonationId>
      <DonationPaidUTC>0001-01-01T00:00:00</DonationPaidUTC>
      <Id>0</Id>
      <MarkPaidReference>String</MarkPaidReference>
      <Note>String</Note>
      <OwnerCardId>0</OwnerCardId>
      <OwnerId>0</OwnerId>
      <PaymentMethodId>String</PaymentMethodId>
      <PaymentReference>String</PaymentReference>
      <PayoutAmount>0</PayoutAmount>
      <Source>String</Source>
      <TxnPercent>0</TxnPercent>
    </DonationPayoutRow>
  </Rows>
  <StatusCode>0</StatusCode>
</DonationPayoutBatchResult>