// Code generated by mockery v2.13.0-beta.1. DO NOT EDIT.

package v3

import (
	context "context"

	types "github.com/centrifuge/go-substrate-rpc-client/v4/types"
	mock "github.com/stretchr/testify/mock"
)

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

// CreateNFTCollection provides a mock function with given fields: ctx, collectionID
func (_m *ServiceMock) CreateNFTCollection(ctx context.Context, collectionID types.U64) (*CreateNFTCollectionResponse, error) {
	ret := _m.Called(ctx, collectionID)

	var r0 *CreateNFTCollectionResponse
	if rf, ok := ret.Get(0).(func(context.Context, types.U64) *CreateNFTCollectionResponse); ok {
		r0 = rf(ctx, collectionID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*CreateNFTCollectionResponse)
		}
	}

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

	return r0, r1
}

// GetItemAttribute provides a mock function with given fields: collectionID, itemID, key
func (_m *ServiceMock) GetItemAttribute(collectionID types.U64, itemID types.U128, key string) ([]byte, error) {
	ret := _m.Called(collectionID, itemID, key)

	var r0 []byte
	if rf, ok := ret.Get(0).(func(types.U64, types.U128, string) []byte); ok {
		r0 = rf(collectionID, itemID, key)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]byte)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(types.U64, types.U128, string) error); ok {
		r1 = rf(collectionID, itemID, key)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetItemMetadata provides a mock function with given fields: collectionID, itemID
func (_m *ServiceMock) GetItemMetadata(collectionID types.U64, itemID types.U128) (*types.ItemMetadata, error) {
	ret := _m.Called(collectionID, itemID)

	var r0 *types.ItemMetadata
	if rf, ok := ret.Get(0).(func(types.U64, types.U128) *types.ItemMetadata); ok {
		r0 = rf(collectionID, itemID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.ItemMetadata)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(types.U64, types.U128) error); ok {
		r1 = rf(collectionID, itemID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetNFTOwner provides a mock function with given fields: collectionID, itemID
func (_m *ServiceMock) GetNFTOwner(collectionID types.U64, itemID types.U128) (*types.AccountID, error) {
	ret := _m.Called(collectionID, itemID)

	var r0 *types.AccountID
	if rf, ok := ret.Get(0).(func(types.U64, types.U128) *types.AccountID); ok {
		r0 = rf(collectionID, itemID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.AccountID)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(types.U64, types.U128) error); ok {
		r1 = rf(collectionID, itemID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// MintNFT provides a mock function with given fields: ctx, req, pendingDocument
func (_m *ServiceMock) MintNFT(ctx context.Context, req *MintNFTRequest, pendingDocument bool) (*MintNFTResponse, error) {
	ret := _m.Called(ctx, req, pendingDocument)

	var r0 *MintNFTResponse
	if rf, ok := ret.Get(0).(func(context.Context, *MintNFTRequest, bool) *MintNFTResponse); ok {
		r0 = rf(ctx, req, pendingDocument)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*MintNFTResponse)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, *MintNFTRequest, bool) error); ok {
		r1 = rf(ctx, req, pendingDocument)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

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

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

	return mock
}
