func (_m *Datastore) UpdateOrg(_a0 *types.Org) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.Org) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
UpdateOrg provides a mock function with given fields: _a0
package mocks
import mock "github.com/stretchr/testify/mock"
import time "time"
import types "github.com/openaccounting/oa-server/core/model/types"
type Datastore struct {
	mock.Mock
}
func (_m *Datastore) AcceptInvite(_a0 *types.Invite, _a1 string) error {
	ret := _m.Called(_a0, _a1)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.Invite, string) error); ok {
		r0 = rf(_a0, _a1)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) AddBalance(_a0 *types.Account, _a1 time.Time) error {
	ret := _m.Called(_a0, _a1)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.Account, time.Time) error); ok {
		r0 = rf(_a0, _a1)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) AddBalances(_a0 []*types.Account, _a1 time.Time) error {
	ret := _m.Called(_a0, _a1)
	var r0 error
	if rf, ok := ret.Get(0).(func([]*types.Account, time.Time) error); ok {
		r0 = rf(_a0, _a1)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) AddNativeBalanceCost(_a0 *types.Account, _a1 time.Time) error {
	ret := _m.Called(_a0, _a1)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.Account, time.Time) error); ok {
		r0 = rf(_a0, _a1)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) AddNativeBalanceNearestInTime(_a0 *types.Account, _a1 time.Time) error {
	ret := _m.Called(_a0, _a1)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.Account, time.Time) error); ok {
		r0 = rf(_a0, _a1)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) AddNativeBalancesCost(_a0 []*types.Account, _a1 time.Time) error {
	ret := _m.Called(_a0, _a1)
	var r0 error
	if rf, ok := ret.Get(0).(func([]*types.Account, time.Time) error); ok {
		r0 = rf(_a0, _a1)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) AddNativeBalancesNearestInTime(_a0 []*types.Account, _a1 time.Time) error {
	ret := _m.Called(_a0, _a1)
	var r0 error
	if rf, ok := ret.Get(0).(func([]*types.Account, time.Time) error); ok {
		r0 = rf(_a0, _a1)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) CreateOrg(_a0 *types.Org, _a1 string, _a2 []*types.Account) error {
	ret := _m.Called(_a0, _a1, _a2)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.Org, string, []*types.Account) error); ok {
		r0 = rf(_a0, _a1, _a2)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) DeleteAccount(id string) error {
	ret := _m.Called(id)
	var r0 error
	if rf, ok := ret.Get(0).(func(string) error); ok {
		r0 = rf(id)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) DeleteAndInsertTransaction(_a0 string, _a1 *types.Transaction) error {
	ret := _m.Called(_a0, _a1)
	var r0 error
	if rf, ok := ret.Get(0).(func(string, *types.Transaction) error); ok {
		r0 = rf(_a0, _a1)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) DeleteApiKey(_a0 string, _a1 string) error {
	ret := _m.Called(_a0, _a1)
	var r0 error
	if rf, ok := ret.Get(0).(func(string, string) error); ok {
		r0 = rf(_a0, _a1)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) DeleteInvite(_a0 string) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(string) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) DeletePrice(_a0 string) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(string) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) DeleteSession(_a0 string, _a1 string) error {
	ret := _m.Called(_a0, _a1)
	var r0 error
	if rf, ok := ret.Get(0).(func(string, string) error); ok {
		r0 = rf(_a0, _a1)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) DeleteTransaction(_a0 string) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(string) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) Escape(_a0 string) string {
	ret := _m.Called(_a0)
	var r0 string
	if rf, ok := ret.Get(0).(func(string) string); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Get(0).(string)
	}
	return r0
}
func (_m *Datastore) GetAccount(_a0 string) (*types.Account, error) {
	ret := _m.Called(_a0)
	var r0 *types.Account
	if rf, ok := ret.Get(0).(func(string) *types.Account); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.Account)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetAccountsByOrgId(orgId string) ([]*types.Account, error) {
	ret := _m.Called(orgId)
	var r0 []*types.Account
	if rf, ok := ret.Get(0).(func(string) []*types.Account); ok {
		r0 = rf(orgId)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*types.Account)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(orgId)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetApiKeys(_a0 string) ([]*types.ApiKey, error) {
	ret := _m.Called(_a0)
	var r0 []*types.ApiKey
	if rf, ok := ret.Get(0).(func(string) []*types.ApiKey); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*types.ApiKey)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetChildCountByAccountId(id string) (int64, error) {
	ret := _m.Called(id)
	var r0 int64
	if rf, ok := ret.Get(0).(func(string) int64); ok {
		r0 = rf(id)
	} else {
		r0 = ret.Get(0).(int64)
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(id)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetInvite(_a0 string) (*types.Invite, error) {
	ret := _m.Called(_a0)
	var r0 *types.Invite
	if rf, ok := ret.Get(0).(func(string) *types.Invite); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.Invite)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetInvites(_a0 string) ([]*types.Invite, error) {
	ret := _m.Called(_a0)
	var r0 []*types.Invite
	if rf, ok := ret.Get(0).(func(string) []*types.Invite); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*types.Invite)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetOrg(_a0 string, _a1 string) (*types.Org, error) {
	ret := _m.Called(_a0, _a1)
	var r0 *types.Org
	if rf, ok := ret.Get(0).(func(string, string) *types.Org); ok {
		r0 = rf(_a0, _a1)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.Org)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string, string) error); ok {
		r1 = rf(_a0, _a1)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetOrgAdmins(_a0 string) ([]*types.User, error) {
	ret := _m.Called(_a0)
	var r0 []*types.User
	if rf, ok := ret.Get(0).(func(string) []*types.User); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*types.User)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetOrgUserIds(_a0 string) ([]string, error) {
	ret := _m.Called(_a0)
	var r0 []string
	if rf, ok := ret.Get(0).(func(string) []string); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]string)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetOrgs(_a0 string) ([]*types.Org, error) {
	ret := _m.Called(_a0)
	var r0 []*types.Org
	if rf, ok := ret.Get(0).(func(string) []*types.Org); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*types.Org)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetPermissionedAccountIds(_a0 string, _a1 string, _a2 string) ([]string, error) {
	ret := _m.Called(_a0, _a1, _a2)
	var r0 []string
	if rf, ok := ret.Get(0).(func(string, string, string) []string); ok {
		r0 = rf(_a0, _a1, _a2)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]string)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string, string, string) error); ok {
		r1 = rf(_a0, _a1, _a2)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetPriceById(_a0 string) (*types.Price, error) {
	ret := _m.Called(_a0)
	var r0 *types.Price
	if rf, ok := ret.Get(0).(func(string) *types.Price); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.Price)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetPricesByCurrency(_a0 string, _a1 string) ([]*types.Price, error) {
	ret := _m.Called(_a0, _a1)
	var r0 []*types.Price
	if rf, ok := ret.Get(0).(func(string, string) []*types.Price); ok {
		r0 = rf(_a0, _a1)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*types.Price)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string, string) error); ok {
		r1 = rf(_a0, _a1)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetPricesNearestInTime(_a0 string, _a1 time.Time) ([]*types.Price, error) {
	ret := _m.Called(_a0, _a1)
	var r0 []*types.Price
	if rf, ok := ret.Get(0).(func(string, time.Time) []*types.Price); ok {
		r0 = rf(_a0, _a1)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*types.Price)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string, time.Time) error); ok {
		r1 = rf(_a0, _a1)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetRootAccount(_a0 string) (*types.Account, error) {
	ret := _m.Called(_a0)
	var r0 *types.Account
	if rf, ok := ret.Get(0).(func(string) *types.Account); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.Account)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetSplitCountByAccountId(id string) (int64, error) {
	ret := _m.Called(id)
	var r0 int64
	if rf, ok := ret.Get(0).(func(string) int64); ok {
		r0 = rf(id)
	} else {
		r0 = ret.Get(0).(int64)
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(id)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetTransactionById(_a0 string) (*types.Transaction, error) {
	ret := _m.Called(_a0)
	var r0 *types.Transaction
	if rf, ok := ret.Get(0).(func(string) *types.Transaction); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.Transaction)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetTransactionsByAccount(_a0 string, _a1 *types.QueryOptions) ([]*types.Transaction, error) {
	ret := _m.Called(_a0, _a1)
	var r0 []*types.Transaction
	if rf, ok := ret.Get(0).(func(string, *types.QueryOptions) []*types.Transaction); ok {
		r0 = rf(_a0, _a1)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*types.Transaction)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string, *types.QueryOptions) error); ok {
		r1 = rf(_a0, _a1)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetTransactionsByOrg(_a0 string, _a1 *types.QueryOptions, _a2 []string) ([]*types.Transaction, error) {
	ret := _m.Called(_a0, _a1, _a2)
	var r0 []*types.Transaction
	if rf, ok := ret.Get(0).(func(string, *types.QueryOptions, []string) []*types.Transaction); ok {
		r0 = rf(_a0, _a1, _a2)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*types.Transaction)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string, *types.QueryOptions, []string) error); ok {
		r1 = rf(_a0, _a1, _a2)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetUserByActiveSession(_a0 string) (*types.User, error) {
	ret := _m.Called(_a0)
	var r0 *types.User
	if rf, ok := ret.Get(0).(func(string) *types.User); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.User)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetUserByApiKey(_a0 string) (*types.User, error) {
	ret := _m.Called(_a0)
	var r0 *types.User
	if rf, ok := ret.Get(0).(func(string) *types.User); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.User)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetUserByResetCode(_a0 string) (*types.User, error) {
	ret := _m.Called(_a0)
	var r0 *types.User
	if rf, ok := ret.Get(0).(func(string) *types.User); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.User)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) GetVerifiedUserByEmail(_a0 string) (*types.User, error) {
	ret := _m.Called(_a0)
	var r0 *types.User
	if rf, ok := ret.Get(0).(func(string) *types.User); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.User)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *Datastore) InsertAccount(account *types.Account) error {
	ret := _m.Called(account)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.Account) error); ok {
		r0 = rf(account)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) InsertApiKey(_a0 *types.ApiKey) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.ApiKey) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) InsertInvite(_a0 *types.Invite) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.Invite) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) InsertPrice(_a0 *types.Price) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.Price) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) InsertSession(_a0 *types.Session) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.Session) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) InsertTransaction(_a0 *types.Transaction) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.Transaction) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) InsertUser(_a0 *types.User) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.User) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) UpdateAccount(account *types.Account) error {
	ret := _m.Called(account)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.Account) error); ok {
		r0 = rf(account)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) UpdateApiKey(_a0 *types.ApiKey) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(*types.ApiKey) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *Datastore) UpdateApiKeyActivity(_a0 string) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(string) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}