Booster.Microservices

<back to all web services

ListWarrantyCardsRequest

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

public class dtos
{

    public static class ListWarrantyCardsRequest extends BaseRequest<ListWarrantyCardsResponse>
    {
        public String user = null;
        public String site = null;
        public String system = null;
        public String application = null;
        public String article = null;
        public String ref = null;
        public String serial = null;
        public Integer page = null;
        public Integer size = null;
        
        public String getUser() { return user; }
        public ListWarrantyCardsRequest setUser(String value) { this.user = value; return this; }
        public String getSite() { return site; }
        public ListWarrantyCardsRequest setSite(String value) { this.site = value; return this; }
        public String getSystem() { return system; }
        public ListWarrantyCardsRequest setSystem(String value) { this.system = value; return this; }
        public String getApplication() { return application; }
        public ListWarrantyCardsRequest setApplication(String value) { this.application = value; return this; }
        public String getArticle() { return article; }
        public ListWarrantyCardsRequest setArticle(String value) { this.article = value; return this; }
        public String getRef() { return ref; }
        public ListWarrantyCardsRequest setRef(String value) { this.ref = value; return this; }
        public String getSerial() { return serial; }
        public ListWarrantyCardsRequest setSerial(String value) { this.serial = value; return this; }
        public Integer getPage() { return page; }
        public ListWarrantyCardsRequest setPage(Integer value) { this.page = value; return this; }
        public Integer getSize() { return size; }
        public ListWarrantyCardsRequest setSize(Integer value) { this.size = 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 ListWarrantyCardsResponse extends BaseResponse
    {
        public ArrayList<Warranty> warranty = null;
        
        public ArrayList<Warranty> getWarranty() { return warranty; }
        public ListWarrantyCardsResponse setWarranty(ArrayList<Warranty> value) { this.warranty = 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 Warranty
    {
        public ArrayList<Article> article = null;
        public String warrantyId = null;
        public String createdBy = null;
        public String createdAt = null;
        public String issuedBy = null;
        public String selloutId = null;
        public String activationDate = null;
        public String pin = null;
        public String promoterTypeId = null;
        public String promoterTypeDs = null;
        public Site site = null;
        public Boolean crmEnabled = null;
        public Boolean canBeExtended = null;
        public Boolean canBeRetriggered = null;
        
        public ArrayList<Article> getArticle() { return article; }
        public Warranty setArticle(ArrayList<Article> value) { this.article = value; return this; }
        public String getWarrantyId() { return warrantyId; }
        public Warranty setWarrantyId(String value) { this.warrantyId = value; return this; }
        public String getCreatedBy() { return createdBy; }
        public Warranty setCreatedBy(String value) { this.createdBy = value; return this; }
        public String getCreatedAt() { return createdAt; }
        public Warranty setCreatedAt(String value) { this.createdAt = value; return this; }
        public String getIssuedBy() { return issuedBy; }
        public Warranty setIssuedBy(String value) { this.issuedBy = value; return this; }
        public String getSelloutId() { return selloutId; }
        public Warranty setSelloutId(String value) { this.selloutId = value; return this; }
        public String getActivationDate() { return activationDate; }
        public Warranty setActivationDate(String value) { this.activationDate = value; return this; }
        public String getPin() { return pin; }
        public Warranty setPin(String value) { this.pin = value; return this; }
        public String getPromoterTypeId() { return promoterTypeId; }
        public Warranty setPromoterTypeId(String value) { this.promoterTypeId = value; return this; }
        public String getPromoterTypeDs() { return promoterTypeDs; }
        public Warranty setPromoterTypeDs(String value) { this.promoterTypeDs = value; return this; }
        public Site getSite() { return site; }
        public Warranty setSite(Site value) { this.site = value; return this; }
        public Boolean isCrmEnabled() { return crmEnabled; }
        public Warranty setCrmEnabled(Boolean value) { this.crmEnabled = value; return this; }
        public Boolean isCanBeExtended() { return canBeExtended; }
        public Warranty setCanBeExtended(Boolean value) { this.canBeExtended = value; return this; }
        public Boolean isCanBeRetriggered() { return canBeRetriggered; }
        public Warranty setCanBeRetriggered(Boolean value) { this.canBeRetriggered = value; return this; }
    }

    public static class Article
    {
        public String ref = null;
        public String serial = null;
        public String name = null;
        public LookupInt site = null;
        public String brand = null;
        public Boolean isConsignment = null;
        
        public String getRef() { return ref; }
        public Article setRef(String value) { this.ref = value; return this; }
        public String getSerial() { return serial; }
        public Article setSerial(String value) { this.serial = value; return this; }
        public String getName() { return name; }
        public Article setName(String value) { this.name = value; return this; }
        public LookupInt getSite() { return site; }
        public Article setSite(LookupInt value) { this.site = value; return this; }
        public String getBrand() { return brand; }
        public Article setBrand(String value) { this.brand = value; return this; }
        public Boolean getIsConsignment() { return isConsignment; }
        public Article setIsConsignment(Boolean value) { this.isConsignment = value; return this; }
    }

    public static class LookupInt implements ILookupInt
    {
        public String object = null;
        public Integer id = null;
        
        public String getObject() { return object; }
        public LookupInt setObject(String value) { this.object = value; return this; }
        public Integer getId() { return id; }
        public LookupInt setId(Integer value) { this.id = value; return this; }
    }

    public static class Site
    {
        public String object = null;
        public String id = null;
        public String name = null;
        public Address address = null;
        public Boolean crmPrivacyPolicyMandatory = null;
        public Boolean crmAllowStoreDataAbroadVisible = null;
        public Boolean isTimeVallee = null;
        public Boolean crmPrivacyPolicyTimeValleeMandatory = null;
        public Boolean crmAllowStoreDataAbroadTimeValleeVisible = null;
        public Boolean allowToCreateEndCustomerOutsideChina = null;
        public Boolean displayFirstLastNameNotLatin = null;
        public String languageTransliteration = null;
        public Boolean doNotDisplayPOSDataInDisclaimers = null;
        public Boolean crmFirstNameMandatory = null;
        public Boolean crmCityMandatory = null;
        public Boolean manageOwnStock = null;
        
        public String getObject() { return object; }
        public Site setObject(String value) { this.object = value; return this; }
        public String getId() { return id; }
        public Site setId(String 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 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 getIsTimeVallee() { return isTimeVallee; }
        public Site setIsTimeVallee(Boolean value) { this.isTimeVallee = 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 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 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 isCrmCityMandatory() { return crmCityMandatory; }
        public Site setCrmCityMandatory(Boolean value) { this.crmCityMandatory = value; return this; }
        public Boolean isManageOwnStock() { return manageOwnStock; }
        public Site setManageOwnStock(Boolean value) { this.manageOwnStock = value; return this; }
    }

    public static class Address
    {
        public String line1 = null;
        public String line2 = 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 getLine2() { return line2; }
        public Address setLine2(String value) { this.line2 = 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; }
    }

}

Java ListWarrantyCardsRequest 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.

GET /warranty/v1/cards HTTP/1.1 
Host: qp-microservices-booster.richemont.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ListWarrantyCardsResponse 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>
  <warranty>
    <Warranty>
      <activationDate>String</activationDate>
      <article>
        <Article>
          <brand>String</brand>
          <isConsignment>false</isConsignment>
          <name>String</name>
          <ref>String</ref>
          <serial>String</serial>
          <shortDesc>String</shortDesc>
          <warrantyStatusCode>String</warrantyStatusCode>
          <warrantyStatusDesc>String</warrantyStatusDesc>
          <warrantyStatusId>0</warrantyStatusId>
        </Article>
      </article>
      <canBeExtended>false</canBeExtended>
      <canBeRetriggered>false</canBeRetriggered>
      <createdAt>String</createdAt>
      <createdBy>String</createdBy>
      <crmEnabled>false</crmEnabled>
      <issuedBy>String</issuedBy>
      <pin>String</pin>
      <promoterTypeDs>String</promoterTypeDs>
      <promoterTypeId>String</promoterTypeId>
      <selloutId>String</selloutId>
      <site>
        <address>
          <city>String</city>
          <countryCode>String</countryCode>
          <line1>String</line1>
          <line2>String</line2>
          <zipCode>String</zipCode>
        </address>
        <allowToCreateEndCustomerOutsideChina>false</allowToCreateEndCustomerOutsideChina>
        <crmAllowStoreDataAbroadTimeValleeVisible>false</crmAllowStoreDataAbroadTimeValleeVisible>
        <crmAllowStoreDataAbroadVisible>false</crmAllowStoreDataAbroadVisible>
        <crmCityMandatory>false</crmCityMandatory>
        <crmFirstNameMandatory>false</crmFirstNameMandatory>
        <crmPrivacyPolicyMandatory>false</crmPrivacyPolicyMandatory>
        <crmPrivacyPolicyTimeValleeMandatory>false</crmPrivacyPolicyTimeValleeMandatory>
        <displayFirstLastNameNotLatin>false</displayFirstLastNameNotLatin>
        <doNotDisplayPOSDataInDisclaimers>false</doNotDisplayPOSDataInDisclaimers>
        <id>String</id>
        <isTimeVallee>false</isTimeVallee>
        <languageTransliteration>String</languageTransliteration>
        <manageOwnStock>false</manageOwnStock>
        <name>String</name>
        <object>String</object>
      </site>
      <warrantyId>String</warrantyId>
    </Warranty>
  </warranty>
</ListWarrantyCardsResponse>