Required role: | REGISUserRole |
POST | /DynamicsCRM/PaymentsDatamart | ||
---|---|---|---|
POST | /DynamicsCRM/PaymentsDatamart/{regent_id} |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CRMPaymentsDatamartRequest
{
public Integer regent_id = null;
public Integer getRegentId() { return regent_id; }
public CRMPaymentsDatamartRequest setRegentId(Integer value) { this.regent_id = value; return this; }
}
public static class CRMPaymentsDatamartResponse
{
public ArrayList<CRMPaymentDatamartResponse> personal_payments = null;
public ArrayList<CRMPaymentDatamartResponse> other_payments = null;
public ArrayList<CRMPaymentDatamartResponse> getPersonalPayments() { return personal_payments; }
public CRMPaymentsDatamartResponse setPersonalPayments(ArrayList<CRMPaymentDatamartResponse> value) { this.personal_payments = value; return this; }
public ArrayList<CRMPaymentDatamartResponse> getOtherPayments() { return other_payments; }
public CRMPaymentsDatamartResponse setOtherPayments(ArrayList<CRMPaymentDatamartResponse> value) { this.other_payments = value; return this; }
}
public static class CRMPaymentDatamartResponse
{
public String guid = null;
public Integer regent_id = null;
public String addressee = null;
public Integer soft_credit_regent_id = null;
public Integer second_soft_credit_regent_id = null;
public String donation_id = null;
public String designation = null;
public String pretty_designation = null;
public BigDecimal pledged = null;
public BigDecimal paid = null;
public BigDecimal paid_canadian = null;
public Date payment_date = null;
public String getGuid() { return guid; }
public CRMPaymentDatamartResponse setGuid(String value) { this.guid = value; return this; }
public Integer getRegentId() { return regent_id; }
public CRMPaymentDatamartResponse setRegentId(Integer value) { this.regent_id = value; return this; }
public String getAddressee() { return addressee; }
public CRMPaymentDatamartResponse setAddressee(String value) { this.addressee = value; return this; }
public Integer getSoftCreditRegentId() { return soft_credit_regent_id; }
public CRMPaymentDatamartResponse setSoftCreditRegentId(Integer value) { this.soft_credit_regent_id = value; return this; }
public Integer getSecondSoftCreditRegentId() { return second_soft_credit_regent_id; }
public CRMPaymentDatamartResponse setSecondSoftCreditRegentId(Integer value) { this.second_soft_credit_regent_id = value; return this; }
public String getDonationId() { return donation_id; }
public CRMPaymentDatamartResponse setDonationId(String value) { this.donation_id = value; return this; }
public String getDesignation() { return designation; }
public CRMPaymentDatamartResponse setDesignation(String value) { this.designation = value; return this; }
public String getPrettyDesignation() { return pretty_designation; }
public CRMPaymentDatamartResponse setPrettyDesignation(String value) { this.pretty_designation = value; return this; }
public BigDecimal getPledged() { return pledged; }
public CRMPaymentDatamartResponse setPledged(BigDecimal value) { this.pledged = value; return this; }
public BigDecimal getPaid() { return paid; }
public CRMPaymentDatamartResponse setPaid(BigDecimal value) { this.paid = value; return this; }
public BigDecimal getPaidCanadian() { return paid_canadian; }
public CRMPaymentDatamartResponse setPaidCanadian(BigDecimal value) { this.paid_canadian = value; return this; }
public Date getPaymentDate() { return payment_date; }
public CRMPaymentDatamartResponse setPaymentDate(Date value) { this.payment_date = value; return this; }
}
}
Java CRMPaymentsDatamartRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /DynamicsCRM/PaymentsDatamart HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CRMPaymentsDatamartRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.DynamicsCRM.Requests">
<regent_id>0</regent_id>
</CRMPaymentsDatamartRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CRMPaymentsDatamartResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.DynamicsCRM.Responses"> <other_payments> <CRMPaymentDatamartResponse> <addressee>String</addressee> <designation>String</designation> <donation_id>String</donation_id> <guid>String</guid> <paid>0</paid> <paid_canadian>0</paid_canadian> <payment_date>0001-01-01T00:00:00</payment_date> <pledged>0</pledged> <pretty_designation>String</pretty_designation> <regent_id>0</regent_id> <second_soft_credit_regent_id>0</second_soft_credit_regent_id> <soft_credit_regent_id>0</soft_credit_regent_id> </CRMPaymentDatamartResponse> </other_payments> <personal_payments> <CRMPaymentDatamartResponse> <addressee>String</addressee> <designation>String</designation> <donation_id>String</donation_id> <guid>String</guid> <paid>0</paid> <paid_canadian>0</paid_canadian> <payment_date>0001-01-01T00:00:00</payment_date> <pledged>0</pledged> <pretty_designation>String</pretty_designation> <regent_id>0</regent_id> <second_soft_credit_regent_id>0</second_soft_credit_regent_id> <soft_credit_regent_id>0</soft_credit_regent_id> </CRMPaymentDatamartResponse> </personal_payments> </CRMPaymentsDatamartResponse>