regis

<back to all web services

CRMPaymentsDatamartRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
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 .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/PaymentsDatamart HTTP/1.1 
Host: data.regent-college.edu 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"regent_id":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"personal_payments":[{"guid":"String","regent_id":0,"addressee":"String","soft_credit_regent_id":0,"second_soft_credit_regent_id":0,"donation_id":"String","designation":"String","pretty_designation":"String","pledged":0,"paid":0,"paid_canadian":0,"payment_date":"0001-01-01T00:00:00.0000000"}],"other_payments":[{"guid":"String","regent_id":0,"addressee":"String","soft_credit_regent_id":0,"second_soft_credit_regent_id":0,"donation_id":"String","designation":"String","pretty_designation":"String","pledged":0,"paid":0,"paid_canadian":0,"payment_date":"0001-01-01T00:00:00.0000000"}]}