| Required role: | REGISUserRole |
| POST | /finance/invoice-dynamics-audit/logs |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class InvoiceDynamicsTransactionResponse implements IConvertible
{
int? dynamics_log_id;
String? action;
String? note;
double? logged_amount;
String? document_number;
String? customer_number;
DateTime? logged_at;
String? regis_invoice_reference;
String? gp_source;
bool? found_in_gp;
int? gp_type;
int? gp_status;
String? batch_number;
double? gp_amount;
bool? is_open;
bool? is_posted;
bool? is_void;
DateTime? document_date;
DateTime? posting_date;
InvoiceDynamicsTransactionResponse({this.dynamics_log_id,this.action,this.note,this.logged_amount,this.document_number,this.customer_number,this.logged_at,this.regis_invoice_reference,this.gp_source,this.found_in_gp,this.gp_type,this.gp_status,this.batch_number,this.gp_amount,this.is_open,this.is_posted,this.is_void,this.document_date,this.posting_date});
InvoiceDynamicsTransactionResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
dynamics_log_id = json['dynamics_log_id'];
action = json['action'];
note = json['note'];
logged_amount = JsonConverters.toDouble(json['logged_amount']);
document_number = json['document_number'];
customer_number = json['customer_number'];
logged_at = JsonConverters.fromJson(json['logged_at'],'DateTime',context!);
regis_invoice_reference = json['regis_invoice_reference'];
gp_source = json['gp_source'];
found_in_gp = json['found_in_gp'];
gp_type = json['gp_type'];
gp_status = json['gp_status'];
batch_number = json['batch_number'];
gp_amount = JsonConverters.toDouble(json['gp_amount']);
is_open = json['is_open'];
is_posted = json['is_posted'];
is_void = json['is_void'];
document_date = JsonConverters.fromJson(json['document_date'],'DateTime',context!);
posting_date = JsonConverters.fromJson(json['posting_date'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'dynamics_log_id': dynamics_log_id,
'action': action,
'note': note,
'logged_amount': logged_amount,
'document_number': document_number,
'customer_number': customer_number,
'logged_at': JsonConverters.toJson(logged_at,'DateTime',context!),
'regis_invoice_reference': regis_invoice_reference,
'gp_source': gp_source,
'found_in_gp': found_in_gp,
'gp_type': gp_type,
'gp_status': gp_status,
'batch_number': batch_number,
'gp_amount': gp_amount,
'is_open': is_open,
'is_posted': is_posted,
'is_void': is_void,
'document_date': JsonConverters.toJson(document_date,'DateTime',context!),
'posting_date': JsonConverters.toJson(posting_date,'DateTime',context!)
};
getTypeName() => "InvoiceDynamicsTransactionResponse";
TypeContext? context = _ctx;
}
class InvoiceEconnectLogResponse implements IConvertible
{
int? id;
DateTime? timestamp;
String? xml;
String? response;
InvoiceEconnectLogResponse({this.id,this.timestamp,this.xml,this.response});
InvoiceEconnectLogResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
timestamp = JsonConverters.fromJson(json['timestamp'],'DateTime',context!);
xml = json['xml'];
response = json['response'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'timestamp': JsonConverters.toJson(timestamp,'DateTime',context!),
'xml': xml,
'response': response
};
getTypeName() => "InvoiceEconnectLogResponse";
TypeContext? context = _ctx;
}
class InvoiceDynamicsAuditResponse implements IConvertible
{
int? invoice_id;
String? invoice_uuid;
String? reporting_term;
DateTime? invoice_date;
String? invoice_status;
String? description;
double? total_charges;
double? total_credits;
double? net;
int? regent_id;
String? student_uuid;
String? student_name;
String? initiator_name;
bool? has_regis_invoice;
String? reconciliation_type;
String? dynamics_status;
List<InvoiceDynamicsTransactionResponse>? dynamics_transactions;
List<InvoiceEconnectLogResponse>? econnect_logs;
InvoiceDynamicsAuditResponse({this.invoice_id,this.invoice_uuid,this.reporting_term,this.invoice_date,this.invoice_status,this.description,this.total_charges,this.total_credits,this.net,this.regent_id,this.student_uuid,this.student_name,this.initiator_name,this.has_regis_invoice,this.reconciliation_type,this.dynamics_status,this.dynamics_transactions,this.econnect_logs});
InvoiceDynamicsAuditResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
invoice_id = json['invoice_id'];
invoice_uuid = json['invoice_uuid'];
reporting_term = json['reporting_term'];
invoice_date = JsonConverters.fromJson(json['invoice_date'],'DateTime',context!);
invoice_status = json['invoice_status'];
description = json['description'];
total_charges = JsonConverters.toDouble(json['total_charges']);
total_credits = JsonConverters.toDouble(json['total_credits']);
net = JsonConverters.toDouble(json['net']);
regent_id = json['regent_id'];
student_uuid = json['student_uuid'];
student_name = json['student_name'];
initiator_name = json['initiator_name'];
has_regis_invoice = json['has_regis_invoice'];
reconciliation_type = json['reconciliation_type'];
dynamics_status = json['dynamics_status'];
dynamics_transactions = JsonConverters.fromJson(json['dynamics_transactions'],'List<InvoiceDynamicsTransactionResponse>',context!);
econnect_logs = JsonConverters.fromJson(json['econnect_logs'],'List<InvoiceEconnectLogResponse>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'invoice_id': invoice_id,
'invoice_uuid': invoice_uuid,
'reporting_term': reporting_term,
'invoice_date': JsonConverters.toJson(invoice_date,'DateTime',context!),
'invoice_status': invoice_status,
'description': description,
'total_charges': total_charges,
'total_credits': total_credits,
'net': net,
'regent_id': regent_id,
'student_uuid': student_uuid,
'student_name': student_name,
'initiator_name': initiator_name,
'has_regis_invoice': has_regis_invoice,
'reconciliation_type': reconciliation_type,
'dynamics_status': dynamics_status,
'dynamics_transactions': JsonConverters.toJson(dynamics_transactions,'List<InvoiceDynamicsTransactionResponse>',context!),
'econnect_logs': JsonConverters.toJson(econnect_logs,'List<InvoiceEconnectLogResponse>',context!)
};
getTypeName() => "InvoiceDynamicsAuditResponse";
TypeContext? context = _ctx;
}
class InvoiceDynamicsAuditLogsRequest implements IConvertible
{
int? invoice_id;
String? document_number;
String? authorizing_uuid;
InvoiceDynamicsAuditLogsRequest({this.invoice_id,this.document_number,this.authorizing_uuid});
InvoiceDynamicsAuditLogsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
invoice_id = json['invoice_id'];
document_number = json['document_number'];
authorizing_uuid = json['authorizing_uuid'];
return this;
}
Map<String, dynamic> toJson() => {
'invoice_id': invoice_id,
'document_number': document_number,
'authorizing_uuid': authorizing_uuid
};
getTypeName() => "InvoiceDynamicsAuditLogsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
'InvoiceDynamicsTransactionResponse': TypeInfo(TypeOf.Class, create:() => InvoiceDynamicsTransactionResponse()),
'InvoiceEconnectLogResponse': TypeInfo(TypeOf.Class, create:() => InvoiceEconnectLogResponse()),
'InvoiceDynamicsAuditResponse': TypeInfo(TypeOf.Class, create:() => InvoiceDynamicsAuditResponse()),
'List<InvoiceDynamicsTransactionResponse>': TypeInfo(TypeOf.Class, create:() => <InvoiceDynamicsTransactionResponse>[]),
'List<InvoiceEconnectLogResponse>': TypeInfo(TypeOf.Class, create:() => <InvoiceEconnectLogResponse>[]),
'InvoiceDynamicsAuditLogsRequest': TypeInfo(TypeOf.Class, create:() => InvoiceDynamicsAuditLogsRequest()),
});
Dart InvoiceDynamicsAuditLogsRequest 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 /finance/invoice-dynamics-audit/logs HTTP/1.1
Host: data.regent-college.edu
Accept: application/json
Content-Type: application/json
Content-Length: length
{"invoice_id":0,"document_number":"String","authorizing_uuid":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"invoice_id":0,"invoice_uuid":"String","reporting_term":"String","invoice_date":"0001-01-01T00:00:00.0000000","invoice_status":"String","description":"String","total_charges":0,"total_credits":0,"net":0,"regent_id":0,"student_uuid":"String","student_name":"String","initiator_name":"String","has_regis_invoice":false,"reconciliation_type":"String","dynamics_status":"String","dynamics_transactions":[{"dynamics_log_id":0,"action":"String","note":"String","logged_amount":0,"document_number":"String","customer_number":"String","logged_at":"0001-01-01T00:00:00.0000000","regis_invoice_reference":"String","gp_source":"String","found_in_gp":false,"gp_type":0,"gp_status":0,"batch_number":"String","gp_amount":0,"is_open":false,"is_posted":false,"is_void":false,"document_date":"0001-01-01T00:00:00.0000000","posting_date":"0001-01-01T00:00:00.0000000"}],"econnect_logs":[{"id":0,"timestamp":"0001-01-01T00:00:00.0000000","xml":"String","response":"String"}]}