-
Notifications
You must be signed in to change notification settings - Fork 1
/
response.go
31 lines (28 loc) · 965 Bytes
/
response.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
package valr
import (
"time"
)
// CryptoWithdrawalResponse contains the response values returned from creating
// a new crypto withdrawal.
//
// POST /wallet/crypto/{currency}/withdrawal
type CryptoWithdrawalResponse struct {
ID string `json:"id"`
}
// CryptoWithdrawalStatus contains the response values returned when creating
// a new crypto withdrawal.
//
// GET /wallet/crypto/{currency}/withdrawal/{id}
type CryptoWithdrawalStatusResponse struct {
Address string `json:"address"`
Amount string `json:"amount"`
Confirmations string `json:"confirmations"`
CreatedAt time.Time `json:"createdAt"`
Currency string `json:"currency"`
Fees string `json:"feeAmount"`
ID string `json:"id"`
LastConfirmedAt time.Time `json:"lastConfirmedAt"`
Status string `json:"status"`
TransactionHash string `json:"transactionHash"`
Verified bool `json:"verified"`
}