// 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"
)

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

// Delete provides a mock function with given fields: ctx, params
func (_m *Service) Delete(ctx context.Context, params *entities.DeleteFulfillmentOrderParams) error {
	ret := _m.Called(ctx, params)

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

	return r0
}

// DeleteByFulfillmentID provides a mock function with given fields: ctx, fulfillmentID
func (_m *Service) 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 *Service) 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 *Service) 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
}

// GetByCartIDs provides a mock function with given fields: ctx, cartIDs
func (_m *Service) GetByCartIDs(ctx context.Context, cartIDs []string) ([]*entities.FulfillmentOrder, error) {
	ret := _m.Called(ctx, cartIDs)

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

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

	return r0, r1
}

// GetListByFulfillmentID provides a mock function with given fields: ctx, fulfilmentID
func (_m *Service) GetListByFulfillmentID(ctx context.Context, fulfilmentID string) ([]*entities.FulfillmentOrder, error) {
	ret := _m.Called(ctx, fulfilmentID)

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

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

	return r0, r1
}

// Update provides a mock function with given fields: ctx, id, fo
func (_m *Service) Update(ctx context.Context, id int64, fo *entities.FulfillmentOrder) error {
	ret := _m.Called(ctx, id, fo)

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

	return r0
}

// UpdateBatch provides a mock function with given fields: ctx, fulfilmentID, fos
func (_m *Service) UpdateBatch(ctx context.Context, fulfilmentID string, fos []*entities.FulfillmentOrder) error {
	ret := _m.Called(ctx, fulfilmentID, fos)

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

	return r0
}

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

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

	return r0
}

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

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

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

	return mock
}
