Documentation
¶
Index ¶
- type AccessResponse
- type AccessTokenRequest
- type Account
- type Accounts
- type Credentials
- type EmailVerification
- type EmailVerificationWithCode
- type ItemName
- type LinkResponse
- type MerchantSummary
- type MonetaryData
- type ProcessWebhook
- type RefreshRequest
- type RefreshResponse
- type ResetPassword
- type Transaction
- type UpdateItemName
- type UpdatePassword
- type UpdatedBalance
- type UpdatedPassword
- type User
- type UserDetails
- type WebhookRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessResponse ¶
type AccessTokenRequest ¶
type Account ¶
type Account struct {
Id string `json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Name string `json:"name:"`
Type string `json:"type"`
Subtype string `json:"subtype"`
Mask string `json:"mask"`
OfficialName string `json:"official_name"`
AvailableBalance string `json:"available_balance"`
CurrentBalance string `json:"current_balance"`
IsoCurrencyCode string `json:"iso_currency_code"`
ItemId string `json:"item_id"`
}
type Credentials ¶
type EmailVerification ¶
type LinkResponse ¶
type LinkResponse struct {
LinkToken string `json:"link_token"`
}
type MerchantSummary ¶
type MerchantSummary struct {
Merchant string `json:"merchant"`
TxnCount int64 `json:"txn_count"`
Category string `json:"category"`
TotalAmount string `json:"total_amount"`
Month string `json:"month"`
}
For getting merchant summaries on transactions call
type MonetaryData ¶
type MonetaryData struct {
Income string `json:"income"`
Expenses string `json:"expenses"`
NetIncome string `json:"net_income"`
Date string `json:"date"`
}
For credit/debit account types, fields are straightforward. For loan accounts, income = loan payments, expenses = interest, netincome = income - expenses
type ProcessWebhook ¶
type RefreshRequest ¶
type RefreshRequest struct {
RefreshToken string `json:"refresh_token"`
}
type RefreshResponse ¶
type ResetPassword ¶
type Transaction ¶
type Transaction struct {
Id string `json:"id"`
AccountId string `json:"account_id"`
Amount string `json:"amount"`
IsoCurrencyCode string `json:"iso_currency_code"`
Date time.Time `json:"date"`
MerchantName string `json:"merchant_name"`
PaymentChannel string `json:"payment_channel"`
PersonalFinanceCategory string `json:"personal_finance_category"`
}
type UpdateItemName ¶
type UpdateItemName struct {
Nickname string `json:"nickname"`
}
Structs used in http requests
type UpdatePassword ¶
type UpdatedBalance ¶
type UpdatedPassword ¶
type UpdatedPassword struct {
HashPassword string `json:"hash_password"`
}
type UserDetails ¶
Click to show internal directories.
Click to hide internal directories.