| GET | /posChain/{brand}/{posCode}/availableForTransfer | Get available POS within the same Chain where stock is transferable |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.Stock.ServiceModel
Imports Richemont.Booster2.PublicApi.Purchase.ServiceModel
Namespace Global
Namespace Richemont.Booster2.PublicApi.Purchase.ServiceModel
Public Partial Class Pos
'''<Summary>
'''POS Code
'''</Summary>
<ApiMember(Description:="POS Code", IsRequired:=true)>
Public Overridable Property posCode As String
'''<Summary>
'''Name of the POS
'''</Summary>
<ApiMember(Description:="Name of the POS", IsRequired:=true)>
Public Overridable Property name As String
'''<Summary>
'''City of the POS
'''</Summary>
<ApiMember(Description:="City of the POS", IsRequired:=true)>
Public Overridable Property city As String
'''<Summary>
'''Address of the POS
'''</Summary>
<ApiMember(Description:="Address of the POS", IsRequired:=true)>
Public Overridable Property address As String
'''<Summary>
'''Country of the POS
'''</Summary>
<ApiMember(Description:="Country of the POS", IsRequired:=true)>
Public Overridable Property country As String
'''<Summary>
'''Brand of the POS
'''</Summary>
<ApiMember(Description:="Brand of the POS", IsRequired:=true)>
Public Overridable Property brand As String
End Class
End Namespace
Namespace Richemont.Booster2.PublicApi.Stock.ServiceModel
Public Partial Class GetPosChainTransferAvailable
'''<Summary>
'''Brand
'''</Summary>
<ApiMember(Description:="Brand", IsRequired:=true)>
Public Overridable Property brand As String
'''<Summary>
'''POS Legacy Code
'''</Summary>
<ApiMember(Description:="POS Legacy Code", IsRequired:=true)>
Public Overridable Property posCode As String
End Class
Public Partial Class GetPosChainTransferAvailableResponse
Inherits List(Of Pos)
End Class
End Namespace
End Namespace
VB.NET GetPosChainTransferAvailable DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /posChain/{brand}/{posCode}/availableForTransfer HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length [ ]