Required role: | REGISUserRole |
POST | /DynamicsCRM/TaxReceipts | ||
---|---|---|---|
POST | /DynamicsCRM/TaxReceipts/{regent_id} |
namespace regis.DynamicsCRM.Requests
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type CRMTaxReceiptResponse() =
member val regent_id:Int32 = new Int32() with get,set
member val donor_first_name:String = null with get,set
member val donor_last_name:String = null with get,set
member val guid:String = null with get,set
member val title:String = null with get,set
member val total_paid_amount:Decimal = new Decimal() with get,set
member val total_receipt_amount:Decimal = new Decimal() with get,set
member val is_annual:Boolean = new Boolean() with get,set
member val year:Nullable<Int32> = new Nullable<Int32>() with get,set
member val has_document:Boolean = new Boolean() with get,set
member val tax_receipt_send_method:String = null with get,set
member val status:String = null with get,set
member val tax_receipt_template_guid:String = null with get,set
member val tax_receipt_template_name:String = null with get,set
member val tax_receipt_email:String = null with get,set
member val email_sent_date:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val email_sent_to:String = null with get,set
member val gift_date:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val sent_date:Nullable<DateTime> = new Nullable<DateTime>() with get,set
[<AllowNullLiteral>]
type CRMTaxReceiptsResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val tax_receipts:ResizeArray<CRMTaxReceiptResponse> = new ResizeArray<CRMTaxReceiptResponse>() with get,set
member val from_date:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val to_date:Nullable<DateTime> = new Nullable<DateTime>() with get,set
[<AllowNullLiteral>]
type CRMTaxReceiptsRequest() =
member val regent_id:Nullable<Int32> = new Nullable<Int32>() with get,set
member val from_date:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val to_date:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val has_document:Boolean = new Boolean() with get,set
member val year:Nullable<Int32> = new Nullable<Int32>() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /DynamicsCRM/TaxReceipts HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
regent_id: 0,
from_date: 0001-01-01,
to_date: 0001-01-01,
has_document: False,
year: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }, tax_receipts: [ { regent_id: 0, donor_first_name: String, donor_last_name: String, guid: String, title: String, total_paid_amount: 0, total_receipt_amount: 0, is_annual: False, year: 0, has_document: False, tax_receipt_send_method: String, status: String, tax_receipt_template_guid: String, tax_receipt_template_name: String, tax_receipt_email: String, email_sent_date: 0001-01-01, email_sent_to: String, gift_date: 0001-01-01, sent_date: 0001-01-01 } ], from_date: 0001-01-01, to_date: 0001-01-01 }