/* Options: Date: 2024-12-29 02:30:37 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://data.regent-college.edu //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: FinanceCreatePayableRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class FinanceCreatePayableDistributionRequest implements IConvertible { String? account; double? amount; String? description; FinanceCreatePayableDistributionRequest({this.account,this.amount,this.description}); FinanceCreatePayableDistributionRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { account = json['account']; amount = JsonConverters.toDouble(json['amount']); description = json['description']; return this; } Map toJson() => { 'account': account, 'amount': amount, 'description': description }; getTypeName() => "FinanceCreatePayableDistributionRequest"; TypeContext? context = _ctx; } class FinancePayableResponse implements IConvertible { String? cheque_id; String? invoice_id; String? batch_id; String? transaction_batch_id; double? total_amount; double? unapplied_amount; String? description; String? vendor_id; String? vendor_name; String? doc_type; bool? is_posted; bool? is_paid; bool? is_voided; bool? is_reimbursed; DateTime? doc_date; DateTime? post_date; DateTime? cheque_date; DateTime? due_date; ResponseStatus? responseStatus; FinancePayableResponse({this.cheque_id,this.invoice_id,this.batch_id,this.transaction_batch_id,this.total_amount,this.unapplied_amount,this.description,this.vendor_id,this.vendor_name,this.doc_type,this.is_posted,this.is_paid,this.is_voided,this.is_reimbursed,this.doc_date,this.post_date,this.cheque_date,this.due_date,this.responseStatus}); FinancePayableResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { cheque_id = json['cheque_id']; invoice_id = json['invoice_id']; batch_id = json['batch_id']; transaction_batch_id = json['transaction_batch_id']; total_amount = JsonConverters.toDouble(json['total_amount']); unapplied_amount = JsonConverters.toDouble(json['unapplied_amount']); description = json['description']; vendor_id = json['vendor_id']; vendor_name = json['vendor_name']; doc_type = json['doc_type']; is_posted = json['is_posted']; is_paid = json['is_paid']; is_voided = json['is_voided']; is_reimbursed = json['is_reimbursed']; doc_date = JsonConverters.fromJson(json['doc_date'],'DateTime',context!); post_date = JsonConverters.fromJson(json['post_date'],'DateTime',context!); cheque_date = JsonConverters.fromJson(json['cheque_date'],'DateTime',context!); due_date = JsonConverters.fromJson(json['due_date'],'DateTime',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'cheque_id': cheque_id, 'invoice_id': invoice_id, 'batch_id': batch_id, 'transaction_batch_id': transaction_batch_id, 'total_amount': total_amount, 'unapplied_amount': unapplied_amount, 'description': description, 'vendor_id': vendor_id, 'vendor_name': vendor_name, 'doc_type': doc_type, 'is_posted': is_posted, 'is_paid': is_paid, 'is_voided': is_voided, 'is_reimbursed': is_reimbursed, 'doc_date': JsonConverters.toJson(doc_date,'DateTime',context!), 'post_date': JsonConverters.toJson(post_date,'DateTime',context!), 'cheque_date': JsonConverters.toJson(cheque_date,'DateTime',context!), 'due_date': JsonConverters.toJson(due_date,'DateTime',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "FinancePayableResponse"; TypeContext? context = _ctx; } // @Route("/Finance/CreatePayable/{vendor_id}", "POST") class FinanceCreatePayableRequest implements IReturn, IConvertible, IPost { String? vendor_id; double? total_amount; double? tax_amount; String? tax_schedule; String? tax_account; String? description; String? batch_id; bool? is_eft; String? invoice_id; String? chequebook; DateTime? document_date; DateTime? post_date; List? distributions; FinanceCreatePayableRequest({this.vendor_id,this.total_amount,this.tax_amount,this.tax_schedule,this.tax_account,this.description,this.batch_id,this.is_eft,this.invoice_id,this.chequebook,this.document_date,this.post_date,this.distributions}); FinanceCreatePayableRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { vendor_id = json['vendor_id']; total_amount = JsonConverters.toDouble(json['total_amount']); tax_amount = JsonConverters.toDouble(json['tax_amount']); tax_schedule = json['tax_schedule']; tax_account = json['tax_account']; description = json['description']; batch_id = json['batch_id']; is_eft = json['is_eft']; invoice_id = json['invoice_id']; chequebook = json['chequebook']; document_date = JsonConverters.fromJson(json['document_date'],'DateTime',context!); post_date = JsonConverters.fromJson(json['post_date'],'DateTime',context!); distributions = JsonConverters.fromJson(json['distributions'],'List',context!); return this; } Map toJson() => { 'vendor_id': vendor_id, 'total_amount': total_amount, 'tax_amount': tax_amount, 'tax_schedule': tax_schedule, 'tax_account': tax_account, 'description': description, 'batch_id': batch_id, 'is_eft': is_eft, 'invoice_id': invoice_id, 'chequebook': chequebook, 'document_date': JsonConverters.toJson(document_date,'DateTime',context!), 'post_date': JsonConverters.toJson(post_date,'DateTime',context!), 'distributions': JsonConverters.toJson(distributions,'List',context!) }; createResponse() => FinancePayableResponse(); getResponseTypeName() => "FinancePayableResponse"; getTypeName() => "FinanceCreatePayableRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'FinanceCreatePayableDistributionRequest': TypeInfo(TypeOf.Class, create:() => FinanceCreatePayableDistributionRequest()), 'FinancePayableResponse': TypeInfo(TypeOf.Class, create:() => FinancePayableResponse()), 'FinanceCreatePayableRequest': TypeInfo(TypeOf.Class, create:() => FinanceCreatePayableRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });