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

package mocks

import (
	context "context"

	entities "github.com/UpmeshLTD/urus-aio/infrastructure/db/entities"
	dto "github.com/UpmeshLTD/urus-aio/shipment/server/http/dto"

	mock "github.com/stretchr/testify/mock"
)

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

// CreatePickupPoint provides a mock function with given fields: ctx, pickupPoint
func (_m *Repository) CreatePickupPoint(ctx context.Context, pickupPoint *entities.PickupPoint) (*entities.PickupPoint, error) {
	ret := _m.Called(ctx, pickupPoint)

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

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

	return r0, r1
}

// DeletePickupPoint provides a mock function with given fields: ctx, workspaceID, id
func (_m *Repository) DeletePickupPoint(ctx context.Context, workspaceID string, id entities.ID) error {
	ret := _m.Called(ctx, workspaceID, id)

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

	return r0
}

// GetListOfPickupPoints provides a mock function with given fields: ctx, workspaceID, req
func (_m *Repository) GetListOfPickupPoints(ctx context.Context, workspaceID string, req *dto.GetPickupPointsRequest) ([]*entities.PickupPoint, int64, error) {
	ret := _m.Called(ctx, workspaceID, req)

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

	var r1 int64
	if rf, ok := ret.Get(1).(func(context.Context, string, *dto.GetPickupPointsRequest) int64); ok {
		r1 = rf(ctx, workspaceID, req)
	} else {
		r1 = ret.Get(1).(int64)
	}

	var r2 error
	if rf, ok := ret.Get(2).(func(context.Context, string, *dto.GetPickupPointsRequest) error); ok {
		r2 = rf(ctx, workspaceID, req)
	} else {
		r2 = ret.Error(2)
	}

	return r0, r1, r2
}

// GetPickupPointByID provides a mock function with given fields: ctx, workspaceID, id
func (_m *Repository) GetPickupPointByID(ctx context.Context, workspaceID string, id entities.ID) (*entities.PickupPoint, error) {
	ret := _m.Called(ctx, workspaceID, id)

	var r0 *entities.PickupPoint
	if rf, ok := ret.Get(0).(func(context.Context, string, entities.ID) *entities.PickupPoint); ok {
		r0 = rf(ctx, workspaceID, id)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*entities.PickupPoint)
		}
	}

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

	return r0, r1
}

// UpdatePickupPoint provides a mock function with given fields: ctx, workspaceID, id, pickupPoint
func (_m *Repository) UpdatePickupPoint(ctx context.Context, workspaceID string, id entities.ID, pickupPoint *entities.PickupPoint) error {
	ret := _m.Called(ctx, workspaceID, id, pickupPoint)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, entities.ID, *entities.PickupPoint) error); ok {
		r0 = rf(ctx, workspaceID, id, pickupPoint)
	} 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
}
