Required permission: | ReadAccountReport |
POST | /Finance/AccountReport/{uuid} |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using regis.ClassLibrary.Requests;
using regis.ClassLibrary.Responses;
namespace regis.ClassLibrary.Requests
{
public partial class FinanceAccountReportRequest
{
public virtual string uuid { get; set; }
public virtual DateTime? from_date { get; set; }
public virtual DateTime? to_date { get; set; }
}
}
namespace regis.ClassLibrary.Responses
{
public partial class DocumentResponse
{
public virtual string code { get; set; }
public virtual string document_name { get; set; }
public virtual string document_description { get; set; }
}
public partial class FinanceAccountReportResponse
{
public FinanceAccountReportResponse()
{
invoices_and_cash_receipts = new List<FinanceInvoiceAndCashReceiptsResponse>{};
}
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual string first_name { get; set; }
public virtual string last_name { get; set; }
public virtual string name { get; set; }
public virtual string academic_program { get; set; }
public virtual string addr1 { get; set; }
public virtual string addr2 { get; set; }
public virtual string city { get; set; }
public virtual string state { get; set; }
public virtual string country { get; set; }
public virtual string code { get; set; }
public virtual int regent_id { get; set; }
public virtual string uuid { get; set; }
public virtual decimal balance { get; set; }
public virtual List<FinanceInvoiceAndCashReceiptsResponse> invoices_and_cash_receipts { get; set; }
public virtual decimal previous_balance { get; set; }
public virtual decimal future_balance { get; set; }
public virtual DateTime from_date { get; set; }
public virtual DateTime to_date { get; set; }
}
public partial class FinanceInvoiceAndCashReceiptsResponse
{
public FinanceInvoiceAndCashReceiptsResponse()
{
studentSectionInvoiceItems = new List<StudentSectionInvoiceItemResponse>{};
otherInvoiceItems = new List<InvoiceItemResponse>{};
}
public virtual string invoiceUUID { get; set; }
public virtual string document_id { get; set; }
public virtual string document_description { get; set; }
public virtual DateTime document_date { get; set; }
public virtual int regent_id { get; set; }
public virtual string uuid { get; set; }
public virtual string reporting_term { get; set; }
public virtual decimal? total_charges { get; set; }
public virtual decimal? total_credits { get; set; }
public virtual string current_status { get; set; }
public virtual DateTime timestamp { get; set; }
public virtual List<StudentSectionInvoiceItemResponse> studentSectionInvoiceItems { get; set; }
public virtual List<InvoiceItemResponse> otherInvoiceItems { get; set; }
}
public partial class InstructorResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual int regent_id { get; set; }
public virtual string regent_login { get; set; }
public virtual string preferred_name { get; set; }
public virtual string first_name { get; set; }
public virtual string last_name { get; set; }
public virtual string full_name { get; set; }
public virtual string email { get; set; }
public virtual string image_base64 { get; set; }
}
public partial class InvoiceItemResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual string invoiceItemUUID { get; set; }
public virtual int rate_id { get; set; }
public virtual string rate_code { get; set; }
public virtual string rate_description { get; set; }
public virtual decimal? charge { get; set; }
public virtual decimal? credit { get; set; }
}
public partial class SectionResponse
{
public SectionResponse()
{
instructors = new List<InstructorResponse>{};
required_documents = new List<DocumentResponse>{};
start_times = new List<string>{};
end_times = new List<string>{};
credit_amounts = new List<decimal>{};
audit_amounts = new List<decimal>{};
}
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual string secUUID { get; set; }
public virtual string course_name { get; set; }
public virtual string section_code { get; set; }
public virtual string course_title { get; set; }
public virtual string course_short_title { get; set; }
public virtual string course_description { get; set; }
public virtual string crosslist_description { get; set; }
public virtual string crosslist_course_name { get; set; }
public virtual string location_long_name { get; set; }
public virtual string room { get; set; }
public virtual List<InstructorResponse> instructors { get; set; }
public virtual List<DocumentResponse> required_documents { get; set; }
public virtual DateTime? start_date { get; set; }
public virtual DateTime? end_date { get; set; }
public virtual DateTime? first_meeting_date { get; set; }
public virtual DateTime? last_meeting_date { get; set; }
public virtual string meeting_days { get; set; }
public virtual List<string> start_times { get; set; }
public virtual List<string> end_times { get; set; }
public virtual bool is_online_only { get; set; }
public virtual bool is_weekend { get; set; }
public virtual bool is_weekday { get; set; }
public virtual bool is_evening { get; set; }
public virtual bool is_waitlist { get; set; }
public virtual bool has_special_requirements { get; set; }
public virtual string special_requirements { get; set; }
public virtual bool is_unlisted { get; set; }
public virtual List<decimal> credit_amounts { get; set; }
public virtual List<decimal> audit_amounts { get; set; }
public virtual string audits_short_name { get; set; }
public virtual string audits_long_name { get; set; }
public virtual string credits_short_name { get; set; }
public virtual string credits_long_name { get; set; }
public virtual string distance_ed_materials { get; set; }
public virtual string prerequisites { get; set; }
public virtual string corequisites { get; set; }
public virtual int? capacity { get; set; }
public virtual decimal? flat_fee_amount { get; set; }
public virtual decimal? additional_fee_amount { get; set; }
public virtual int registered_students { get; set; }
public virtual int three_credit_plus { get; set; }
public virtual int two_credit { get; set; }
public virtual int one_credit { get; set; }
public virtual int three_audit_plus { get; set; }
public virtual int two_audit { get; set; }
public virtual int one_audit { get; set; }
public virtual int crosslist_registered_students { get; set; }
public virtual int grades_received { get; set; }
public virtual int crosslist_grades_received { get; set; }
public virtual DateTime? registration_start_date { get; set; }
public virtual DateTime? registration_end_date { get; set; }
public virtual DateTime? add_start_date { get; set; }
public virtual DateTime? add_end_date { get; set; }
public virtual DateTime? drop_start_date { get; set; }
public virtual DateTime? drop_end_date { get; set; }
public virtual DateTime? grading_end_date { get; set; }
public virtual string term { get; set; }
public virtual string reporting_term { get; set; }
public virtual int reporting_year { get; set; }
public virtual string current_status { get; set; }
public virtual string added_by { get; set; }
public virtual DateTime? added_date { get; set; }
public virtual string changed_by { get; set; }
public virtual DateTime? changed_date { get; set; }
public virtual DateTime timestamp { get; set; }
}
public partial class StudentSectionInvoiceItemResponse
: InvoiceItemResponse
{
public virtual StudentSectionResponse studentSection { get; set; }
}
public partial class StudentSectionResponse
: SectionResponse
{
public virtual string studentSectionUUID { get; set; }
public virtual decimal registered_amount { get; set; }
public virtual bool is_provisional { get; set; }
public virtual bool is_audit { get; set; }
}
}
C# FinanceAccountReportRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Finance/AccountReport/{uuid} HTTP/1.1
Host: data.regent-college.edu
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"uuid":"String","from_date":"0001-01-01T00:00:00.0000000","to_date":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"first_name":"String","last_name":"String","name":"String","academic_program":"String","addr1":"String","addr2":"String","city":"String","state":"String","country":"String","code":"String","regent_id":0,"uuid":"String","balance":0,"invoices_and_cash_receipts":[{"invoiceUUID":"String","document_id":"String","document_description":"String","document_date":"0001-01-01T00:00:00.0000000","regent_id":0,"uuid":"String","reporting_term":"String","total_charges":0,"total_credits":0,"current_status":"String","timestamp":"0001-01-01T00:00:00.0000000","studentSectionInvoiceItems":[{"studentSection":{"studentSectionUUID":"String","registered_amount":0,"is_provisional":false,"is_audit":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"secUUID":"String","course_name":"String","section_code":"String","course_title":"String","course_short_title":"String","course_description":"String","crosslist_description":"String","crosslist_course_name":"String","location_long_name":"String","room":"String","instructors":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"regent_id":0,"regent_login":"String","preferred_name":"String","first_name":"String","last_name":"String","full_name":"String","email":"String","image_base64":"String"}],"required_documents":[{"code":"String","document_name":"String","document_description":"String"}],"start_date":"0001-01-01T00:00:00.0000000","end_date":"0001-01-01T00:00:00.0000000","first_meeting_date":"0001-01-01T00:00:00.0000000","last_meeting_date":"0001-01-01T00:00:00.0000000","meeting_days":"String","start_times":["String"],"end_times":["String"],"is_online_only":false,"is_weekend":false,"is_weekday":false,"is_evening":false,"is_waitlist":false,"has_special_requirements":false,"special_requirements":"String","is_unlisted":false,"credit_amounts":[0],"audit_amounts":[0],"audits_short_name":"String","audits_long_name":"String","credits_short_name":"String","credits_long_name":"String","distance_ed_materials":"String","prerequisites":"String","corequisites":"String","capacity":0,"flat_fee_amount":0,"additional_fee_amount":0,"registered_students":0,"three_credit_plus":0,"two_credit":0,"one_credit":0,"three_audit_plus":0,"two_audit":0,"one_audit":0,"crosslist_registered_students":0,"grades_received":0,"crosslist_grades_received":0,"registration_start_date":"0001-01-01T00:00:00.0000000","registration_end_date":"0001-01-01T00:00:00.0000000","add_start_date":"0001-01-01T00:00:00.0000000","add_end_date":"0001-01-01T00:00:00.0000000","drop_start_date":"0001-01-01T00:00:00.0000000","drop_end_date":"0001-01-01T00:00:00.0000000","grading_end_date":"0001-01-01T00:00:00.0000000","term":"String","reporting_term":"String","reporting_year":0,"current_status":"String","added_by":"String","added_date":"0001-01-01T00:00:00.0000000","changed_by":"String","changed_date":"0001-01-01T00:00:00.0000000","timestamp":"0001-01-01T00:00:00.0000000"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"invoiceItemUUID":"String","rate_id":0,"rate_code":"String","rate_description":"String","charge":0,"credit":0}],"otherInvoiceItems":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"invoiceItemUUID":"String","rate_id":0,"rate_code":"String","rate_description":"String","charge":0,"credit":0}]}],"previous_balance":0,"future_balance":0,"from_date":"0001-01-01T00:00:00.0000000","to_date":"0001-01-01T00:00:00.0000000"}