| All Verbs | /qry/integrations/wallet/ssd |
|---|
package dtos
type Ref struct {
Id string `json:"id"`
Val string `json:"val"`
}
type DeviceUserInterface int
const (
DeviceUserInterfaceTablet DeviceUserInterface = 0
DeviceUserInterfaceKiosk DeviceUserInterface = 1
DeviceUserInterfaceDefault DeviceUserInterface = 2
DeviceUserInterfaceUnknown DeviceUserInterface = -1
)
type GPSCoordinates struct {
Lat float64 `json:"lat,omitempty"`
Lng float64 `json:"lng,omitempty"`
}
type Address struct {
Street string `json:"street"`
City string `json:"city"`
State string `json:"state"`
PostalCode string `json:"postalCode"`
Country Ref `json:"country"`
Gps GPSCoordinates `json:"gps"`
Data RecordDictionary[string, string] `json:"data"`
}
type DeviceLocation struct {
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Address *Address `json:"address,omitempty"`
Data *RecordDictionary[string, string] `json:"data,omitempty"`
TaxationAuthorityId *string `json:"taxationAuthorityId,omitempty"`
}
type SSDWalletProfile struct {
Id *string `json:"id,omitempty"`
Device *Ref `json:"device,omitempty"`
DeviceUserInterface DeviceUserInterface `json:"deviceUserInterface,omitempty"`
Location *DeviceLocation `json:"location,omitempty"`
}
type GetSSDWalletProfile struct {
DeviceId *string `json:"deviceId,omitempty"`
SessionId *string `json:"sessionId,omitempty"`
OrganizationId *string `json:"organizationId,omitempty"`
Data *RecordDictionary[string, string] `json:"data,omitempty"`
}
type RecordDictionary[TKey any, TVal any] map[TKey]TVal
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 /qry/integrations/wallet/ssd HTTP/1.1
Host: api.bettor.webhop.biz
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"deviceId":"String","sessionId":"String","organizationId":"String","data":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id":"String","device":{"id":"String","val":"String"},"deviceUserInterface":0,"location":{"id":"String","name":"String","address":{"street":"String","city":"String","state":"String","postalCode":"String","country":{"id":"String","val":"String"},"gps":{"lat":0,"lng":0},"data":{"String":"String"}},"data":{"String":"String"},"taxationAuthorityId":"String"}}