POST | /authplus/realtime |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class AuthPlusRealtimeCheckDataRequest
{
public String ApplicationGUID = null;
public Integer CSR = null;
public ArrayList<OwnerDetails> Owners = null;
public String getApplicationGUID() { return ApplicationGUID; }
public AuthPlusRealtimeCheckDataRequest setApplicationGUID(String value) { this.ApplicationGUID = value; return this; }
public Integer getCsr() { return CSR; }
public AuthPlusRealtimeCheckDataRequest setCsr(Integer value) { this.CSR = value; return this; }
public ArrayList<OwnerDetails> getOwners() { return Owners; }
public AuthPlusRealtimeCheckDataRequest setOwners(ArrayList<OwnerDetails> value) { this.Owners = value; return this; }
}
public static class OwnerDetails
{
public Integer dayOfBirth = null;
public Integer monthOfBirth = null;
public Integer yearOfBirth = null;
public Double ownershipPercentage = null;
public AddressData homeAddress = null;
public Boolean currentAddressLessThanThreeYears = null;
public AddressData previousHomeAddress = null;
public ContactNameData name = null;
public Boolean director = null;
public String nationality = null;
public String position = null;
public Integer timeAtHomeAddressYears = null;
public Integer timeAtHomeAddressMonths = null;
public String PrimaryPartyID = null;
public ArrayList<IdentityVerificationDocuments> identityVerificationDocuments = null;
public Integer getDayOfBirth() { return dayOfBirth; }
public OwnerDetails setDayOfBirth(Integer value) { this.dayOfBirth = value; return this; }
public Integer getMonthOfBirth() { return monthOfBirth; }
public OwnerDetails setMonthOfBirth(Integer value) { this.monthOfBirth = value; return this; }
public Integer getYearOfBirth() { return yearOfBirth; }
public OwnerDetails setYearOfBirth(Integer value) { this.yearOfBirth = value; return this; }
public Double getOwnershipPercentage() { return ownershipPercentage; }
public OwnerDetails setOwnershipPercentage(Double value) { this.ownershipPercentage = value; return this; }
public AddressData getHomeAddress() { return homeAddress; }
public OwnerDetails setHomeAddress(AddressData value) { this.homeAddress = value; return this; }
public Boolean isCurrentAddressLessThanThreeYears() { return currentAddressLessThanThreeYears; }
public OwnerDetails setCurrentAddressLessThanThreeYears(Boolean value) { this.currentAddressLessThanThreeYears = value; return this; }
public AddressData getPreviousHomeAddress() { return previousHomeAddress; }
public OwnerDetails setPreviousHomeAddress(AddressData value) { this.previousHomeAddress = value; return this; }
public ContactNameData getName() { return name; }
public OwnerDetails setName(ContactNameData value) { this.name = value; return this; }
public Boolean isDirector() { return director; }
public OwnerDetails setDirector(Boolean value) { this.director = value; return this; }
public String getNationality() { return nationality; }
public OwnerDetails setNationality(String value) { this.nationality = value; return this; }
public String getPosition() { return position; }
public OwnerDetails setPosition(String value) { this.position = value; return this; }
public Integer getTimeAtHomeAddressYears() { return timeAtHomeAddressYears; }
public OwnerDetails setTimeAtHomeAddressYears(Integer value) { this.timeAtHomeAddressYears = value; return this; }
public Integer getTimeAtHomeAddressMonths() { return timeAtHomeAddressMonths; }
public OwnerDetails setTimeAtHomeAddressMonths(Integer value) { this.timeAtHomeAddressMonths = value; return this; }
public String getPrimaryPartyID() { return PrimaryPartyID; }
public OwnerDetails setPrimaryPartyID(String value) { this.PrimaryPartyID = value; return this; }
public ArrayList<IdentityVerificationDocuments> getIdentityVerificationDocuments() { return identityVerificationDocuments; }
public OwnerDetails setIdentityVerificationDocuments(ArrayList<IdentityVerificationDocuments> value) { this.identityVerificationDocuments = value; return this; }
}
public static class AddressData
{
public String address1 = null;
public String address2 = null;
public String address3 = null;
public String postalCode = null;
public String city = null;
public String state = null;
public String countryCode = null;
public String getAddress1() { return address1; }
public AddressData setAddress1(String value) { this.address1 = value; return this; }
public String getAddress2() { return address2; }
public AddressData setAddress2(String value) { this.address2 = value; return this; }
public String getAddress3() { return address3; }
public AddressData setAddress3(String value) { this.address3 = value; return this; }
public String getPostalCode() { return postalCode; }
public AddressData setPostalCode(String value) { this.postalCode = value; return this; }
public String getCity() { return city; }
public AddressData setCity(String value) { this.city = value; return this; }
public String getState() { return state; }
public AddressData setState(String value) { this.state = value; return this; }
public String getCountryCode() { return countryCode; }
public AddressData setCountryCode(String value) { this.countryCode = value; return this; }
}
public static class ContactNameData
{
public String title = null;
public String firstName = null;
public String middleName = null;
public String lastName = null;
public String getTitle() { return title; }
public ContactNameData setTitle(String value) { this.title = value; return this; }
public String getFirstName() { return firstName; }
public ContactNameData setFirstName(String value) { this.firstName = value; return this; }
public String getMiddleName() { return middleName; }
public ContactNameData setMiddleName(String value) { this.middleName = value; return this; }
public String getLastName() { return lastName; }
public ContactNameData setLastName(String value) { this.lastName = value; return this; }
}
public static class IdentityVerificationDocuments
{
public String documentId = null;
public String authenticity = null;
public String getDocumentId() { return documentId; }
public IdentityVerificationDocuments setDocumentId(String value) { this.documentId = value; return this; }
public String getAuthenticity() { return authenticity; }
public IdentityVerificationDocuments setAuthenticity(String value) { this.authenticity = value; return this; }
}
}
Java AuthPlusRealtimeCheckDataRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /authplus/realtime HTTP/1.1
Host: wpcdd-featuretest-ws.worldpay.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ApplicationGUID":"String","CSR":0,"Owners":[{"dayOfBirth":0,"monthOfBirth":0,"yearOfBirth":0,"ownershipPercentage":0,"homeAddress":{"address1":"String","address2":"String","address3":"String","postalCode":"String","city":"String","state":"String","countryCode":"String"},"currentAddressLessThanThreeYears":false,"previousHomeAddress":{"address1":"String","address2":"String","address3":"String","postalCode":"String","city":"String","state":"String","countryCode":"String"},"name":{"title":"String","firstName":"String","middleName":"String","lastName":"String"},"director":false,"nationality":"String","position":"String","timeAtHomeAddressYears":0,"timeAtHomeAddressMonths":0,"PrimaryPartyID":"String","identityVerificationDocuments":[{"documentId":"String","authenticity":"String"}]}]}