| POST | /warranty/v1/card/{cardId}/createCustomer |
|---|
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
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
End Namespace
Namespace Booster.Microservices.ServiceModel.Sale
Public Partial Class CreateAndConnectCustomerRequest
Inherits BaseRequest(Of CreateAndConnectCustomerResponse)
Public Overridable Property cardId As String
Public Overridable Property customerRef As String
Public Overridable Property title As Integer
Public Overridable Property firstName As String
Public Overridable Property lastName As String
Public Overridable Property firstNameNotLatin As String
Public Overridable Property lastNameNotLatin As String
Public Overridable Property birthday As Nullable(Of Date)
Public Overridable Property email As String
Public Overridable Property canBeContacted As Boolean
Public Overridable Property language As String
Public Overridable Property nameSuffix As String
Public Overridable Property gender As String
Public Overridable Property middleName As String
Public Overridable Property countryId As String
Public Overridable Property phoneCountryId As String
Public Overridable Property prefixCountryId As String
Public Overridable Property phone As String
Public Overridable Property posId As Integer
Public Overridable Property weddingDate As Nullable(Of Date)
Public Overridable Property street As String
Public Overridable Property houseNumber As String
Public Overridable Property city As String
Public Overridable Property postalCode As String
Public Overridable Property region As String
Public Overridable Property street2 As String
Public Overridable Property street3 As String
Public Overridable Property street4 As String
Public Overridable Property street5 As String
Public Overridable Property salePersonId As String
Public Overridable Property privacyPolicyAcceptanceStorage As Nullable(Of Boolean)
Public Overridable Property allowStoreDataAbroad As Nullable(Of Boolean)
Public Overridable Property tvPrivacyPolicyAcceptanceStorage As Nullable(Of Boolean)
Public Overridable Property tvAllowStoreDataAbroad As Nullable(Of Boolean)
Public Overridable Property contactByMail As Boolean
Public Overridable Property contactByEmail As Boolean
Public Overridable Property contactByPhone As Boolean
Public Overridable Property contactBySMS As Boolean
Public Overridable Property contactBySocialMedia As Boolean
End Class
Public Partial Class CreateAndConnectCustomerResponse
Inherits BaseResponse
Public Overridable Property customerId As Nullable(Of Guid)
Public Overridable Property boosterCustomerId As Nullable(Of Integer)
End Class
End Namespace
End Namespace
VB.NET CreateAndConnectCustomerRequest 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.
POST /warranty/v1/card/{cardId}/createCustomer HTTP/1.1
Host: qp-microservices-booster.richemont.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"cardId":"String","customerRef":"String","title":0,"firstName":"String","lastName":"String","firstNameNotLatin":"String","lastNameNotLatin":"String","birthday":"\/Date(-62135596800000-0000)\/","email":"String","canBeContacted":false,"language":"String","nameSuffix":"String","gender":"String","middleName":"String","countryId":"String","phoneCountryId":"String","prefixCountryId":"String","phone":"String","posId":0,"weddingDate":"\/Date(-62135596800000-0000)\/","street":"String","houseNumber":"String","city":"String","postalCode":"String","region":"String","street2":"String","street3":"String","street4":"String","street5":"String","salePersonId":"String","privacyPolicyAcceptanceStorage":false,"allowStoreDataAbroad":false,"tvPrivacyPolicyAcceptanceStorage":false,"tvAllowStoreDataAbroad":false,"contactByMail":false,"contactByEmail":false,"contactByPhone":false,"contactBySMS":false,"contactBySocialMedia":false,"sid":"String","app":"String","_os":"String","_appVersion":"String","_searchMethod":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"customerId":"00000000000000000000000000000000","boosterCustomerId":0,"_xmlns":"String","_type":"String","_source":"String","_tstamp":"String","_user":"String","_env":"String","_uri":"String","_query":"String"}