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

export class DonationPayoutRow
{
    public id?: number;
    public donationId?: number;
    public ownerId?: number;
    public ownerCardId?: number;
    public paymentMethodId?: string;
    public paymentReference?: string;
    public amount?: number;
    public txnPercent?: number;
    public payoutAmount?: number;
    public markPaidReference?: string;
    public source?: string;
    public note?: string;
    public createdUTC?: string;
    public createdBy?: string;
    public donationPaidUTC?: string;

    public constructor(init?: Partial<DonationPayoutRow>) { (Object as any).assign(this, init); }
}

export class DonationPayoutBatchResult
{
    public rows?: DonationPayoutRow[];
    public count?: number;
    public donationAmount?: number;
    public payoutAmount?: number;
    public payoutAmountIsk?: number;
    public alreadyPaidCount?: number;
    public replayed?: boolean;
    public markPaidReference?: string;
    public ownerId?: number;
    public statusCode?: number;
    public message?: string;

    public constructor(init?: Partial<DonationPayoutBatchResult>) { (Object as any).assign(this, init); }
}

export class DonationPayoutMarkRequest
{
    public ownerId?: number;
    public markPaidReference?: string;
    public cutoffUTC?: string;
    public txnPercentByMethod?: { [index: string]: number; };
    public defaultTxnPercent?: number;
    public createdBy?: string;

    public constructor(init?: Partial<DonationPayoutMarkRequest>) { (Object as any).assign(this, init); }
}

TypeScript DonationPayoutMarkRequest 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.

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

<DonationPayoutMarkRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <CreatedBy>String</CreatedBy>
  <CutoffUTC>0001-01-01T00:00:00</CutoffUTC>
  <DefaultTxnPercent>0</DefaultTxnPercent>
  <MarkPaidReference>String</MarkPaidReference>
  <OwnerId>0</OwnerId>
  <TxnPercentByMethod xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringdecimal>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>0</d2p1:Value>
    </d2p1:KeyValueOfstringdecimal>
  </TxnPercentByMethod>
</DonationPayoutMarkRequest>
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>