-
Notifications
You must be signed in to change notification settings - Fork 7
/
structs.go
77 lines (65 loc) · 1.93 KB
/
structs.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package socialpay
type (
UPointCheckUserInfoInput struct {
CardNumber string `json:"card_number"`
Mobile string `json:"mobile"`
PinCode string `json:"pin_code"`
}
UpointProcessTransactionInput struct {
Mobile string `json:"mobile"`
CardNumber string `json:"card_number"`
}
SocialPayInvoicePhoneRequest struct {
Phone string `json:"phone"`
Amount string `json:"amount"`
Invoice string `json:"invoice"`
Terminal string `json:"terminal"`
Checksum string `json:"checksum"`
}
SocialPayInvoiceSimpleRequest struct {
Amount string `json:"amount"`
Invoice string `json:"invoice"`
Terminal string `json:"terminal"`
Checksum string `json:"checksum"`
}
SocialPaySettlementRequest struct {
SettlementId string `json:"settlementId"`
Checksum string `json:"checksum"`
Terminal string `json:"terminal"`
}
SocialPaySimpleResponse struct {
Description string `json:"desc"`
Status string `json:"status"`
}
SocialPayTransactionResponse struct {
ApprovalCode string `json:"approval_code"`
Amount float64 `json:"amount"`
CardNumber string `json:"card_number"`
ResponseDescription string `json:"resp_desc"`
ResponseCode string `json:"resp_code"`
Terminal string `json:"terminal"`
Invoice string `json:"invoice"`
Checksum string `json:"checksum"`
}
SocialPayPaymentSettlementResponse struct {
Amount float64 `json:"amount"`
Count int `json:"count"`
Status string `json:"status"`
}
SocialPayErrorResponse struct {
ErrorDescription string `json:"errorDesc"`
ErrorType string `json:"errorType"`
}
Header struct {
Status string `json:"status"`
Code int `json:"code"`
}
Body struct {
Response map[string]interface{} `json:"response"`
Error map[string]interface{} `json:"error"`
}
Response struct {
Header Header `json:"header"`
Body Body `json:"body"`
}
)