-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathresponses.go
80 lines (77 loc) · 2.93 KB
/
responses.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
78
79
80
package payzego
type PayWithCardResponse struct {
ID int `json:"id"`
Status string `json:"status"`
Action string `json:"action"`
CreatedDate string `json:"createdDate"`
Response struct {
Error string `json:"error,omitempty"`
TransactionID string `json:"transactionId"`
TransactionInfo struct {
CanBeCommitted bool `json:"canBeCommitted"`
Type string `json:"type"`
FinalAmount float64 `json:"finalAmount"`
AmountRefunded float64 `json:"amountRefunded"`
Currency string `json:"currency"`
Commission float64 `json:"commission"`
Refundable bool `json:"refundable"`
Refunded float64 `json:"refunded"`
HasSplit bool `json:"hasSplit"`
CreateDate string `json:"createDate"`
Amount float64 `json:"amount"`
Sandbox bool `json:"sandbox"`
TransactionID string `json:"transactionId"`
CommitDate string `json:"commitDate"`
Status string `json:"status"`
} `json:"transactionInfo"`
} `json:"response"`
Request struct {
Amount float64 `json:"amount"`
HookRefund bool `json:"hookRefund"`
Currency string `json:"currency"`
HookURL string `json:"hookUrl"`
CardToken string `json:"cardToken"`
} `json:"request"`
Headers struct {
ContentLength string `json:"content-length"`
CDNLoop string `json:"cdn-loop"`
CFIPCountry string `json:"cf-ipcountry"`
CFRay string `json:"cf-ray"`
XForwardedProto string `json:"x-forwarded-proto"`
XForwardedPort string `json:"x-forwarded-port"`
XForwardedFor string `json:"x-forwarded-for"`
XRealIP string `json:"x-real-ip"`
XForwardedHost string `json:"x-forwarded-host"`
CFVisitor string `json:"cf-visitor"`
Host string `json:"host"`
Connection string `json:"connection"`
ContentType string `json:"content-type"`
CFConnectingIP string `json:"cf-connecting-ip"`
AcceptEncoding string `json:"accept-encoding"`
UserAgent string `json:"user-agent"`
} `json:"headers"`
}
type GetTransactionInfoResponse struct {
Response struct {
Amount float64 `json:"amount"`
Log []string `json:"log"`
Sandbox bool `json:"sandbox"`
CanBeCommitted bool `json:"canBeCommitted"`
Type string `json:"type"`
TransactionID string `json:"transactionId"`
CommitDate string `json:"commitDate"`
FinalAmount float64 `json:"finalAmount"`
AmountRefunded float64 `json:"amountRefunded"`
Currency string `json:"currency"`
Commission float64 `json:"commission"`
Refundable bool `json:"refundable"`
Refunded float64 `json:"refunded"`
HasSplit bool `json:"hasSplit"`
CreateDate string `json:"createDate"`
Status string `json:"status"`
} `json:"response"`
}
type ErrorResponse struct {
Message string `json:"message"`
DateTime string `json:"dateTime"`
}