Files
CrimsonGitHubQuentin Davidfguerycoderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>fabrice guery
001965d274 feat(connector): Add Banking Bridge Connector (#667)
* Update connector template and CONTRIBUTING.md

* Bootstrap Banking Bridge Connector

* Update oauth config for banking bridge connector

* Parse ISO20022 transaction code

* Determine payment status

* Update client implementation

* Implement FetchNext functions for banking bridge

* Ensure plugin is loaded and payments is scheduled workflow

* Add tests for SEPA credit transfers

* Remove unused file

* Fallback on last seen imported at in cases where cursor not populated

* Run pre-commit

* Truncate expected timestamps in tests

* Add metadata prefix

* Improve code coverage for banking bridge client

* Address review comments

* Add application scope to auth request

* Add fallbacks if bank transction code is not available

* Fix metadata format

* chore(bankingBridge): Move connector to ee

* chore(bankingBridge): Add forgotten generated stuff

* fix linting

* fix: force UTC on importedAt, applying suggestion from @coderabbitai[bot]

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix: ensure we're converting importedAt to UTC

---------

Co-authored-by: Quentin David <[email protected]>
Co-authored-by: fguery <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: fabrice guery <[email protected]>
2026-03-31 08:08:41 +00:00

93 lines
3.3 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: client.go
//
// Generated by this command:
//
// mockgen -source client.go -destination client_generated.go -package client . Client
//
// Package client is a generated GoMock package.
package client
import (
context "context"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockClient is a mock of Client interface.
type MockClient struct {
ctrl *gomock.Controller
recorder *MockClientMockRecorder
isgomock struct{}
}
// MockClientMockRecorder is the mock recorder for MockClient.
type MockClientMockRecorder struct {
mock *MockClient
}
// NewMockClient creates a new mock instance.
func NewMockClient(ctrl *gomock.Controller) *MockClient {
mock := &MockClient{ctrl: ctrl}
mock.recorder = &MockClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClient) EXPECT() *MockClientMockRecorder {
return m.recorder
}
// GetAccountBalances mocks base method.
func (m *MockClient) GetAccountBalances(ctx context.Context, cursor, lastImportedAt string, pageSize int) ([]Balance, bool, string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAccountBalances", ctx, cursor, lastImportedAt, pageSize)
ret0, _ := ret[0].([]Balance)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(error)
return ret0, ret1, ret2, ret3
}
// GetAccountBalances indicates an expected call of GetAccountBalances.
func (mr *MockClientMockRecorder) GetAccountBalances(ctx, cursor, lastImportedAt, pageSize any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountBalances", reflect.TypeOf((*MockClient)(nil).GetAccountBalances), ctx, cursor, lastImportedAt, pageSize)
}
// GetAccounts mocks base method.
func (m *MockClient) GetAccounts(ctx context.Context, cursor, lastImportedAt string, pageSize int) ([]Account, bool, string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAccounts", ctx, cursor, lastImportedAt, pageSize)
ret0, _ := ret[0].([]Account)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(error)
return ret0, ret1, ret2, ret3
}
// GetAccounts indicates an expected call of GetAccounts.
func (mr *MockClientMockRecorder) GetAccounts(ctx, cursor, lastImportedAt, pageSize any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccounts", reflect.TypeOf((*MockClient)(nil).GetAccounts), ctx, cursor, lastImportedAt, pageSize)
}
// GetTransactions mocks base method.
func (m *MockClient) GetTransactions(ctx context.Context, cursor, lastImportedAt string, pageSize int) ([]Transaction, bool, string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTransactions", ctx, cursor, lastImportedAt, pageSize)
ret0, _ := ret[0].([]Transaction)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(error)
return ret0, ret1, ret2, ret3
}
// GetTransactions indicates an expected call of GetTransactions.
func (mr *MockClientMockRecorder) GetTransactions(ctx, cursor, lastImportedAt, pageSize any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTransactions", reflect.TypeOf((*MockClient)(nil).GetTransactions), ctx, cursor, lastImportedAt, pageSize)
}