Required role: | REGISUserRole |
POST | /Finance/AccountLate/{reporting_term}/Charge |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class FinanceAccountLateChargeRequest implements IConvertible
{
String? authorizing_uuid;
String? reporting_term;
bool? is_preview_only;
bool? send_emails;
DateTime? override_late_date;
FinanceAccountLateChargeRequest({this.authorizing_uuid,this.reporting_term,this.is_preview_only,this.send_emails,this.override_late_date});
FinanceAccountLateChargeRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
authorizing_uuid = json['authorizing_uuid'];
reporting_term = json['reporting_term'];
is_preview_only = json['is_preview_only'];
send_emails = json['send_emails'];
override_late_date = JsonConverters.fromJson(json['override_late_date'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'authorizing_uuid': authorizing_uuid,
'reporting_term': reporting_term,
'is_preview_only': is_preview_only,
'send_emails': send_emails,
'override_late_date': JsonConverters.toJson(override_late_date,'DateTime',context!)
};
getTypeName() => "FinanceAccountLateChargeRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
'FinanceAccountLateChargeRequest': TypeInfo(TypeOf.Class, create:() => FinanceAccountLateChargeRequest()),
});
Dart FinanceAccountLateChargeRequest 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/AccountLate/{reporting_term}/Charge HTTP/1.1
Host: data.regent-college.edu
Accept: application/json
Content-Type: application/json
Content-Length: length
{"authorizing_uuid":"String","reporting_term":"String","is_preview_only":false,"send_emails":false,"override_late_date":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length [{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"regent_id":0,"first_name":"String","last_name":"String","uuid":"String","has_late_reg_fee":false,"amount_owing":0,"late_fee":0,"interest":0,"active_financial_restrictions":"String","new_financial_restriction":"String","last_registration_date":"0001-01-01T00:00:00.0000000"}]