mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SomeError = "some error"
)

Variables

View Source
var (
	CreateSignatureResponse = &proto.CreateSignatureResponse{
		Status: pkg.ResponseStatusOk,
		Item: &proto.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 = &proto.GetSignatureUrlResponse{
		Status: pkg.ResponseStatusOk,
		Item: &proto.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 NewCardPayHttpClientStatusOk

func NewCardPayHttpClientStatusOk() *http.Client

func NewClientStatusOk

func NewClientStatusOk() *http.Client

func NewCurrencyServiceMockError

func NewCurrencyServiceMockError() currencies.CurrencyratesService

func NewCurrencyServiceMockOk

func NewCurrencyServiceMockOk() currencies.CurrencyratesService

func NewDocumentSignerMockOk

func NewDocumentSignerMockOk() proto.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 NewRepositoryServiceEmpty

func NewRepositoryServiceEmpty() repository.RepositoryService

func NewRepositoryServiceError

func NewRepositoryServiceError() repository.RepositoryService

func NewRepositoryServiceOk

func NewRepositoryServiceOk() repository.RepositoryService

func NewTaxServiceOkMock

func NewTaxServiceOkMock() tax_service.TaxService

func NewTestRedis

func NewTestRedis() *redismock.ClientMock

Types

type AccountingServiceInterface

type AccountingServiceInterface struct {
	mock.Mock
}

AccountingServiceInterface is an autogenerated mock type for the AccountingServiceInterface type

func (*AccountingServiceInterface) GetCorrectionsForRoyaltyReport

func (_m *AccountingServiceInterface) GetCorrectionsForRoyaltyReport(ctx context.Context, merchantId string, currency string, from time.Time, to time.Time) ([]*billing.AccountingEntry, error)

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

func (*AccountingServiceInterface) GetRollingReservesForRoyaltyReport

func (_m *AccountingServiceInterface) GetRollingReservesForRoyaltyReport(ctx context.Context, merchantId string, currency string, from time.Time, to time.Time) ([]*billing.AccountingEntry, error)

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

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) 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) 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) 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 CountryServiceInterface

type CountryServiceInterface struct {
	mock.Mock
}

CountryServiceInterface is an autogenerated mock type for the CountryServiceInterface type

func (*CountryServiceInterface) GetAll

GetAll provides a mock function with given fields: _a0

func (*CountryServiceInterface) GetByIsoCodeA2

func (_m *CountryServiceInterface) GetByIsoCodeA2(_a0 context.Context, _a1 string) (*billing.Country, error)

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

func (*CountryServiceInterface) GetCountriesAndRegionsByTariffRegion

func (_m *CountryServiceInterface) GetCountriesAndRegionsByTariffRegion(ctx context.Context, tariffRegion string) ([]*pkg.CountryAndRegionItem, error)

GetCountriesAndRegionsByTariffRegion provides a mock function with given fields: ctx, tariffRegion

func (*CountryServiceInterface) GetCountriesWithVatEnabled

func (_m *CountryServiceInterface) GetCountriesWithVatEnabled(_a0 context.Context) (*billing.CountriesList, error)

GetCountriesWithVatEnabled provides a mock function with given fields: _a0

func (*CountryServiceInterface) GetPaymentCountriesForOrder

func (_m *CountryServiceInterface) GetPaymentCountriesForOrder(ctx context.Context, isHighRiskOrder bool) (*billing.CountriesList, error)

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

func (*CountryServiceInterface) Insert

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

func (*CountryServiceInterface) IsRegionExists

func (_m *CountryServiceInterface) IsRegionExists(_a0 context.Context, _a1 string) (bool, error)

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

func (*CountryServiceInterface) IsTariffRegionExists

func (_m *CountryServiceInterface) IsTariffRegionExists(_a0 string) bool

IsTariffRegionExists provides a mock function with given fields: _a0

func (*CountryServiceInterface) MultipleInsert

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

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

func (*CountryServiceInterface) Update

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

type CurrencyServiceMockError

type CurrencyServiceMockError struct{}

func (*CurrencyServiceMockError) AddCommonRateCorrectionRule

func (s *CurrencyServiceMockError) AddCommonRateCorrectionRule(
	ctx context.Context,
	in *currencies.CommonCorrectionRule,
	opts ...client.CallOption,
) (*currencies.EmptyResponse, error)

func (*CurrencyServiceMockError) AddMerchantRateCorrectionRule

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

func (*CurrencyServiceMockError) GetAccountingCurrencies

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

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 (s *CurrencyServiceMockError) GetSettlementCurrencies(
	ctx context.Context,
	in *currencies.EmptyRequest,
	opts ...client.CallOption,
) (*currencies.CurrenciesList, error)

func (*CurrencyServiceMockError) GetSupportedCurrencies

func (s *CurrencyServiceMockError) GetSupportedCurrencies(
	ctx context.Context,
	in *currencies.EmptyRequest,
	opts ...client.CallOption,
) (*currencies.CurrenciesList, error)

func (*CurrencyServiceMockError) GetVatCurrencies

func (*CurrencyServiceMockError) SetPaysuperCorrectionCorridor

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

type CurrencyServiceMockOk

type CurrencyServiceMockOk struct{}

func (*CurrencyServiceMockOk) AddCommonRateCorrectionRule

func (s *CurrencyServiceMockOk) AddCommonRateCorrectionRule(
	ctx context.Context,
	in *currencies.CommonCorrectionRule,
	opts ...client.CallOption,
) (*currencies.EmptyResponse, error)

func (*CurrencyServiceMockOk) AddMerchantRateCorrectionRule

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

func (*CurrencyServiceMockOk) GetAccountingCurrencies

func (s *CurrencyServiceMockOk) GetAccountingCurrencies(
	ctx context.Context,
	in *currencies.EmptyRequest,
	opts ...client.CallOption,
) (*currencies.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 *currencies.EmptyRequest,
	opts ...client.CallOption,
) (*currencies.CurrenciesList, error)

func (*CurrencyServiceMockOk) GetSupportedCurrencies

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

func (*CurrencyServiceMockOk) GetVatCurrencies

func (*CurrencyServiceMockOk) SetPaysuperCorrectionCorridor

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

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

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

func (*DashboardRepositoryInterface) GetBaseRevenueByCountryReport

func (_m *DashboardRepositoryInterface) GetBaseRevenueByCountryReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardRevenueByCountryReport, error)

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

func (*DashboardRepositoryInterface) GetBaseSalesTodayReport

func (_m *DashboardRepositoryInterface) GetBaseSalesTodayReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardSalesTodayReport, error)

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

func (*DashboardRepositoryInterface) GetBaseSourcesReport

func (_m *DashboardRepositoryInterface) GetBaseSourcesReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardSourcesReport, error)

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

func (*DashboardRepositoryInterface) GetMainReport

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

func (*DashboardRepositoryInterface) GetRevenueDynamicsReport

func (_m *DashboardRepositoryInterface) GetRevenueDynamicsReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardRevenueDynamicReport, error)

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

type DocumentSignerService

type DocumentSignerService struct {
	mock.Mock
}

DocumentSignerService is an autogenerated mock type for the DocumentSignerService type

func (*DocumentSignerService) CreateSignature

CreateSignature provides a mock function with given fields: ctx, in, opts

func (*DocumentSignerService) GetSignatureUrl

GetSignatureUrl provides a mock function with given fields: ctx, in, opts

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) GetById

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

func (*KeyProductRepositoryInterface) Update

Update 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) (*billing.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) ([]*billing.Key, error)

FindUnfinished provides a mock function with given fields: _a0

func (*KeyRepositoryInterface) FinishRedeemById

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

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

func (*KeyRepositoryInterface) GetById

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

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

func (*KeyRepositoryInterface) Insert

func (_m *KeyRepositoryInterface) Insert(_a0 context.Context, _a1 *billing.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) (*billing.Key, error)

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

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) (*billing.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 MerchantRepositoryInterface

type MerchantRepositoryInterface struct {
	mock.Mock
}

MerchantRepositoryInterface is an autogenerated mock type for the MerchantRepositoryInterface type

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) GetCommonById

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

func (*MerchantRepositoryInterface) GetMerchantsWithAutoPayouts

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

GetMerchantsWithAutoPayouts provides a mock function with given fields: ctx

func (*MerchantRepositoryInterface) GetPaymentMethod

func (_m *MerchantRepositoryInterface) GetPaymentMethod(ctx context.Context, merchantId string, method string) (*billing.MerchantPaymentMethod, error)

GetPaymentMethod provides a mock function with given fields: ctx, merchantId, method

func (*MerchantRepositoryInterface) Insert

func (_m *MerchantRepositoryInterface) Insert(ctx context.Context, merchant *billing.Merchant) error

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

func (*MerchantRepositoryInterface) MultipleInsert

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

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

func (*MerchantRepositoryInterface) Update

func (_m *MerchantRepositoryInterface) Update(ctx context.Context, merchant *billing.Merchant) error

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

func (*MerchantRepositoryInterface) Upsert

func (_m *MerchantRepositoryInterface) Upsert(ctx context.Context, merchant *billing.Merchant) error

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

type MerchantTariffRatesInterface

type MerchantTariffRatesInterface struct {
	mock.Mock
}

MerchantTariffRatesInterface is an autogenerated mock type for the MerchantTariffRatesInterface type

func (*MerchantTariffRatesInterface) GetBy

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

func (*MerchantTariffRatesInterface) GetCacheKeyForGetBy

GetCacheKeyForGetBy provides a mock function with given fields: _a0

func (*MerchantTariffRatesInterface) GetPaymentTariffsBy

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

func (*MerchantTariffRatesInterface) GetTariffsSettings

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

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) (*billing.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) (*billing.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 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 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) (*billing.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 OrderRepositoryInterface

type OrderRepositoryInterface struct {
	mock.Mock
}

OrderRepositoryInterface is an autogenerated mock type for the OrderRepositoryInterface type

func (*OrderRepositoryInterface) GetByUuid

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

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

type OrderViewServiceInterface

type OrderViewServiceInterface struct {
	mock.Mock
}

OrderViewServiceInterface is an autogenerated mock type for the OrderViewServiceInterface type

func (*OrderViewServiceInterface) CountTransactions

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

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

func (*OrderViewServiceInterface) GetOrderBy

func (_m *OrderViewServiceInterface) GetOrderBy(ctx context.Context, id string, uuid string, merchantId string, receiver interface{}) (interface{}, error)

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

func (*OrderViewServiceInterface) GetPaylinkStat

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

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

func (*OrderViewServiceInterface) GetPaylinkStatByCountry

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

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

func (*OrderViewServiceInterface) GetPaylinkStatByDate

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

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

func (*OrderViewServiceInterface) GetPaylinkStatByReferrer

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

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

func (*OrderViewServiceInterface) GetPaylinkStatByUtm

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

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

func (*OrderViewServiceInterface) GetRoyaltySummary

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

func (*OrderViewServiceInterface) GetTransactionsPrivate

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

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

func (*OrderViewServiceInterface) GetTransactionsPublic

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

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

type PaylinkServiceInterface

type PaylinkServiceInterface struct {
	mock.Mock
}

PaylinkServiceInterface is an autogenerated mock type for the PaylinkServiceInterface type

func (*PaylinkServiceInterface) CountByQuery

func (_m *PaylinkServiceInterface) CountByQuery(ctx context.Context, query primitive.M) (int64, error)

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

func (*PaylinkServiceInterface) Delete

func (_m *PaylinkServiceInterface) Delete(ctx context.Context, id string, merchantId string) error

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

func (*PaylinkServiceInterface) GetById

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

func (*PaylinkServiceInterface) GetByIdAndMerchant

func (_m *PaylinkServiceInterface) GetByIdAndMerchant(ctx context.Context, id string, merchantId string) (*paylink.Paylink, error)

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

func (*PaylinkServiceInterface) GetListByQuery

func (_m *PaylinkServiceInterface) GetListByQuery(ctx context.Context, query primitive.M, limit int64, offset int64) ([]*paylink.Paylink, error)

GetListByQuery provides a mock function with given fields: ctx, query, limit, offset

func (*PaylinkServiceInterface) GetPaylinkVisits

func (_m *PaylinkServiceInterface) GetPaylinkVisits(ctx context.Context, id string, from int64, to int64) (int64, error)

GetPaylinkVisits provides a mock function with given fields: ctx, id, from, to

func (*PaylinkServiceInterface) GetUrl

func (_m *PaylinkServiceInterface) GetUrl(ctx context.Context, id string, merchantId string, urlMask string, utmSource string, utmMedium string, utmCampaign string) (string, error)

GetUrl provides a mock function with given fields: ctx, id, merchantId, urlMask, utmSource, utmMedium, utmCampaign

func (*PaylinkServiceInterface) IncrVisits

func (_m *PaylinkServiceInterface) IncrVisits(ctx context.Context, id string) error

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

func (*PaylinkServiceInterface) Insert

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

func (*PaylinkServiceInterface) Update

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

func (*PaylinkServiceInterface) UpdatePaylinkTotalStat

func (_m *PaylinkServiceInterface) UpdatePaylinkTotalStat(ctx context.Context, id string, merchantId string) error

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

type PaymentChannelCostMerchantInterface

type PaymentChannelCostMerchantInterface struct {
	mock.Mock
}

PaymentChannelCostMerchantInterface is an autogenerated mock type for the PaymentChannelCostMerchantInterface type

func (*PaymentChannelCostMerchantInterface) Delete

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

func (*PaymentChannelCostMerchantInterface) Get

func (_m *PaymentChannelCostMerchantInterface) Get(ctx context.Context, merchantId string, name string, payoutCurrency string, region string, country string, mccCode string) ([]*pkg.PaymentChannelCostMerchantSet, error)

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

func (*PaymentChannelCostMerchantInterface) GetAllForMerchant

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

func (*PaymentChannelCostMerchantInterface) GetById

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

func (*PaymentChannelCostMerchantInterface) MultipleInsert

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

func (*PaymentChannelCostMerchantInterface) Update

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

type PaymentChannelCostSystemInterface

type PaymentChannelCostSystemInterface struct {
	mock.Mock
}

PaymentChannelCostSystemInterface is an autogenerated mock type for the PaymentChannelCostSystemInterface type

func (*PaymentChannelCostSystemInterface) Delete

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

func (*PaymentChannelCostSystemInterface) Get

func (_m *PaymentChannelCostSystemInterface) Get(ctx context.Context, name string, region string, country string, mccCode string, operatingCompanyId string) (*billing.PaymentChannelCostSystem, error)

Get provides a mock function with given fields: ctx, name, region, country, mccCode, operatingCompanyId

func (*PaymentChannelCostSystemInterface) GetAll

GetAll provides a mock function with given fields: ctx

func (*PaymentChannelCostSystemInterface) GetById

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

func (*PaymentChannelCostSystemInterface) MultipleInsert

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

func (*PaymentChannelCostSystemInterface) Update

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

type PaymentMethodInterface

type PaymentMethodInterface struct {
	mock.Mock
}

PaymentMethodInterface is an autogenerated mock type for the PaymentMethodInterface type

func (*PaymentMethodInterface) GetAll

GetAll provides a mock function with given fields: ctx

func (*PaymentMethodInterface) GetByGroupAndCurrency

func (_m *PaymentMethodInterface) GetByGroupAndCurrency(ctx context.Context, project *billing.Project, group string, currency string) (*billing.PaymentMethod, error)

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

func (*PaymentMethodInterface) GetById

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

func (*PaymentMethodInterface) GetPaymentSettings

func (_m *PaymentMethodInterface) GetPaymentSettings(paymentMethod *billing.PaymentMethod, currency string, mccCode string, operatingCompanyId string, paymentMethodBrand string, project *billing.Project) (*billing.PaymentMethodParams, error)

GetPaymentSettings provides a mock function with given fields: paymentMethod, currency, mccCode, operatingCompanyId, paymentMethodBrand, project

func (*PaymentMethodInterface) Insert

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

func (*PaymentMethodInterface) ListByParams

func (_m *PaymentMethodInterface) ListByParams(ctx context.Context, project *billing.Project, currency string, mccCode string, operatingCompanyId string) ([]*billing.PaymentMethod, error)

ListByParams provides a mock function with given fields: ctx, project, currency, mccCode, operatingCompanyId

func (*PaymentMethodInterface) MultipleInsert

func (_m *PaymentMethodInterface) MultipleInsert(_a0 context.Context, _a1 []*billing.PaymentMethod) error

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

func (*PaymentMethodInterface) Update

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

type PaymentMinLimitSystemInterface

type PaymentMinLimitSystemInterface struct {
	mock.Mock
}

PaymentMinLimitSystemInterface is an autogenerated mock type for the PaymentMinLimitSystemInterface type

func (*PaymentMinLimitSystemInterface) GetAll

GetAll provides a mock function with given fields: ctx

func (*PaymentMinLimitSystemInterface) GetByCurrency

GetByCurrency provides a mock function with given fields: ctx, currency

func (*PaymentMinLimitSystemInterface) MultipleInsert

func (_m *PaymentMinLimitSystemInterface) MultipleInsert(ctx context.Context, pmlsArray []*billing.PaymentMinLimitSystem) error

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

func (*PaymentMinLimitSystemInterface) Upsert

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

type PaymentSystem

type PaymentSystem struct {
	mock.Mock
}

PaymentSystem is an autogenerated mock type for the PaymentSystem type

func (*PaymentSystem) CreatePayment

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

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

func (*PaymentSystem) CreateRefund

func (_m *PaymentSystem) CreateRefund(order *billing.Order, refund *billing.Refund) error

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

func (*PaymentSystem) GetRecurringId

func (_m *PaymentSystem) GetRecurringId(request proto.Message) string

GetRecurringId provides a mock function with given fields: request

func (*PaymentSystem) IsRecurringCallback

func (_m *PaymentSystem) IsRecurringCallback(request proto.Message) bool

IsRecurringCallback provides a mock function with given fields: request

func (*PaymentSystem) ProcessPayment

func (_m *PaymentSystem) ProcessPayment(order *billing.Order, message proto.Message, raw string, signature string) error

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

func (*PaymentSystem) ProcessRefund

func (_m *PaymentSystem) ProcessRefund(order *billing.Order, refund *billing.Refund, message proto.Message, raw string, signature string) error

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

type PaymentSystemServiceInterface

type PaymentSystemServiceInterface struct {
	mock.Mock
}

PaymentSystemServiceInterface is an autogenerated mock type for the PaymentSystemServiceInterface type

func (*PaymentSystemServiceInterface) GetById

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

func (*PaymentSystemServiceInterface) Insert

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

func (*PaymentSystemServiceInterface) MultipleInsert

func (_m *PaymentSystemServiceInterface) MultipleInsert(_a0 context.Context, _a1 []*billing.PaymentSystem) error

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

func (*PaymentSystemServiceInterface) Update

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

type PayoutDocumentServiceInterface

type PayoutDocumentServiceInterface struct {
	mock.Mock
}

PayoutDocumentServiceInterface is an autogenerated mock type for the PayoutDocumentServiceInterface type

func (*PayoutDocumentServiceInterface) CountByQuery

func (_m *PayoutDocumentServiceInterface) CountByQuery(ctx context.Context, query primitive.M) (int64, error)

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

func (*PayoutDocumentServiceInterface) FindByQuery

func (_m *PayoutDocumentServiceInterface) FindByQuery(ctx context.Context, query primitive.M, sorts []string, limit int64, offset int64) ([]*billing.PayoutDocument, error)

FindByQuery provides a mock function with given fields: ctx, query, sorts, limit, offset

func (*PayoutDocumentServiceInterface) GetBalanceAmount

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

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

func (*PayoutDocumentServiceInterface) GetById

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

func (*PayoutDocumentServiceInterface) GetByIdAndMerchant

func (_m *PayoutDocumentServiceInterface) GetByIdAndMerchant(ctx context.Context, id string, merchantId string) (*billing.PayoutDocument, error)

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

func (*PayoutDocumentServiceInterface) GetLast

func (_m *PayoutDocumentServiceInterface) GetLast(ctx context.Context, merchantId string, currency string) (*billing.PayoutDocument, error)

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

func (*PayoutDocumentServiceInterface) Insert

func (_m *PayoutDocumentServiceInterface) Insert(ctx context.Context, document *billing.PayoutDocument, ip string, source string) error

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

func (*PayoutDocumentServiceInterface) Update

func (_m *PayoutDocumentServiceInterface) Update(ctx context.Context, document *billing.PayoutDocument, ip string, source string) error

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

type PriceGroupServiceInterface

type PriceGroupServiceInterface struct {
	mock.Mock
}

PriceGroupServiceInterface is an autogenerated mock type for the PriceGroupServiceInterface type

func (*PriceGroupServiceInterface) CalculatePriceWithFraction

func (_m *PriceGroupServiceInterface) CalculatePriceWithFraction(_a0 float64, _a1 float64) float64

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

func (*PriceGroupServiceInterface) GetAll

GetAll provides a mock function with given fields: _a0

func (*PriceGroupServiceInterface) GetById

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

func (*PriceGroupServiceInterface) GetByRegion

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

func (*PriceGroupServiceInterface) Insert

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

func (*PriceGroupServiceInterface) MakeCurrencyList

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

func (*PriceGroupServiceInterface) MultipleInsert

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

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

func (*PriceGroupServiceInterface) Update

Update 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 ProductServiceInterface

type ProductServiceInterface struct {
	mock.Mock
}

ProductServiceInterface is an autogenerated mock type for the ProductServiceInterface type

func (*ProductServiceInterface) CountByProjectSku

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

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

func (*ProductServiceInterface) GetById

func (_m *ProductServiceInterface) GetById(_a0 context.Context, _a1 string) (*grpc.Product, error)

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

func (*ProductServiceInterface) List

func (_m *ProductServiceInterface) List(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 int64, _a6 int64, _a7 int32) (int64, []*grpc.Product)

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

func (*ProductServiceInterface) Upsert

func (_m *ProductServiceInterface) Upsert(ctx context.Context, product *grpc.Product) error

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

type RepositoryServiceEmpty

type RepositoryServiceEmpty struct{}

func (*RepositoryServiceEmpty) DeleteSavedCard

func (*RepositoryServiceEmpty) FindSavedCardById

func (*RepositoryServiceEmpty) FindSavedCards

func (*RepositoryServiceEmpty) InsertSavedCard

type RepositoryServiceError

type RepositoryServiceError struct{}

func (*RepositoryServiceError) DeleteSavedCard

func (*RepositoryServiceError) FindSavedCardById

func (*RepositoryServiceError) FindSavedCards

func (*RepositoryServiceError) InsertSavedCard

type RepositoryServiceOk

type RepositoryServiceOk struct{}

func (*RepositoryServiceOk) DeleteSavedCard

func (*RepositoryServiceOk) FindSavedCardById

func (r *RepositoryServiceOk) FindSavedCardById(
	ctx context.Context,
	in *repository.FindByStringValue,
	opts ...client.CallOption,
) (*entity.SavedCard, error)

func (*RepositoryServiceOk) FindSavedCards

func (*RepositoryServiceOk) InsertSavedCard

type RoyaltyReportServiceInterface

type RoyaltyReportServiceInterface struct {
	mock.Mock
}

RoyaltyReportServiceInterface is an autogenerated mock type for the RoyaltyReportServiceInterface type

func (*RoyaltyReportServiceInterface) GetBalanceAmount

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

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

func (*RoyaltyReportServiceInterface) GetById

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

func (*RoyaltyReportServiceInterface) GetByPayoutId

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

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

func (*RoyaltyReportServiceInterface) GetNonPayoutReports

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

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

func (*RoyaltyReportServiceInterface) GetReportExists

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

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

func (*RoyaltyReportServiceInterface) Insert

func (_m *RoyaltyReportServiceInterface) Insert(ctx context.Context, document *billing.RoyaltyReport, ip string, source string) error

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

func (*RoyaltyReportServiceInterface) SetPaid

func (_m *RoyaltyReportServiceInterface) SetPaid(ctx context.Context, reportIds []string, payoutDocumentId string, ip string, source string) error

SetPaid provides a mock function with given fields: ctx, reportIds, payoutDocumentId, ip, source

func (*RoyaltyReportServiceInterface) SetPayoutDocumentId

func (_m *RoyaltyReportServiceInterface) SetPayoutDocumentId(ctx context.Context, reportIds []string, payoutDocumentId string, ip string, source string) error

SetPayoutDocumentId provides a mock function with given fields: ctx, reportIds, payoutDocumentId, ip, source

func (*RoyaltyReportServiceInterface) UnsetPaid

func (_m *RoyaltyReportServiceInterface) UnsetPaid(ctx context.Context, reportIds []string, ip string, source string) error

UnsetPaid provides a mock function with given fields: ctx, reportIds, ip, source

func (*RoyaltyReportServiceInterface) UnsetPayoutDocumentId

func (_m *RoyaltyReportServiceInterface) UnsetPayoutDocumentId(ctx context.Context, reportIds []string, ip string, source string) error

UnsetPayoutDocumentId provides a mock function with given fields: ctx, reportIds, ip, source

func (*RoyaltyReportServiceInterface) Update

func (_m *RoyaltyReportServiceInterface) Update(ctx context.Context, document *billing.RoyaltyReport, ip string, source string) error

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

type TaxServiceOkMock

type TaxServiceOkMock struct{}

func (*TaxServiceOkMock) CreateOrUpdate

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

func (*TaxServiceOkMock) DeleteRateById

func (m *TaxServiceOkMock) DeleteRateById(
	ctx context.Context,
	in *tax_service.DeleteRateRequest,
	opts ...client.CallOption,
) (*tax_service.DeleteRateResponse, error)

func (*TaxServiceOkMock) GetRate

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

func (*TaxServiceOkMock) GetRates

func (m *TaxServiceOkMock) GetRates(
	ctx context.Context,
	in *tax_service.GetRatesRequest,
	opts ...client.CallOption,
) (*tax_service.GetRatesResponse, error)

type TransportCardPayOk

type TransportCardPayOk struct {
	Transport http.RoundTripper
}

func (*TransportCardPayOk) RoundTrip

func (h *TransportCardPayOk) RoundTrip(req *http.Request) (*http.Response, error)

type TransportStatusError

type TransportStatusError struct {
	Transport http.RoundTripper
}

func (*TransportStatusError) RoundTrip

func (h *TransportStatusError) RoundTrip(_ *http.Request) (*http.Response, error)

type TransportStatusOk

type TransportStatusOk struct {
	Transport http.RoundTripper
	Err       error
}

func (*TransportStatusOk) RoundTrip

func (h *TransportStatusOk) RoundTrip(req *http.Request) (*http.Response, error)

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

type UserRoleServiceInterface

type UserRoleServiceInterface struct {
	mock.Mock
}

UserRoleServiceInterface is an autogenerated mock type for the UserRoleServiceInterface type

func (*UserRoleServiceInterface) AddAdminUser

func (_m *UserRoleServiceInterface) AddAdminUser(_a0 context.Context, _a1 *billing.UserRole) error

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

func (*UserRoleServiceInterface) AddMerchantUser

func (_m *UserRoleServiceInterface) AddMerchantUser(_a0 context.Context, _a1 *billing.UserRole) error

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

func (*UserRoleServiceInterface) DeleteAdminUser

func (_m *UserRoleServiceInterface) DeleteAdminUser(_a0 context.Context, _a1 *billing.UserRole) error

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

func (*UserRoleServiceInterface) DeleteMerchantUser

func (_m *UserRoleServiceInterface) DeleteMerchantUser(_a0 context.Context, _a1 *billing.UserRole) error

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

func (*UserRoleServiceInterface) GetAdminUserByEmail

func (_m *UserRoleServiceInterface) GetAdminUserByEmail(_a0 context.Context, _a1 string) (*billing.UserRole, error)

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

func (*UserRoleServiceInterface) GetAdminUserById

func (_m *UserRoleServiceInterface) GetAdminUserById(_a0 context.Context, _a1 string) (*billing.UserRole, error)

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

func (*UserRoleServiceInterface) GetAdminUserByUserId

func (_m *UserRoleServiceInterface) GetAdminUserByUserId(_a0 context.Context, _a1 string) (*billing.UserRole, error)

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

func (*UserRoleServiceInterface) GetMerchantOwner

func (_m *UserRoleServiceInterface) GetMerchantOwner(_a0 context.Context, _a1 string) (*billing.UserRole, error)

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

func (*UserRoleServiceInterface) GetMerchantUserByEmail

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

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

func (*UserRoleServiceInterface) GetMerchantUserById

func (_m *UserRoleServiceInterface) GetMerchantUserById(_a0 context.Context, _a1 string) (*billing.UserRole, error)

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

func (*UserRoleServiceInterface) GetMerchantUserByUserId

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

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

func (*UserRoleServiceInterface) GetMerchantsForUser

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

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

func (*UserRoleServiceInterface) GetSystemAdmin

func (_m *UserRoleServiceInterface) GetSystemAdmin(_a0 context.Context) (*billing.UserRole, error)

GetSystemAdmin provides a mock function with given fields: _a0

func (*UserRoleServiceInterface) GetUsersForAdmin

func (_m *UserRoleServiceInterface) GetUsersForAdmin(_a0 context.Context) ([]*billing.UserRole, error)

GetUsersForAdmin provides a mock function with given fields: _a0

func (*UserRoleServiceInterface) GetUsersForMerchant

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

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

func (*UserRoleServiceInterface) UpdateAdminUser

func (_m *UserRoleServiceInterface) UpdateAdminUser(_a0 context.Context, _a1 *billing.UserRole) error

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

func (*UserRoleServiceInterface) UpdateMerchantUser

func (_m *UserRoleServiceInterface) UpdateMerchantUser(_a0 context.Context, _a1 *billing.UserRole) error

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

Jump to

Keyboard shortcuts

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