regis

<back to all web services

CRMDonationsRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/DynamicsCRM/Donations
POST/DynamicsCRM/Donations/{regent_id}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class CRMDonationsRequest
    {
        public Integer regent_id = null;
        public Date from_date = null;
        public Date to_date = null;
        public Integer start_version_number = null;
        public Integer end_version_number = null;
        public Boolean is_missing_acknowledgement = null;
        public Boolean has_acknowledgement_letter = null;
        
        public Integer getRegentId() { return regent_id; }
        public CRMDonationsRequest setRegentId(Integer value) { this.regent_id = value; return this; }
        public Date getFromDate() { return from_date; }
        public CRMDonationsRequest setFromDate(Date value) { this.from_date = value; return this; }
        public Date getToDate() { return to_date; }
        public CRMDonationsRequest setToDate(Date value) { this.to_date = value; return this; }
        public Integer getStartVersionNumber() { return start_version_number; }
        public CRMDonationsRequest setStartVersionNumber(Integer value) { this.start_version_number = value; return this; }
        public Integer getEndVersionNumber() { return end_version_number; }
        public CRMDonationsRequest setEndVersionNumber(Integer value) { this.end_version_number = value; return this; }
        public Boolean getIsMissingAcknowledgement() { return is_missing_acknowledgement; }
        public CRMDonationsRequest setIsMissingAcknowledgement(Boolean value) { this.is_missing_acknowledgement = value; return this; }
        public Boolean isHasAcknowledgementLetter() { return has_acknowledgement_letter; }
        public CRMDonationsRequest setHasAcknowledgementLetter(Boolean value) { this.has_acknowledgement_letter = value; return this; }
    }

    public static class CRMDonationsResponse
    {
        public ResponseStatus responseStatus = null;
        public ArrayList<CRMDonationResponse> donations = null;
        public Date from_date = null;
        public Date to_date = null;
        public Integer start_version_number = null;
        public Integer end_version_number = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public CRMDonationsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
        public ArrayList<CRMDonationResponse> getDonations() { return donations; }
        public CRMDonationsResponse setDonations(ArrayList<CRMDonationResponse> value) { this.donations = value; return this; }
        public Date getFromDate() { return from_date; }
        public CRMDonationsResponse setFromDate(Date value) { this.from_date = value; return this; }
        public Date getToDate() { return to_date; }
        public CRMDonationsResponse setToDate(Date value) { this.to_date = value; return this; }
        public Integer getStartVersionNumber() { return start_version_number; }
        public CRMDonationsResponse setStartVersionNumber(Integer value) { this.start_version_number = value; return this; }
        public Integer getEndVersionNumber() { return end_version_number; }
        public CRMDonationsResponse setEndVersionNumber(Integer value) { this.end_version_number = value; return this; }
    }

    public static class CRMDonationResponse
    {
        public Integer regent_id = null;
        public String contact_addressee = null;
        public String donor_first_name = null;
        public String donor_last_name = null;
        public String donor_addressee = null;
        public String donor_city = null;
        public String donor_country = null;
        public String donor_owner_full_name = null;
        public Boolean is_contact = null;
        public Boolean is_account = null;
        public Integer soft_credit_regent_id = null;
        public String soft_credit_contact_addressee = null;
        public String soft_credit_contact_first_name = null;
        public String soft_credit_contact_last_name = null;
        public Boolean soft_credit_contact_spouse_is_main_contact = null;
        public String soft_credit_contact_city = null;
        public String soft_credit_contact_country = null;
        public String soft_credit_contact_owner_full_name = null;
        public String soft_credit_second_regent_id = null;
        public String soft_credit_second_contact_addressee = null;
        public String soft_credit_second_contact_first_name = null;
        public String soft_credit_second_contact_last_name = null;
        public Boolean soft_credit_second_contact_spouse_is_main_contact = null;
        public String soft_credit_second_contact_city = null;
        public String soft_credit_second_contact_country = null;
        public String soft_credit_second_contact_owner_full_name = null;
        public Boolean spouse_is_main_contact = null;
        public Integer import_id = null;
        public String donation_id = null;
        public String guid = null;
        public String name = null;
        public String description = null;
        public String appeal_code = null;
        public String designation = null;
        public String designation_description = null;
        public String general_ledger_account_number = null;
        public String campaign = null;
        public BigDecimal total_pledge_amount = null;
        public BigDecimal total_paid_amount = null;
        public BigDecimal receipt_amount = null;
        public BigDecimal exchange_rate = null;
        public BigDecimal total_paid_canadian_amount = null;
        public Boolean is_recurring = null;
        public Boolean is_parent_donation = null;
        public String currency = null;
        public String source = null;
        public String channel = null;
        public String receipting_organization = null;
        public String type = null;
        public Boolean acknowledgment_sent = null;
        public Boolean send_acknowledgment = null;
        public String acknowledgment_template_guid = null;
        public String parent_guid = null;
        public Boolean anonymous = null;
        public Date gift_date = null;
        public Date recurring_gift_start_date = null;
        public Date recurring_gift_end_date = null;
        public String cheque_number = null;
        public Integer version_number = null;
        public Date added_date = null;
        
        public Integer getRegentId() { return regent_id; }
        public CRMDonationResponse setRegentId(Integer value) { this.regent_id = value; return this; }
        public String getContactAddressee() { return contact_addressee; }
        public CRMDonationResponse setContactAddressee(String value) { this.contact_addressee = value; return this; }
        public String getDonorFirstName() { return donor_first_name; }
        public CRMDonationResponse setDonorFirstName(String value) { this.donor_first_name = value; return this; }
        public String getDonorLastName() { return donor_last_name; }
        public CRMDonationResponse setDonorLastName(String value) { this.donor_last_name = value; return this; }
        public String getDonorAddressee() { return donor_addressee; }
        public CRMDonationResponse setDonorAddressee(String value) { this.donor_addressee = value; return this; }
        public String getDonorCity() { return donor_city; }
        public CRMDonationResponse setDonorCity(String value) { this.donor_city = value; return this; }
        public String getDonorCountry() { return donor_country; }
        public CRMDonationResponse setDonorCountry(String value) { this.donor_country = value; return this; }
        public String getDonorOwnerFullName() { return donor_owner_full_name; }
        public CRMDonationResponse setDonorOwnerFullName(String value) { this.donor_owner_full_name = value; return this; }
        public Boolean getIsContact() { return is_contact; }
        public CRMDonationResponse setIsContact(Boolean value) { this.is_contact = value; return this; }
        public Boolean getIsAccount() { return is_account; }
        public CRMDonationResponse setIsAccount(Boolean value) { this.is_account = value; return this; }
        public Integer getSoftCreditRegentId() { return soft_credit_regent_id; }
        public CRMDonationResponse setSoftCreditRegentId(Integer value) { this.soft_credit_regent_id = value; return this; }
        public String getSoftCreditContactAddressee() { return soft_credit_contact_addressee; }
        public CRMDonationResponse setSoftCreditContactAddressee(String value) { this.soft_credit_contact_addressee = value; return this; }
        public String getSoftCreditContactFirstName() { return soft_credit_contact_first_name; }
        public CRMDonationResponse setSoftCreditContactFirstName(String value) { this.soft_credit_contact_first_name = value; return this; }
        public String getSoftCreditContactLastName() { return soft_credit_contact_last_name; }
        public CRMDonationResponse setSoftCreditContactLastName(String value) { this.soft_credit_contact_last_name = value; return this; }
        public Boolean isSoftCreditContactSpouseIsMainContact() { return soft_credit_contact_spouse_is_main_contact; }
        public CRMDonationResponse setSoftCreditContactSpouseIsMainContact(Boolean value) { this.soft_credit_contact_spouse_is_main_contact = value; return this; }
        public String getSoftCreditContactCity() { return soft_credit_contact_city; }
        public CRMDonationResponse setSoftCreditContactCity(String value) { this.soft_credit_contact_city = value; return this; }
        public String getSoftCreditContactCountry() { return soft_credit_contact_country; }
        public CRMDonationResponse setSoftCreditContactCountry(String value) { this.soft_credit_contact_country = value; return this; }
        public String getSoftCreditContactOwnerFullName() { return soft_credit_contact_owner_full_name; }
        public CRMDonationResponse setSoftCreditContactOwnerFullName(String value) { this.soft_credit_contact_owner_full_name = value; return this; }
        public String getSoftCreditSecondRegentId() { return soft_credit_second_regent_id; }
        public CRMDonationResponse setSoftCreditSecondRegentId(String value) { this.soft_credit_second_regent_id = value; return this; }
        public String getSoftCreditSecondContactAddressee() { return soft_credit_second_contact_addressee; }
        public CRMDonationResponse setSoftCreditSecondContactAddressee(String value) { this.soft_credit_second_contact_addressee = value; return this; }
        public String getSoftCreditSecondContactFirstName() { return soft_credit_second_contact_first_name; }
        public CRMDonationResponse setSoftCreditSecondContactFirstName(String value) { this.soft_credit_second_contact_first_name = value; return this; }
        public String getSoftCreditSecondContactLastName() { return soft_credit_second_contact_last_name; }
        public CRMDonationResponse setSoftCreditSecondContactLastName(String value) { this.soft_credit_second_contact_last_name = value; return this; }
        public Boolean isSoftCreditSecondContactSpouseIsMainContact() { return soft_credit_second_contact_spouse_is_main_contact; }
        public CRMDonationResponse setSoftCreditSecondContactSpouseIsMainContact(Boolean value) { this.soft_credit_second_contact_spouse_is_main_contact = value; return this; }
        public String getSoftCreditSecondContactCity() { return soft_credit_second_contact_city; }
        public CRMDonationResponse setSoftCreditSecondContactCity(String value) { this.soft_credit_second_contact_city = value; return this; }
        public String getSoftCreditSecondContactCountry() { return soft_credit_second_contact_country; }
        public CRMDonationResponse setSoftCreditSecondContactCountry(String value) { this.soft_credit_second_contact_country = value; return this; }
        public String getSoftCreditSecondContactOwnerFullName() { return soft_credit_second_contact_owner_full_name; }
        public CRMDonationResponse setSoftCreditSecondContactOwnerFullName(String value) { this.soft_credit_second_contact_owner_full_name = value; return this; }
        public Boolean isSpouseIsMainContact() { return spouse_is_main_contact; }
        public CRMDonationResponse setSpouseIsMainContact(Boolean value) { this.spouse_is_main_contact = value; return this; }
        public Integer getImportId() { return import_id; }
        public CRMDonationResponse setImportId(Integer value) { this.import_id = value; return this; }
        public String getDonationId() { return donation_id; }
        public CRMDonationResponse setDonationId(String value) { this.donation_id = value; return this; }
        public String getGuid() { return guid; }
        public CRMDonationResponse setGuid(String value) { this.guid = value; return this; }
        public String getName() { return name; }
        public CRMDonationResponse setName(String value) { this.name = value; return this; }
        public String getDescription() { return description; }
        public CRMDonationResponse setDescription(String value) { this.description = value; return this; }
        public String getAppealCode() { return appeal_code; }
        public CRMDonationResponse setAppealCode(String value) { this.appeal_code = value; return this; }
        public String getDesignation() { return designation; }
        public CRMDonationResponse setDesignation(String value) { this.designation = value; return this; }
        public String getDesignationDescription() { return designation_description; }
        public CRMDonationResponse setDesignationDescription(String value) { this.designation_description = value; return this; }
        public String getGeneralLedgerAccountNumber() { return general_ledger_account_number; }
        public CRMDonationResponse setGeneralLedgerAccountNumber(String value) { this.general_ledger_account_number = value; return this; }
        public String getCampaign() { return campaign; }
        public CRMDonationResponse setCampaign(String value) { this.campaign = value; return this; }
        public BigDecimal getTotalPledgeAmount() { return total_pledge_amount; }
        public CRMDonationResponse setTotalPledgeAmount(BigDecimal value) { this.total_pledge_amount = value; return this; }
        public BigDecimal getTotalPaidAmount() { return total_paid_amount; }
        public CRMDonationResponse setTotalPaidAmount(BigDecimal value) { this.total_paid_amount = value; return this; }
        public BigDecimal getReceiptAmount() { return receipt_amount; }
        public CRMDonationResponse setReceiptAmount(BigDecimal value) { this.receipt_amount = value; return this; }
        public BigDecimal getExchangeRate() { return exchange_rate; }
        public CRMDonationResponse setExchangeRate(BigDecimal value) { this.exchange_rate = value; return this; }
        public BigDecimal getTotalPaidCanadianAmount() { return total_paid_canadian_amount; }
        public CRMDonationResponse setTotalPaidCanadianAmount(BigDecimal value) { this.total_paid_canadian_amount = value; return this; }
        public Boolean getIsRecurring() { return is_recurring; }
        public CRMDonationResponse setIsRecurring(Boolean value) { this.is_recurring = value; return this; }
        public Boolean getIsParentDonation() { return is_parent_donation; }
        public CRMDonationResponse setIsParentDonation(Boolean value) { this.is_parent_donation = value; return this; }
        public String getCurrency() { return currency; }
        public CRMDonationResponse setCurrency(String value) { this.currency = value; return this; }
        public String getSource() { return source; }
        public CRMDonationResponse setSource(String value) { this.source = value; return this; }
        public String getChannel() { return channel; }
        public CRMDonationResponse setChannel(String value) { this.channel = value; return this; }
        public String getReceiptingOrganization() { return receipting_organization; }
        public CRMDonationResponse setReceiptingOrganization(String value) { this.receipting_organization = value; return this; }
        public String getType() { return type; }
        public CRMDonationResponse setType(String value) { this.type = value; return this; }
        public Boolean isAcknowledgmentSent() { return acknowledgment_sent; }
        public CRMDonationResponse setAcknowledgmentSent(Boolean value) { this.acknowledgment_sent = value; return this; }
        public Boolean isSendAcknowledgment() { return send_acknowledgment; }
        public CRMDonationResponse setSendAcknowledgment(Boolean value) { this.send_acknowledgment = value; return this; }
        public String getAcknowledgmentTemplateGuid() { return acknowledgment_template_guid; }
        public CRMDonationResponse setAcknowledgmentTemplateGuid(String value) { this.acknowledgment_template_guid = value; return this; }
        public String getParentGuid() { return parent_guid; }
        public CRMDonationResponse setParentGuid(String value) { this.parent_guid = value; return this; }
        public Boolean isAnonymous() { return anonymous; }
        public CRMDonationResponse setAnonymous(Boolean value) { this.anonymous = value; return this; }
        public Date getGiftDate() { return gift_date; }
        public CRMDonationResponse setGiftDate(Date value) { this.gift_date = value; return this; }
        public Date getRecurringGiftStartDate() { return recurring_gift_start_date; }
        public CRMDonationResponse setRecurringGiftStartDate(Date value) { this.recurring_gift_start_date = value; return this; }
        public Date getRecurringGiftEndDate() { return recurring_gift_end_date; }
        public CRMDonationResponse setRecurringGiftEndDate(Date value) { this.recurring_gift_end_date = value; return this; }
        public String getChequeNumber() { return cheque_number; }
        public CRMDonationResponse setChequeNumber(String value) { this.cheque_number = value; return this; }
        public Integer getVersionNumber() { return version_number; }
        public CRMDonationResponse setVersionNumber(Integer value) { this.version_number = value; return this; }
        public Date getAddedDate() { return added_date; }
        public CRMDonationResponse setAddedDate(Date value) { this.added_date = value; return this; }
    }

}

Java CRMDonationsRequest 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/Donations HTTP/1.1 
Host: data.regent-college.edu 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CRMDonationsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.DynamicsCRM.Requests">
  <end_version_number>0</end_version_number>
  <from_date>0001-01-01T00:00:00</from_date>
  <has_acknowledgement_letter>false</has_acknowledgement_letter>
  <is_missing_acknowledgement>false</is_missing_acknowledgement>
  <regent_id>0</regent_id>
  <start_version_number>0</start_version_number>
  <to_date>0001-01-01T00:00:00</to_date>
</CRMDonationsRequest>
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>