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

148 lines
5.4 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"
time "time"
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, accountID string) ([]*Balance, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAccountBalances", ctx, accountID)
ret0, _ := ret[0].([]*Balance)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAccountBalances indicates an expected call of GetAccountBalances.
func (mr *MockClientMockRecorder) GetAccountBalances(ctx, accountID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountBalances", reflect.TypeOf((*MockClient)(nil).GetAccountBalances), ctx, accountID)
}
// GetAccounts mocks base method.
func (m *MockClient) GetAccounts(ctx context.Context, page, pageSize int) ([]*Account, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAccounts", ctx, page, pageSize)
ret0, _ := ret[0].([]*Account)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAccounts indicates an expected call of GetAccounts.
func (mr *MockClientMockRecorder) GetAccounts(ctx, page, pageSize any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccounts", reflect.TypeOf((*MockClient)(nil).GetAccounts), ctx, page, pageSize)
}
// GetRecipients mocks base method.
func (m *MockClient) GetRecipients(ctx context.Context, accountID string, page, pageSize int) ([]*Recipient, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRecipients", ctx, accountID, page, pageSize)
ret0, _ := ret[0].([]*Recipient)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRecipients indicates an expected call of GetRecipients.
func (mr *MockClientMockRecorder) GetRecipients(ctx, accountID, page, pageSize any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRecipients", reflect.TypeOf((*MockClient)(nil).GetRecipients), ctx, accountID, page, pageSize)
}
// GetTransactions mocks base method.
func (m *MockClient) GetTransactions(ctx context.Context, accountID string, page, pageSize int, lastCreatedAt time.Time) ([]*Transaction, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTransactions", ctx, accountID, page, pageSize, lastCreatedAt)
ret0, _ := ret[0].([]*Transaction)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetTransactions indicates an expected call of GetTransactions.
func (mr *MockClientMockRecorder) GetTransactions(ctx, accountID, page, pageSize, lastCreatedAt any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTransactions", reflect.TypeOf((*MockClient)(nil).GetTransactions), ctx, accountID, page, pageSize, lastCreatedAt)
}
// GetTransfer mocks base method.
func (m *MockClient) GetTransfer(ctx context.Context, accountID, transferID string) (*TransferResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTransfer", ctx, accountID, transferID)
ret0, _ := ret[0].(*TransferResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetTransfer indicates an expected call of GetTransfer.
func (mr *MockClientMockRecorder) GetTransfer(ctx, accountID, transferID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTransfer", reflect.TypeOf((*MockClient)(nil).GetTransfer), ctx, accountID, transferID)
}
// InitiatePayout mocks base method.
func (m *MockClient) InitiatePayout(ctx context.Context, pr *PayoutRequest) (*PayoutResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InitiatePayout", ctx, pr)
ret0, _ := ret[0].(*PayoutResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// InitiatePayout indicates an expected call of InitiatePayout.
func (mr *MockClientMockRecorder) InitiatePayout(ctx, pr any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitiatePayout", reflect.TypeOf((*MockClient)(nil).InitiatePayout), ctx, pr)
}
// InitiateTransfer mocks base method.
func (m *MockClient) InitiateTransfer(ctx context.Context, tr *TransferRequest) (*TransferResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InitiateTransfer", ctx, tr)
ret0, _ := ret[0].(*TransferResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// InitiateTransfer indicates an expected call of InitiateTransfer.
func (mr *MockClientMockRecorder) InitiateTransfer(ctx, tr any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitiateTransfer", reflect.TypeOf((*MockClient)(nil).InitiateTransfer), ctx, tr)
}