/* Options: Date: 2024-07-06 13:18:48 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://wp-cddws-test.worldpay.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: CompaniesHouseRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/CompaniesHouse", Verbs="GET, POST") // @Route(Path="/CompaniesHouse/{CompanyNumber}", Verbs="GET, POST") public static class CompaniesHouseRequest implements IReturn { /** * The registered company number. */ @Required() public String CompanyNumber = null; /** * The Csr of the application (if available). */ public String Csr = null; public String getCompanyNumber() { return CompanyNumber; } public CompaniesHouseRequest setCompanyNumber(String value) { this.CompanyNumber = value; return this; } public String getCsr() { return Csr; } public CompaniesHouseRequest setCsr(String value) { this.Csr = value; return this; } private static Object responseType = CompaniesHouseResponse.class; public Object getResponseType() { return responseType; } } public static class CompaniesHouseResponse { /** * Contains the companies house lookup result when successful. */ public CompaniesHouseData Result = null; /** * Contains response status, details and errors. */ public ResponseStatus ResponseStatus = null; public CompaniesHouseData getResult() { return Result; } public CompaniesHouseResponse setResult(CompaniesHouseData value) { this.Result = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public CompaniesHouseResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } public static class CompaniesHouseData { public String registeredName = null; public CompaniesHouseAddress address = null; public CompaniesHouseIncorporationDate dateOfIncorporation = null; public ArrayList shareHolders = null; public ArrayList directors = null; public String getRegisteredName() { return registeredName; } public CompaniesHouseData setRegisteredName(String value) { this.registeredName = value; return this; } public CompaniesHouseAddress getAddress() { return address; } public CompaniesHouseData setAddress(CompaniesHouseAddress value) { this.address = value; return this; } public CompaniesHouseIncorporationDate getDateOfIncorporation() { return dateOfIncorporation; } public CompaniesHouseData setDateOfIncorporation(CompaniesHouseIncorporationDate value) { this.dateOfIncorporation = value; return this; } public ArrayList getShareHolders() { return shareHolders; } public CompaniesHouseData setShareHolders(ArrayList value) { this.shareHolders = value; return this; } public ArrayList getDirectors() { return directors; } public CompaniesHouseData setDirectors(ArrayList value) { this.directors = value; return this; } } public static class CompaniesHouseAddress { public String address1 = null; public String address2 = null; public String address3 = null; public String city = null; public String postcode = null; public String getAddress1() { return address1; } public CompaniesHouseAddress setAddress1(String value) { this.address1 = value; return this; } public String getAddress2() { return address2; } public CompaniesHouseAddress setAddress2(String value) { this.address2 = value; return this; } public String getAddress3() { return address3; } public CompaniesHouseAddress setAddress3(String value) { this.address3 = value; return this; } public String getCity() { return city; } public CompaniesHouseAddress setCity(String value) { this.city = value; return this; } public String getPostcode() { return postcode; } public CompaniesHouseAddress setPostcode(String value) { this.postcode = value; return this; } } public static class CompaniesHouseIncorporationDate { public Integer day = null; public Integer month = null; public Integer year = null; public Integer getDay() { return day; } public CompaniesHouseIncorporationDate setDay(Integer value) { this.day = value; return this; } public Integer getMonth() { return month; } public CompaniesHouseIncorporationDate setMonth(Integer value) { this.month = value; return this; } public Integer getYear() { return year; } public CompaniesHouseIncorporationDate setYear(Integer value) { this.year = value; return this; } } public static class CompaniesHouseShareHolderData { public String title = null; public String firstName = null; public String middleNames = null; public String lastName = null; public Double percentageOfVotingSharesOwned = null; public String getTitle() { return title; } public CompaniesHouseShareHolderData setTitle(String value) { this.title = value; return this; } public String getFirstName() { return firstName; } public CompaniesHouseShareHolderData setFirstName(String value) { this.firstName = value; return this; } public String getMiddleNames() { return middleNames; } public CompaniesHouseShareHolderData setMiddleNames(String value) { this.middleNames = value; return this; } public String getLastName() { return lastName; } public CompaniesHouseShareHolderData setLastName(String value) { this.lastName = value; return this; } public Double getPercentageOfVotingSharesOwned() { return percentageOfVotingSharesOwned; } public CompaniesHouseShareHolderData setPercentageOfVotingSharesOwned(Double value) { this.percentageOfVotingSharesOwned = value; return this; } } public static class CompaniesHouseDirectorsData { public String title = null; public String firstName = null; public String middleNames = null; public String lastName = null; public String getTitle() { return title; } public CompaniesHouseDirectorsData setTitle(String value) { this.title = value; return this; } public String getFirstName() { return firstName; } public CompaniesHouseDirectorsData setFirstName(String value) { this.firstName = value; return this; } public String getMiddleNames() { return middleNames; } public CompaniesHouseDirectorsData setMiddleNames(String value) { this.middleNames = value; return this; } public String getLastName() { return lastName; } public CompaniesHouseDirectorsData setLastName(String value) { this.lastName = value; return this; } } }