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: 'wpcdd_featuretest_ws.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 .xml suffix or ?format=xml
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: wpcdd-featuretest-ws.worldpay.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<BankDetailsValidationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CDD_Engine_WS.dto.Requests">
<AccountNumber>String</AccountNumber>
<CSR>String</CSR>
<Sortcode>String</Sortcode>
<SourceCode>String</SourceCode>
</BankDetailsValidationRequest>