Documentation ¶
Index ¶
- func New() bank.Bank
- type Boursorama
- func (b *Boursorama) Accounts() ([]*bank.Account, error)
- func (b *Boursorama) Login(username, pwd []byte, ctx context.Context, q chan<- string, a <-chan string) error
- func (b *Boursorama) Logout() error
- func (b *Boursorama) Transactions(account *bank.Account, after time.Time) ([]*bank.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Boursorama ¶
type Boursorama struct {
// contains filtered or unexported fields
}
Boursorama enables to connect to Boursorama Bank and to retrieve the list of accounts as well as the list of operations for each account. This structure can be instanced by "hand" (Username and Password must be given) or through the New method.
func (*Boursorama) Accounts ¶
func (b *Boursorama) Accounts() ([]*bank.Account, error)
Accounts returns the list of accounts detained by the user.
func (*Boursorama) Login ¶
func (b *Boursorama) Login(username, pwd []byte, ctx context.Context, q chan<- string, a <-chan string) error
Login connects to Boursorama Banque. Credentials have been given when instancing Boursorama. Questions like 2FA code may be asked through the prompt channel (this method will block until it gets an answer).
func (*Boursorama) Logout ¶
func (b *Boursorama) Logout() error
Logout disconnects the user from Boursorama Banque. It returns an error if the user was already disconnected.
func (*Boursorama) Transactions ¶
func (b *Boursorama) Transactions(account *bank.Account, after time.Time) ([]*bank.Transaction, error)
Transactions returns a list of transactions that have been performed for a specific account after a specified date.