Booster.Microservices

<back to all web services

SitesRequest

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

public class dtos
{

    public static class SitesRequest extends BaseRequest<SitesResponse>
    {
        
    }

    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 SitesResponse extends BaseResponse
    {
        public ArrayList<Site> sites = null;
        
        public ArrayList<Site> getSites() { return sites; }
        public SitesResponse setSites(ArrayList<Site> value) { this.sites = 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 Site implements ILookupInt
    {
        public String object = null;
        public Integer id = null;
        public String name = null;
        public Address address = null;
        public ArrayList<Brand> brands = null;
        public ArrayList<User> users = null;
        public Integer isNfcActive = null;
        public Integer isIOsEmbReaderEnable = null;
        public Boolean crmPrivacyPolicyMandatory = null;
        public Boolean crmAllowStoreDataAbroadVisible = null;
        public Boolean displayFirstLastNameNotLatin = null;
        public String languageTransliteration = null;
        public Boolean crmPrivacyPolicyTimeValleeMandatory = null;
        public Boolean crmAllowStoreDataAbroadTimeValleeVisible = null;
        public Boolean allowToCreateEndCustomerOutsideChina = null;
        public Boolean isTimeVallee = null;
        public Boolean doNotDisplayPOSDataInDisclaimers = null;
        public Boolean crmFirstNameMandatory = null;
        public Boolean manageOwnStock = null;
        public Boolean crmCityMandatory = null;
        
        public String getObject() { return object; }
        public Site setObject(String value) { this.object = value; return this; }
        public Integer getId() { return id; }
        public Site setId(Integer value) { this.id = value; return this; }
        public String getName() { return name; }
        public Site setName(String value) { this.name = value; return this; }
        public Address getAddress() { return address; }
        public Site setAddress(Address value) { this.address = value; return this; }
        public ArrayList<Brand> getBrands() { return brands; }
        public Site setBrands(ArrayList<Brand> value) { this.brands = value; return this; }
        public ArrayList<User> getUsers() { return users; }
        public Site setUsers(ArrayList<User> value) { this.users = value; return this; }
        public Integer getIsNfcActive() { return isNfcActive; }
        public Site setIsNfcActive(Integer value) { this.isNfcActive = value; return this; }
        public Integer getIsIOsEmbReaderEnable() { return isIOsEmbReaderEnable; }
        public Site setIsIOsEmbReaderEnable(Integer value) { this.isIOsEmbReaderEnable = value; return this; }
        public Boolean isCrmPrivacyPolicyMandatory() { return crmPrivacyPolicyMandatory; }
        public Site setCrmPrivacyPolicyMandatory(Boolean value) { this.crmPrivacyPolicyMandatory = value; return this; }
        public Boolean isCrmAllowStoreDataAbroadVisible() { return crmAllowStoreDataAbroadVisible; }
        public Site setCrmAllowStoreDataAbroadVisible(Boolean value) { this.crmAllowStoreDataAbroadVisible = value; return this; }
        public Boolean isDisplayFirstLastNameNotLatin() { return displayFirstLastNameNotLatin; }
        public Site setDisplayFirstLastNameNotLatin(Boolean value) { this.displayFirstLastNameNotLatin = value; return this; }
        public String getLanguageTransliteration() { return languageTransliteration; }
        public Site setLanguageTransliteration(String value) { this.languageTransliteration = value; return this; }
        public Boolean isCrmPrivacyPolicyTimeValleeMandatory() { return crmPrivacyPolicyTimeValleeMandatory; }
        public Site setCrmPrivacyPolicyTimeValleeMandatory(Boolean value) { this.crmPrivacyPolicyTimeValleeMandatory = value; return this; }
        public Boolean isCrmAllowStoreDataAbroadTimeValleeVisible() { return crmAllowStoreDataAbroadTimeValleeVisible; }
        public Site setCrmAllowStoreDataAbroadTimeValleeVisible(Boolean value) { this.crmAllowStoreDataAbroadTimeValleeVisible = value; return this; }
        public Boolean isAllowToCreateEndCustomerOutsideChina() { return allowToCreateEndCustomerOutsideChina; }
        public Site setAllowToCreateEndCustomerOutsideChina(Boolean value) { this.allowToCreateEndCustomerOutsideChina = value; return this; }
        public Boolean getIsTimeVallee() { return isTimeVallee; }
        public Site setIsTimeVallee(Boolean value) { this.isTimeVallee = value; return this; }
        public Boolean isDoNotDisplayPOSDataInDisclaimers() { return doNotDisplayPOSDataInDisclaimers; }
        public Site setDoNotDisplayPOSDataInDisclaimers(Boolean value) { this.doNotDisplayPOSDataInDisclaimers = value; return this; }
        public Boolean isCrmFirstNameMandatory() { return crmFirstNameMandatory; }
        public Site setCrmFirstNameMandatory(Boolean value) { this.crmFirstNameMandatory = value; return this; }
        public Boolean isManageOwnStock() { return manageOwnStock; }
        public Site setManageOwnStock(Boolean value) { this.manageOwnStock = value; return this; }
        public Boolean isCrmCityMandatory() { return crmCityMandatory; }
        public Site setCrmCityMandatory(Boolean value) { this.crmCityMandatory = value; return this; }
    }

    public static class Address
    {
        public String line1 = null;
        public String city = null;
        public String zipCode = null;
        public String countryCode = null;
        
        public String getLine1() { return line1; }
        public Address setLine1(String value) { this.line1 = value; return this; }
        public String getCity() { return city; }
        public Address setCity(String value) { this.city = value; return this; }
        public String getZipCode() { return zipCode; }
        public Address setZipCode(String value) { this.zipCode = value; return this; }
        public String getCountryCode() { return countryCode; }
        public Address setCountryCode(String value) { this.countryCode = value; return this; }
    }

    public static class Brand
    {
        public String brand = null;
        public String lastStockTakingDate = null;
        public Integer isAutomaticInvoiceNumberEnabled = null;
        public Boolean saleRepRequired = null;
        public Boolean crmSaleRepRequired = null;
        public Boolean showPromoterType = null;
        public Integer stockOwner = null;
        
        public String getBrand() { return brand; }
        public Brand setBrand(String value) { this.brand = value; return this; }
        public String getLastStockTakingDate() { return lastStockTakingDate; }
        public Brand setLastStockTakingDate(String value) { this.lastStockTakingDate = value; return this; }
        public Integer getIsAutomaticInvoiceNumberEnabled() { return isAutomaticInvoiceNumberEnabled; }
        public Brand setIsAutomaticInvoiceNumberEnabled(Integer value) { this.isAutomaticInvoiceNumberEnabled = value; return this; }
        public Boolean isSaleRepRequired() { return saleRepRequired; }
        public Brand setSaleRepRequired(Boolean value) { this.saleRepRequired = value; return this; }
        public Boolean isCrmSaleRepRequired() { return crmSaleRepRequired; }
        public Brand setCrmSaleRepRequired(Boolean value) { this.crmSaleRepRequired = value; return this; }
        public Boolean isShowPromoterType() { return showPromoterType; }
        public Brand setShowPromoterType(Boolean value) { this.showPromoterType = value; return this; }
        public Integer getStockOwner() { return stockOwner; }
        public Brand setStockOwner(Integer value) { this.stockOwner = value; return this; }
    }

    public static class User implements ILookupString
    {
        public String object = null;
        public String id = null;
        public String brand = null;
        public String displayName = null;
        
        public String getObject() { return object; }
        public User setObject(String value) { this.object = value; return this; }
        public String getId() { return id; }
        public User setId(String value) { this.id = value; return this; }
        public String getBrand() { return brand; }
        public User setBrand(String value) { this.brand = value; return this; }
        public String getDisplayName() { return displayName; }
        public User setDisplayName(String value) { this.displayName = value; return this; }
    }

}

Java SitesRequest DTOs

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

HTTP + OTHER

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

GET /warranty/v1/sites HTTP/1.1 
Host: qp-microservices-booster.richemont.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"sites":[{"object":"String","id":0,"name":"String","address":{"line1":"String","city":"String","zipCode":"String","countryCode":"String"},"brands":[{"brand":"String","lastStockTakingDate":"String","isAutomaticInvoiceNumberEnabled":0,"saleRepRequired":false,"crmSaleRepRequired":false,"showPromoterType":false,"stockOwner":0}],"users":[{"object":"String","id":"String","brand":"String","displayName":"String"}],"isNfcActive":0,"isIOsEmbReaderEnable":0,"crmPrivacyPolicyMandatory":false,"crmAllowStoreDataAbroadVisible":false,"displayFirstLastNameNotLatin":false,"languageTransliteration":"String","crmPrivacyPolicyTimeValleeMandatory":false,"crmAllowStoreDataAbroadTimeValleeVisible":false,"allowToCreateEndCustomerOutsideChina":false,"isTimeVallee":false,"doNotDisplayPOSDataInDisclaimers":false,"crmFirstNameMandatory":false,"manageOwnStock":false,"crmCityMandatory":false}],"_xmlns":"String","_type":"String","_source":"String","_tstamp":"String","_user":"String","_env":"String","_uri":"String","_query":"String"}