regis

<back to all web services

FinanceAdjustmentSubmitRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/Finance/{uuid}/Adjustment/{reporting_term}/Submit
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class FinanceAdjustmentRateSubmitRequest implements IConvertible
{
    int? rate_id;
    String? description;
    double? charge;
    double? credit;
    String? custom_gl;

    FinanceAdjustmentRateSubmitRequest({this.rate_id,this.description,this.charge,this.credit,this.custom_gl});
    FinanceAdjustmentRateSubmitRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        rate_id = json['rate_id'];
        description = json['description'];
        charge = JsonConverters.toDouble(json['charge']);
        credit = JsonConverters.toDouble(json['credit']);
        custom_gl = json['custom_gl'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'rate_id': rate_id,
        'description': description,
        'charge': charge,
        'credit': credit,
        'custom_gl': custom_gl
    };

    getTypeName() => "FinanceAdjustmentRateSubmitRequest";
    TypeContext? context = _ctx;
}

class FinanceAdjustmentSubmitRequest implements IConvertible
{
    String? uuid;
    String? reporting_term;
    List<FinanceAdjustmentRateSubmitRequest>? rates;
    String? description;
    String? authorizing_uuid;
    bool? is_financial_aid;
    DateTime? added_date;

    FinanceAdjustmentSubmitRequest({this.uuid,this.reporting_term,this.rates,this.description,this.authorizing_uuid,this.is_financial_aid,this.added_date});
    FinanceAdjustmentSubmitRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        uuid = json['uuid'];
        reporting_term = json['reporting_term'];
        rates = JsonConverters.fromJson(json['rates'],'List<FinanceAdjustmentRateSubmitRequest>',context!);
        description = json['description'];
        authorizing_uuid = json['authorizing_uuid'];
        is_financial_aid = json['is_financial_aid'];
        added_date = JsonConverters.fromJson(json['added_date'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'uuid': uuid,
        'reporting_term': reporting_term,
        'rates': JsonConverters.toJson(rates,'List<FinanceAdjustmentRateSubmitRequest>',context!),
        'description': description,
        'authorizing_uuid': authorizing_uuid,
        'is_financial_aid': is_financial_aid,
        'added_date': JsonConverters.toJson(added_date,'DateTime',context!)
    };

    getTypeName() => "FinanceAdjustmentSubmitRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
    'FinanceAdjustmentRateSubmitRequest': TypeInfo(TypeOf.Class, create:() => FinanceAdjustmentRateSubmitRequest()),
    'FinanceAdjustmentSubmitRequest': TypeInfo(TypeOf.Class, create:() => FinanceAdjustmentSubmitRequest()),
    'List<FinanceAdjustmentRateSubmitRequest>': TypeInfo(TypeOf.Class, create:() => <FinanceAdjustmentRateSubmitRequest>[]),
});

Dart FinanceAdjustmentSubmitRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Finance/{uuid}/Adjustment/{reporting_term}/Submit HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"uuid":"String","reporting_term":"String","rates":[{"rate_id":0,"description":"String","charge":0,"credit":0,"custom_gl":"String"}],"description":"String","authorizing_uuid":"String","is_financial_aid":false,"added_date":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}