| GET | /v1.1/Donations/Get/{id} | ||
|---|---|---|---|
| GET | /v1.2/Donations/Get/{id} |
import java.math.*
import java.util.*
import net.servicestack.client.*
open class GetDonation : GetDonation(), IReturnLegacyException
{
}
open class DonationReceiptsResponse
{
var Id:Int? = null
var Status:String? = null
var CampaignName:String? = null
var CampaignId:Int? = null
var Date:String? = null
var Amount:BigDecimal? = null
var CreditCard:CreditCardUsed? = null
var Location:DonationLocation? = null
var Transaction:DonationTransaction? = null
}
open class CreditCardUsed
{
var CardHolderName:String? = null
var Icon:String? = null
var CaptureSource:String? = null
var Last4Digits:String? = null
var Type:String? = null
}
open class DonationLocation
{
var Longitude:Double? = null
var Latitude:Double? = null
}
open class DonationTransaction
{
var Id:Int? = null
var Status:String? = null
var DetailUri:String? = null
var CancelUri:String? = null
var CreatedBy:Int? = null
var ClientId:Int? = null
var GroupId:Int? = null
}
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.
GET /v1.1/Donations/Get/{id} HTTP/1.1
Host: devapi.billhighway.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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}}