Files
CrimsonandGitHub 61cae8af0a chore: Move all CE plugins to own go modules (#780)
* Move all public connectors to ce/plugins

* Update tooling to account for new go modules under ce

* Ensure we test all CE plugins in CI

* Move Dummypay to ce/plugins for simplicity's sake in the generation scripts

* Use versioned pkg/domain in plugins

* Ensure that renovate updates all CE plugins in a single PR when pkg/domain tags are pushed to github

* Ensure Justfile commands work over all CE plugins

* Copy ce plugin go.mods in dev.Dockerfile

* Only add a go.mod for new plugins if they are ce

* Ensure generated generic client structs are named correctly for submodule

* Add coverprofile for each ce plugin

* Add set -e for Justfile for loops over plugins

* Infer go version from flake.nix in connector template tool
2026-07-01 14:53:02 +00:00

280 lines
11 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"
plaid "github.com/plaid/plaid-go/v34/plaid"
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
}
// BaseWebhookTranslation mocks base method.
func (m *MockClient) BaseWebhookTranslation(body []byte) (BaseWebhooks, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BaseWebhookTranslation", body)
ret0, _ := ret[0].(BaseWebhooks)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// BaseWebhookTranslation indicates an expected call of BaseWebhookTranslation.
func (mr *MockClientMockRecorder) BaseWebhookTranslation(body any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BaseWebhookTranslation", reflect.TypeOf((*MockClient)(nil).BaseWebhookTranslation), body)
}
// CreateLinkToken mocks base method.
func (m *MockClient) CreateLinkToken(ctx context.Context, req CreateLinkTokenRequest) (CreateLinkTokenResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateLinkToken", ctx, req)
ret0, _ := ret[0].(CreateLinkTokenResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateLinkToken indicates an expected call of CreateLinkToken.
func (mr *MockClientMockRecorder) CreateLinkToken(ctx, req any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLinkToken", reflect.TypeOf((*MockClient)(nil).CreateLinkToken), ctx, req)
}
// CreateUser mocks base method.
func (m *MockClient) CreateUser(ctx context.Context, userID string) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateUser", ctx, userID)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateUser indicates an expected call of CreateUser.
func (mr *MockClientMockRecorder) CreateUser(ctx, userID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUser", reflect.TypeOf((*MockClient)(nil).CreateUser), ctx, userID)
}
// DeleteItem mocks base method.
func (m *MockClient) DeleteItem(ctx context.Context, req DeleteItemRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteItem", ctx, req)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteItem indicates an expected call of DeleteItem.
func (mr *MockClientMockRecorder) DeleteItem(ctx, req any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteItem", reflect.TypeOf((*MockClient)(nil).DeleteItem), ctx, req)
}
// DeleteUser mocks base method.
func (m *MockClient) DeleteUser(ctx context.Context, userToken string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteUser", ctx, userToken)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteUser indicates an expected call of DeleteUser.
func (mr *MockClientMockRecorder) DeleteUser(ctx, userToken any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUser", reflect.TypeOf((*MockClient)(nil).DeleteUser), ctx, userToken)
}
// ExchangePublicToken mocks base method.
func (m *MockClient) ExchangePublicToken(ctx context.Context, req ExchangePublicTokenRequest) (ExchangePublicTokenResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ExchangePublicToken", ctx, req)
ret0, _ := ret[0].(ExchangePublicTokenResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ExchangePublicToken indicates an expected call of ExchangePublicToken.
func (mr *MockClientMockRecorder) ExchangePublicToken(ctx, req any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExchangePublicToken", reflect.TypeOf((*MockClient)(nil).ExchangePublicToken), ctx, req)
}
// FormanceOpenBankingRedirect mocks base method.
func (m *MockClient) FormanceOpenBankingRedirect(ctx context.Context, req FormanceOpenBankingRedirectRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FormanceOpenBankingRedirect", ctx, req)
ret0, _ := ret[0].(error)
return ret0
}
// FormanceOpenBankingRedirect indicates an expected call of FormanceOpenBankingRedirect.
func (mr *MockClientMockRecorder) FormanceOpenBankingRedirect(ctx, req any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FormanceOpenBankingRedirect", reflect.TypeOf((*MockClient)(nil).FormanceOpenBankingRedirect), ctx, req)
}
// GetWebhookVerificationKey mocks base method.
func (m *MockClient) GetWebhookVerificationKey(ctx context.Context, kid string) (*plaid.JWKPublicKey, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetWebhookVerificationKey", ctx, kid)
ret0, _ := ret[0].(*plaid.JWKPublicKey)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetWebhookVerificationKey indicates an expected call of GetWebhookVerificationKey.
func (mr *MockClientMockRecorder) GetWebhookVerificationKey(ctx, kid any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWebhookVerificationKey", reflect.TypeOf((*MockClient)(nil).GetWebhookVerificationKey), ctx, kid)
}
// ListAccounts mocks base method.
func (m *MockClient) ListAccounts(ctx context.Context, accessToken string) (plaid.AccountsGetResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListAccounts", ctx, accessToken)
ret0, _ := ret[0].(plaid.AccountsGetResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListAccounts indicates an expected call of ListAccounts.
func (mr *MockClientMockRecorder) ListAccounts(ctx, accessToken any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccounts", reflect.TypeOf((*MockClient)(nil).ListAccounts), ctx, accessToken)
}
// ListTransactions mocks base method.
func (m *MockClient) ListTransactions(ctx context.Context, accessToken, cursor string, pageSize int) (plaid.TransactionsSyncResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListTransactions", ctx, accessToken, cursor, pageSize)
ret0, _ := ret[0].(plaid.TransactionsSyncResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListTransactions indicates an expected call of ListTransactions.
func (mr *MockClientMockRecorder) ListTransactions(ctx, accessToken, cursor, pageSize any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTransactions", reflect.TypeOf((*MockClient)(nil).ListTransactions), ctx, accessToken, cursor, pageSize)
}
// TranslateItemAddResultWebhook mocks base method.
func (m *MockClient) TranslateItemAddResultWebhook(body []byte) (plaid.ItemAddResultWebhook, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "TranslateItemAddResultWebhook", body)
ret0, _ := ret[0].(plaid.ItemAddResultWebhook)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// TranslateItemAddResultWebhook indicates an expected call of TranslateItemAddResultWebhook.
func (mr *MockClientMockRecorder) TranslateItemAddResultWebhook(body any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TranslateItemAddResultWebhook", reflect.TypeOf((*MockClient)(nil).TranslateItemAddResultWebhook), body)
}
// TranslateItemErrorWebhook mocks base method.
func (m *MockClient) TranslateItemErrorWebhook(body []byte) (plaid.ItemErrorWebhook, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "TranslateItemErrorWebhook", body)
ret0, _ := ret[0].(plaid.ItemErrorWebhook)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// TranslateItemErrorWebhook indicates an expected call of TranslateItemErrorWebhook.
func (mr *MockClientMockRecorder) TranslateItemErrorWebhook(body any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TranslateItemErrorWebhook", reflect.TypeOf((*MockClient)(nil).TranslateItemErrorWebhook), body)
}
// TranslateSessionFinishedWebhook mocks base method.
func (m *MockClient) TranslateSessionFinishedWebhook(body []byte) (plaid.LinkSessionFinishedWebhook, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "TranslateSessionFinishedWebhook", body)
ret0, _ := ret[0].(plaid.LinkSessionFinishedWebhook)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// TranslateSessionFinishedWebhook indicates an expected call of TranslateSessionFinishedWebhook.
func (mr *MockClientMockRecorder) TranslateSessionFinishedWebhook(body any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TranslateSessionFinishedWebhook", reflect.TypeOf((*MockClient)(nil).TranslateSessionFinishedWebhook), body)
}
// TranslateUserPendingDisconnectWebhook mocks base method.
func (m *MockClient) TranslateUserPendingDisconnectWebhook(body []byte) (plaid.PendingDisconnectWebhook, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "TranslateUserPendingDisconnectWebhook", body)
ret0, _ := ret[0].(plaid.PendingDisconnectWebhook)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// TranslateUserPendingDisconnectWebhook indicates an expected call of TranslateUserPendingDisconnectWebhook.
func (mr *MockClientMockRecorder) TranslateUserPendingDisconnectWebhook(body any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TranslateUserPendingDisconnectWebhook", reflect.TypeOf((*MockClient)(nil).TranslateUserPendingDisconnectWebhook), body)
}
// TranslateUserPendingExpirationWebhook mocks base method.
func (m *MockClient) TranslateUserPendingExpirationWebhook(body []byte) (plaid.PendingExpirationWebhook, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "TranslateUserPendingExpirationWebhook", body)
ret0, _ := ret[0].(plaid.PendingExpirationWebhook)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// TranslateUserPendingExpirationWebhook indicates an expected call of TranslateUserPendingExpirationWebhook.
func (mr *MockClientMockRecorder) TranslateUserPendingExpirationWebhook(body any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TranslateUserPendingExpirationWebhook", reflect.TypeOf((*MockClient)(nil).TranslateUserPendingExpirationWebhook), body)
}
// UpdateLinkToken mocks base method.
func (m *MockClient) UpdateLinkToken(ctx context.Context, req UpdateLinkTokenRequest) (UpdateLinkTokenResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateLinkToken", ctx, req)
ret0, _ := ret[0].(UpdateLinkTokenResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateLinkToken indicates an expected call of UpdateLinkToken.
func (mr *MockClientMockRecorder) UpdateLinkToken(ctx, req any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateLinkToken", reflect.TypeOf((*MockClient)(nil).UpdateLinkToken), ctx, req)
}