regis

<back to all web services

CRMDonationsLegacyRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/DynamicsCRM/DonationsLegacy
namespace regis.DynamicsCRM.Requests

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type CRMDonationResponse() = 
        member val regent_id:Int32 = new Int32() with get,set
        member val contact_addressee:String = null 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 donor_addressee:String = null with get,set
        member val donor_city:String = null with get,set
        member val donor_country:String = null with get,set
        member val donor_owner_full_name:String = null with get,set
        member val is_contact:Boolean = new Boolean() with get,set
        member val is_account:Boolean = new Boolean() with get,set
        member val soft_credit_regent_id:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val soft_credit_contact_addressee:String = null with get,set
        member val soft_credit_contact_first_name:String = null with get,set
        member val soft_credit_contact_last_name:String = null with get,set
        member val soft_credit_contact_spouse_is_main_contact:Boolean = new Boolean() with get,set
        member val soft_credit_contact_city:String = null with get,set
        member val soft_credit_contact_country:String = null with get,set
        member val soft_credit_contact_owner_full_name:String = null with get,set
        member val soft_credit_second_regent_id:String = null with get,set
        member val soft_credit_second_contact_addressee:String = null with get,set
        member val soft_credit_second_contact_first_name:String = null with get,set
        member val soft_credit_second_contact_last_name:String = null with get,set
        member val soft_credit_second_contact_spouse_is_main_contact:Boolean = new Boolean() with get,set
        member val soft_credit_second_contact_city:String = null with get,set
        member val soft_credit_second_contact_country:String = null with get,set
        member val soft_credit_second_contact_owner_full_name:String = null with get,set
        member val spouse_is_main_contact:Boolean = new Boolean() with get,set
        member val import_id:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val donation_id:String = null with get,set
        member val guid:String = null with get,set
        member val name:String = null with get,set
        member val description:String = null with get,set
        member val appeal_code:String = null with get,set
        member val designation:String = null with get,set
        member val designation_description:String = null with get,set
        member val general_ledger_account_number:String = null with get,set
        member val campaign:String = null with get,set
        member val total_pledge_amount:Decimal = new Decimal() with get,set
        member val total_paid_amount:Decimal = new Decimal() with get,set
        member val receipt_amount:Decimal = new Decimal() with get,set
        member val exchange_rate:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val total_paid_canadian_amount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val is_recurring:Boolean = new Boolean() with get,set
        member val is_parent_donation:Boolean = new Boolean() with get,set
        member val currency:String = null with get,set
        member val source:String = null with get,set
        member val channel:String = null with get,set
        member val receipting_organization:String = null with get,set
        member val type:String = null with get,set
        member val acknowledgment_sent:Boolean = new Boolean() with get,set
        member val send_acknowledgment:Boolean = new Boolean() with get,set
        member val acknowledgment_template_guid:String = null with get,set
        member val parent_guid:String = null with get,set
        member val anonymous:Boolean = new Boolean() with get,set
        member val gift_date:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val recurring_gift_start_date:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val recurring_gift_end_date:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val cheque_number:String = null with get,set
        member val version_number:Int32 = new Int32() with get,set
        member val added_date:Nullable<DateTime> = new Nullable<DateTime>() with get,set

    [<AllowNullLiteral>]
    type CRMDonationsResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val donations:ResizeArray<CRMDonationResponse> = new ResizeArray<CRMDonationResponse>() 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 start_version_number:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val end_version_number:Nullable<Int32> = new Nullable<Int32>() with get,set

    [<AllowNullLiteral>]
    type CRMDonationsLegacyRequest() = 
        class end

F# CRMDonationsLegacyRequest 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.

POST /DynamicsCRM/DonationsLegacy HTTP/1.1 
Host: data.regent-college.edu 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CRMDonationsLegacyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.DynamicsCRM.Requests" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CRMDonationsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.DynamicsCRM.Responses">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <donations>
    <CRMDonationResponse>
      <acknowledgment_sent>false</acknowledgment_sent>
      <acknowledgment_template_guid>String</acknowledgment_template_guid>
      <added_date>0001-01-01T00:00:00</added_date>
      <anonymous>false</anonymous>
      <appeal_code>String</appeal_code>
      <campaign>String</campaign>
      <channel>String</channel>
      <cheque_number>String</cheque_number>
      <contact_addressee>String</contact_addressee>
      <currency>String</currency>
      <description>String</description>
      <designation>String</designation>
      <designation_description>String</designation_description>
      <donation_id>String</donation_id>
      <donor_addressee>String</donor_addressee>
      <donor_city>String</donor_city>
      <donor_country>String</donor_country>
      <donor_first_name>String</donor_first_name>
      <donor_last_name>String</donor_last_name>
      <donor_owner_full_name>String</donor_owner_full_name>
      <exchange_rate>0</exchange_rate>
      <general_ledger_account_number>String</general_ledger_account_number>
      <gift_date>0001-01-01T00:00:00</gift_date>
      <guid>String</guid>
      <import_id>0</import_id>
      <is_account>false</is_account>
      <is_contact>false</is_contact>
      <is_parent_donation>false</is_parent_donation>
      <is_recurring>false</is_recurring>
      <name>String</name>
      <parent_guid>String</parent_guid>
      <receipt_amount>0</receipt_amount>
      <receipting_organization>String</receipting_organization>
      <recurring_gift_end_date>0001-01-01T00:00:00</recurring_gift_end_date>
      <recurring_gift_start_date>0001-01-01T00:00:00</recurring_gift_start_date>
      <regent_id>0</regent_id>
      <send_acknowledgment>false</send_acknowledgment>
      <soft_credit_contact_addressee>String</soft_credit_contact_addressee>
      <soft_credit_contact_city>String</soft_credit_contact_city>
      <soft_credit_contact_country>String</soft_credit_contact_country>
      <soft_credit_contact_first_name>String</soft_credit_contact_first_name>
      <soft_credit_contact_last_name>String</soft_credit_contact_last_name>
      <soft_credit_contact_owner_full_name>String</soft_credit_contact_owner_full_name>
      <soft_credit_contact_spouse_is_main_contact>false</soft_credit_contact_spouse_is_main_contact>
      <soft_credit_regent_id>0</soft_credit_regent_id>
      <soft_credit_second_contact_addressee>String</soft_credit_second_contact_addressee>
      <soft_credit_second_contact_city>String</soft_credit_second_contact_city>
      <soft_credit_second_contact_country>String</soft_credit_second_contact_country>
      <soft_credit_second_contact_first_name>String</soft_credit_second_contact_first_name>
      <soft_credit_second_contact_last_name>String</soft_credit_second_contact_last_name>
      <soft_credit_second_contact_owner_full_name>String</soft_credit_second_contact_owner_full_name>
      <soft_credit_second_contact_spouse_is_main_contact>false</soft_credit_second_contact_spouse_is_main_contact>
      <soft_credit_second_regent_id>String</soft_credit_second_regent_id>
      <source>String</source>
      <spouse_is_main_contact>false</spouse_is_main_contact>
      <total_paid_amount>0</total_paid_amount>
      <total_paid_canadian_amount>0</total_paid_canadian_amount>
      <total_pledge_amount>0</total_pledge_amount>
      <type>String</type>
      <version_number>0</version_number>
    </CRMDonationResponse>
  </donations>
  <end_version_number>0</end_version_number>
  <from_date>0001-01-01T00:00:00</from_date>
  <start_version_number>0</start_version_number>
  <to_date>0001-01-01T00:00:00</to_date>
</CRMDonationsResponse>