POST | /BankAccountValidation/submit |
---|
import 'package:servicestack/servicestack.dart';
class BankDetailsValidationRequest implements IConvertible
{
String? CSR;
String? Sortcode;
String? AccountNumber;
String? SourceCode;
BankDetailsValidationRequest({this.CSR,this.Sortcode,this.AccountNumber,this.SourceCode});
BankDetailsValidationRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CSR = json['CSR'];
Sortcode = json['Sortcode'];
AccountNumber = json['AccountNumber'];
SourceCode = json['SourceCode'];
return this;
}
Map<String, dynamic> toJson() => {
'CSR': CSR,
'Sortcode': Sortcode,
'AccountNumber': AccountNumber,
'SourceCode': SourceCode
};
getTypeName() => "BankDetailsValidationRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'wp_cddws_test.worldpay.com', types: <String, TypeInfo> {
'BankDetailsValidationRequest': TypeInfo(TypeOf.Class, create:() => BankDetailsValidationRequest()),
});
Dart BankDetailsValidationRequest 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 /BankAccountValidation/submit HTTP/1.1
Host: wp-cddws-test.worldpay.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CSR: String,
Sortcode: String,
AccountNumber: String,
SourceCode: String
}