regis

<back to all web services

CRMTaxReceiptsRequest

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

public class dtos
{

    public static class CRMTaxReceiptsRequest
    {
        public Integer regent_id = null;
        public Date from_date = null;
        public Date to_date = null;
        public Boolean has_document = null;
        public Integer year = null;
        
        public Integer getRegentId() { return regent_id; }
        public CRMTaxReceiptsRequest setRegentId(Integer value) { this.regent_id = value; return this; }
        public Date getFromDate() { return from_date; }
        public CRMTaxReceiptsRequest setFromDate(Date value) { this.from_date = value; return this; }
        public Date getToDate() { return to_date; }
        public CRMTaxReceiptsRequest setToDate(Date value) { this.to_date = value; return this; }
        public Boolean isHasDocument() { return has_document; }
        public CRMTaxReceiptsRequest setHasDocument(Boolean value) { this.has_document = value; return this; }
        public Integer getYear() { return year; }
        public CRMTaxReceiptsRequest setYear(Integer value) { this.year = value; return this; }
    }

    public static class CRMTaxReceiptsResponse
    {
        public ResponseStatus responseStatus = null;
        public ArrayList<CRMTaxReceiptResponse> tax_receipts = null;
        public Date from_date = null;
        public Date to_date = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public CRMTaxReceiptsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
        public ArrayList<CRMTaxReceiptResponse> getTaxReceipts() { return tax_receipts; }
        public CRMTaxReceiptsResponse setTaxReceipts(ArrayList<CRMTaxReceiptResponse> value) { this.tax_receipts = value; return this; }
        public Date getFromDate() { return from_date; }
        public CRMTaxReceiptsResponse setFromDate(Date value) { this.from_date = value; return this; }
        public Date getToDate() { return to_date; }
        public CRMTaxReceiptsResponse setToDate(Date value) { this.to_date = value; return this; }
    }

    public static class CRMTaxReceiptResponse
    {
        public Integer regent_id = null;
        public String donor_first_name = null;
        public String donor_last_name = null;
        public String guid = null;
        public String title = null;
        public BigDecimal total_paid_amount = null;
        public BigDecimal total_receipt_amount = null;
        public Boolean is_annual = null;
        public Integer year = null;
        public Boolean has_document = null;
        public String tax_receipt_send_method = null;
        public String status = null;
        public String tax_receipt_template_guid = null;
        public String tax_receipt_template_name = null;
        public String tax_receipt_email = null;
        public Date email_sent_date = null;
        public String email_sent_to = null;
        public Date gift_date = null;
        public Date sent_date = null;
        
        public Integer getRegentId() { return regent_id; }
        public CRMTaxReceiptResponse setRegentId(Integer value) { this.regent_id = value; return this; }
        public String getDonorFirstName() { return donor_first_name; }
        public CRMTaxReceiptResponse setDonorFirstName(String value) { this.donor_first_name = value; return this; }
        public String getDonorLastName() { return donor_last_name; }
        public CRMTaxReceiptResponse setDonorLastName(String value) { this.donor_last_name = value; return this; }
        public String getGuid() { return guid; }
        public CRMTaxReceiptResponse setGuid(String value) { this.guid = value; return this; }
        public String getTitle() { return title; }
        public CRMTaxReceiptResponse setTitle(String value) { this.title = value; return this; }
        public BigDecimal getTotalPaidAmount() { return total_paid_amount; }
        public CRMTaxReceiptResponse setTotalPaidAmount(BigDecimal value) { this.total_paid_amount = value; return this; }
        public BigDecimal getTotalReceiptAmount() { return total_receipt_amount; }
        public CRMTaxReceiptResponse setTotalReceiptAmount(BigDecimal value) { this.total_receipt_amount = value; return this; }
        public Boolean getIsAnnual() { return is_annual; }
        public CRMTaxReceiptResponse setIsAnnual(Boolean value) { this.is_annual = value; return this; }
        public Integer getYear() { return year; }
        public CRMTaxReceiptResponse setYear(Integer value) { this.year = value; return this; }
        public Boolean isHasDocument() { return has_document; }
        public CRMTaxReceiptResponse setHasDocument(Boolean value) { this.has_document = value; return this; }
        public String getTaxReceiptSendMethod() { return tax_receipt_send_method; }
        public CRMTaxReceiptResponse setTaxReceiptSendMethod(String value) { this.tax_receipt_send_method = value; return this; }
        public String getStatus() { return status; }
        public CRMTaxReceiptResponse setStatus(String value) { this.status = value; return this; }
        public String getTaxReceiptTemplateGuid() { return tax_receipt_template_guid; }
        public CRMTaxReceiptResponse setTaxReceiptTemplateGuid(String value) { this.tax_receipt_template_guid = value; return this; }
        public String getTaxReceiptTemplateName() { return tax_receipt_template_name; }
        public CRMTaxReceiptResponse setTaxReceiptTemplateName(String value) { this.tax_receipt_template_name = value; return this; }
        public String getTaxReceiptEmail() { return tax_receipt_email; }
        public CRMTaxReceiptResponse setTaxReceiptEmail(String value) { this.tax_receipt_email = value; return this; }
        public Date getEmailSentDate() { return email_sent_date; }
        public CRMTaxReceiptResponse setEmailSentDate(Date value) { this.email_sent_date = value; return this; }
        public String getEmailSentTo() { return email_sent_to; }
        public CRMTaxReceiptResponse setEmailSentTo(String value) { this.email_sent_to = value; return this; }
        public Date getGiftDate() { return gift_date; }
        public CRMTaxReceiptResponse setGiftDate(Date value) { this.gift_date = value; return this; }
        public Date getSentDate() { return sent_date; }
        public CRMTaxReceiptResponse setSentDate(Date value) { this.sent_date = value; return this; }
    }

}

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

<CRMTaxReceiptsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.DynamicsCRM.Requests">
  <from_date>0001-01-01T00:00:00</from_date>
  <has_document>false</has_document>
  <regent_id>0</regent_id>
  <to_date>0001-01-01T00:00:00</to_date>
  <year>0</year>
</CRMTaxReceiptsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CRMTaxReceiptsResponse 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>
  <from_date>0001-01-01T00:00:00</from_date>
  <tax_receipts>
    <CRMTaxReceiptResponse>
      <donor_first_name>String</donor_first_name>
      <donor_last_name>String</donor_last_name>
      <email_sent_date>0001-01-01T00:00:00</email_sent_date>
      <email_sent_to>String</email_sent_to>
      <gift_date>0001-01-01T00:00:00</gift_date>
      <guid>String</guid>
      <has_document>false</has_document>
      <is_annual>false</is_annual>
      <regent_id>0</regent_id>
      <sent_date>0001-01-01T00:00:00</sent_date>
      <status>String</status>
      <tax_receipt_email>String</tax_receipt_email>
      <tax_receipt_send_method>String</tax_receipt_send_method>
      <tax_receipt_template_guid>String</tax_receipt_template_guid>
      <tax_receipt_template_name>String</tax_receipt_template_name>
      <title>String</title>
      <total_paid_amount>0</total_paid_amount>
      <total_receipt_amount>0</total_receipt_amount>
      <year>0</year>
    </CRMTaxReceiptResponse>
  </tax_receipts>
  <to_date>0001-01-01T00:00:00</to_date>
</CRMTaxReceiptsResponse>