Booster.Microservices

<back to all web services

ValidatePostalAddress

Requires Authentication
The following routes are available for this service:
POST/warranty/v1/ValidatePostalAddress
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ValidatePostalAddress extends BaseRequest<ValidatePostalAddressResponse>
    {
        public String zipCode = null;
        public String region = null;
        public String city = null;
        public String street = null;
        public String houseNumber = null;
        public String countryId = null;
        
        public String getZipCode() { return zipCode; }
        public ValidatePostalAddress setZipCode(String value) { this.zipCode = value; return this; }
        public String getRegion() { return region; }
        public ValidatePostalAddress setRegion(String value) { this.region = value; return this; }
        public String getCity() { return city; }
        public ValidatePostalAddress setCity(String value) { this.city = value; return this; }
        public String getStreet() { return street; }
        public ValidatePostalAddress setStreet(String value) { this.street = value; return this; }
        public String getHouseNumber() { return houseNumber; }
        public ValidatePostalAddress setHouseNumber(String value) { this.houseNumber = value; return this; }
        public String getCountryId() { return countryId; }
        public ValidatePostalAddress setCountryId(String value) { this.countryId = value; return this; }
    }

    public static class BaseRequest<TResponse> implements IRequest
    {
        public String sid = null;
        public String app = null;
        public String _os = null;
        public String _appVersion = null;
        public String _searchMethod = null;
        
        public String getSid() { return sid; }
        public BaseRequest<TResponse> setSid(String value) { this.sid = value; return this; }
        public String getApp() { return app; }
        public BaseRequest<TResponse> setApp(String value) { this.app = value; return this; }
        public String getOs() { return _os; }
        public BaseRequest<TResponse> setOs(String value) { this._os = value; return this; }
        public String getAppVersion() { return _appVersion; }
        public BaseRequest<TResponse> setAppVersion(String value) { this._appVersion = value; return this; }
        public String getSearchMethod() { return _searchMethod; }
        public BaseRequest<TResponse> setSearchMethod(String value) { this._searchMethod = value; return this; }
    }

    public static class ValidatePostalAddressResponse extends BaseResponse
    {
        public ResponseStatus ResponseStatus = null;
        public status status = null;
        public suggestion suggestion = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ValidatePostalAddressResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public status getStatus() { return status; }
        public ValidatePostalAddressResponse setStatus(status value) { this.status = value; return this; }
        public suggestion getSuggestion() { return suggestion; }
        public ValidatePostalAddressResponse setSuggestion(suggestion value) { this.suggestion = value; return this; }
    }

    public static class BaseResponse implements IRespose
    {
        public String _xmlns = null;
        public String _type = null;
        public String _source = null;
        public String _tstamp = null;
        public String _user = null;
        public String _env = null;
        public String _uri = null;
        public String _query = null;
        
        public String getXmlns() { return _xmlns; }
        public BaseResponse setXmlns(String value) { this._xmlns = value; return this; }
        public String getType() { return _type; }
        public BaseResponse setType(String value) { this._type = value; return this; }
        public String getSource() { return _source; }
        public BaseResponse setSource(String value) { this._source = value; return this; }
        public String getTstamp() { return _tstamp; }
        public BaseResponse setTstamp(String value) { this._tstamp = value; return this; }
        public String getUser() { return _user; }
        public BaseResponse setUser(String value) { this._user = value; return this; }
        public String getEnv() { return _env; }
        public BaseResponse setEnv(String value) { this._env = value; return this; }
        public String getUri() { return _uri; }
        public BaseResponse setUri(String value) { this._uri = value; return this; }
        public String getQuery() { return _query; }
        public BaseResponse setQuery(String value) { this._query = value; return this; }
    }

    public static class status
    {
        public String errorCode = null;
        public String validationStatusCode = null;
        public Integer statusId = null;
        public String errorDescription = null;
        public String statusDescription = null;
        
        public String getErrorCode() { return errorCode; }
        public status setErrorCode(String value) { this.errorCode = value; return this; }
        public String getValidationStatusCode() { return validationStatusCode; }
        public status setValidationStatusCode(String value) { this.validationStatusCode = value; return this; }
        public Integer getStatusId() { return statusId; }
        public status setStatusId(Integer value) { this.statusId = value; return this; }
        public String getErrorDescription() { return errorDescription; }
        public status setErrorDescription(String value) { this.errorDescription = value; return this; }
        public String getStatusDescription() { return statusDescription; }
        public status setStatusDescription(String value) { this.statusDescription = value; return this; }
    }

    public static class suggestion
    {
        public String zipCode = null;
        public String regionId = null;
        public String regionDescription = null;
        public String city = null;
        public String street = null;
        public String houseNumber = null;
        public String countryId = null;
        public String countryDescription = null;
        
        public String getZipCode() { return zipCode; }
        public suggestion setZipCode(String value) { this.zipCode = value; return this; }
        public String getRegionId() { return regionId; }
        public suggestion setRegionId(String value) { this.regionId = value; return this; }
        public String getRegionDescription() { return regionDescription; }
        public suggestion setRegionDescription(String value) { this.regionDescription = value; return this; }
        public String getCity() { return city; }
        public suggestion setCity(String value) { this.city = value; return this; }
        public String getStreet() { return street; }
        public suggestion setStreet(String value) { this.street = value; return this; }
        public String getHouseNumber() { return houseNumber; }
        public suggestion setHouseNumber(String value) { this.houseNumber = value; return this; }
        public String getCountryId() { return countryId; }
        public suggestion setCountryId(String value) { this.countryId = value; return this; }
        public String getCountryDescription() { return countryDescription; }
        public suggestion setCountryDescription(String value) { this.countryDescription = value; return this; }
    }

}

Java ValidatePostalAddress DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /warranty/v1/ValidatePostalAddress HTTP/1.1 
Host: qp-microservices-booster.richemont.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ValidatePostalAddress xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Sale">
  <_appVersion xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_appVersion>
  <_os xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_os>
  <_searchMethod xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_searchMethod>
  <app xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</app>
  <sid xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</sid>
  <city>String</city>
  <countryId>String</countryId>
  <houseNumber>String</houseNumber>
  <region>String</region>
  <street>String</street>
  <zipCode>String</zipCode>
</ValidatePostalAddress>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ValidatePostalAddressResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Sale">
  <_env xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_env>
  <_query xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_query>
  <_source xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_source>
  <_tstamp xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_tstamp>
  <_type xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_type>
  <_uri xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_uri>
  <_user xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_user>
  <_xmlns xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_xmlns>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <status>
    <errorCode>String</errorCode>
    <errorDescription>String</errorDescription>
    <statusDescription>String</statusDescription>
    <statusId>0</statusId>
    <validationStatusCode>String</validationStatusCode>
  </status>
  <suggestion>
    <city>String</city>
    <countryDescription>String</countryDescription>
    <countryId>String</countryId>
    <houseNumber>String</houseNumber>
    <regionDescription>String</regionDescription>
    <regionId>String</regionId>
    <street>String</street>
    <zipCode>String</zipCode>
  </suggestion>
</ValidatePostalAddressResponse>