regis

<back to all web services

FinancePayStudentAccountByCardRequest

Requires Authentication
Required permission:CreatePayments
The following routes are available for this service:
POST/Finance/Pay/{regent_id}
POST/Finance/Pay
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class FinancePayStudentAccountByCardResponse implements IConvertible
{
    ResponseStatus? responseStatus;
    bool? success;

    FinancePayStudentAccountByCardResponse({this.responseStatus,this.success});
    FinancePayStudentAccountByCardResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        success = json['success'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
        'success': success
    };

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

class FinancePayStudentAccountByCardRequest implements IConvertible
{
    int? regent_id;
    double? amount;
    bool? is_visa;
    bool? is_mastercard;
    bool? is_interac;
    bool? is_paymytuition;
    String? payment_id;

    FinancePayStudentAccountByCardRequest({this.regent_id,this.amount,this.is_visa,this.is_mastercard,this.is_interac,this.is_paymytuition,this.payment_id});
    FinancePayStudentAccountByCardRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        regent_id = json['regent_id'];
        amount = JsonConverters.toDouble(json['amount']);
        is_visa = json['is_visa'];
        is_mastercard = json['is_mastercard'];
        is_interac = json['is_interac'];
        is_paymytuition = json['is_paymytuition'];
        payment_id = json['payment_id'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'regent_id': regent_id,
        'amount': amount,
        'is_visa': is_visa,
        'is_mastercard': is_mastercard,
        'is_interac': is_interac,
        'is_paymytuition': is_paymytuition,
        'payment_id': payment_id
    };

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

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

Dart FinancePayStudentAccountByCardRequest DTOs

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

HTTP + OTHER

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

POST /Finance/Pay/{regent_id} HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"regent_id":0,"amount":0,"is_visa":false,"is_mastercard":false,"is_interac":false,"is_paymytuition":false,"payment_id":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

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