-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
69 lines (60 loc) · 2.05 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
package main
type AccountsResp struct {
Accounts []Account `json:"accounts"`
}
type Account struct {
ID string `json:"id"`
Closed bool `json:"closed"`
Created string `json:"created"`
Description string `json:"description"`
Type string `json:"type"`
OwnerType string `json:"owner_type"`
IsFlex bool `json:"is_flex"`
Currency string `json:"currency"`
LegalEntity string `json:"legal_entity"`
CountryCode string `json:"country_code"`
CountryCodeAlpha3 string `json:"country_code_alpha3"`
Owners []Owner `json:"owners"`
LinkedAccounts []string `json:"linked_accounts"`
BusinessID string `json:"business_id"`
AccountNumber string `json:"account_number"`
SortCode string `json:"sort_code"`
PaymentDetails PaymentDetails `json:"payment_details"`
}
type Owner struct {
UserID string `json:"user_id"`
PreferredName string `json:"preferred_name"`
PreferredFirstName string `json:"preferred_first_name"`
}
type PaymentDetails struct {
UK PaymentDetailsUK `json:"locale_uk"`
IBAN PaymentDetailsIBAN `json:"iban"`
}
type PaymentDetailsUK struct {
AccountNumber string `json:"account_number"`
SortCode string `json:"sort_code"`
}
type PaymentDetailsIBAN struct {
Unformatted string `json:"unformatted"`
Formatted string `json:"formatted"`
BIC string `json:"bic"`
}
type Balance struct {
Balance int64 `json:"balance"`
TotalBalance int64 `json:"total_balance"`
Currency string `json:"currency"`
SpendToday int64 `json:"spend_today"`
}
type Pots struct {
Pots []Pot `json:"pots"`
}
type Pot struct {
ID string `json:"id"`
Name string `json:"name"`
Style string `json:"style"`
Balance int64 `json:"balance"`
Currency string `json:"currency"`
Created string `json:"created"`
Updated string `json:"updated"`
Deleted bool `json:"deleted"`
}