| GET | /warranty/v1/card/{cardId} |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Booster.Microservices.ServiceModel.Sale
Imports Booster.Microservices.ServiceModel.Common
Imports Booster.Microservices.ServiceModel.Stock
Namespace Global
Namespace Booster.Microservices.ServiceModel.Common
Public Partial Class BaseRequest(Of TResponse)
Implements IRequest
Public Overridable Property sid As String
Public Overridable Property app As String
Public Overridable Property _os As String
Public Overridable Property _appVersion As String
Public Overridable Property _searchMethod As String
End Class
Public Partial Class BaseResponse
Implements IRespose
Public Overridable Property _xmlns As String
Public Overridable Property _type As String
Public Overridable Property _source As String
Public Overridable Property _tstamp As String
Public Overridable Property _user As String
Public Overridable Property _env As String
Public Overridable Property _uri As String
Public Overridable Property _query As String
End Class
Public Partial Class LookupInt
Implements ILookupInt
Public Overridable Property object As String
Public Overridable Property id As Integer
End Class
End Namespace
Namespace Booster.Microservices.ServiceModel.Sale
Public Partial Class Address
Public Overridable Property line1 As String
Public Overridable Property line2 As String
Public Overridable Property city As String
Public Overridable Property zipCode As String
Public Overridable Property countryCode As String
End Class
Public Partial Class RetrieveWarrantyCardRequest
Inherits BaseRequest(Of RetrieveWarrantyCardResponse)
Public Overridable Property cardId As String
End Class
Public Partial Class RetrieveWarrantyCardResponse
Inherits BaseResponse
Public Overridable Property warranty As Warranty
End Class
Public Partial Class Site
Public Overridable Property object As String
Public Overridable Property id As String
Public Overridable Property name As String
Public Overridable Property address As Address
Public Overridable Property crmPrivacyPolicyMandatory As Boolean
Public Overridable Property crmAllowStoreDataAbroadVisible As Boolean
Public Overridable Property isTimeVallee As Boolean
Public Overridable Property crmPrivacyPolicyTimeValleeMandatory As Boolean
Public Overridable Property crmAllowStoreDataAbroadTimeValleeVisible As Boolean
Public Overridable Property allowToCreateEndCustomerOutsideChina As Boolean
Public Overridable Property displayFirstLastNameNotLatin As Boolean
Public Overridable Property languageTransliteration As String
Public Overridable Property doNotDisplayPOSDataInDisclaimers As Boolean
Public Overridable Property crmFirstNameMandatory As Boolean
Public Overridable Property crmCityMandatory As Boolean
Public Overridable Property manageOwnStock As Boolean
End Class
Public Partial Class Warranty
Public Sub New()
article = New List(Of Article)
End Sub
Public Overridable Property article As List(Of Article)
Public Overridable Property warrantyId As String
Public Overridable Property createdBy As String
Public Overridable Property createdAt As String
Public Overridable Property issuedBy As String
Public Overridable Property selloutId As String
Public Overridable Property activationDate As String
Public Overridable Property pin As String
Public Overridable Property promoterTypeId As String
Public Overridable Property promoterTypeDs As String
Public Overridable Property site As Site
Public Overridable Property crmEnabled As Boolean
Public Overridable Property canBeExtended As Boolean
Public Overridable Property canBeRetriggered As Boolean
End Class
End Namespace
Namespace Booster.Microservices.ServiceModel.Stock
Public Partial Class Article
Public Overridable Property ref As String
Public Overridable Property serial As String
Public Overridable Property name As String
Public Overridable Property site As LookupInt
Public Overridable Property brand As String
Public Overridable Property isConsignment As Boolean
End Class
End Namespace
End Namespace
VB.NET RetrieveWarrantyCardRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /warranty/v1/card/{cardId} HTTP/1.1
Host: qp-microservices-booster.richemont.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"warranty":{"article":[{"ref":"String","serial":"String","name":"String","shortDesc":"String","brand":"String","warrantyStatusId":0,"warrantyStatusDesc":"String","warrantyStatusCode":"String","isConsignment":false}],"warrantyId":"String","createdBy":"String","createdAt":"String","issuedBy":"String","selloutId":"String","activationDate":"String","pin":"String","promoterTypeId":"String","promoterTypeDs":"String","site":{"object":"String","id":"String","name":"String","address":{"line1":"String","line2":"String","city":"String","zipCode":"String","countryCode":"String"},"crmPrivacyPolicyMandatory":false,"crmAllowStoreDataAbroadVisible":false,"isTimeVallee":false,"crmPrivacyPolicyTimeValleeMandatory":false,"crmAllowStoreDataAbroadTimeValleeVisible":false,"allowToCreateEndCustomerOutsideChina":false,"displayFirstLastNameNotLatin":false,"languageTransliteration":"String","doNotDisplayPOSDataInDisclaimers":false,"crmFirstNameMandatory":false,"crmCityMandatory":false,"manageOwnStock":false},"crmEnabled":false,"canBeExtended":false,"canBeRetriggered":false},"_xmlns":"String","_type":"String","_source":"String","_tstamp":"String","_user":"String","_env":"String","_uri":"String","_query":"String"}