-
Notifications
You must be signed in to change notification settings - Fork 167
/
Copy pathmodels.go
28 lines (27 loc) · 1.49 KB
/
models.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
// Account represents an account in the form3 org section.
// See https://api-docs.form3.tech/api.html#organisation-accounts for
// more information about fields.
type AccountData struct {
Attributes *AccountAttributes `json:"attributes,omitempty"`
ID string `json:"id,omitempty"`
OrganisationID string `json:"organisation_id,omitempty"`
Type string `json:"type,omitempty"`
Version *int64 `json:"version,omitempty"`
}
type AccountAttributes struct {
AccountClassification *string `json:"account_classification,omitempty"`
AccountMatchingOptOut *bool `json:"account_matching_opt_out,omitempty"`
AccountNumber string `json:"account_number,omitempty"`
AlternativeNames []string `json:"alternative_names,omitempty"`
BankID string `json:"bank_id,omitempty"`
BankIDCode string `json:"bank_id_code,omitempty"`
BaseCurrency string `json:"base_currency,omitempty"`
Bic string `json:"bic,omitempty"`
Country *string `json:"country,omitempty"`
Iban string `json:"iban,omitempty"`
JointAccount *bool `json:"joint_account,omitempty"`
Name []string `json:"name,omitempty"`
SecondaryIdentification string `json:"secondary_identification,omitempty"`
Status *string `json:"status,omitempty"`
Switched *bool `json:"switched,omitempty"`
}