/* Options: Date: 2025-06-24 23:34:04 Version: 6.90 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://webservices.mbukdatabase.co.uk/AddressLookup //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: PostcodeLookupRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { /** * This RESTful API returns UK Address data in both POST and GET. Input=Postcode(Mandatory), HouseNameorNumber=(Optional). You must provide valid authentication to make a request. */ @Route(Path="/address", Verbs="POST") // @Route(Path="/address/{Postcode}", Verbs="GET") // @Route(Path="/address/{Postcode}/{HouseNo}", Verbs="GET") @Api(Description="This RESTful API returns UK Address data in both POST and GET. Input=Postcode(Mandatory), HouseNameorNumber=(Optional). You must provide valid authentication to make a request.") @ApiResponse(Description="Bad Request: Try formatting the request differently. See the /swagger-ui/ documentation for more details", StatusCode=400) // @ApiResponse(Description="Something went wrong here. Please contact your administrator or servicedesk@uk.rapp.com for more details.", StatusCode=500) // @ApiResponse(Description="Request Accepted", StatusCode=202) // @ApiResponse(Description="No content returned", StatusCode=204) public static class PostcodeLookupRequest { /** * Using a Postcode to return addresses. */ @ApiMember(DataType="string", Description="Using a Postcode to return addresses.", IsRequired=true, Name="Postcode") public String Postcode = null; /** * Optional input value to limit the return data to a specific address. */ @ApiMember(DataType="string", Description="Optional input value to limit the return data to a specific address.", Name="House Name or Number") public String HouseNo = null; public String getPostcode() { return Postcode; } public PostcodeLookupRequest setPostcode(String value) { this.Postcode = value; return this; } public String getHouseNo() { return HouseNo; } public PostcodeLookupRequest setHouseNo(String value) { this.HouseNo = value; return this; } } }