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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
Content-Type: application/json
Content-Length: length

{"regent_id":0,"from_date":"0001-01-01T00:00:00.0000000","to_date":"0001-01-01T00:00:00.0000000","start_version_number":0,"end_version_number":0,"is_missing_acknowledgement":false,"has_acknowledgement_letter":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"donations":[{"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-01T00:00:00.0000000","recurring_gift_start_date":"0001-01-01T00:00:00.0000000","recurring_gift_end_date":"0001-01-01T00:00:00.0000000","cheque_number":"String","version_number":0,"added_date":"0001-01-01T00:00:00.0000000"}],"from_date":"0001-01-01T00:00:00.0000000","to_date":"0001-01-01T00:00:00.0000000","start_version_number":0,"end_version_number":0}