regis

<back to all web services

InvoiceDynamicsAuditLogsRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<InvoiceDynamicsAuditLogsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
  <authorizing_uuid>String</authorizing_uuid>
  <document_number>String</document_number>
  <invoice_id>0</invoice_id>
</InvoiceDynamicsAuditLogsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<InvoiceDynamicsAuditResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Responses">
  <description>String</description>
  <dynamics_status>String</dynamics_status>
  <dynamics_transactions>
    <InvoiceDynamicsTransactionResponse>
      <action>String</action>
      <batch_number>String</batch_number>
      <customer_number>String</customer_number>
      <document_date>0001-01-01T00:00:00</document_date>
      <document_number>String</document_number>
      <dynamics_log_id>0</dynamics_log_id>
      <found_in_gp>false</found_in_gp>
      <gp_amount>0</gp_amount>
      <gp_source>String</gp_source>
      <gp_status>0</gp_status>
      <gp_type>0</gp_type>
      <is_open>false</is_open>
      <is_posted>false</is_posted>
      <is_void>false</is_void>
      <logged_amount>0</logged_amount>
      <logged_at>0001-01-01T00:00:00</logged_at>
      <note>String</note>
      <posting_date>0001-01-01T00:00:00</posting_date>
      <regis_invoice_reference>String</regis_invoice_reference>
    </InvoiceDynamicsTransactionResponse>
  </dynamics_transactions>
  <econnect_logs>
    <InvoiceEconnectLogResponse>
      <id>0</id>
      <response>String</response>
      <timestamp>0001-01-01T00:00:00</timestamp>
      <xml>String</xml>
    </InvoiceEconnectLogResponse>
  </econnect_logs>
  <has_regis_invoice>false</has_regis_invoice>
  <initiator_name>String</initiator_name>
  <invoice_date>0001-01-01T00:00:00</invoice_date>
  <invoice_id>0</invoice_id>
  <invoice_status>String</invoice_status>
  <invoice_uuid>String</invoice_uuid>
  <reconciliation_type>String</reconciliation_type>
  <regent_id>0</regent_id>
  <reporting_term>String</reporting_term>
  <student_name>String</student_name>
  <student_uuid>String</student_uuid>
  <total_charges>0</total_charges>
  <total_credits>0</total_credits>
</InvoiceDynamicsAuditResponse>