Required role: | REGISUserRole |
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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/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","has_document":false,"year":0}
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"}},"tax_receipts":[{"regent_id":0,"donor_first_name":"String","donor_last_name":"String","guid":"String","title":"String","total_paid_amount":0,"total_receipt_amount":0,"is_annual":false,"year":0,"has_document":false,"tax_receipt_send_method":"String","status":"String","tax_receipt_template_guid":"String","tax_receipt_template_name":"String","tax_receipt_email":"String","email_sent_date":"0001-01-01T00:00:00.0000000","email_sent_to":"String","gift_date":"0001-01-01T00:00:00.0000000","sent_date":"0001-01-01T00:00:00.0000000"}],"from_date":"0001-01-01T00:00:00.0000000","to_date":"0001-01-01T00:00:00.0000000"}