// 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
}

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

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

	return r0
}

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

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

	return r0
}

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

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

	return r0
}

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, []int64) error); ok {
		r0 = rf(ctx, ids)
	} 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.GetFulfillmentOrderParams) ([]*entities.FulfillmentOrder, error) {
	ret := _m.Called(ctx, params)

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

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

	return r0, r1
}

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, int64, 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 []int64, maps map[string]interface{}) error {
	ret := _m.Called(ctx, ids, maps)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, []int64, 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
}
