Billhighway Cloud API

<back to all web services

GetDonation

The following routes are available for this service:
GET/v1.1/Donations/Get/{id}
GET/v1.2/Donations/Get/{id}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetDonation extends GetDonation implements IReturnLegacyException
    {
        
    }

    public static class DonationReceiptsResponse
    {
        public Integer Id = null;
        public String Status = null;
        public String CampaignName = null;
        public Integer CampaignId = null;
        public String Date = null;
        public BigDecimal Amount = null;
        public CreditCardUsed CreditCard = null;
        public DonationLocation Location = null;
        public DonationTransaction Transaction = null;
        
        public Integer getId() { return Id; }
        public DonationReceiptsResponse setId(Integer value) { this.Id = value; return this; }
        public String getStatus() { return Status; }
        public DonationReceiptsResponse setStatus(String value) { this.Status = value; return this; }
        public String getCampaignName() { return CampaignName; }
        public DonationReceiptsResponse setCampaignName(String value) { this.CampaignName = value; return this; }
        public Integer getCampaignId() { return CampaignId; }
        public DonationReceiptsResponse setCampaignId(Integer value) { this.CampaignId = value; return this; }
        public String getDate() { return Date; }
        public DonationReceiptsResponse setDate(String value) { this.Date = value; return this; }
        public BigDecimal getAmount() { return Amount; }
        public DonationReceiptsResponse setAmount(BigDecimal value) { this.Amount = value; return this; }
        public CreditCardUsed getCreditCard() { return CreditCard; }
        public DonationReceiptsResponse setCreditCard(CreditCardUsed value) { this.CreditCard = value; return this; }
        public DonationLocation getLocation() { return Location; }
        public DonationReceiptsResponse setLocation(DonationLocation value) { this.Location = value; return this; }
        public DonationTransaction getTransaction() { return Transaction; }
        public DonationReceiptsResponse setTransaction(DonationTransaction value) { this.Transaction = value; return this; }
    }

    public static class CreditCardUsed
    {
        public String CardHolderName = null;
        public String Icon = null;
        public String CaptureSource = null;
        public String Last4Digits = null;
        public String Type = null;
        
        public String getCardHolderName() { return CardHolderName; }
        public CreditCardUsed setCardHolderName(String value) { this.CardHolderName = value; return this; }
        public String getIcon() { return Icon; }
        public CreditCardUsed setIcon(String value) { this.Icon = value; return this; }
        public String getCaptureSource() { return CaptureSource; }
        public CreditCardUsed setCaptureSource(String value) { this.CaptureSource = value; return this; }
        public String getLast4Digits() { return Last4Digits; }
        public CreditCardUsed setLast4Digits(String value) { this.Last4Digits = value; return this; }
        public String getType() { return Type; }
        public CreditCardUsed setType(String value) { this.Type = value; return this; }
    }

    public static class DonationLocation
    {
        public Double Longitude = null;
        public Double Latitude = null;
        
        public Double getLongitude() { return Longitude; }
        public DonationLocation setLongitude(Double value) { this.Longitude = value; return this; }
        public Double getLatitude() { return Latitude; }
        public DonationLocation setLatitude(Double value) { this.Latitude = value; return this; }
    }

    public static class DonationTransaction
    {
        public Integer Id = null;
        public String Status = null;
        public String DetailUri = null;
        public String CancelUri = null;
        public Integer CreatedBy = null;
        public Integer ClientId = null;
        public Integer GroupId = null;
        
        public Integer getId() { return Id; }
        public DonationTransaction setId(Integer value) { this.Id = value; return this; }
        public String getStatus() { return Status; }
        public DonationTransaction setStatus(String value) { this.Status = value; return this; }
        public String getDetailUri() { return DetailUri; }
        public DonationTransaction setDetailUri(String value) { this.DetailUri = value; return this; }
        public String getCancelUri() { return CancelUri; }
        public DonationTransaction setCancelUri(String value) { this.CancelUri = value; return this; }
        public Integer getCreatedBy() { return CreatedBy; }
        public DonationTransaction setCreatedBy(Integer value) { this.CreatedBy = value; return this; }
        public Integer getClientId() { return ClientId; }
        public DonationTransaction setClientId(Integer value) { this.ClientId = value; return this; }
        public Integer getGroupId() { return GroupId; }
        public DonationTransaction setGroupId(Integer value) { this.GroupId = value; return this; }
    }

}

Java GetDonation DTOs

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

HTTP + CSV

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

GET /v1.1/Donations/Get/{id} HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Id":0,"Status":"String","CampaignName":"String","CampaignId":0,"Date":"String","Amount":0,"CreditCard":{"CardHolderName":"String","Icon":"String","CaptureSource":"String","Last4Digits":"String","Type":"String"},"Location":{"Longitude":0,"Latitude":0},"Transaction":{"Id":0,"Status":"String","DetailUri":"String","CancelUri":"String","CreatedBy":0,"ClientId":0,"GroupId":0}}