// Code generated by mockery v2.14.1. DO NOT EDIT.

package mocks

import (
	context "context"

	entities "github.com/UpmeshLTD/urus-aio/infrastructure/db/entities"
	mock "github.com/stretchr/testify/mock"
)

// Repository is an autogenerated mock type for the Repository type
type Repository struct {
	mock.Mock
}

// CreateBatch provides a mock function with given fields: ctx, _a1
func (_m *Repository) CreateBatch(ctx context.Context, _a1 []*entities.PaidOrder) error {
	ret := _m.Called(ctx, _a1)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, []*entities.PaidOrder) error); ok {
		r0 = rf(ctx, _a1)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Delete provides a mock function with given fields: ctx, cartId
func (_m *Repository) Delete(ctx context.Context, cartId string) error {
	ret := _m.Called(ctx, cartId)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
		r0 = rf(ctx, cartId)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Get provides a mock function with given fields: ctx, params
func (_m *Repository) Get(ctx context.Context, params *entities.GetPaidOrderParams) (*entities.PaidOrder, error) {
	ret := _m.Called(ctx, params)

	var r0 *entities.PaidOrder
	if rf, ok := ret.Get(0).(func(context.Context, *entities.GetPaidOrderParams) *entities.PaidOrder); ok {
		r0 = rf(ctx, params)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*entities.PaidOrder)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, *entities.GetPaidOrderParams) error); ok {
		r1 = rf(ctx, params)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetByCartID provides a mock function with given fields: ctx, cartID
func (_m *Repository) GetByCartID(ctx context.Context, cartID string) ([]*entities.PaidOrder, error) {
	ret := _m.Called(ctx, cartID)

	var r0 []*entities.PaidOrder
	if rf, ok := ret.Get(0).(func(context.Context, string) []*entities.PaidOrder); ok {
		r0 = rf(ctx, cartID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*entities.PaidOrder)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
		r1 = rf(ctx, cartID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetCount provides a mock function with given fields: ctx, params
func (_m *Repository) GetCount(ctx context.Context, params *entities.GetPaidOrdersParams) (int64, error) {
	ret := _m.Called(ctx, params)

	var r0 int64
	if rf, ok := ret.Get(0).(func(context.Context, *entities.GetPaidOrdersParams) int64); ok {
		r0 = rf(ctx, params)
	} else {
		r0 = ret.Get(0).(int64)
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, *entities.GetPaidOrdersParams) error); ok {
		r1 = rf(ctx, params)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetList provides a mock function with given fields: ctx, params
func (_m *Repository) GetList(ctx context.Context, params *entities.GetPaidOrdersParams) ([]*entities.PaidOrder, int64, error) {
	ret := _m.Called(ctx, params)

	var r0 []*entities.PaidOrder
	if rf, ok := ret.Get(0).(func(context.Context, *entities.GetPaidOrdersParams) []*entities.PaidOrder); ok {
		r0 = rf(ctx, params)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*entities.PaidOrder)
		}
	}

	var r1 int64
	if rf, ok := ret.Get(1).(func(context.Context, *entities.GetPaidOrdersParams) int64); ok {
		r1 = rf(ctx, params)
	} else {
		r1 = ret.Get(1).(int64)
	}

	var r2 error
	if rf, ok := ret.Get(2).(func(context.Context, *entities.GetPaidOrdersParams) error); ok {
		r2 = rf(ctx, params)
	} else {
		r2 = ret.Error(2)
	}

	return r0, r1, r2
}

// Update provides a mock function with given fields: ctx, id, maps
func (_m *Repository) Update(ctx context.Context, id string, maps map[string]interface{}) error {
	ret := _m.Called(ctx, id, maps)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, map[string]interface{}) error); ok {
		r0 = rf(ctx, id, maps)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// UpdateBatch provides a mock function with given fields: ctx, ids, maps
func (_m *Repository) UpdateBatch(ctx context.Context, ids []string, maps map[string]interface{}) error {
	ret := _m.Called(ctx, ids, maps)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, []string, map[string]interface{}) error); ok {
		r0 = rf(ctx, ids, maps)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

type mockConstructorTestingTNewRepository interface {
	mock.TestingT
	Cleanup(func())
}

// NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewRepository(t mockConstructorTestingTNewRepository) *Repository {
	mock := &Repository{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
