-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_account.go
64 lines (59 loc) · 2.61 KB
/
get_account.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
package transactapi
import (
"net/http"
)
type GetAccountRequest struct {
ClientID string `json:"clientID"`
DeveloperApiKey string `json:"developerAPIKey"`
AccountID string `json:"accountId"`
}
type GetAccountResponse struct {
StatusCode string `json:"statusCode"`
StatusDesc string `json:"statusDesc"`
AccountDetails accountDetails `json:"accountDetails"`
}
type accountDetails struct {
AccountID string `json:"accountId"`
AccountName string `json:"accountName"`
Type string `json:"type"`
EntityType string `json:"entityType"`
ResidentType string `json:"residentType"`
Address1 string `json:"address1"`
Address2 string `json:"address2"`
City string `json:"city"`
State string `json:"state"`
Zip string `json:"zip"`
Country string `json:"country"`
Phone string `json:"phone"`
TaxID string `json:"taxID"`
KycStatus string `json:"kycStatus"`
KycDate string `json:"kycDate"`
AmlStatus string `json:"amlStatus"`
AmlDate string `json:"amlDate"`
SuitabilityScore string `json:"suitabilityScore"`
SuitabilityDate string `json:"suitabilityDate"`
SuitabilityApprover string `json:"suitabilityApprover"`
AccreditedStatus string `json:"accreditedStatus"`
AccreditedInvestor string `json:"accreditedInvestor"`
AccreditedInvestorDate string `json:"accreditedInvestorDate"`
The506CLimit string `json:"506cLimit"`
AccountTotalLimit string `json:"accountTotalLimit"`
SingleInvestmentLimit string `json:"singleInvestmentLimit"`
AssociatedAC string `json:"associatedAC"`
Syndicate string `json:"syndicate"`
Tags string `json:"tags"`
Notes string `json:"notes"`
ApprovalStatus string `json:"approvalStatus"`
ApprovalPrincipal string `json:"approvalPrincipal"`
ApprovalLastReview string `json:"approvalLastReview"`
ArchivedStatus string `json:"archived_status"`
Field1 string `json:"field1"`
Field2 string `json:"field2"`
Field3 string `json:"field3"`
}
// This method is used to get all information for an account (createAccount).
//
// Reference: https://transactapi.readme.io/reference/getaccount
func (c *Client) GetAccount(req *GetAccountRequest) (*GetAccountResponse, error) {
return request[GetAccountRequest, GetAccountResponse](c, http.MethodPost, EndpointGetAccount, req)
}