mocks

package
v1.10.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2021 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SomeError = "some error"
)

Variables

View Source
var (
	CreateSignatureResponse = &document_signerpb.CreateSignatureResponse{
		Status: billingpb.ResponseStatusOk,
		Item: &document_signerpb.CreateSignatureResponseItem{
			DetailsUrl:          "http:/127.0.0.1",
			FilesUrl:            "http:/127.0.0.1",
			SignatureRequestId:  primitive.NewObjectID().Hex(),
			MerchantSignatureId: primitive.NewObjectID().Hex(),
			PsSignatureId:       primitive.NewObjectID().Hex(),
		},
	}
	GetSignatureUrlResponse = &document_signerpb.GetSignatureUrlResponse{
		Status: billingpb.ResponseStatusOk,
		Item: &document_signerpb.GetSignatureUrlResponseEmbedded{
			SignUrl: "http://127.0.0.1",
		},
	}
)
View Source
var (
	MerchantIdMock = primitive.NewObjectID().Hex()
)

Functions

func NewBrokerMockError

func NewBrokerMockError() rabbitmq.BrokerInterface

func NewBrokerMockOk

func NewBrokerMockOk() rabbitmq.BrokerInterface

func NewCurrencyServiceMockError

func NewCurrencyServiceMockError() currenciespb.CurrencyRatesService

func NewCurrencyServiceMockOk

func NewCurrencyServiceMockOk() currenciespb.CurrencyRatesService

func NewDocumentSignerMockOk

func NewDocumentSignerMockOk() *mocks.DocumentSignerService

func NewFormatterOK

func NewFormatterOK() paysuper_i18n.Formatter

func NewGeoIpServiceTestError

func NewGeoIpServiceTestError() proto.GeoIpService

func NewGeoIpServiceTestOk

func NewGeoIpServiceTestOk() proto.GeoIpService

func NewGeoIpServiceTestOkWithoutSubdivision

func NewGeoIpServiceTestOkWithoutSubdivision() proto.GeoIpService

func NewNotifierOk added in v1.3.0

func NewNotifierOk() notifierpb.NotifierService

func NewRepositoryServiceEmpty

func NewRepositoryServiceEmpty() recurringpb.RepositoryService

func NewRepositoryServiceError

func NewRepositoryServiceError() recurringpb.RepositoryService

func NewRepositoryServiceOk

func NewRepositoryServiceOk() recurringpb.RepositoryService

func NewTaxServiceOkMock

func NewTaxServiceOkMock() taxpb.TaxService

func NewTestRedis

func NewTestRedis() *redismock.ClientMock

Types

type AccountingEntryRepositoryInterface added in v1.3.0

type AccountingEntryRepositoryInterface struct {
	mock.Mock
}

AccountingEntryRepositoryInterface is an autogenerated mock type for the AccountingEntryRepositoryInterface type

func (*AccountingEntryRepositoryInterface) ApplyObjectSource added in v1.3.0

ApplyObjectSource provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*AccountingEntryRepositoryInterface) BulkWrite added in v1.3.0

BulkWrite provides a mock function with given fields: _a0, _a1

func (*AccountingEntryRepositoryInterface) DeleteBySource added in v1.8.0

func (_m *AccountingEntryRepositoryInterface) DeleteBySource(_a0 context.Context, _a1 string, _a2 string) error

DeleteBySource provides a mock function with given fields: _a0, _a1, _a2

func (*AccountingEntryRepositoryInterface) FindBySource added in v1.3.0

FindBySource provides a mock function with given fields: _a0, _a1, _a2

func (*AccountingEntryRepositoryInterface) FindByTypeCountryDates added in v1.3.0

func (_m *AccountingEntryRepositoryInterface) FindByTypeCountryDates(_a0 context.Context, _a1 string, _a2 []string, _a3 time.Time, _a4 time.Time) ([]*billingpb.AccountingEntry, error)

FindByTypeCountryDates provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*AccountingEntryRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: _a0, _a1

func (*AccountingEntryRepositoryInterface) GetByObjectSource added in v1.3.0

GetByObjectSource provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*AccountingEntryRepositoryInterface) GetByTypeWithTaxes added in v1.3.0

func (_m *AccountingEntryRepositoryInterface) GetByTypeWithTaxes(_a0 context.Context, _a1 []string) ([]*billingpb.AccountingEntry, error)

GetByTypeWithTaxes provides a mock function with given fields: _a0, _a1

func (*AccountingEntryRepositoryInterface) GetCorrectionsForRoyaltyReport added in v1.3.0

func (_m *AccountingEntryRepositoryInterface) GetCorrectionsForRoyaltyReport(_a0 context.Context, _a1 string, _a2 string, _a3 time.Time, _a4 time.Time) ([]*billingpb.AccountingEntry, error)

GetCorrectionsForRoyaltyReport provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*AccountingEntryRepositoryInterface) GetDistinctBySourceId added in v1.3.0

func (_m *AccountingEntryRepositoryInterface) GetDistinctBySourceId(_a0 context.Context) ([]string, error)

GetDistinctBySourceId provides a mock function with given fields: _a0

func (*AccountingEntryRepositoryInterface) GetRollingReserveForBalance added in v1.3.0

func (_m *AccountingEntryRepositoryInterface) GetRollingReserveForBalance(_a0 context.Context, _a1 string, _a2 string, _a3 []string, _a4 time.Time) ([]*pkg.ReserveQueryResItem, error)

GetRollingReserveForBalance provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*AccountingEntryRepositoryInterface) GetRollingReservesForRoyaltyReport added in v1.3.0

func (_m *AccountingEntryRepositoryInterface) GetRollingReservesForRoyaltyReport(_a0 context.Context, _a1 string, _a2 string, _a3 []string, _a4 time.Time, _a5 time.Time) ([]*billingpb.AccountingEntry, error)

GetRollingReservesForRoyaltyReport provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*AccountingEntryRepositoryInterface) MultipleInsert added in v1.3.0

MultipleInsert provides a mock function with given fields: _a0, _a1

type AutoincrementRepositoryInterface added in v1.5.0

type AutoincrementRepositoryInterface struct {
	mock.Mock
}

AutoincrementRepositoryInterface is an autogenerated mock type for the AutoincrementRepositoryInterface type

func (*AutoincrementRepositoryInterface) GatPayoutAutoincrementId added in v1.5.0

func (_m *AutoincrementRepositoryInterface) GatPayoutAutoincrementId(ctx context.Context) (int64, error)

GatPayoutAutoincrementId provides a mock function with given fields: ctx

type BankBinRepositoryInterface added in v1.3.0

type BankBinRepositoryInterface struct {
	mock.Mock
}

BankBinRepositoryInterface is an autogenerated mock type for the BankBinRepositoryInterface type

func (*BankBinRepositoryInterface) GetByBin added in v1.3.0

func (_m *BankBinRepositoryInterface) GetByBin(_a0 context.Context, _a1 int32) (*pkg.BinData, error)

GetByBin provides a mock function with given fields: _a0, _a1

func (*BankBinRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

func (*BankBinRepositoryInterface) MultipleInsert added in v1.3.0

func (_m *BankBinRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*pkg.BinData) error

MultipleInsert provides a mock function with given fields: _a0, _a1

type BrokerInterface

type BrokerInterface struct {
	mock.Mock
}

BrokerInterface is an autogenerated mock type for the BrokerInterface type

func (*BrokerInterface) Publish

func (_m *BrokerInterface) Publish(_a0 string, _a1 proto.Message, _a2 amqp.Table) error

Publish provides a mock function with given fields: _a0, _a1, _a2

func (*BrokerInterface) RegisterSubscriber

func (_m *BrokerInterface) RegisterSubscriber(_a0 string, _a1 interface{}) error

RegisterSubscriber provides a mock function with given fields: _a0, _a1

func (*BrokerInterface) SetExchangeName

func (_m *BrokerInterface) SetExchangeName(_a0 string)

SetExchangeName provides a mock function with given fields: _a0

func (*BrokerInterface) SetQueueOptsArgs added in v1.3.0

func (_m *BrokerInterface) SetQueueOptsArgs(args amqp.Table)

SetQueueOptsArgs provides a mock function with given fields: args

func (*BrokerInterface) Subscribe

func (_m *BrokerInterface) Subscribe(_a0 chan bool) error

Subscribe provides a mock function with given fields: _a0

type BrokerMockError

type BrokerMockError struct{}

func (*BrokerMockError) Publish

func (b *BrokerMockError) Publish(topic string, msg proto.Message, h amqp.Table) (err error)

func (*BrokerMockError) RegisterSubscriber

func (b *BrokerMockError) RegisterSubscriber(topic string, fn interface{}) error

func (*BrokerMockError) SetExchangeName

func (b *BrokerMockError) SetExchangeName(name string)

func (*BrokerMockError) SetQueueOptsArgs added in v1.3.0

func (b *BrokerMockError) SetQueueOptsArgs(args amqp.Table)

func (*BrokerMockError) Subscribe

func (b *BrokerMockError) Subscribe(exit chan bool) error

type BrokerMockOk

type BrokerMockOk struct {
	IsSent bool
}

func (*BrokerMockOk) Publish

func (b *BrokerMockOk) Publish(topic string, msg proto.Message, h amqp.Table) error

func (*BrokerMockOk) RegisterSubscriber

func (b *BrokerMockOk) RegisterSubscriber(topic string, fn interface{}) error

func (*BrokerMockOk) SetExchangeName

func (b *BrokerMockOk) SetExchangeName(name string)

func (*BrokerMockOk) SetQueueOptsArgs added in v1.3.0

func (b *BrokerMockOk) SetQueueOptsArgs(args amqp.Table)

func (*BrokerMockOk) Subscribe

func (b *BrokerMockOk) Subscribe(exit chan bool) error

type CacheInterface

type CacheInterface struct {
	mock.Mock
}

CacheInterface is an autogenerated mock type for the CacheInterface type

func (*CacheInterface) CleanOldestVersion

func (_m *CacheInterface) CleanOldestVersion() error

CleanOldestVersion provides a mock function with given fields:

func (*CacheInterface) Delete

func (_m *CacheInterface) Delete(_a0 string) error

Delete provides a mock function with given fields: _a0

func (*CacheInterface) FlushAll

func (_m *CacheInterface) FlushAll()

FlushAll provides a mock function with given fields:

func (*CacheInterface) Get

func (_m *CacheInterface) Get(_a0 string, _a1 interface{}) error

Get provides a mock function with given fields: _a0, _a1

func (*CacheInterface) Set

func (_m *CacheInterface) Set(_a0 string, _a1 interface{}, _a2 time.Duration) error

Set provides a mock function with given fields: _a0, _a1, _a2

type CentrifugoInterface

type CentrifugoInterface struct {
	mock.Mock
}

CentrifugoInterface is an autogenerated mock type for the CentrifugoInterface type

func (*CentrifugoInterface) GetChannelToken

func (_m *CentrifugoInterface) GetChannelToken(subject string, expire int64) string

GetChannelToken provides a mock function with given fields: subject, expire

func (*CentrifugoInterface) Publish

func (_m *CentrifugoInterface) Publish(_a0 context.Context, _a1 string, _a2 interface{}) error

Publish provides a mock function with given fields: _a0, _a1, _a2

type CountryRepositoryInterface added in v1.2.0

type CountryRepositoryInterface struct {
	mock.Mock
}

CountryRepositoryInterface is an autogenerated mock type for the CountryRepositoryInterface type

func (*CountryRepositoryInterface) FindByHighRisk added in v1.2.0

func (_m *CountryRepositoryInterface) FindByHighRisk(ctx context.Context, isHighRiskOrder bool) (*billingpb.CountriesList, error)

FindByHighRisk provides a mock function with given fields: ctx, isHighRiskOrder

func (*CountryRepositoryInterface) FindByVatEnabled added in v1.2.0

FindByVatEnabled provides a mock function with given fields: _a0

func (*CountryRepositoryInterface) GetAll added in v1.2.0

GetAll provides a mock function with given fields: _a0

func (*CountryRepositoryInterface) GetByIsoCodeA2 added in v1.2.0

func (_m *CountryRepositoryInterface) GetByIsoCodeA2(_a0 context.Context, _a1 string) (*billingpb.Country, error)

GetByIsoCodeA2 provides a mock function with given fields: _a0, _a1

func (*CountryRepositoryInterface) Insert added in v1.2.0

Insert provides a mock function with given fields: _a0, _a1

func (*CountryRepositoryInterface) IsTariffRegionSupported added in v1.2.0

func (_m *CountryRepositoryInterface) IsTariffRegionSupported(_a0 string) bool

IsTariffRegionSupported provides a mock function with given fields: _a0

func (*CountryRepositoryInterface) MultipleInsert added in v1.2.0

func (_m *CountryRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.Country) error

MultipleInsert provides a mock function with given fields: _a0, _a1

func (*CountryRepositoryInterface) Update added in v1.2.0

Update provides a mock function with given fields: _a0, _a1

type CurrencyServiceMockError

type CurrencyServiceMockError struct{}

func (*CurrencyServiceMockError) AddCommonRateCorrectionRule

func (*CurrencyServiceMockError) AddMerchantRateCorrectionRule

func (s *CurrencyServiceMockError) AddMerchantRateCorrectionRule(
	ctx context.Context,
	in *currenciespb.CorrectionRule,
	opts ...client.CallOption,
) (*currenciespb.EmptyResponse, error)

func (*CurrencyServiceMockError) GetAccountingCurrencies

func (*CurrencyServiceMockError) GetCommonRateCorrectionRule

func (*CurrencyServiceMockError) GetCurrenciesPrecision

func (*CurrencyServiceMockError) GetMerchantRateCorrectionRule

func (*CurrencyServiceMockError) GetPriceCurrencies

func (*CurrencyServiceMockError) GetRateByDateCommon

func (*CurrencyServiceMockError) GetRateByDateForMerchant

func (*CurrencyServiceMockError) GetRateCurrentCommon

func (*CurrencyServiceMockError) GetRateCurrentForMerchant

func (*CurrencyServiceMockError) GetSettlementCurrencies

func (*CurrencyServiceMockError) GetSupportedCurrencies

func (*CurrencyServiceMockError) GetVatCurrencies

func (*CurrencyServiceMockError) SetPaysuperCorrectionCorridor

func (s *CurrencyServiceMockError) SetPaysuperCorrectionCorridor(
	ctx context.Context,
	in *currenciespb.CorrectionCorridor,
	opts ...client.CallOption,
) (*currenciespb.EmptyResponse, error)

type CurrencyServiceMockOk

type CurrencyServiceMockOk struct{}

func (*CurrencyServiceMockOk) AddCommonRateCorrectionRule

func (*CurrencyServiceMockOk) AddMerchantRateCorrectionRule

func (s *CurrencyServiceMockOk) AddMerchantRateCorrectionRule(
	ctx context.Context,
	in *currenciespb.CorrectionRule,
	opts ...client.CallOption,
) (*currenciespb.EmptyResponse, error)

func (*CurrencyServiceMockOk) GetAccountingCurrencies

func (s *CurrencyServiceMockOk) GetAccountingCurrencies(
	ctx context.Context,
	in *currenciespb.EmptyRequest,
	opts ...client.CallOption,
) (*currenciespb.CurrenciesList, error)

func (*CurrencyServiceMockOk) GetCommonRateCorrectionRule

func (*CurrencyServiceMockOk) GetCurrenciesPrecision

func (*CurrencyServiceMockOk) GetMerchantRateCorrectionRule

func (*CurrencyServiceMockOk) GetPriceCurrencies

func (*CurrencyServiceMockOk) GetRateByDateCommon

func (*CurrencyServiceMockOk) GetRateByDateForMerchant

func (*CurrencyServiceMockOk) GetRateCurrentCommon

func (*CurrencyServiceMockOk) GetRateCurrentForMerchant

func (*CurrencyServiceMockOk) GetSettlementCurrencies

func (s *CurrencyServiceMockOk) GetSettlementCurrencies(
	ctx context.Context,
	in *currenciespb.EmptyRequest,
	opts ...client.CallOption,
) (*currenciespb.CurrenciesList, error)

func (*CurrencyServiceMockOk) GetSupportedCurrencies

func (*CurrencyServiceMockOk) GetVatCurrencies

func (*CurrencyServiceMockOk) SetPaysuperCorrectionCorridor

func (s *CurrencyServiceMockOk) SetPaysuperCorrectionCorridor(
	ctx context.Context,
	in *currenciespb.CorrectionCorridor,
	opts ...client.CallOption,
) (*currenciespb.EmptyResponse, error)

type CustomerRepositoryInterface added in v1.3.0

type CustomerRepositoryInterface struct {
	mock.Mock
}

CustomerRepositoryInterface is an autogenerated mock type for the CustomerRepositoryInterface type

func (*CustomerRepositoryInterface) CountBy added in v1.8.0

func (_m *CustomerRepositoryInterface) CountBy(ctx context.Context, query primitive.M) (int64, error)

CountBy provides a mock function with given fields: ctx, query

func (*CustomerRepositoryInterface) Find added in v1.3.0

Find provides a mock function with given fields: _a0, _a1, _a2

func (*CustomerRepositoryInterface) FindAll added in v1.6.0

FindAll provides a mock function with given fields: ctx

func (*CustomerRepositoryInterface) FindBy added in v1.8.0

FindBy provides a mock function with given fields: ctx, query, opts

func (*CustomerRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: _a0, _a1

func (*CustomerRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

func (*CustomerRepositoryInterface) Update added in v1.3.0

Update provides a mock function with given fields: _a0, _a1

type DashboardProcessorRepositoryInterface added in v1.3.0

type DashboardProcessorRepositoryInterface struct {
	mock.Mock
}

DashboardProcessorRepositoryInterface is an autogenerated mock type for the DashboardProcessorRepositoryInterface type

func (*DashboardProcessorRepositoryInterface) ExecuteCustomerARPPU added in v1.10.1

func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomerARPPU(ctx context.Context) (interface{}, error)

ExecuteCustomerARPPU provides a mock function with given fields: ctx

func (*DashboardProcessorRepositoryInterface) ExecuteCustomerARPU added in v1.8.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomerARPU(ctx context.Context, customerId string) (interface{}, error)

ExecuteCustomerARPU provides a mock function with given fields: ctx, customerId

func (*DashboardProcessorRepositoryInterface) ExecuteCustomerAvgTransactionsCount added in v1.8.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomerAvgTransactionsCount(ctx context.Context, out interface{}) (interface{}, error)

ExecuteCustomerAvgTransactionsCount provides a mock function with given fields: ctx, out

func (*DashboardProcessorRepositoryInterface) ExecuteCustomerLTV added in v1.8.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomerLTV(ctx context.Context, out interface{}) (interface{}, interface{}, error)

ExecuteCustomerLTV provides a mock function with given fields: ctx, out

func (*DashboardProcessorRepositoryInterface) ExecuteCustomerTop20 added in v1.8.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomerTop20(ctx context.Context, out interface{}) (interface{}, error)

ExecuteCustomerTop20 provides a mock function with given fields: ctx, out

func (*DashboardProcessorRepositoryInterface) ExecuteCustomers added in v1.8.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomers(ctx context.Context, out interface{}) (interface{}, error)

ExecuteCustomers provides a mock function with given fields: ctx, out

func (*DashboardProcessorRepositoryInterface) ExecuteCustomersChart added in v1.8.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomersChart(ctx context.Context, startDate time.Time, end time.Time) (interface{}, error)

ExecuteCustomersChart provides a mock function with given fields: ctx, startDate, end

func (*DashboardProcessorRepositoryInterface) ExecuteCustomersCount added in v1.8.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomersCount(ctx context.Context, out interface{}) (interface{}, error)

ExecuteCustomersCount provides a mock function with given fields: ctx, out

func (*DashboardProcessorRepositoryInterface) ExecuteGrossRevenueAndVatReports added in v1.3.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteGrossRevenueAndVatReports(ctx context.Context, out interface{}) (interface{}, error)

ExecuteGrossRevenueAndVatReports provides a mock function with given fields: ctx, out

func (*DashboardProcessorRepositoryInterface) ExecuteReport added in v1.3.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteReport(ctx context.Context, out interface{}, fn func(context.Context, interface{}) (interface{}, error)) (interface{}, error)

ExecuteReport provides a mock function with given fields: ctx, out, fn

func (*DashboardProcessorRepositoryInterface) ExecuteRevenueByCountryReport added in v1.3.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteRevenueByCountryReport(ctx context.Context, out interface{}) (interface{}, error)

ExecuteRevenueByCountryReport provides a mock function with given fields: ctx, out

func (*DashboardProcessorRepositoryInterface) ExecuteRevenueDynamicReport added in v1.3.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteRevenueDynamicReport(ctx context.Context, out interface{}) (interface{}, error)

ExecuteRevenueDynamicReport provides a mock function with given fields: ctx, out

func (*DashboardProcessorRepositoryInterface) ExecuteSalesTodayReport added in v1.3.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteSalesTodayReport(ctx context.Context, out interface{}) (interface{}, error)

ExecuteSalesTodayReport provides a mock function with given fields: ctx, out

func (*DashboardProcessorRepositoryInterface) ExecuteSourcesReport added in v1.3.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteSourcesReport(ctx context.Context, out interface{}) (interface{}, error)

ExecuteSourcesReport provides a mock function with given fields: ctx, out

func (*DashboardProcessorRepositoryInterface) ExecuteTotalTransactionsAndArpuReports added in v1.3.0

func (_m *DashboardProcessorRepositoryInterface) ExecuteTotalTransactionsAndArpuReports(ctx context.Context, out interface{}) (interface{}, error)

ExecuteTotalTransactionsAndArpuReports provides a mock function with given fields: ctx, out

type DashboardReportProcessorInterface

type DashboardReportProcessorInterface struct {
	mock.Mock
}

DashboardReportProcessorInterface is an autogenerated mock type for the DashboardReportProcessorInterface type

func (*DashboardReportProcessorInterface) ExecuteGrossRevenueAndVatReports

func (_m *DashboardReportProcessorInterface) ExecuteGrossRevenueAndVatReports(_a0 interface{}) (interface{}, error)

ExecuteGrossRevenueAndVatReports provides a mock function with given fields: _a0

func (*DashboardReportProcessorInterface) ExecuteReport

func (_m *DashboardReportProcessorInterface) ExecuteReport(_a0 interface{}) (interface{}, error)

ExecuteReport provides a mock function with given fields: _a0

func (*DashboardReportProcessorInterface) ExecuteRevenueByCountryReport

func (_m *DashboardReportProcessorInterface) ExecuteRevenueByCountryReport(_a0 interface{}) (interface{}, error)

ExecuteRevenueByCountryReport provides a mock function with given fields: _a0

func (*DashboardReportProcessorInterface) ExecuteRevenueDynamicReport

func (_m *DashboardReportProcessorInterface) ExecuteRevenueDynamicReport(_a0 interface{}) (interface{}, error)

ExecuteRevenueDynamicReport provides a mock function with given fields: _a0

func (*DashboardReportProcessorInterface) ExecuteSalesTodayReport

func (_m *DashboardReportProcessorInterface) ExecuteSalesTodayReport(_a0 interface{}) (interface{}, error)

ExecuteSalesTodayReport provides a mock function with given fields: _a0

func (*DashboardReportProcessorInterface) ExecuteSourcesReport

func (_m *DashboardReportProcessorInterface) ExecuteSourcesReport(_a0 interface{}) (interface{}, error)

ExecuteSourcesReport provides a mock function with given fields: _a0

func (*DashboardReportProcessorInterface) ExecuteTotalTransactionsAndArpuReports

func (_m *DashboardReportProcessorInterface) ExecuteTotalTransactionsAndArpuReports(_a0 interface{}) (interface{}, error)

ExecuteTotalTransactionsAndArpuReports provides a mock function with given fields: _a0

type DashboardRepositoryInterface

type DashboardRepositoryInterface struct {
	mock.Mock
}

DashboardRepositoryInterface is an autogenerated mock type for the DashboardRepositoryInterface type

func (*DashboardRepositoryInterface) GetBaseReport

func (_m *DashboardRepositoryInterface) GetBaseReport(ctx context.Context, merchantId string, period string) (*billingpb.DashboardBaseReports, error)

GetBaseReport provides a mock function with given fields: ctx, merchantId, period

func (*DashboardRepositoryInterface) GetCustomerARPU added in v1.8.0

func (_m *DashboardRepositoryInterface) GetCustomerARPU(ctx context.Context, merchantId string, customerId string) (*billingpb.DashboardAmountItemWithChart, error)

GetCustomerARPU provides a mock function with given fields: ctx, merchantId, customerId

func (*DashboardRepositoryInterface) GetCustomersReport added in v1.8.0

func (_m *DashboardRepositoryInterface) GetCustomersReport(ctx context.Context, merchantId string, period string) (*billingpb.DashboardCustomerReport, error)

GetCustomersReport provides a mock function with given fields: ctx, merchantId, period

func (*DashboardRepositoryInterface) GetMainReport

func (_m *DashboardRepositoryInterface) GetMainReport(ctx context.Context, merchantId string, period string) (*billingpb.DashboardMainReport, error)

GetMainReport provides a mock function with given fields: ctx, merchantId, period

func (*DashboardRepositoryInterface) GetRevenueDynamicsReport

func (_m *DashboardRepositoryInterface) GetRevenueDynamicsReport(ctx context.Context, merchantId string, period string) (*billingpb.DashboardRevenueDynamicReport, error)

GetRevenueDynamicsReport provides a mock function with given fields: ctx, merchantId, period

type FeedbackRepositoryInterface added in v1.3.0

type FeedbackRepositoryInterface struct {
	mock.Mock
}

FeedbackRepositoryInterface is an autogenerated mock type for the FeedbackRepositoryInterface type

func (*FeedbackRepositoryInterface) GetAll added in v1.3.0

GetAll provides a mock function with given fields: _a0

func (*FeedbackRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

type GeoIpServiceTestError

type GeoIpServiceTestError struct{}

func (*GeoIpServiceTestError) GetIpData

type GeoIpServiceTestOk

type GeoIpServiceTestOk struct{}

func (*GeoIpServiceTestOk) GetIpData

type GeoIpServiceTestOkWithoutSubdivision

type GeoIpServiceTestOkWithoutSubdivision struct{}

func (*GeoIpServiceTestOkWithoutSubdivision) GetIpData

type KeyProductRepositoryInterface

type KeyProductRepositoryInterface struct {
	mock.Mock
}

KeyProductRepositoryInterface is an autogenerated mock type for the KeyProductRepositoryInterface type

func (*KeyProductRepositoryInterface) CountByProjectIdSku added in v1.3.0

func (_m *KeyProductRepositoryInterface) CountByProjectIdSku(_a0 context.Context, _a1 string, _a2 string) (int64, error)

CountByProjectIdSku provides a mock function with given fields: _a0, _a1, _a2

func (*KeyProductRepositoryInterface) Find added in v1.3.0

func (_m *KeyProductRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 string, _a6 int64, _a7 int64) ([]*billingpb.KeyProduct, error)

Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7

func (*KeyProductRepositoryInterface) FindByIdsProjectId added in v1.3.0

func (_m *KeyProductRepositoryInterface) FindByIdsProjectId(_a0 context.Context, _a1 []string, _a2 string) ([]*billingpb.KeyProduct, error)

FindByIdsProjectId provides a mock function with given fields: _a0, _a1, _a2

func (*KeyProductRepositoryInterface) FindCount added in v1.3.0

func (_m *KeyProductRepositoryInterface) FindCount(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 string) (int64, error)

FindCount provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*KeyProductRepositoryInterface) GetById

GetById provides a mock function with given fields: _a0, _a1

func (*KeyProductRepositoryInterface) Update

Update provides a mock function with given fields: _a0, _a1

func (*KeyProductRepositoryInterface) Upsert added in v1.3.0

Upsert provides a mock function with given fields: _a0, _a1

type KeyRepositoryInterface

type KeyRepositoryInterface struct {
	mock.Mock
}

KeyRepositoryInterface is an autogenerated mock type for the KeyRepositoryInterface type

func (*KeyRepositoryInterface) CancelById

func (_m *KeyRepositoryInterface) CancelById(_a0 context.Context, _a1 string) (*billingpb.Key, error)

CancelById provides a mock function with given fields: _a0, _a1

func (*KeyRepositoryInterface) CountKeysByProductPlatform

func (_m *KeyRepositoryInterface) CountKeysByProductPlatform(_a0 context.Context, _a1 string, _a2 string) (int64, error)

CountKeysByProductPlatform provides a mock function with given fields: _a0, _a1, _a2

func (*KeyRepositoryInterface) FindUnfinished

func (_m *KeyRepositoryInterface) FindUnfinished(_a0 context.Context) ([]*billingpb.Key, error)

FindUnfinished provides a mock function with given fields: _a0

func (*KeyRepositoryInterface) FinishRedeemById

func (_m *KeyRepositoryInterface) FinishRedeemById(_a0 context.Context, _a1 string) (*billingpb.Key, error)

FinishRedeemById provides a mock function with given fields: _a0, _a1

func (*KeyRepositoryInterface) GetById

func (_m *KeyRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Key, error)

GetById provides a mock function with given fields: _a0, _a1

func (*KeyRepositoryInterface) Insert

func (_m *KeyRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.Key) error

Insert provides a mock function with given fields: _a0, _a1

func (*KeyRepositoryInterface) ReserveKey

func (_m *KeyRepositoryInterface) ReserveKey(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 int32) (*billingpb.Key, error)

ReserveKey provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

type Mapper added in v1.3.0

type Mapper struct {
	mock.Mock
}

Mapper is an autogenerated mock type for the Mapper type

func (*Mapper) MapMgoToObject added in v1.3.0

func (_m *Mapper) MapMgoToObject(obj interface{}) (interface{}, error)

MapMgoToObject provides a mock function with given fields: obj

func (*Mapper) MapObjectToMgo added in v1.3.0

func (_m *Mapper) MapObjectToMgo(obj interface{}) (interface{}, error)

MapObjectToMgo provides a mock function with given fields: obj

type MerchantBalanceRepositoryInterface added in v1.2.0

type MerchantBalanceRepositoryInterface struct {
	mock.Mock
}

MerchantBalanceRepositoryInterface is an autogenerated mock type for the MerchantBalanceRepositoryInterface type

func (*MerchantBalanceRepositoryInterface) CountByIdAndCurrency added in v1.2.0

func (_m *MerchantBalanceRepositoryInterface) CountByIdAndCurrency(_a0 context.Context, _a1 string, _a2 string) (int64, error)

CountByIdAndCurrency provides a mock function with given fields: _a0, _a1, _a2

func (*MerchantBalanceRepositoryInterface) GetByIdAndCurrency added in v1.2.0

GetByIdAndCurrency provides a mock function with given fields: _a0, _a1, _a2

func (*MerchantBalanceRepositoryInterface) Insert added in v1.2.0

Insert provides a mock function with given fields: _a0, _a1

type MerchantBalanceServiceInterface

type MerchantBalanceServiceInterface struct {
	mock.Mock
}

MerchantBalanceServiceInterface is an autogenerated mock type for the MerchantBalanceServiceInterface type

func (*MerchantBalanceServiceInterface) GetByMerchantIdAndCurrency

func (_m *MerchantBalanceServiceInterface) GetByMerchantIdAndCurrency(ctx context.Context, merchantId string, currency string) (*billingpb.MerchantBalance, error)

GetByMerchantIdAndCurrency provides a mock function with given fields: ctx, merchantId, currency

func (*MerchantBalanceServiceInterface) Insert

Insert provides a mock function with given fields: ctx, document

type MerchantDocumentRepositoryInterface added in v1.10.1

type MerchantDocumentRepositoryInterface struct {
	mock.Mock
}

MerchantDocumentRepositoryInterface is an autogenerated mock type for the MerchantDocumentRepositoryInterface type

func (*MerchantDocumentRepositoryInterface) CountByMerchantId added in v1.10.1

func (_m *MerchantDocumentRepositoryInterface) CountByMerchantId(_a0 context.Context, _a1 string) (int64, error)

CountByMerchantId provides a mock function with given fields: _a0, _a1

func (*MerchantDocumentRepositoryInterface) GetById added in v1.10.1

GetById provides a mock function with given fields: _a0, _a1

func (*MerchantDocumentRepositoryInterface) GetByMerchantId added in v1.10.1

GetByMerchantId provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*MerchantDocumentRepositoryInterface) Insert added in v1.10.1

Insert provides a mock function with given fields: _a0, _a1

type MerchantPaymentMethodHistoryRepositoryInterface added in v1.3.0

type MerchantPaymentMethodHistoryRepositoryInterface struct {
	mock.Mock
}

MerchantPaymentMethodHistoryRepositoryInterface is an autogenerated mock type for the MerchantPaymentMethodHistoryRepositoryInterface type

func (*MerchantPaymentMethodHistoryRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

type MerchantPaymentTariffsInterface added in v1.3.0

type MerchantPaymentTariffsInterface struct {
	mock.Mock
}

MerchantPaymentTariffsInterface is an autogenerated mock type for the MerchantPaymentTariffsInterface type

func (*MerchantPaymentTariffsInterface) Find added in v1.3.0

Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*MerchantPaymentTariffsInterface) MultipleInsert added in v1.3.0

MultipleInsert provides a mock function with given fields: _a0, _a1

type MerchantRepositoryInterface

type MerchantRepositoryInterface struct {
	mock.Mock
}

MerchantRepositoryInterface is an autogenerated mock type for the MerchantRepositoryInterface type

func (*MerchantRepositoryInterface) Find added in v1.2.0

func (_m *MerchantRepositoryInterface) Find(_a0 context.Context, _a1 primitive.M, _a2 []string, _a3 int64, _a4 int64) ([]*billingpb.Merchant, error)

Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*MerchantRepositoryInterface) FindCount added in v1.2.0

func (_m *MerchantRepositoryInterface) FindCount(_a0 context.Context, _a1 primitive.M) (int64, error)

FindCount provides a mock function with given fields: _a0, _a1

func (*MerchantRepositoryInterface) GetAll

GetAll provides a mock function with given fields: ctx

func (*MerchantRepositoryInterface) GetById

GetById provides a mock function with given fields: ctx, id

func (*MerchantRepositoryInterface) GetByUserId added in v1.2.0

GetByUserId provides a mock function with given fields: ctx, id

func (*MerchantRepositoryInterface) GetCommonById

GetCommonById provides a mock function with given fields: ctx, id

func (*MerchantRepositoryInterface) GetMerchantsWithAutoPayouts

func (_m *MerchantRepositoryInterface) GetMerchantsWithAutoPayouts(ctx context.Context) ([]*billingpb.Merchant, error)

GetMerchantsWithAutoPayouts provides a mock function with given fields: ctx

func (*MerchantRepositoryInterface) Insert

Insert provides a mock function with given fields: ctx, merchant

func (*MerchantRepositoryInterface) MultipleInsert

func (_m *MerchantRepositoryInterface) MultipleInsert(ctx context.Context, merchants []*billingpb.Merchant) error

MultipleInsert provides a mock function with given fields: ctx, merchants

func (*MerchantRepositoryInterface) Update

Update provides a mock function with given fields: ctx, merchant

func (*MerchantRepositoryInterface) UpdateTariffs added in v1.2.0

UpdateTariffs provides a mock function with given fields: _a0, _a1, _a2

func (*MerchantRepositoryInterface) Upsert

Upsert provides a mock function with given fields: ctx, merchant

type MerchantTariffsSettingsInterface added in v1.3.0

type MerchantTariffsSettingsInterface struct {
	mock.Mock
}

MerchantTariffsSettingsInterface is an autogenerated mock type for the MerchantTariffsSettingsInterface type

func (*MerchantTariffsSettingsInterface) GetByMccCode added in v1.3.0

GetByMccCode provides a mock function with given fields: ctx, code

func (*MerchantTariffsSettingsInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: ctx, merchant

type MoneyBackCostMerchantInterface

type MoneyBackCostMerchantInterface struct {
	mock.Mock
}

MoneyBackCostMerchantInterface is an autogenerated mock type for the MoneyBackCostMerchantInterface type

func (*MoneyBackCostMerchantInterface) Delete

Delete provides a mock function with given fields: obj

func (*MoneyBackCostMerchantInterface) Get

func (_m *MoneyBackCostMerchantInterface) Get(merchantId string, name string, payoutCurrency string, undoReason string, region string, country string, mccCode string, paymentStage int32) (*billingpb.MoneyBackCostMerchantList, error)

Get provides a mock function with given fields: merchantId, name, payoutCurrency, undoReason, region, country, mccCode, paymentStage

func (*MoneyBackCostMerchantInterface) GetAllForMerchant

func (_m *MoneyBackCostMerchantInterface) GetAllForMerchant(merchantId string) (*billingpb.MoneyBackCostMerchantList, error)

GetAllForMerchant provides a mock function with given fields: merchantId

func (*MoneyBackCostMerchantInterface) GetById

GetById provides a mock function with given fields: id

func (*MoneyBackCostMerchantInterface) MultipleInsert

MultipleInsert provides a mock function with given fields: obj

func (*MoneyBackCostMerchantInterface) Update

Update provides a mock function with given fields: obj

type MoneyBackCostMerchantRepositoryInterface added in v1.2.0

type MoneyBackCostMerchantRepositoryInterface struct {
	mock.Mock
}

MoneyBackCostMerchantRepositoryInterface is an autogenerated mock type for the MoneyBackCostMerchantRepositoryInterface type

func (*MoneyBackCostMerchantRepositoryInterface) Delete added in v1.2.0

Delete provides a mock function with given fields: _a0, _a1

func (*MoneyBackCostMerchantRepositoryInterface) DeleteAndInsertMany added in v1.3.0

func (_m *MoneyBackCostMerchantRepositoryInterface) DeleteAndInsertMany(ctx context.Context, merchantId string, tariffs []*billingpb.MoneyBackCostMerchant) error

DeleteAndInsertMany provides a mock function with given fields: ctx, merchantId, tariffs

func (*MoneyBackCostMerchantRepositoryInterface) Find added in v1.2.0

Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8

func (*MoneyBackCostMerchantRepositoryInterface) GetAllForMerchant added in v1.2.0

GetAllForMerchant provides a mock function with given fields: _a0, _a1

func (*MoneyBackCostMerchantRepositoryInterface) GetById added in v1.2.0

GetById provides a mock function with given fields: _a0, _a1

func (*MoneyBackCostMerchantRepositoryInterface) Insert added in v1.2.0

Insert provides a mock function with given fields: _a0, _a1

func (*MoneyBackCostMerchantRepositoryInterface) MultipleInsert added in v1.2.0

MultipleInsert provides a mock function with given fields: _a0, _a1

func (*MoneyBackCostMerchantRepositoryInterface) Update added in v1.2.0

Update provides a mock function with given fields: _a0, _a1

type MoneyBackCostSystemInterface

type MoneyBackCostSystemInterface struct {
	mock.Mock
}

MoneyBackCostSystemInterface is an autogenerated mock type for the MoneyBackCostSystemInterface type

func (*MoneyBackCostSystemInterface) Delete

Delete provides a mock function with given fields: obj

func (*MoneyBackCostSystemInterface) Get

func (_m *MoneyBackCostSystemInterface) Get(name string, payoutCurrency string, undoReason string, region string, country string, mccCode string, operatingCompanyId string, paymentStage int32) ([]*pkg.MoneyBackCostSystemSet, error)

Get provides a mock function with given fields: name, payoutCurrency, undoReason, region, country, mccCode, operatingCompanyId, paymentStage

func (*MoneyBackCostSystemInterface) GetAll

GetAll provides a mock function with given fields:

func (*MoneyBackCostSystemInterface) GetById

GetById provides a mock function with given fields: id

func (*MoneyBackCostSystemInterface) MultipleInsert

MultipleInsert provides a mock function with given fields: obj

func (*MoneyBackCostSystemInterface) Update

Update provides a mock function with given fields: obj

type MoneyBackCostSystemRepositoryInterface added in v1.2.0

type MoneyBackCostSystemRepositoryInterface struct {
	mock.Mock
}

MoneyBackCostSystemRepositoryInterface is an autogenerated mock type for the MoneyBackCostSystemRepositoryInterface type

func (*MoneyBackCostSystemRepositoryInterface) Delete added in v1.2.0

Delete provides a mock function with given fields: _a0, _a1

func (*MoneyBackCostSystemRepositoryInterface) Find added in v1.2.0

Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8

func (*MoneyBackCostSystemRepositoryInterface) GetAll added in v1.2.0

GetAll provides a mock function with given fields: _a0

func (*MoneyBackCostSystemRepositoryInterface) GetById added in v1.2.0

GetById provides a mock function with given fields: _a0, _a1

func (*MoneyBackCostSystemRepositoryInterface) Insert added in v1.2.0

Insert provides a mock function with given fields: _a0, _a1

func (*MoneyBackCostSystemRepositoryInterface) MultipleInsert added in v1.2.0

MultipleInsert provides a mock function with given fields: _a0, _a1

func (*MoneyBackCostSystemRepositoryInterface) Update added in v1.2.0

Update provides a mock function with given fields: _a0, _a1

type NotificationRepositoryInterface added in v1.3.0

type NotificationRepositoryInterface struct {
	mock.Mock
}

NotificationRepositoryInterface is an autogenerated mock type for the NotificationRepositoryInterface type

func (*NotificationRepositoryInterface) Find added in v1.3.0

func (_m *NotificationRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 int32, _a4 []string, _a5 int64, _a6 int64) ([]*billingpb.Notification, error)

Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6

func (*NotificationRepositoryInterface) FindCount added in v1.3.0

func (_m *NotificationRepositoryInterface) FindCount(_a0 context.Context, _a1 string, _a2 string, _a3 int32) (int64, error)

FindCount provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*NotificationRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: _a0, _a1

func (*NotificationRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

func (*NotificationRepositoryInterface) Update added in v1.3.0

Update provides a mock function with given fields: _a0, _a1

type NotifierOk added in v1.3.0

type NotifierOk struct {
}

func (NotifierOk) CheckUser added in v1.3.0

type NotifyRegionRepositoryInterface added in v1.3.0

type NotifyRegionRepositoryInterface struct {
	mock.Mock
}

NotifyRegionRepositoryInterface is an autogenerated mock type for the NotifyRegionRepositoryInterface type

func (*NotifyRegionRepositoryInterface) FindByEmail added in v1.3.0

FindByEmail provides a mock function with given fields: _a0, _a1

func (*NotifyRegionRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

type NotifySalesRepositoryInterface added in v1.3.0

type NotifySalesRepositoryInterface struct {
	mock.Mock
}

NotifySalesRepositoryInterface is an autogenerated mock type for the NotifySalesRepositoryInterface type

func (*NotifySalesRepositoryInterface) FindByEmail added in v1.3.0

FindByEmail provides a mock function with given fields: _a0, _a1

func (*NotifySalesRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

type OperatingCompanyInterface

type OperatingCompanyInterface struct {
	mock.Mock
}

OperatingCompanyInterface is an autogenerated mock type for the OperatingCompanyInterface type

func (*OperatingCompanyInterface) Exists

func (_m *OperatingCompanyInterface) Exists(ctx context.Context, id string) bool

Exists provides a mock function with given fields: ctx, id

func (*OperatingCompanyInterface) GetAll

GetAll provides a mock function with given fields: ctx

func (*OperatingCompanyInterface) GetById

GetById provides a mock function with given fields: ctx, id

func (*OperatingCompanyInterface) GetByPaymentCountry

func (_m *OperatingCompanyInterface) GetByPaymentCountry(ctx context.Context, countryCode string) (*billingpb.OperatingCompany, error)

GetByPaymentCountry provides a mock function with given fields: ctx, countryCode

func (*OperatingCompanyInterface) Upsert

Upsert provides a mock function with given fields: ctx, oc

type OperatingCompanyRepositoryInterface added in v1.3.0

type OperatingCompanyRepositoryInterface struct {
	mock.Mock
}

OperatingCompanyRepositoryInterface is an autogenerated mock type for the OperatingCompanyRepositoryInterface type

func (*OperatingCompanyRepositoryInterface) Exists added in v1.3.0

Exists provides a mock function with given fields: ctx, id

func (*OperatingCompanyRepositoryInterface) GetAll added in v1.3.0

GetAll provides a mock function with given fields: ctx

func (*OperatingCompanyRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: ctx, id

func (*OperatingCompanyRepositoryInterface) GetByPaymentCountry added in v1.3.0

func (_m *OperatingCompanyRepositoryInterface) GetByPaymentCountry(ctx context.Context, countryCode string) (*billingpb.OperatingCompany, error)

GetByPaymentCountry provides a mock function with given fields: ctx, countryCode

func (*OperatingCompanyRepositoryInterface) Upsert added in v1.3.0

Upsert provides a mock function with given fields: ctx, oc

type OrderRepositoryInterface

type OrderRepositoryInterface struct {
	mock.Mock
}

OrderRepositoryInterface is an autogenerated mock type for the OrderRepositoryInterface type

func (*OrderRepositoryInterface) GetById added in v1.2.0

GetById provides a mock function with given fields: _a0, _a1

func (*OrderRepositoryInterface) GetByRefundReceiptNumber added in v1.2.0

func (_m *OrderRepositoryInterface) GetByRefundReceiptNumber(_a0 context.Context, _a1 string) (*billingpb.Order, error)

GetByRefundReceiptNumber provides a mock function with given fields: _a0, _a1

func (*OrderRepositoryInterface) GetByUuid

func (_m *OrderRepositoryInterface) GetByUuid(_a0 context.Context, _a1 string) (*billingpb.Order, error)

GetByUuid provides a mock function with given fields: _a0, _a1

func (*OrderRepositoryInterface) GetByUuidAndMerchantId added in v1.6.0

func (_m *OrderRepositoryInterface) GetByUuidAndMerchantId(ctx context.Context, uuid string, merchantId string) (*billingpb.Order, error)

GetByUuidAndMerchantId provides a mock function with given fields: ctx, uuid, merchantId

func (*OrderRepositoryInterface) GetFirstPaymentForMerchant added in v1.8.0

func (_m *OrderRepositoryInterface) GetFirstPaymentForMerchant(ctx context.Context, merchantId string) (*billingpb.Order, error)

GetFirstPaymentForMerchant provides a mock function with given fields: ctx, merchantId

func (*OrderRepositoryInterface) GetManyBy added in v1.8.0

func (_m *OrderRepositoryInterface) GetManyBy(ctx context.Context, filter primitive.M, opts ...*options.FindOptions) ([]*billingpb.Order, error)

GetManyBy provides a mock function with given fields: ctx, filter, opts

func (*OrderRepositoryInterface) GetOneBy added in v1.6.0

GetOneBy provides a mock function with given fields: ctx, filter, opts

func (*OrderRepositoryInterface) IncludeOrdersToRoyaltyReport added in v1.6.0

func (_m *OrderRepositoryInterface) IncludeOrdersToRoyaltyReport(ctx context.Context, royaltyReportId string, orderIds []primitive.ObjectID) error

IncludeOrdersToRoyaltyReport provides a mock function with given fields: ctx, royaltyReportId, orderIds

func (*OrderRepositoryInterface) Insert added in v1.2.0

Insert provides a mock function with given fields: _a0, _a1

func (*OrderRepositoryInterface) Update added in v1.2.0

Update provides a mock function with given fields: _a0, _a1

func (*OrderRepositoryInterface) UpdateOrderView added in v1.3.0

func (_m *OrderRepositoryInterface) UpdateOrderView(_a0 context.Context, _a1 []string) error

UpdateOrderView provides a mock function with given fields: _a0, _a1

type OrderViewRepositoryInterface added in v1.3.0

type OrderViewRepositoryInterface struct {
	mock.Mock
}

OrderViewRepositoryInterface is an autogenerated mock type for the OrderViewRepositoryInterface type

func (*OrderViewRepositoryInterface) CountTransactions added in v1.3.0

func (_m *OrderViewRepositoryInterface) CountTransactions(ctx context.Context, match primitive.M) (int64, error)

CountTransactions provides a mock function with given fields: ctx, match

func (*OrderViewRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: _a0, _a1

func (*OrderViewRepositoryInterface) GetCountBy added in v1.8.0

func (_m *OrderViewRepositoryInterface) GetCountBy(ctx context.Context, filter primitive.M, opts ...*options.CountOptions) (int64, error)

GetCountBy provides a mock function with given fields: ctx, filter, opts

func (*OrderViewRepositoryInterface) GetManyBy added in v1.8.0

GetManyBy provides a mock function with given fields: ctx, filter, opts

func (*OrderViewRepositoryInterface) GetPaylinkStat added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetPaylinkStat(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*billingpb.StatCommon, error)

GetPaylinkStat provides a mock function with given fields: ctx, paylinkId, merchantId, from, to

func (*OrderViewRepositoryInterface) GetPaylinkStatByCountry added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetPaylinkStatByCountry(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*billingpb.GroupStatCommon, error)

GetPaylinkStatByCountry provides a mock function with given fields: ctx, paylinkId, merchantId, from, to

func (*OrderViewRepositoryInterface) GetPaylinkStatByDate added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetPaylinkStatByDate(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*billingpb.GroupStatCommon, error)

GetPaylinkStatByDate provides a mock function with given fields: ctx, paylinkId, merchantId, from, to

func (*OrderViewRepositoryInterface) GetPaylinkStatByReferrer added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetPaylinkStatByReferrer(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*billingpb.GroupStatCommon, error)

GetPaylinkStatByReferrer provides a mock function with given fields: ctx, paylinkId, merchantId, from, to

func (*OrderViewRepositoryInterface) GetPaylinkStatByUtm added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetPaylinkStatByUtm(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*billingpb.GroupStatCommon, error)

GetPaylinkStatByUtm provides a mock function with given fields: ctx, paylinkId, merchantId, from, to

func (*OrderViewRepositoryInterface) GetPrivateOrderBy added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetPrivateOrderBy(ctx context.Context, id string, uuid string, merchantId string) (*billingpb.OrderViewPrivate, error)

GetPrivateOrderBy provides a mock function with given fields: ctx, id, uuid, merchantId

func (*OrderViewRepositoryInterface) GetPublicByOrderId added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetPublicByOrderId(ctx context.Context, merchantId string) (*billingpb.OrderViewPublic, error)

GetPublicByOrderId provides a mock function with given fields: ctx, merchantId

func (*OrderViewRepositoryInterface) GetPublicOrderBy added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetPublicOrderBy(ctx context.Context, id string, uuid string, merchantId string) (*billingpb.OrderViewPublic, error)

GetPublicOrderBy provides a mock function with given fields: ctx, id, uuid, merchantId

func (*OrderViewRepositoryInterface) GetRoyaltyForMerchants added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetRoyaltyForMerchants(_a0 context.Context, _a1 []string, _a2 time.Time, _a3 time.Time) ([]*pkg.RoyaltyReportMerchant, error)

GetRoyaltyForMerchants provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*OrderViewRepositoryInterface) GetRoyaltySummary added in v1.3.0

GetRoyaltySummary provides a mock function with given fields: ctx, merchantId, currency, from, to

func (*OrderViewRepositoryInterface) GetRoyaltySummaryRoundedAmounts added in v1.8.0

GetRoyaltySummaryRoundedAmounts provides a mock function with given fields: ctx, merchantId, currency, from, to

func (*OrderViewRepositoryInterface) GetTransactionsPrivate added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetTransactionsPrivate(ctx context.Context, match primitive.M, limit int64, offset int64) ([]*billingpb.OrderViewPrivate, error)

GetTransactionsPrivate provides a mock function with given fields: ctx, match, limit, offset

func (*OrderViewRepositoryInterface) GetTransactionsPublic added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetTransactionsPublic(ctx context.Context, match primitive.M, limit int64, offset int64) ([]*billingpb.OrderViewPublic, error)

GetTransactionsPublic provides a mock function with given fields: ctx, match, limit, offset

func (*OrderViewRepositoryInterface) GetTurnoverSummary added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetTurnoverSummary(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 time.Time, _a5 time.Time) ([]*pkg.TurnoverQueryResItem, error)

GetTurnoverSummary provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*OrderViewRepositoryInterface) GetVatSummary added in v1.3.0

func (_m *OrderViewRepositoryInterface) GetVatSummary(_a0 context.Context, _a1 string, _a2 string, _a3 bool, _a4 time.Time, _a5 time.Time) ([]*pkg.VatReportQueryResItem, error)

GetVatSummary provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

type PaylinkRepositoryInterface added in v1.3.0

type PaylinkRepositoryInterface struct {
	mock.Mock
}

PaylinkRepositoryInterface is an autogenerated mock type for the PaylinkRepositoryInterface type

func (*PaylinkRepositoryInterface) Delete added in v1.3.0

Delete provides a mock function with given fields: _a0, _a1

func (*PaylinkRepositoryInterface) Find added in v1.3.0

func (_m *PaylinkRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 int64, _a4 int64) ([]*billingpb.Paylink, error)

Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*PaylinkRepositoryInterface) FindCount added in v1.3.0

func (_m *PaylinkRepositoryInterface) FindCount(_a0 context.Context, _a1 string, _a2 string) (int64, error)

FindCount provides a mock function with given fields: _a0, _a1, _a2

func (*PaylinkRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: _a0, _a1

func (*PaylinkRepositoryInterface) GetByIdAndMerchant added in v1.3.0

func (_m *PaylinkRepositoryInterface) GetByIdAndMerchant(_a0 context.Context, _a1 string, _a2 string) (*billingpb.Paylink, error)

GetByIdAndMerchant provides a mock function with given fields: _a0, _a1, _a2

func (*PaylinkRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

func (*PaylinkRepositoryInterface) Update added in v1.3.0

Update provides a mock function with given fields: _a0, _a1

func (*PaylinkRepositoryInterface) UpdateTotalStat added in v1.3.0

func (_m *PaylinkRepositoryInterface) UpdateTotalStat(_a0 context.Context, _a1 *billingpb.Paylink) error

UpdateTotalStat provides a mock function with given fields: _a0, _a1

type PaylinkVisitRepositoryInterface added in v1.3.0

type PaylinkVisitRepositoryInterface struct {
	mock.Mock
}

PaylinkVisitRepositoryInterface is an autogenerated mock type for the PaylinkVisitRepositoryInterface type

func (*PaylinkVisitRepositoryInterface) CountPaylinkVisits added in v1.3.0

func (_m *PaylinkVisitRepositoryInterface) CountPaylinkVisits(_a0 context.Context, _a1 string, _a2 int64, _a3 int64) (int64, error)

CountPaylinkVisits provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*PaylinkVisitRepositoryInterface) IncrVisits added in v1.3.0

IncrVisits provides a mock function with given fields: ctx, id

type PaymentChannelCostMerchantRepositoryInterface added in v1.3.0

type PaymentChannelCostMerchantRepositoryInterface struct {
	mock.Mock
}

PaymentChannelCostMerchantRepositoryInterface is an autogenerated mock type for the PaymentChannelCostMerchantRepositoryInterface type

func (*PaymentChannelCostMerchantRepositoryInterface) Delete added in v1.3.0

Delete provides a mock function with given fields: ctx, obj

func (*PaymentChannelCostMerchantRepositoryInterface) DeleteAndInsertMany added in v1.3.0

DeleteAndInsertMany provides a mock function with given fields: ctx, merchantId, tariffs

func (*PaymentChannelCostMerchantRepositoryInterface) Find added in v1.3.0

Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6

func (*PaymentChannelCostMerchantRepositoryInterface) GetActiveForMerchant added in v1.10.10

GetActiveForMerchant provides a mock function with given fields: _a0, _a1

func (*PaymentChannelCostMerchantRepositoryInterface) GetAllForMerchant added in v1.3.0

GetAllForMerchant provides a mock function with given fields: _a0, _a1

func (*PaymentChannelCostMerchantRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: _a0, _a1

func (*PaymentChannelCostMerchantRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

func (*PaymentChannelCostMerchantRepositoryInterface) MultipleInsert added in v1.3.0

MultipleInsert provides a mock function with given fields: _a0, _a1

func (*PaymentChannelCostMerchantRepositoryInterface) Update added in v1.3.0

Update provides a mock function with given fields: _a0, _a1

type PaymentChannelCostSystemRepositoryInterface added in v1.3.0

type PaymentChannelCostSystemRepositoryInterface struct {
	mock.Mock
}

PaymentChannelCostSystemRepositoryInterface is an autogenerated mock type for the PaymentChannelCostSystemRepositoryInterface type

func (*PaymentChannelCostSystemRepositoryInterface) Delete added in v1.3.0

Delete provides a mock function with given fields: ctx, obj

func (*PaymentChannelCostSystemRepositoryInterface) Find added in v1.3.0

Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*PaymentChannelCostSystemRepositoryInterface) GetAll added in v1.3.0

GetAll provides a mock function with given fields: _a0

func (*PaymentChannelCostSystemRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: _a0, _a1

func (*PaymentChannelCostSystemRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

func (*PaymentChannelCostSystemRepositoryInterface) MultipleInsert added in v1.3.0

MultipleInsert provides a mock function with given fields: _a0, _a1

func (*PaymentChannelCostSystemRepositoryInterface) Update added in v1.3.0

Update provides a mock function with given fields: _a0, _a1

type PaymentMethodRepositoryInterface added in v1.3.0

type PaymentMethodRepositoryInterface struct {
	mock.Mock
}

PaymentMethodRepositoryInterface is an autogenerated mock type for the PaymentMethodRepositoryInterface type

func (*PaymentMethodRepositoryInterface) Delete added in v1.3.0

Delete provides a mock function with given fields: _a0, _a1

func (*PaymentMethodRepositoryInterface) FindByName added in v1.3.0

FindByName provides a mock function with given fields: _a0, _a1, _a2

func (*PaymentMethodRepositoryInterface) GetAll added in v1.3.0

GetAll provides a mock function with given fields: ctx

func (*PaymentMethodRepositoryInterface) GetByGroupAndCurrency added in v1.3.0

func (_m *PaymentMethodRepositoryInterface) GetByGroupAndCurrency(ctx context.Context, isProduction bool, group string, currency string) (*billingpb.PaymentMethod, error)

GetByGroupAndCurrency provides a mock function with given fields: ctx, isProduction, group, currency

func (*PaymentMethodRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: _a0, _a1

func (*PaymentMethodRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

func (*PaymentMethodRepositoryInterface) ListByOrder added in v1.3.0

ListByOrder provides a mock function with given fields: ctx, order

func (*PaymentMethodRepositoryInterface) MultipleInsert added in v1.3.0

MultipleInsert provides a mock function with given fields: _a0, _a1

func (*PaymentMethodRepositoryInterface) Update added in v1.3.0

Update provides a mock function with given fields: _a0, _a1

type PaymentMinLimitSystemRepositoryInterface added in v1.3.0

type PaymentMinLimitSystemRepositoryInterface struct {
	mock.Mock
}

PaymentMinLimitSystemRepositoryInterface is an autogenerated mock type for the PaymentMinLimitSystemRepositoryInterface type

func (*PaymentMinLimitSystemRepositoryInterface) GetAll added in v1.3.0

GetAll provides a mock function with given fields: _a0

func (*PaymentMinLimitSystemRepositoryInterface) GetByCurrency added in v1.3.0

GetByCurrency provides a mock function with given fields: _a0, _a1

func (*PaymentMinLimitSystemRepositoryInterface) MultipleInsert added in v1.3.0

MultipleInsert provides a mock function with given fields: _a0, _a1

func (*PaymentMinLimitSystemRepositoryInterface) Upsert added in v1.3.0

Upsert provides a mock function with given fields: _a0, _a1

type PaymentSystemInterface added in v1.8.0

type PaymentSystemInterface struct {
	mock.Mock
}

PaymentSystemInterface is an autogenerated mock type for the PaymentSystemInterface type

func (*PaymentSystemInterface) CanSaveCard added in v1.8.0

func (_m *PaymentSystemInterface) CanSaveCard(request protoiface.MessageV1) bool

CanSaveCard provides a mock function with given fields: request

func (*PaymentSystemInterface) CreatePayment added in v1.8.0

func (_m *PaymentSystemInterface) CreatePayment(order *billingpb.Order, successUrl string, failUrl string, requisites map[string]string) (string, error)

CreatePayment provides a mock function with given fields: order, successUrl, failUrl, requisites

func (*PaymentSystemInterface) CreateRecurringSubscription added in v1.8.0

func (_m *PaymentSystemInterface) CreateRecurringSubscription(order *billingpb.Order, subscription *recurringpb.Subscription, successUrl string, failUrl string, requisites map[string]string) (string, error)

CreateRecurringSubscription provides a mock function with given fields: order, subscription, successUrl, failUrl, requisites

func (*PaymentSystemInterface) CreateRefund added in v1.8.0

func (_m *PaymentSystemInterface) CreateRefund(order *billingpb.Order, refund *billingpb.Refund) error

CreateRefund provides a mock function with given fields: order, refund

func (*PaymentSystemInterface) DeleteRecurringSubscription added in v1.8.0

func (_m *PaymentSystemInterface) DeleteRecurringSubscription(order *billingpb.Order, subscription *recurringpb.Subscription) error

DeleteRecurringSubscription provides a mock function with given fields: order, subscription

func (*PaymentSystemInterface) GetRecurringId added in v1.8.0

func (_m *PaymentSystemInterface) GetRecurringId(request protoiface.MessageV1) string

GetRecurringId provides a mock function with given fields: request

func (*PaymentSystemInterface) IsRecurringCallback added in v1.8.0

func (_m *PaymentSystemInterface) IsRecurringCallback(request protoiface.MessageV1) bool

IsRecurringCallback provides a mock function with given fields: request

func (*PaymentSystemInterface) IsSubscriptionCallback added in v1.8.0

func (_m *PaymentSystemInterface) IsSubscriptionCallback(request protoiface.MessageV1) bool

IsSubscriptionCallback provides a mock function with given fields: request

func (*PaymentSystemInterface) ProcessPayment added in v1.8.0

func (_m *PaymentSystemInterface) ProcessPayment(order *billingpb.Order, message protoiface.MessageV1, raw string, signature string) error

ProcessPayment provides a mock function with given fields: order, message, raw, signature

func (*PaymentSystemInterface) ProcessRefund added in v1.8.0

func (_m *PaymentSystemInterface) ProcessRefund(order *billingpb.Order, refund *billingpb.Refund, message protoiface.MessageV1, raw string, signature string) error

ProcessRefund provides a mock function with given fields: order, refund, message, raw, signature

type PaymentSystemManagerInterface added in v1.8.0

type PaymentSystemManagerInterface struct {
	mock.Mock
}

PaymentSystemManagerInterface is an autogenerated mock type for the PaymentSystemManagerInterface type

func (*PaymentSystemManagerInterface) GetGateway added in v1.8.0

GetGateway provides a mock function with given fields: name

type PaymentSystemRepositoryInterface added in v1.3.0

type PaymentSystemRepositoryInterface struct {
	mock.Mock
}

PaymentSystemRepositoryInterface is an autogenerated mock type for the PaymentSystemRepositoryInterface type

func (*PaymentSystemRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: _a0, _a1

func (*PaymentSystemRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

func (*PaymentSystemRepositoryInterface) MultipleInsert added in v1.3.0

MultipleInsert provides a mock function with given fields: _a0, _a1

func (*PaymentSystemRepositoryInterface) Update added in v1.3.0

Update provides a mock function with given fields: _a0, _a1

type PayoutRepositoryInterface added in v1.3.0

type PayoutRepositoryInterface struct {
	mock.Mock
}

PayoutRepositoryInterface is an autogenerated mock type for the PayoutRepositoryInterface type

func (*PayoutRepositoryInterface) Find added in v1.3.0

Find provides a mock function with given fields: ctx, in

func (*PayoutRepositoryInterface) FindAll added in v1.3.0

FindAll provides a mock function with given fields: ctx

func (*PayoutRepositoryInterface) FindCount added in v1.3.0

FindCount provides a mock function with given fields: ctx, in

func (*PayoutRepositoryInterface) GetBalanceAmount added in v1.3.0

func (_m *PayoutRepositoryInterface) GetBalanceAmount(_a0 context.Context, _a1 string, _a2 string) (float64, error)

GetBalanceAmount provides a mock function with given fields: _a0, _a1, _a2

func (*PayoutRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: _a0, _a1

func (*PayoutRepositoryInterface) GetByIdMerchantId added in v1.3.0

func (_m *PayoutRepositoryInterface) GetByIdMerchantId(_a0 context.Context, _a1 string, _a2 string) (*billingpb.PayoutDocument, error)

GetByIdMerchantId provides a mock function with given fields: _a0, _a1, _a2

func (*PayoutRepositoryInterface) GetLast added in v1.3.0

GetLast provides a mock function with given fields: _a0, _a1, _a2

func (*PayoutRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*PayoutRepositoryInterface) Update added in v1.3.0

Update provides a mock function with given fields: _a0, _a1, _a2, _a3

type PriceGroupRepositoryInterface added in v1.2.0

type PriceGroupRepositoryInterface struct {
	mock.Mock
}

PriceGroupRepositoryInterface is an autogenerated mock type for the PriceGroupRepositoryInterface type

func (*PriceGroupRepositoryInterface) GetAll added in v1.2.0

GetAll provides a mock function with given fields: _a0

func (*PriceGroupRepositoryInterface) GetById added in v1.2.0

GetById provides a mock function with given fields: _a0, _a1

func (*PriceGroupRepositoryInterface) GetByRegion added in v1.2.0

GetByRegion provides a mock function with given fields: _a0, _a1

func (*PriceGroupRepositoryInterface) Insert added in v1.2.0

Insert provides a mock function with given fields: _a0, _a1

func (*PriceGroupRepositoryInterface) MultipleInsert added in v1.2.0

func (_m *PriceGroupRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.PriceGroup) error

MultipleInsert provides a mock function with given fields: _a0, _a1

func (*PriceGroupRepositoryInterface) Update added in v1.2.0

Update provides a mock function with given fields: _a0, _a1

type PriceTableRepositoryInterface added in v1.3.0

type PriceTableRepositoryInterface struct {
	mock.Mock
}

PriceTableRepositoryInterface is an autogenerated mock type for the PriceTableRepositoryInterface type

func (*PriceTableRepositoryInterface) GetByRegion added in v1.3.0

GetByRegion provides a mock function with given fields: _a0, _a1

func (*PriceTableRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

type PriceTableServiceInterface

type PriceTableServiceInterface struct {
	mock.Mock
}

PriceTableServiceInterface is an autogenerated mock type for the PriceTableServiceInterface type

func (*PriceTableServiceInterface) GetByRegion

GetByRegion provides a mock function with given fields: _a0, _a1

func (*PriceTableServiceInterface) Insert

Insert provides a mock function with given fields: _a0, _a1

type ProductRepositoryInterface added in v1.3.0

type ProductRepositoryInterface struct {
	mock.Mock
}

ProductRepositoryInterface is an autogenerated mock type for the ProductRepositoryInterface type

func (*ProductRepositoryInterface) CountByProject added in v1.3.0

func (_m *ProductRepositoryInterface) CountByProject(_a0 context.Context, _a1 string) (int64, error)

CountByProject provides a mock function with given fields: _a0, _a1

func (*ProductRepositoryInterface) CountByProjectSku added in v1.3.0

func (_m *ProductRepositoryInterface) CountByProjectSku(_a0 context.Context, _a1 string, _a2 string) (int64, error)

CountByProjectSku provides a mock function with given fields: _a0, _a1, _a2

func (*ProductRepositoryInterface) Find added in v1.3.0

func (_m *ProductRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 int32, _a6 int64, _a7 int64) ([]*billingpb.Product, error)

Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7

func (*ProductRepositoryInterface) FindCount added in v1.3.0

func (_m *ProductRepositoryInterface) FindCount(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 int32) (int64, error)

FindCount provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*ProductRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: _a0, _a1

func (*ProductRepositoryInterface) MultipleInsert added in v1.3.0

func (_m *ProductRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.Product) error

MultipleInsert provides a mock function with given fields: _a0, _a1

func (*ProductRepositoryInterface) Upsert added in v1.3.0

Upsert provides a mock function with given fields: ctx, product

type ProjectRepositoryInterface added in v1.2.0

type ProjectRepositoryInterface struct {
	mock.Mock
}

ProjectRepositoryInterface is an autogenerated mock type for the ProjectRepositoryInterface type

func (*ProjectRepositoryInterface) CountByMerchantId added in v1.2.0

func (_m *ProjectRepositoryInterface) CountByMerchantId(_a0 context.Context, _a1 string) (int64, error)

CountByMerchantId provides a mock function with given fields: _a0, _a1

func (*ProjectRepositoryInterface) Find added in v1.2.0

func (_m *ProjectRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 []int32, _a4 int64, _a5 int64, _a6 []string) ([]*billingpb.Project, error)

Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6

func (*ProjectRepositoryInterface) FindCount added in v1.2.0

func (_m *ProjectRepositoryInterface) FindCount(_a0 context.Context, _a1 string, _a2 string, _a3 []int32) (int64, error)

FindCount provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*ProjectRepositoryInterface) GetById added in v1.2.0

GetById provides a mock function with given fields: _a0, _a1

func (*ProjectRepositoryInterface) Insert added in v1.2.0

Insert provides a mock function with given fields: _a0, _a1

func (*ProjectRepositoryInterface) MultipleInsert added in v1.2.0

func (_m *ProjectRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.Project) error

MultipleInsert provides a mock function with given fields: _a0, _a1

func (*ProjectRepositoryInterface) Update added in v1.2.0

Update provides a mock function with given fields: _a0, _a1

type RefundRepositoryInterface added in v1.2.0

type RefundRepositoryInterface struct {
	mock.Mock
}

RefundRepositoryInterface is an autogenerated mock type for the RefundRepositoryInterface type

func (*RefundRepositoryInterface) CountByOrderUuid added in v1.2.0

func (_m *RefundRepositoryInterface) CountByOrderUuid(_a0 context.Context, _a1 string) (int64, error)

CountByOrderUuid provides a mock function with given fields: _a0, _a1

func (*RefundRepositoryInterface) FindByOrderUuid added in v1.2.0

func (_m *RefundRepositoryInterface) FindByOrderUuid(_a0 context.Context, _a1 string, _a2 int64, _a3 int64) ([]*billingpb.Refund, error)

FindByOrderUuid provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*RefundRepositoryInterface) GetAmountByOrderId added in v1.2.0

func (_m *RefundRepositoryInterface) GetAmountByOrderId(_a0 context.Context, _a1 string) (float64, error)

GetAmountByOrderId provides a mock function with given fields: _a0, _a1

func (*RefundRepositoryInterface) GetById added in v1.2.0

GetById provides a mock function with given fields: _a0, _a1

func (*RefundRepositoryInterface) Insert added in v1.2.0

Insert provides a mock function with given fields: _a0, _a1

func (*RefundRepositoryInterface) Update added in v1.2.0

Update provides a mock function with given fields: _a0, _a1

type RepositoryServiceEmpty

type RepositoryServiceEmpty struct{}

func (*RepositoryServiceEmpty) AddSubscription added in v1.8.0

func (*RepositoryServiceEmpty) DeleteSavedCard

func (*RepositoryServiceEmpty) DeleteSubscription added in v1.8.0

func (*RepositoryServiceEmpty) FindSavedCardById

func (*RepositoryServiceEmpty) FindSavedCards

func (*RepositoryServiceEmpty) FindSubscriptions added in v1.8.0

func (*RepositoryServiceEmpty) GetSubscription added in v1.8.0

func (*RepositoryServiceEmpty) InsertSavedCard

func (*RepositoryServiceEmpty) UpdateSubscription added in v1.8.0

type RepositoryServiceError

type RepositoryServiceError struct{}

func (*RepositoryServiceError) AddSubscription added in v1.8.0

func (*RepositoryServiceError) DeleteSavedCard

func (*RepositoryServiceError) DeleteSubscription added in v1.8.0

func (*RepositoryServiceError) FindSavedCardById

func (*RepositoryServiceError) FindSavedCards

func (*RepositoryServiceError) FindSubscriptions added in v1.8.0

func (*RepositoryServiceError) GetSubscription added in v1.8.0

func (*RepositoryServiceError) InsertSavedCard

func (*RepositoryServiceError) UpdateSubscription added in v1.8.0

type RepositoryServiceOk

type RepositoryServiceOk struct{}

func (*RepositoryServiceOk) AddSubscription added in v1.8.0

func (*RepositoryServiceOk) DeleteSavedCard

func (*RepositoryServiceOk) DeleteSubscription added in v1.8.0

func (*RepositoryServiceOk) FindSavedCardById

func (*RepositoryServiceOk) FindSavedCards

func (*RepositoryServiceOk) FindSubscriptions added in v1.8.0

func (*RepositoryServiceOk) GetSubscription added in v1.8.0

func (*RepositoryServiceOk) InsertSavedCard

func (*RepositoryServiceOk) UpdateSubscription added in v1.8.0

type RoyaltyReportRepositoryInterface added in v1.3.0

type RoyaltyReportRepositoryInterface struct {
	mock.Mock
}

RoyaltyReportRepositoryInterface is an autogenerated mock type for the RoyaltyReportRepositoryInterface type

func (*RoyaltyReportRepositoryInterface) FindByMerchantStatusDates added in v1.3.0

func (_m *RoyaltyReportRepositoryInterface) FindByMerchantStatusDates(ctx context.Context, merchantId string, statuses []string, dateFrom string, dateTo string, limit int64, offset int64, sort []string) ([]*billingpb.RoyaltyReport, error)

FindByMerchantStatusDates provides a mock function with given fields: ctx, merchantId, statuses, dateFrom, dateTo, limit, offset, sort

func (*RoyaltyReportRepositoryInterface) FindCountByMerchantStatusDates added in v1.3.0

func (_m *RoyaltyReportRepositoryInterface) FindCountByMerchantStatusDates(ctx context.Context, merchantId string, statuses []string, dateFrom string, dateTo string) (int64, error)

FindCountByMerchantStatusDates provides a mock function with given fields: ctx, merchantId, statuses, dateFrom, dateTo

func (*RoyaltyReportRepositoryInterface) GetAll added in v1.3.0

GetAll provides a mock function with given fields: ctx

func (*RoyaltyReportRepositoryInterface) GetAllRoyaltyReportFinanceItems added in v1.3.0

func (_m *RoyaltyReportRepositoryInterface) GetAllRoyaltyReportFinanceItems(royaltyReportId string) []*postmarkpb.PayloadAttachment

GetAllRoyaltyReportFinanceItems provides a mock function with given fields: royaltyReportId

func (*RoyaltyReportRepositoryInterface) GetBalanceAmount added in v1.3.0

func (_m *RoyaltyReportRepositoryInterface) GetBalanceAmount(ctx context.Context, merchantId string, currency string) (float64, error)

GetBalanceAmount provides a mock function with given fields: ctx, merchantId, currency

func (*RoyaltyReportRepositoryInterface) GetByAcceptedExpireWithStatus added in v1.3.0

func (_m *RoyaltyReportRepositoryInterface) GetByAcceptedExpireWithStatus(_a0 context.Context, _a1 time.Time, _a2 string) ([]*billingpb.RoyaltyReport, error)

GetByAcceptedExpireWithStatus provides a mock function with given fields: _a0, _a1, _a2

func (*RoyaltyReportRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: ctx, id

func (*RoyaltyReportRepositoryInterface) GetByPayoutId added in v1.3.0

func (_m *RoyaltyReportRepositoryInterface) GetByPayoutId(ctx context.Context, payoutId string) ([]*billingpb.RoyaltyReport, error)

GetByPayoutId provides a mock function with given fields: ctx, payoutId

func (*RoyaltyReportRepositoryInterface) GetByPeriod added in v1.3.0

GetByPeriod provides a mock function with given fields: _a0, _a1, _a2

func (*RoyaltyReportRepositoryInterface) GetNonPayoutReports added in v1.3.0

func (_m *RoyaltyReportRepositoryInterface) GetNonPayoutReports(ctx context.Context, merchantId string, currency string) ([]*billingpb.RoyaltyReport, error)

GetNonPayoutReports provides a mock function with given fields: ctx, merchantId, currency

func (*RoyaltyReportRepositoryInterface) GetReportExists added in v1.3.0

func (_m *RoyaltyReportRepositoryInterface) GetReportExists(ctx context.Context, merchantId string, currency string, from time.Time, to time.Time) *billingpb.RoyaltyReport

GetReportExists provides a mock function with given fields: ctx, merchantId, currency, from, to

func (*RoyaltyReportRepositoryInterface) GetRoyaltyHistoryById added in v1.3.0

GetRoyaltyHistoryById provides a mock function with given fields: ctx, id

func (*RoyaltyReportRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: ctx, document, ip, source

func (*RoyaltyReportRepositoryInterface) RemoveRoyaltyReportFinanceItems added in v1.3.0

func (_m *RoyaltyReportRepositoryInterface) RemoveRoyaltyReportFinanceItems(royaltyReportId string) error

RemoveRoyaltyReportFinanceItems provides a mock function with given fields: royaltyReportId

func (*RoyaltyReportRepositoryInterface) SetRoyaltyReportFinanceItem added in v1.3.0

func (_m *RoyaltyReportRepositoryInterface) SetRoyaltyReportFinanceItem(royaltyReportId string, item *postmarkpb.PayloadAttachment) ([]*postmarkpb.PayloadAttachment, error)

SetRoyaltyReportFinanceItem provides a mock function with given fields: royaltyReportId, item

func (*RoyaltyReportRepositoryInterface) Update added in v1.3.0

Update provides a mock function with given fields: ctx, document, ip, source

func (*RoyaltyReportRepositoryInterface) UpdateMany added in v1.3.0

func (_m *RoyaltyReportRepositoryInterface) UpdateMany(ctx context.Context, query primitive.M, set primitive.M) error

UpdateMany provides a mock function with given fields: ctx, query, set

type TaxServiceOkMock

type TaxServiceOkMock struct{}

func (*TaxServiceOkMock) CreateOrUpdate

func (m *TaxServiceOkMock) CreateOrUpdate(
	ctx context.Context,
	in *taxpb.TaxRate,
	opts ...client.CallOption,
) (*taxpb.TaxRate, error)

func (*TaxServiceOkMock) DeleteRateById

func (*TaxServiceOkMock) GetRate

func (m *TaxServiceOkMock) GetRate(
	ctx context.Context,
	in *taxpb.GeoIdentity,
	opts ...client.CallOption,
) (*taxpb.TaxRate, error)

func (*TaxServiceOkMock) GetRates

type TurnoverRepositoryInterface added in v1.2.0

type TurnoverRepositoryInterface struct {
	mock.Mock
}

TurnoverRepositoryInterface is an autogenerated mock type for the TurnoverRepositoryInterface type

func (*TurnoverRepositoryInterface) CountAll added in v1.2.0

func (_m *TurnoverRepositoryInterface) CountAll(_a0 context.Context) (int64, error)

CountAll provides a mock function with given fields: _a0

func (*TurnoverRepositoryInterface) Get added in v1.2.0

Get provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*TurnoverRepositoryInterface) Upsert added in v1.2.0

Upsert provides a mock function with given fields: _a0, _a1

type UserProfileRepositoryInterface

type UserProfileRepositoryInterface struct {
	mock.Mock
}

UserProfileRepositoryInterface is an autogenerated mock type for the UserProfileRepositoryInterface type

func (*UserProfileRepositoryInterface) Add

Add provides a mock function with given fields: _a0, _a1

func (*UserProfileRepositoryInterface) GetById

GetById provides a mock function with given fields: _a0, _a1

func (*UserProfileRepositoryInterface) GetByUserId

GetByUserId provides a mock function with given fields: _a0, _a1

func (*UserProfileRepositoryInterface) Update added in v1.1.0

Update provides a mock function with given fields: _a0, _a1

func (*UserProfileRepositoryInterface) Upsert added in v1.2.0

Upsert provides a mock function with given fields: ctx, profile

type UserRoleRepositoryInterface added in v1.2.0

type UserRoleRepositoryInterface struct {
	mock.Mock
}

UserRoleRepositoryInterface is an autogenerated mock type for the UserRoleRepositoryInterface type

func (*UserRoleRepositoryInterface) AddAdminUser added in v1.2.0

func (_m *UserRoleRepositoryInterface) AddAdminUser(_a0 context.Context, _a1 *billingpb.UserRole) error

AddAdminUser provides a mock function with given fields: _a0, _a1

func (*UserRoleRepositoryInterface) AddMerchantUser added in v1.2.0

func (_m *UserRoleRepositoryInterface) AddMerchantUser(_a0 context.Context, _a1 *billingpb.UserRole) error

AddMerchantUser provides a mock function with given fields: _a0, _a1

func (*UserRoleRepositoryInterface) DeleteAdminUser added in v1.2.0

func (_m *UserRoleRepositoryInterface) DeleteAdminUser(_a0 context.Context, _a1 *billingpb.UserRole) error

DeleteAdminUser provides a mock function with given fields: _a0, _a1

func (*UserRoleRepositoryInterface) DeleteMerchantUser added in v1.2.0

func (_m *UserRoleRepositoryInterface) DeleteMerchantUser(_a0 context.Context, _a1 *billingpb.UserRole) error

DeleteMerchantUser provides a mock function with given fields: _a0, _a1

func (*UserRoleRepositoryInterface) GetAdminUserByEmail added in v1.2.0

func (_m *UserRoleRepositoryInterface) GetAdminUserByEmail(_a0 context.Context, _a1 string) (*billingpb.UserRole, error)

GetAdminUserByEmail provides a mock function with given fields: _a0, _a1

func (*UserRoleRepositoryInterface) GetAdminUserById added in v1.2.0

func (_m *UserRoleRepositoryInterface) GetAdminUserById(_a0 context.Context, _a1 string) (*billingpb.UserRole, error)

GetAdminUserById provides a mock function with given fields: _a0, _a1

func (*UserRoleRepositoryInterface) GetAdminUserByUserId added in v1.2.0

func (_m *UserRoleRepositoryInterface) GetAdminUserByUserId(_a0 context.Context, _a1 string) (*billingpb.UserRole, error)

GetAdminUserByUserId provides a mock function with given fields: _a0, _a1

func (*UserRoleRepositoryInterface) GetMerchantOwner added in v1.2.0

func (_m *UserRoleRepositoryInterface) GetMerchantOwner(_a0 context.Context, _a1 string) (*billingpb.UserRole, error)

GetMerchantOwner provides a mock function with given fields: _a0, _a1

func (*UserRoleRepositoryInterface) GetMerchantUserByEmail added in v1.2.0

func (_m *UserRoleRepositoryInterface) GetMerchantUserByEmail(_a0 context.Context, _a1 string, _a2 string) (*billingpb.UserRole, error)

GetMerchantUserByEmail provides a mock function with given fields: _a0, _a1, _a2

func (*UserRoleRepositoryInterface) GetMerchantUserById added in v1.2.0

func (_m *UserRoleRepositoryInterface) GetMerchantUserById(_a0 context.Context, _a1 string) (*billingpb.UserRole, error)

GetMerchantUserById provides a mock function with given fields: _a0, _a1

func (*UserRoleRepositoryInterface) GetMerchantUserByUserId added in v1.2.0

func (_m *UserRoleRepositoryInterface) GetMerchantUserByUserId(_a0 context.Context, _a1 string, _a2 string) (*billingpb.UserRole, error)

GetMerchantUserByUserId provides a mock function with given fields: _a0, _a1, _a2

func (*UserRoleRepositoryInterface) GetMerchantsForUser added in v1.2.0

func (_m *UserRoleRepositoryInterface) GetMerchantsForUser(_a0 context.Context, _a1 string) ([]*billingpb.UserRole, error)

GetMerchantsForUser provides a mock function with given fields: _a0, _a1

func (*UserRoleRepositoryInterface) GetSystemAdmin added in v1.2.0

func (_m *UserRoleRepositoryInterface) GetSystemAdmin(_a0 context.Context) (*billingpb.UserRole, error)

GetSystemAdmin provides a mock function with given fields: _a0

func (*UserRoleRepositoryInterface) GetUsersForAdmin added in v1.2.0

func (_m *UserRoleRepositoryInterface) GetUsersForAdmin(_a0 context.Context) ([]*billingpb.UserRole, error)

GetUsersForAdmin provides a mock function with given fields: _a0

func (*UserRoleRepositoryInterface) GetUsersForMerchant added in v1.2.0

func (_m *UserRoleRepositoryInterface) GetUsersForMerchant(_a0 context.Context, _a1 string) ([]*billingpb.UserRole, error)

GetUsersForMerchant provides a mock function with given fields: _a0, _a1

func (*UserRoleRepositoryInterface) UpdateAdminUser added in v1.2.0

func (_m *UserRoleRepositoryInterface) UpdateAdminUser(_a0 context.Context, _a1 *billingpb.UserRole) error

UpdateAdminUser provides a mock function with given fields: _a0, _a1

func (*UserRoleRepositoryInterface) UpdateMerchantUser added in v1.2.0

func (_m *UserRoleRepositoryInterface) UpdateMerchantUser(_a0 context.Context, _a1 *billingpb.UserRole) error

UpdateMerchantUser provides a mock function with given fields: _a0, _a1

type VatReportRepositoryInterface added in v1.3.0

type VatReportRepositoryInterface struct {
	mock.Mock
}

VatReportRepositoryInterface is an autogenerated mock type for the VatReportRepositoryInterface type

func (*VatReportRepositoryInterface) GetByCountry added in v1.3.0

func (_m *VatReportRepositoryInterface) GetByCountry(_a0 context.Context, _a1 string, _a2 []string, _a3 int64, _a4 int64) ([]*billingpb.VatReport, error)

GetByCountry provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*VatReportRepositoryInterface) GetByCountryPeriod added in v1.3.0

func (_m *VatReportRepositoryInterface) GetByCountryPeriod(_a0 context.Context, _a1 string, _a2 time.Time, _a3 time.Time) (*billingpb.VatReport, error)

GetByCountryPeriod provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*VatReportRepositoryInterface) GetById added in v1.3.0

GetById provides a mock function with given fields: _a0, _a1

func (*VatReportRepositoryInterface) GetByStatus added in v1.3.0

func (_m *VatReportRepositoryInterface) GetByStatus(_a0 context.Context, _a1 []string) ([]*billingpb.VatReport, error)

GetByStatus provides a mock function with given fields: _a0, _a1

func (*VatReportRepositoryInterface) Insert added in v1.3.0

Insert provides a mock function with given fields: _a0, _a1

func (*VatReportRepositoryInterface) Update added in v1.3.0

Update provides a mock function with given fields: _a0, _a1

type ZipCodeRepositoryInterface added in v1.2.0

type ZipCodeRepositoryInterface struct {
	mock.Mock
}

ZipCodeRepositoryInterface is an autogenerated mock type for the ZipCodeRepositoryInterface type

func (*ZipCodeRepositoryInterface) CountByZip added in v1.2.0

func (_m *ZipCodeRepositoryInterface) CountByZip(_a0 context.Context, _a1 string, _a2 string) (int64, error)

CountByZip provides a mock function with given fields: _a0, _a1, _a2

func (*ZipCodeRepositoryInterface) FindByZipAndCountry added in v1.2.0

func (_m *ZipCodeRepositoryInterface) FindByZipAndCountry(_a0 context.Context, _a1 string, _a2 string, _a3 int64, _a4 int64) ([]*billingpb.ZipCode, error)

FindByZipAndCountry provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*ZipCodeRepositoryInterface) GetByZipAndCountry added in v1.2.0

func (_m *ZipCodeRepositoryInterface) GetByZipAndCountry(_a0 context.Context, _a1 string, _a2 string) (*billingpb.ZipCode, error)

GetByZipAndCountry provides a mock function with given fields: _a0, _a1, _a2

func (*ZipCodeRepositoryInterface) Insert added in v1.2.0

Insert provides a mock function with given fields: _a0, _a1

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL