POST | /BankAccountValidation/submit |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class BankDetailsValidationRequest
{
public String CSR = null;
public String Sortcode = null;
public String AccountNumber = null;
public String SourceCode = null;
public String getCsr() { return CSR; }
public BankDetailsValidationRequest setCsr(String value) { this.CSR = value; return this; }
public String getSortcode() { return Sortcode; }
public BankDetailsValidationRequest setSortcode(String value) { this.Sortcode = value; return this; }
public String getAccountNumber() { return AccountNumber; }
public BankDetailsValidationRequest setAccountNumber(String value) { this.AccountNumber = value; return this; }
public String getSourceCode() { return SourceCode; }
public BankDetailsValidationRequest setSourceCode(String value) { this.SourceCode = value; return this; }
}
}
Java 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
}