-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
personal_test.go
63 lines (52 loc) · 1.15 KB
/
personal_test.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
package mono
import (
"testing"
)
func TestNewPersonal(t *testing.T) {
personal := NewPersonal("token")
if personal == nil {
t.Error()
}
}
func TestPersonal_User(t *testing.T) {
}
//func TestPersonal_User(t *testing.T) {
// user := UserInfo{
// Name: "John Doe",
// WebHookURL: "https://localhost:8080/test/",
// Accounts: []Account{
// {
// ID: "kKGVoZuHWzqVoZuH",
// Balance: 10000000,
// CreditLimit: 10000000,
// CurrencyCode: 980,
// CashBackType: "UAH",
// },
// },
// }
//client := NewPersonal("fake")
//srv, rr := FakeServer("Test", http.StatusOK)
//BaseURL = srv.URL
//defer srv.Close()
//resp, err := client.User()
//}
//func TestPersonal_Transactions(t *testing.T) {
// transactions := []Transaction{
// {
// ID: "ZuHWzqkKGVo=",
// Time: 1554466347,
// Description: "Покупка щастя",
// MCC: 7997,
// Hold: false,
// Amount: -95000,
// OperationAmount: -95000,
// CurrencyCode: 980,
// CommissionRate: 0,
// CashBackAmount: 19000,
// },
// }
//
//}
//func TestPersonal_SetWebHook(t *testing.T) {
//
//}