Required permission: | CreatePayments |
POST | /Finance/PaymentV4/CreateId |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class FinancePaymentV4CreateIdResponse implements IConvertible
{
ResponseStatus? responseStatus;
String? payment_id;
FinancePaymentV4CreateIdResponse({this.responseStatus,this.payment_id});
FinancePaymentV4CreateIdResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
payment_id = json['payment_id'];
return this;
}
Map<String, dynamic> toJson() => {
'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
'payment_id': payment_id
};
getTypeName() => "FinancePaymentV4CreateIdResponse";
TypeContext? context = _ctx;
}
class FinancePaymentV4CreateIdRequest implements IConvertible
{
String? department;
String? item;
bool? is_mastercard;
bool? is_visa;
int? regent_id;
FinancePaymentV4CreateIdRequest({this.department,this.item,this.is_mastercard,this.is_visa,this.regent_id});
FinancePaymentV4CreateIdRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
department = json['department'];
item = json['item'];
is_mastercard = json['is_mastercard'];
is_visa = json['is_visa'];
regent_id = json['regent_id'];
return this;
}
Map<String, dynamic> toJson() => {
'department': department,
'item': item,
'is_mastercard': is_mastercard,
'is_visa': is_visa,
'regent_id': regent_id
};
getTypeName() => "FinancePaymentV4CreateIdRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
'FinancePaymentV4CreateIdResponse': TypeInfo(TypeOf.Class, create:() => FinancePaymentV4CreateIdResponse()),
'FinancePaymentV4CreateIdRequest': TypeInfo(TypeOf.Class, create:() => FinancePaymentV4CreateIdRequest()),
});
Dart FinancePaymentV4CreateIdRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Finance/PaymentV4/CreateId HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
department: String,
item: String,
is_mastercard: False,
is_visa: False,
regent_id: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }, payment_id: String }