Versions in this module Expand all Collapse all v0 v0.1.1 Dec 27, 2020 Changes in this version + type AccountFeedResponse struct + Data Data type Client + GetAccountFeed func(ctx context.Context) ([]Feed, error) + type Data struct + Viewer Viewer + type Feed struct + Amount *float64 + DestinationAccount *NAccount + Detail string + ID string + OriginAccount *NAccount + PostDate string + Title string + Typename string + type NAccount struct + Name string + type SavingsAccount struct + Feed []Feed + ID string + type Viewer struct + SavingsAccount SavingsAccount v0.1.0 Dec 27, 2020 Changes in this version + var ErrNoEncryptedCode = errors.New("no encrypted code found. Did you call `RequestCode` before exchanging certs?") + var ErrNotAuthenticated = errors.New("client not authenticated. Did you called Authenticate?") + var ErrStatusCodeUnexpected = errors.New("unexpected status code") + type Category string + const AccountLimitSet + const AnticipateEvent + const BillFlowClosed + const BillFlowOnOneDayToDueDate + const BillFlowPaid + const CardActivated + const CustomerDeviceAuthorized + const CustomerInvitationsChanged + const CustomerPasswordChanged + const InitialAccountLimit + const Payment + const RewardsFee + const RewardsRedemption + const RewardsSignup + const Transaction + const TransactionReversed + const Tutorial + const Welcome + type Charges struct + Amount int64 + Count int64 + type Client interface + Authenticate func(ctx context.Context, cpf, password string) error + GetEvents func(ctx context.Context) (*EventResponse, error) + RequestCode func(ctx context.Context, login, password, deviceID string) (*Code, error) + func New(opts ...Option) (Client, error) + type Code struct + func (g *Code) ExchangeCerts(ctx context.Context, code string) (string, string, error) + type Details struct + ChargebackRequested *bool + Charges *Charges + Fx *Fx + Lat *float64 + Lon *float64 + Subcategory Subcategory + Tags []string + type EventElement struct + Account *string + Amount *int64 + AmountWithoutIof *int64 + Category Category + Description *string + Details *Details + Href *string + ID string + Links *EventLinks + Source *Source + Time time.Time + Title string + Tokenized *bool + type EventLinks struct + Self Updates + type EventResponse struct + AsOf time.Time + CustomerID string + Events []EventElement + Links EventResponseLinks + type EventResponseLinks struct + Updates Updates + type Fx struct + AmountOrigin int64 + AmountUsd int64 + CurrencyOrigin string + ExchangeRate float64 + PreciseAmountOrigin string + PreciseAmountUsd string + type Option func(*client) error + func WithCertificate(certPath, keyPath string) Option + type Source string + const InstallmentsMerchant + const UpfrontForeign + const UpfrontNational + type Subcategory string + const CardNotPresent + const CardPresent + const Unknown + type Updates struct + Href string