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

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

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

	return r0
}

// CreateBatch provides a mock function with given fields: ctx, _a1
func (_m *Service) 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 *Service) 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, cartID, shippingGroupID
func (_m *Service) Get(ctx context.Context, cartID string, shippingGroupID *string) (*entities.PaidOrder, error) {
	ret := _m.Called(ctx, cartID, shippingGroupID)

	var r0 *entities.PaidOrder
	if rf, ok := ret.Get(0).(func(context.Context, string, *string) *entities.PaidOrder); ok {
		r0 = rf(ctx, cartID, shippingGroupID)
	} 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, *string) error); ok {
		r1 = rf(ctx, cartID, shippingGroupID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

	var r0 []*entities.PaidOrder
	if rf, ok := ret.Get(0).(func(context.Context, *entities.GetArrangedPaidOrdersParams) []*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.GetArrangedPaidOrdersParams) error); ok {
		r1 = rf(ctx, params)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

	var r0 []*entities.PaidOrder
	if rf, ok := ret.Get(0).(func(context.Context, []string) []*entities.PaidOrder); ok {
		r0 = rf(ctx, cartIDs)
	} 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, cartIDs)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

	var r0 []*entities.PaidOrder
	if rf, ok := ret.Get(0).(func(context.Context, []string, string) []*entities.PaidOrder); ok {
		r0 = rf(ctx, ids, workspaceID)
	} 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, string) error); ok {
		r1 = rf(ctx, ids, workspaceID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

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

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

	return r0
}

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

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

	return r0
}

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

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

	return r0
}

// UpdateDimension provides a mock function with given fields: ctx, id, dimension
func (_m *Service) UpdateDimension(ctx context.Context, id string, dimension entities.WeightDimension) error {
	ret := _m.Called(ctx, id, dimension)

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

	return r0
}

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

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

	return r0
}

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

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

	return r0
}

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

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

	return r0
}

// UpdatePaidOrderShipmentID provides a mock function with given fields: ctx, id, shipmentID
func (_m *Service) UpdatePaidOrderShipmentID(ctx context.Context, id string, shipmentID string) error {
	ret := _m.Called(ctx, id, shipmentID)

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