TicketUserServices

<back to all web services

DonationPayoutOwnerHistoryRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:ReadData
The following routes are available for this service:
GET/donations/payout/owner/{OwnerId}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class DonationPayoutOwnerHistoryRequest
    {
        public Integer ownerId = null;
        public Date from = null;
        public Date to = null;
        
        public Integer getOwnerId() { return ownerId; }
        public DonationPayoutOwnerHistoryRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
        public Date getFrom() { return from; }
        public DonationPayoutOwnerHistoryRequest setFrom(Date value) { this.from = value; return this; }
        public Date getTo() { return to; }
        public DonationPayoutOwnerHistoryRequest setTo(Date value) { this.to = value; return this; }
    }

    public static class DonationPayoutBatchResult
    {
        public ArrayList<DonationPayoutRow> rows = null;
        public Integer count = null;
        public Long donationAmount = null;
        public BigDecimal payoutAmount = null;
        public Long payoutAmountIsk = null;
        public Integer alreadyPaidCount = null;
        public Boolean replayed = null;
        public String markPaidReference = null;
        public Integer ownerId = null;
        public Integer statusCode = null;
        public String message = null;
        
        public ArrayList<DonationPayoutRow> getRows() { return rows; }
        public DonationPayoutBatchResult setRows(ArrayList<DonationPayoutRow> value) { this.rows = value; return this; }
        public Integer getCount() { return count; }
        public DonationPayoutBatchResult setCount(Integer value) { this.count = value; return this; }
        public Long getDonationAmount() { return donationAmount; }
        public DonationPayoutBatchResult setDonationAmount(Long value) { this.donationAmount = value; return this; }
        public BigDecimal getPayoutAmount() { return payoutAmount; }
        public DonationPayoutBatchResult setPayoutAmount(BigDecimal value) { this.payoutAmount = value; return this; }
        public Long getPayoutAmountIsk() { return payoutAmountIsk; }
        public DonationPayoutBatchResult setPayoutAmountIsk(Long value) { this.payoutAmountIsk = value; return this; }
        public Integer getAlreadyPaidCount() { return alreadyPaidCount; }
        public DonationPayoutBatchResult setAlreadyPaidCount(Integer value) { this.alreadyPaidCount = value; return this; }
        public Boolean isReplayed() { return replayed; }
        public DonationPayoutBatchResult setReplayed(Boolean value) { this.replayed = value; return this; }
        public String getMarkPaidReference() { return markPaidReference; }
        public DonationPayoutBatchResult setMarkPaidReference(String value) { this.markPaidReference = value; return this; }
        public Integer getOwnerId() { return ownerId; }
        public DonationPayoutBatchResult setOwnerId(Integer value) { this.ownerId = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public DonationPayoutBatchResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public DonationPayoutBatchResult setMessage(String value) { this.message = value; return this; }
    }

    public static class DonationPayoutRow
    {
        public Integer id = null;
        public Integer donationId = null;
        public Integer ownerId = null;
        public Integer ownerCardId = null;
        public String paymentMethodId = null;
        public String paymentReference = null;
        public BigDecimal amount = null;
        public BigDecimal txnPercent = null;
        public BigDecimal payoutAmount = null;
        public String markPaidReference = null;
        public String source = null;
        public String note = null;
        public Date createdUTC = null;
        public String createdBy = null;
        public Date donationPaidUTC = null;
        
        public Integer getId() { return id; }
        public DonationPayoutRow setId(Integer value) { this.id = value; return this; }
        public Integer getDonationId() { return donationId; }
        public DonationPayoutRow setDonationId(Integer value) { this.donationId = value; return this; }
        public Integer getOwnerId() { return ownerId; }
        public DonationPayoutRow setOwnerId(Integer value) { this.ownerId = value; return this; }
        public Integer getOwnerCardId() { return ownerCardId; }
        public DonationPayoutRow setOwnerCardId(Integer value) { this.ownerCardId = value; return this; }
        public String getPaymentMethodId() { return paymentMethodId; }
        public DonationPayoutRow setPaymentMethodId(String value) { this.paymentMethodId = value; return this; }
        public String getPaymentReference() { return paymentReference; }
        public DonationPayoutRow setPaymentReference(String value) { this.paymentReference = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public DonationPayoutRow setAmount(BigDecimal value) { this.amount = value; return this; }
        public BigDecimal getTxnPercent() { return txnPercent; }
        public DonationPayoutRow setTxnPercent(BigDecimal value) { this.txnPercent = value; return this; }
        public BigDecimal getPayoutAmount() { return payoutAmount; }
        public DonationPayoutRow setPayoutAmount(BigDecimal value) { this.payoutAmount = value; return this; }
        public String getMarkPaidReference() { return markPaidReference; }
        public DonationPayoutRow setMarkPaidReference(String value) { this.markPaidReference = value; return this; }
        public String getSource() { return source; }
        public DonationPayoutRow setSource(String value) { this.source = value; return this; }
        public String getNote() { return note; }
        public DonationPayoutRow setNote(String value) { this.note = value; return this; }
        public Date getCreatedUTC() { return createdUTC; }
        public DonationPayoutRow setCreatedUTC(Date value) { this.createdUTC = value; return this; }
        public String getCreatedBy() { return createdBy; }
        public DonationPayoutRow setCreatedBy(String value) { this.createdBy = value; return this; }
        public Date getDonationPaidUTC() { return donationPaidUTC; }
        public DonationPayoutRow setDonationPaidUTC(Date value) { this.donationPaidUTC = value; return this; }
    }

}

Java DonationPayoutOwnerHistoryRequest 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/owner/{OwnerId} 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>