-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathresponse.go
More file actions
43 lines (40 loc) · 1.69 KB
/
Copy pathresponse.go
File metadata and controls
43 lines (40 loc) · 1.69 KB
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
package midtrans
type VANumber struct {
Bank string `json:"bank"`
VANumber string `json:"va_number"`
}
// Response after calling the API
type Response struct {
StatusCode string `json:"status_code"`
StatusMessage string `json:"status_message"`
PermataVaNumber string `json:"permata_va_number"`
SignKey string `json:"signature_key"`
CardToken string `json:"token_id"`
SavedCardToken string `json:"saved_token_id"`
SavedTokenExpAt string `json:"saved_token_id_expired_at"`
SecureToken bool `json:"secure_token"`
Bank string `json:"bank"`
BillerCode string `json:"biller_code"`
BillKey string `json:"bill_key"`
XlTunaiOrderID string `json:"xl_tunai_order_id"`
BIIVaNumber string `json:"bii_va_number"`
ReURL string `json:"redirect_url"`
ECI string `json:"eci"`
ValMessages []string `json:"validation_messages"`
Page int `json:"page"`
TotalPage int `json:"total_page"`
TotalRecord int `json:"total_record"`
OrderID string `json:"order_id"`
TransactionId string `json:"transaction_id"`
TransactionTime string `json:"transaction_time"`
TransactionStatus string `json:"transaction_status"`
GrossAmount string `json:"gross_amount"`
VANumbers []VANumber `json:"va_numbers"`
PaymentCode string `json:"payment_code"`
}
// Response after calling the Snap API
type SnapResponse struct {
StatusCode string `json:"status_code"`
Token string `json:"token"`
ErrorMessages []string `json:"error_messages"`
}