-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpayload.go
49 lines (42 loc) · 1.31 KB
/
payload.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package go5paisa
type payloadHead struct {
AppName string `json:"appName"`
AppVer string `json:"appVer"`
Key string `json:"key"`
OsName string `json:"osName"`
RequestCode string `json:"requestCode"`
UserID string `json:"userId"`
Password string `json:"password"`
}
type loginBody struct {
Email string `json:"Email_id"`
Password string `json:"Password"`
LocalIP string `json:"LocalIP"`
PublicIP string `json:"PublicIP"`
SerialNumber string `json:"HDSerailNumber"`
MAC string `json:"MACAddress"`
MachineID string `json:"MachineID"`
VersionNo string `json:"VersionNo"`
RequestNo string `json:"RequestNo"`
My2PIN string `json:"My2PIN"`
ConnectionType string `json:"ConnectionType"`
}
type loginPayload struct {
Head *payloadHead `json:"head"`
Body loginBody `json:"body"`
}
type genericPayload struct {
Head *payloadHead `json:"head"`
Body genericPayloadBody `json:"body"`
}
type genericPayloadBody struct {
ClientCode string `json:"ClientCode"`
}
type orderStatusPayloadBody struct {
ClientCode string `json:"ClientCode"`
OrdList []OrderForStatus `json:"OrdStatusReqList"`
}
type orderStatusPayload struct {
Head *payloadHead `json:"head"`
Body orderStatusPayloadBody `json:"body"`
}