| Required role: | REGISUserRole |
| POST | /registration/billing-audit-reports |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class RegistrationBillingParityAuditResponse implements IConvertible
{
int? execution_id;
String? reporting_term;
DateTime? timestamp;
String? workflow;
String? execution_mode;
int? regent_id;
int? transaction_id;
bool? matches;
bool? legacy_succeeded;
bool? composed_succeeded;
String? differences;
String? request_summary_json;
String? legacy_summary_json;
String? composed_summary_json;
RegistrationBillingParityAuditResponse({this.execution_id,this.reporting_term,this.timestamp,this.workflow,this.execution_mode,this.regent_id,this.transaction_id,this.matches,this.legacy_succeeded,this.composed_succeeded,this.differences,this.request_summary_json,this.legacy_summary_json,this.composed_summary_json});
RegistrationBillingParityAuditResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
execution_id = json['execution_id'];
reporting_term = json['reporting_term'];
timestamp = JsonConverters.fromJson(json['timestamp'],'DateTime',context!);
workflow = json['workflow'];
execution_mode = json['execution_mode'];
regent_id = json['regent_id'];
transaction_id = json['transaction_id'];
matches = json['matches'];
legacy_succeeded = json['legacy_succeeded'];
composed_succeeded = json['composed_succeeded'];
differences = json['differences'];
request_summary_json = json['request_summary_json'];
legacy_summary_json = json['legacy_summary_json'];
composed_summary_json = json['composed_summary_json'];
return this;
}
Map<String, dynamic> toJson() => {
'execution_id': execution_id,
'reporting_term': reporting_term,
'timestamp': JsonConverters.toJson(timestamp,'DateTime',context!),
'workflow': workflow,
'execution_mode': execution_mode,
'regent_id': regent_id,
'transaction_id': transaction_id,
'matches': matches,
'legacy_succeeded': legacy_succeeded,
'composed_succeeded': composed_succeeded,
'differences': differences,
'request_summary_json': request_summary_json,
'legacy_summary_json': legacy_summary_json,
'composed_summary_json': composed_summary_json
};
getTypeName() => "RegistrationBillingParityAuditResponse";
TypeContext? context = _ctx;
}
class RegistrationBillingCompletenessAuditResponse implements IConvertible
{
int? transaction_id;
String? transaction_uuid;
String? reporting_term;
DateTime? finished_datetime;
String? operation;
int? regent_id;
String? student_uuid;
String? student_name;
int? invoice_count;
double? invoice_net;
double? item_net;
int? gp_success_count;
int? gp_failure_count;
String? calculation_status;
String? calculation_findings;
String? status;
String? findings;
DateTime? resolved_datetime;
String? resolved_by_uuid;
RegistrationBillingCompletenessAuditResponse({this.transaction_id,this.transaction_uuid,this.reporting_term,this.finished_datetime,this.operation,this.regent_id,this.student_uuid,this.student_name,this.invoice_count,this.invoice_net,this.item_net,this.gp_success_count,this.gp_failure_count,this.calculation_status,this.calculation_findings,this.status,this.findings,this.resolved_datetime,this.resolved_by_uuid});
RegistrationBillingCompletenessAuditResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
transaction_id = json['transaction_id'];
transaction_uuid = json['transaction_uuid'];
reporting_term = json['reporting_term'];
finished_datetime = JsonConverters.fromJson(json['finished_datetime'],'DateTime',context!);
operation = json['operation'];
regent_id = json['regent_id'];
student_uuid = json['student_uuid'];
student_name = json['student_name'];
invoice_count = json['invoice_count'];
invoice_net = JsonConverters.toDouble(json['invoice_net']);
item_net = JsonConverters.toDouble(json['item_net']);
gp_success_count = json['gp_success_count'];
gp_failure_count = json['gp_failure_count'];
calculation_status = json['calculation_status'];
calculation_findings = json['calculation_findings'];
status = json['status'];
findings = json['findings'];
resolved_datetime = JsonConverters.fromJson(json['resolved_datetime'],'DateTime',context!);
resolved_by_uuid = json['resolved_by_uuid'];
return this;
}
Map<String, dynamic> toJson() => {
'transaction_id': transaction_id,
'transaction_uuid': transaction_uuid,
'reporting_term': reporting_term,
'finished_datetime': JsonConverters.toJson(finished_datetime,'DateTime',context!),
'operation': operation,
'regent_id': regent_id,
'student_uuid': student_uuid,
'student_name': student_name,
'invoice_count': invoice_count,
'invoice_net': invoice_net,
'item_net': item_net,
'gp_success_count': gp_success_count,
'gp_failure_count': gp_failure_count,
'calculation_status': calculation_status,
'calculation_findings': calculation_findings,
'status': status,
'findings': findings,
'resolved_datetime': JsonConverters.toJson(resolved_datetime,'DateTime',context!),
'resolved_by_uuid': resolved_by_uuid
};
getTypeName() => "RegistrationBillingCompletenessAuditResponse";
TypeContext? context = _ctx;
}
class RegistrationBillingFailureAuditResponse implements IConvertible
{
String? source;
String? reporting_term;
int? id;
DateTime? timestamp;
String? workflow;
int? regent_id;
int? transaction_id;
String? invoice_id;
String? gp_document_number;
double? amount;
String? error;
RegistrationBillingFailureAuditResponse({this.source,this.reporting_term,this.id,this.timestamp,this.workflow,this.regent_id,this.transaction_id,this.invoice_id,this.gp_document_number,this.amount,this.error});
RegistrationBillingFailureAuditResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
source = json['source'];
reporting_term = json['reporting_term'];
id = json['id'];
timestamp = JsonConverters.fromJson(json['timestamp'],'DateTime',context!);
workflow = json['workflow'];
regent_id = json['regent_id'];
transaction_id = json['transaction_id'];
invoice_id = json['invoice_id'];
gp_document_number = json['gp_document_number'];
amount = JsonConverters.toDouble(json['amount']);
error = json['error'];
return this;
}
Map<String, dynamic> toJson() => {
'source': source,
'reporting_term': reporting_term,
'id': id,
'timestamp': JsonConverters.toJson(timestamp,'DateTime',context!),
'workflow': workflow,
'regent_id': regent_id,
'transaction_id': transaction_id,
'invoice_id': invoice_id,
'gp_document_number': gp_document_number,
'amount': amount,
'error': error
};
getTypeName() => "RegistrationBillingFailureAuditResponse";
TypeContext? context = _ctx;
}
class RegistrationBillingDriftAuditResponse implements IConvertible
{
int? transaction_id;
String? reporting_term;
int? regent_id;
String? workflow;
int? calculation_count;
DateTime? first_calculation;
DateTime? final_calculation;
bool? changed;
String? persistence_status;
String? persistence_findings;
String? first_summary_json;
String? final_summary_json;
Map<int,String?>? section_course_codes;
RegistrationBillingDriftAuditResponse({this.transaction_id,this.reporting_term,this.regent_id,this.workflow,this.calculation_count,this.first_calculation,this.final_calculation,this.changed,this.persistence_status,this.persistence_findings,this.first_summary_json,this.final_summary_json,this.section_course_codes});
RegistrationBillingDriftAuditResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
transaction_id = json['transaction_id'];
reporting_term = json['reporting_term'];
regent_id = json['regent_id'];
workflow = json['workflow'];
calculation_count = json['calculation_count'];
first_calculation = JsonConverters.fromJson(json['first_calculation'],'DateTime',context!);
final_calculation = JsonConverters.fromJson(json['final_calculation'],'DateTime',context!);
changed = json['changed'];
persistence_status = json['persistence_status'];
persistence_findings = json['persistence_findings'];
first_summary_json = json['first_summary_json'];
final_summary_json = json['final_summary_json'];
section_course_codes = JsonConverters.fromJson(json['section_course_codes'],'Map<int,String?>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'transaction_id': transaction_id,
'reporting_term': reporting_term,
'regent_id': regent_id,
'workflow': workflow,
'calculation_count': calculation_count,
'first_calculation': JsonConverters.toJson(first_calculation,'DateTime',context!),
'final_calculation': JsonConverters.toJson(final_calculation,'DateTime',context!),
'changed': changed,
'persistence_status': persistence_status,
'persistence_findings': persistence_findings,
'first_summary_json': first_summary_json,
'final_summary_json': final_summary_json,
'section_course_codes': JsonConverters.toJson(section_course_codes,'Map<int,String?>',context!)
};
getTypeName() => "RegistrationBillingDriftAuditResponse";
TypeContext? context = _ctx;
}
class RegistrationBillingAuditReportResponse implements IConvertible
{
List<RegistrationBillingParityAuditResponse>? parity;
List<RegistrationBillingCompletenessAuditResponse>? completeness;
List<RegistrationBillingFailureAuditResponse>? failures;
List<RegistrationBillingDriftAuditResponse>? drift;
RegistrationBillingAuditReportResponse({this.parity,this.completeness,this.failures,this.drift});
RegistrationBillingAuditReportResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
parity = JsonConverters.fromJson(json['parity'],'List<RegistrationBillingParityAuditResponse>',context!);
completeness = JsonConverters.fromJson(json['completeness'],'List<RegistrationBillingCompletenessAuditResponse>',context!);
failures = JsonConverters.fromJson(json['failures'],'List<RegistrationBillingFailureAuditResponse>',context!);
drift = JsonConverters.fromJson(json['drift'],'List<RegistrationBillingDriftAuditResponse>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'parity': JsonConverters.toJson(parity,'List<RegistrationBillingParityAuditResponse>',context!),
'completeness': JsonConverters.toJson(completeness,'List<RegistrationBillingCompletenessAuditResponse>',context!),
'failures': JsonConverters.toJson(failures,'List<RegistrationBillingFailureAuditResponse>',context!),
'drift': JsonConverters.toJson(drift,'List<RegistrationBillingDriftAuditResponse>',context!)
};
getTypeName() => "RegistrationBillingAuditReportResponse";
TypeContext? context = _ctx;
}
class RegistrationBillingAuditReportRequest implements IConvertible
{
String? reporting_term;
DateTime? from_date;
DateTime? to_date;
String? authorizing_uuid;
RegistrationBillingAuditReportRequest({this.reporting_term,this.from_date,this.to_date,this.authorizing_uuid});
RegistrationBillingAuditReportRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
reporting_term = json['reporting_term'];
from_date = JsonConverters.fromJson(json['from_date'],'DateTime',context!);
to_date = JsonConverters.fromJson(json['to_date'],'DateTime',context!);
authorizing_uuid = json['authorizing_uuid'];
return this;
}
Map<String, dynamic> toJson() => {
'reporting_term': reporting_term,
'from_date': JsonConverters.toJson(from_date,'DateTime',context!),
'to_date': JsonConverters.toJson(to_date,'DateTime',context!),
'authorizing_uuid': authorizing_uuid
};
getTypeName() => "RegistrationBillingAuditReportRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
'RegistrationBillingParityAuditResponse': TypeInfo(TypeOf.Class, create:() => RegistrationBillingParityAuditResponse()),
'RegistrationBillingCompletenessAuditResponse': TypeInfo(TypeOf.Class, create:() => RegistrationBillingCompletenessAuditResponse()),
'RegistrationBillingFailureAuditResponse': TypeInfo(TypeOf.Class, create:() => RegistrationBillingFailureAuditResponse()),
'RegistrationBillingDriftAuditResponse': TypeInfo(TypeOf.Class, create:() => RegistrationBillingDriftAuditResponse()),
'Map<int,String?>': TypeInfo(TypeOf.Class, create:() => Map<int,String?>()),
'RegistrationBillingAuditReportResponse': TypeInfo(TypeOf.Class, create:() => RegistrationBillingAuditReportResponse()),
'List<RegistrationBillingParityAuditResponse>': TypeInfo(TypeOf.Class, create:() => <RegistrationBillingParityAuditResponse>[]),
'List<RegistrationBillingCompletenessAuditResponse>': TypeInfo(TypeOf.Class, create:() => <RegistrationBillingCompletenessAuditResponse>[]),
'List<RegistrationBillingFailureAuditResponse>': TypeInfo(TypeOf.Class, create:() => <RegistrationBillingFailureAuditResponse>[]),
'List<RegistrationBillingDriftAuditResponse>': TypeInfo(TypeOf.Class, create:() => <RegistrationBillingDriftAuditResponse>[]),
'RegistrationBillingAuditReportRequest': TypeInfo(TypeOf.Class, create:() => RegistrationBillingAuditReportRequest()),
});
Dart RegistrationBillingAuditReportRequest 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 /registration/billing-audit-reports HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<RegistrationBillingAuditReportRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
<authorizing_uuid>String</authorizing_uuid>
<from_date>0001-01-01T00:00:00</from_date>
<reporting_term>String</reporting_term>
<to_date>0001-01-01T00:00:00</to_date>
</RegistrationBillingAuditReportRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<RegistrationBillingAuditReportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Responses">
<completeness>
<RegistrationBillingCompletenessAuditResponse>
<calculation_findings>String</calculation_findings>
<calculation_status>String</calculation_status>
<findings>String</findings>
<finished_datetime>0001-01-01T00:00:00</finished_datetime>
<gp_failure_count>0</gp_failure_count>
<gp_success_count>0</gp_success_count>
<invoice_count>0</invoice_count>
<invoice_net>0</invoice_net>
<item_net>0</item_net>
<operation>String</operation>
<regent_id>0</regent_id>
<reporting_term>String</reporting_term>
<resolved_by_uuid>String</resolved_by_uuid>
<resolved_datetime>0001-01-01T00:00:00</resolved_datetime>
<status>String</status>
<student_name>String</student_name>
<student_uuid>String</student_uuid>
<transaction_id>0</transaction_id>
<transaction_uuid>String</transaction_uuid>
</RegistrationBillingCompletenessAuditResponse>
</completeness>
<drift>
<RegistrationBillingDriftAuditResponse>
<calculation_count>0</calculation_count>
<changed>false</changed>
<final_calculation>0001-01-01T00:00:00</final_calculation>
<final_summary_json>String</final_summary_json>
<first_calculation>0001-01-01T00:00:00</first_calculation>
<first_summary_json>String</first_summary_json>
<persistence_findings>String</persistence_findings>
<persistence_status>String</persistence_status>
<regent_id>0</regent_id>
<reporting_term>String</reporting_term>
<section_course_codes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfintstring>
<d4p1:Key>0</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfintstring>
</section_course_codes>
<transaction_id>0</transaction_id>
<workflow>String</workflow>
</RegistrationBillingDriftAuditResponse>
</drift>
<failures>
<RegistrationBillingFailureAuditResponse>
<amount>0</amount>
<error>String</error>
<gp_document_number>String</gp_document_number>
<id>0</id>
<invoice_id>String</invoice_id>
<regent_id>0</regent_id>
<reporting_term>String</reporting_term>
<source>String</source>
<timestamp>0001-01-01T00:00:00</timestamp>
<transaction_id>0</transaction_id>
<workflow>String</workflow>
</RegistrationBillingFailureAuditResponse>
</failures>
<parity>
<RegistrationBillingParityAuditResponse>
<composed_succeeded>false</composed_succeeded>
<composed_summary_json>String</composed_summary_json>
<differences>String</differences>
<execution_id>0</execution_id>
<execution_mode>String</execution_mode>
<legacy_succeeded>false</legacy_succeeded>
<legacy_summary_json>String</legacy_summary_json>
<matches>false</matches>
<regent_id>0</regent_id>
<reporting_term>String</reporting_term>
<request_summary_json>String</request_summary_json>
<timestamp>0001-01-01T00:00:00</timestamp>
<transaction_id>0</transaction_id>
<workflow>String</workflow>
</RegistrationBillingParityAuditResponse>
</parity>
</RegistrationBillingAuditReportResponse>