regis

<back to all web services

FinancePaymentRequest

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

class FinancePaymentRequest implements IConvertible
{
    String? uuid;
    double? amount;

    FinancePaymentRequest({this.uuid,this.amount});
    FinancePaymentRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        uuid = json['uuid'];
        amount = JsonConverters.toDouble(json['amount']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'uuid': uuid,
        'amount': amount
    };

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

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

Dart FinancePaymentRequest 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/Payment/{uuid} HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"uuid":"String","amount":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

(string)