regis

<back to all web services

CRMDonationRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/DynamicsCRM/Donation/{donation_id}
import 'package:servicestack/servicestack.dart';

class CRMDonationRequest implements IConvertible
{
    String? donation_id;

    CRMDonationRequest({this.donation_id});
    CRMDonationRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        donation_id = json['donation_id'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'donation_id': donation_id
    };

    getTypeName() => "CRMDonationRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
    'CRMDonationRequest': TypeInfo(TypeOf.Class, create:() => CRMDonationRequest()),
});

Dart CRMDonationRequest DTOs

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

HTTP + JSV

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

POST /DynamicsCRM/Donation/{donation_id} HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	donation_id: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

[
	{
		regent_id: 0,
		contact_addressee: String,
		donor_first_name: String,
		donor_last_name: String,
		donor_addressee: String,
		donor_city: String,
		donor_country: String,
		donor_owner_full_name: String,
		is_contact: False,
		is_account: False,
		soft_credit_regent_id: 0,
		soft_credit_contact_addressee: String,
		soft_credit_contact_first_name: String,
		soft_credit_contact_last_name: String,
		soft_credit_contact_spouse_is_main_contact: False,
		soft_credit_contact_city: String,
		soft_credit_contact_country: String,
		soft_credit_contact_owner_full_name: String,
		soft_credit_second_regent_id: String,
		soft_credit_second_contact_addressee: String,
		soft_credit_second_contact_first_name: String,
		soft_credit_second_contact_last_name: String,
		soft_credit_second_contact_spouse_is_main_contact: False,
		soft_credit_second_contact_city: String,
		soft_credit_second_contact_country: String,
		soft_credit_second_contact_owner_full_name: String,
		spouse_is_main_contact: False,
		import_id: 0,
		donation_id: String,
		guid: String,
		name: String,
		description: String,
		appeal_code: String,
		designation: String,
		designation_description: String,
		general_ledger_account_number: String,
		campaign: String,
		total_pledge_amount: 0,
		total_paid_amount: 0,
		receipt_amount: 0,
		exchange_rate: 0,
		total_paid_canadian_amount: 0,
		is_recurring: False,
		is_parent_donation: False,
		currency: String,
		source: String,
		channel: String,
		receipting_organization: String,
		type: String,
		acknowledgment_sent: False,
		send_acknowledgment: False,
		acknowledgment_template_guid: String,
		parent_guid: String,
		anonymous: False,
		gift_date: 0001-01-01,
		recurring_gift_start_date: 0001-01-01,
		recurring_gift_end_date: 0001-01-01,
		cheque_number: String,
		version_number: 0,
		added_date: 0001-01-01
	}
]