| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /donations/payout/manual |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class DonationPayoutManualRequest
{
public Integer donationId = null;
public BigDecimal payoutAmount = null;
public BigDecimal txnPercent = null;
public String markPaidReference = null;
public String note = null;
public String createdBy = null;
public Integer getDonationId() { return donationId; }
public DonationPayoutManualRequest setDonationId(Integer value) { this.donationId = value; return this; }
public BigDecimal getPayoutAmount() { return payoutAmount; }
public DonationPayoutManualRequest setPayoutAmount(BigDecimal value) { this.payoutAmount = value; return this; }
public BigDecimal getTxnPercent() { return txnPercent; }
public DonationPayoutManualRequest setTxnPercent(BigDecimal value) { this.txnPercent = value; return this; }
public String getMarkPaidReference() { return markPaidReference; }
public DonationPayoutManualRequest setMarkPaidReference(String value) { this.markPaidReference = value; return this; }
public String getNote() { return note; }
public DonationPayoutManualRequest setNote(String value) { this.note = value; return this; }
public String getCreatedBy() { return createdBy; }
public DonationPayoutManualRequest setCreatedBy(String value) { this.createdBy = 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 DonationPayoutManualRequest 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/manual HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"donationId":0,"payoutAmount":0,"txnPercent":0,"markPaidReference":"String","note":"String","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"}