Documentation ¶
Index ¶
- Constants
- Variables
- func NewBrokerMockError() rabbitmq.BrokerInterface
- func NewBrokerMockOk() rabbitmq.BrokerInterface
- func NewCurrencyServiceMockError() currenciespb.CurrencyRatesService
- func NewCurrencyServiceMockOk() currenciespb.CurrencyRatesService
- func NewDocumentSignerMockOk() *mocks.DocumentSignerService
- func NewFormatterOK() paysuper_i18n.Formatter
- func NewGeoIpServiceTestError() proto.GeoIpService
- func NewGeoIpServiceTestOk() proto.GeoIpService
- func NewGeoIpServiceTestOkWithoutSubdivision() proto.GeoIpService
- func NewNotifierOk() notifierpb.NotifierService
- func NewRepositoryServiceEmpty() recurringpb.RepositoryService
- func NewRepositoryServiceError() recurringpb.RepositoryService
- func NewRepositoryServiceOk() recurringpb.RepositoryService
- func NewTaxServiceOkMock() taxpb.TaxService
- func NewTestRedis() *redismock.ClientMock
- type AccountingEntryRepositoryInterface
- func (_m *AccountingEntryRepositoryInterface) ApplyObjectSource(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, ...) (*billingpb.AccountingEntry, error)
- func (_m *AccountingEntryRepositoryInterface) BulkWrite(_a0 context.Context, _a1 []*billingpb.AccountingEntry) error
- func (_m *AccountingEntryRepositoryInterface) DeleteBySource(_a0 context.Context, _a1 string, _a2 string) error
- func (_m *AccountingEntryRepositoryInterface) FindBySource(_a0 context.Context, _a1 string, _a2 string) ([]*billingpb.AccountingEntry, error)
- func (_m *AccountingEntryRepositoryInterface) FindByTypeCountryDates(_a0 context.Context, _a1 string, _a2 []string, _a3 time.Time, _a4 time.Time) ([]*billingpb.AccountingEntry, error)
- func (_m *AccountingEntryRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.AccountingEntry, error)
- func (_m *AccountingEntryRepositoryInterface) GetByObjectSource(_a0 context.Context, _a1 string, _a2 string, _a3 string) (*billingpb.AccountingEntry, error)
- func (_m *AccountingEntryRepositoryInterface) GetByTypeWithTaxes(_a0 context.Context, _a1 []string) ([]*billingpb.AccountingEntry, error)
- func (_m *AccountingEntryRepositoryInterface) GetCorrectionsForRoyaltyReport(_a0 context.Context, _a1 string, _a2 string, _a3 time.Time, _a4 time.Time) ([]*billingpb.AccountingEntry, error)
- func (_m *AccountingEntryRepositoryInterface) GetDistinctBySourceId(_a0 context.Context) ([]string, error)
- func (_m *AccountingEntryRepositoryInterface) GetRollingReserveForBalance(_a0 context.Context, _a1 string, _a2 string, _a3 []string, _a4 time.Time) ([]*pkg.ReserveQueryResItem, error)
- func (_m *AccountingEntryRepositoryInterface) GetRollingReservesForRoyaltyReport(_a0 context.Context, _a1 string, _a2 string, _a3 []string, _a4 time.Time, ...) ([]*billingpb.AccountingEntry, error)
- func (_m *AccountingEntryRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.AccountingEntry) error
- type AutoincrementRepositoryInterface
- type BankBinRepositoryInterface
- type BrokerInterface
- func (_m *BrokerInterface) Publish(_a0 string, _a1 proto.Message, _a2 amqp.Table) error
- func (_m *BrokerInterface) RegisterSubscriber(_a0 string, _a1 interface{}) error
- func (_m *BrokerInterface) SetExchangeName(_a0 string)
- func (_m *BrokerInterface) SetQueueOptsArgs(args amqp.Table)
- func (_m *BrokerInterface) Subscribe(_a0 chan bool) error
- type BrokerMockError
- func (b *BrokerMockError) Publish(topic string, msg proto.Message, h amqp.Table) (err error)
- func (b *BrokerMockError) RegisterSubscriber(topic string, fn interface{}) error
- func (b *BrokerMockError) SetExchangeName(name string)
- func (b *BrokerMockError) SetQueueOptsArgs(args amqp.Table)
- func (b *BrokerMockError) Subscribe(exit chan bool) error
- type BrokerMockOk
- func (b *BrokerMockOk) Publish(topic string, msg proto.Message, h amqp.Table) error
- func (b *BrokerMockOk) RegisterSubscriber(topic string, fn interface{}) error
- func (b *BrokerMockOk) SetExchangeName(name string)
- func (b *BrokerMockOk) SetQueueOptsArgs(args amqp.Table)
- func (b *BrokerMockOk) Subscribe(exit chan bool) error
- type CacheInterface
- type CentrifugoInterface
- type CountryRepositoryInterface
- func (_m *CountryRepositoryInterface) FindByHighRisk(ctx context.Context, isHighRiskOrder bool) (*billingpb.CountriesList, error)
- func (_m *CountryRepositoryInterface) FindByVatEnabled(_a0 context.Context) (*billingpb.CountriesList, error)
- func (_m *CountryRepositoryInterface) GetAll(_a0 context.Context) (*billingpb.CountriesList, error)
- func (_m *CountryRepositoryInterface) GetByIsoCodeA2(_a0 context.Context, _a1 string) (*billingpb.Country, error)
- func (_m *CountryRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.Country) error
- func (_m *CountryRepositoryInterface) IsTariffRegionSupported(_a0 string) bool
- func (_m *CountryRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.Country) error
- func (_m *CountryRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.Country) error
- type CurrencyServiceMockError
- func (s *CurrencyServiceMockError) AddCommonRateCorrectionRule(ctx context.Context, in *currenciespb.CommonCorrectionRule, ...) (*currenciespb.EmptyResponse, error)
- func (s *CurrencyServiceMockError) AddMerchantRateCorrectionRule(ctx context.Context, in *currenciespb.CorrectionRule, ...) (*currenciespb.EmptyResponse, error)
- func (s *CurrencyServiceMockError) ExchangeCurrencyByDateCommon(ctx context.Context, in *currenciespb.ExchangeCurrencyByDateCommonRequest, ...) (*currenciespb.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockError) ExchangeCurrencyByDateForMerchant(ctx context.Context, in *currenciespb.ExchangeCurrencyByDateForMerchantRequest, ...) (*currenciespb.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockError) ExchangeCurrencyCurrentCommon(ctx context.Context, in *currenciespb.ExchangeCurrencyCurrentCommonRequest, ...) (*currenciespb.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockError) ExchangeCurrencyCurrentForMerchant(ctx context.Context, ...) (*currenciespb.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockError) GetAccountingCurrencies(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesList, error)
- func (s *CurrencyServiceMockError) GetCommonRateCorrectionRule(ctx context.Context, in *currenciespb.CommonCorrectionRuleRequest, ...) (*currenciespb.CorrectionRule, error)
- func (s *CurrencyServiceMockError) GetCurrenciesPrecision(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesPrecisionResponse, error)
- func (s *CurrencyServiceMockError) GetMerchantRateCorrectionRule(ctx context.Context, in *currenciespb.MerchantCorrectionRuleRequest, ...) (*currenciespb.CorrectionRule, error)
- func (s *CurrencyServiceMockError) GetPriceCurrencies(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesList, error)
- func (s *CurrencyServiceMockError) GetRateByDateCommon(ctx context.Context, in *currenciespb.GetRateByDateCommonRequest, ...) (*currenciespb.RateData, error)
- func (s *CurrencyServiceMockError) GetRateByDateForMerchant(ctx context.Context, in *currenciespb.GetRateByDateForMerchantRequest, ...) (*currenciespb.RateData, error)
- func (s *CurrencyServiceMockError) GetRateCurrentCommon(ctx context.Context, in *currenciespb.GetRateCurrentCommonRequest, ...) (*currenciespb.RateData, error)
- func (s *CurrencyServiceMockError) GetRateCurrentForMerchant(ctx context.Context, in *currenciespb.GetRateCurrentForMerchantRequest, ...) (*currenciespb.RateData, error)
- func (s *CurrencyServiceMockError) GetSettlementCurrencies(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesList, error)
- func (s *CurrencyServiceMockError) GetSupportedCurrencies(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesList, error)
- func (s *CurrencyServiceMockError) GetVatCurrencies(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesList, error)
- func (s *CurrencyServiceMockError) SetPaysuperCorrectionCorridor(ctx context.Context, in *currenciespb.CorrectionCorridor, ...) (*currenciespb.EmptyResponse, error)
- type CurrencyServiceMockOk
- func (s *CurrencyServiceMockOk) AddCommonRateCorrectionRule(ctx context.Context, in *currenciespb.CommonCorrectionRule, ...) (*currenciespb.EmptyResponse, error)
- func (s *CurrencyServiceMockOk) AddMerchantRateCorrectionRule(ctx context.Context, in *currenciespb.CorrectionRule, ...) (*currenciespb.EmptyResponse, error)
- func (s *CurrencyServiceMockOk) ExchangeCurrencyByDateCommon(ctx context.Context, in *currenciespb.ExchangeCurrencyByDateCommonRequest, ...) (*currenciespb.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockOk) ExchangeCurrencyByDateForMerchant(ctx context.Context, in *currenciespb.ExchangeCurrencyByDateForMerchantRequest, ...) (*currenciespb.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockOk) ExchangeCurrencyCurrentCommon(ctx context.Context, in *currenciespb.ExchangeCurrencyCurrentCommonRequest, ...) (*currenciespb.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockOk) ExchangeCurrencyCurrentForMerchant(ctx context.Context, ...) (*currenciespb.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockOk) GetAccountingCurrencies(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesList, error)
- func (s *CurrencyServiceMockOk) GetCommonRateCorrectionRule(ctx context.Context, in *currenciespb.CommonCorrectionRuleRequest, ...) (*currenciespb.CorrectionRule, error)
- func (s *CurrencyServiceMockOk) GetCurrenciesPrecision(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesPrecisionResponse, error)
- func (s *CurrencyServiceMockOk) GetMerchantRateCorrectionRule(ctx context.Context, in *currenciespb.MerchantCorrectionRuleRequest, ...) (*currenciespb.CorrectionRule, error)
- func (s *CurrencyServiceMockOk) GetPriceCurrencies(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesList, error)
- func (s *CurrencyServiceMockOk) GetRateByDateCommon(ctx context.Context, in *currenciespb.GetRateByDateCommonRequest, ...) (*currenciespb.RateData, error)
- func (s *CurrencyServiceMockOk) GetRateByDateForMerchant(ctx context.Context, in *currenciespb.GetRateByDateForMerchantRequest, ...) (*currenciespb.RateData, error)
- func (s *CurrencyServiceMockOk) GetRateCurrentCommon(ctx context.Context, in *currenciespb.GetRateCurrentCommonRequest, ...) (*currenciespb.RateData, error)
- func (s *CurrencyServiceMockOk) GetRateCurrentForMerchant(ctx context.Context, in *currenciespb.GetRateCurrentForMerchantRequest, ...) (*currenciespb.RateData, error)
- func (s *CurrencyServiceMockOk) GetSettlementCurrencies(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesList, error)
- func (s *CurrencyServiceMockOk) GetSupportedCurrencies(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesList, error)
- func (s *CurrencyServiceMockOk) GetVatCurrencies(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesList, error)
- func (s *CurrencyServiceMockOk) SetPaysuperCorrectionCorridor(ctx context.Context, in *currenciespb.CorrectionCorridor, ...) (*currenciespb.EmptyResponse, error)
- type CustomerRepositoryInterface
- func (_m *CustomerRepositoryInterface) CountBy(ctx context.Context, query primitive.M) (int64, error)
- func (_m *CustomerRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 *billingpb.TokenUser) (*billingpb.Customer, error)
- func (_m *CustomerRepositoryInterface) FindAll(ctx context.Context) ([]*billingpb.Customer, error)
- func (_m *CustomerRepositoryInterface) FindBy(ctx context.Context, query primitive.M, opts ...*options.FindOptions) ([]*billingpb.Customer, error)
- func (_m *CustomerRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Customer, error)
- func (_m *CustomerRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.Customer) error
- func (_m *CustomerRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.Customer) error
- type DashboardProcessorRepositoryInterface
- func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomerARPPU(ctx context.Context) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomerARPU(ctx context.Context, customerId string) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomerAvgTransactionsCount(ctx context.Context, out interface{}) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomerLTV(ctx context.Context, out interface{}) (interface{}, interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomerTop20(ctx context.Context, out interface{}) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomers(ctx context.Context, out interface{}) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomersChart(ctx context.Context, startDate time.Time, end time.Time) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteCustomersCount(ctx context.Context, out interface{}) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteGrossRevenueAndVatReports(ctx context.Context, out interface{}) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteReport(ctx context.Context, out interface{}, ...) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteRevenueByCountryReport(ctx context.Context, out interface{}) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteRevenueDynamicReport(ctx context.Context, out interface{}) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteSalesTodayReport(ctx context.Context, out interface{}) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteSourcesReport(ctx context.Context, out interface{}) (interface{}, error)
- func (_m *DashboardProcessorRepositoryInterface) ExecuteTotalTransactionsAndArpuReports(ctx context.Context, out interface{}) (interface{}, error)
- type DashboardReportProcessorInterface
- func (_m *DashboardReportProcessorInterface) ExecuteGrossRevenueAndVatReports(_a0 interface{}) (interface{}, error)
- func (_m *DashboardReportProcessorInterface) ExecuteReport(_a0 interface{}) (interface{}, error)
- func (_m *DashboardReportProcessorInterface) ExecuteRevenueByCountryReport(_a0 interface{}) (interface{}, error)
- func (_m *DashboardReportProcessorInterface) ExecuteRevenueDynamicReport(_a0 interface{}) (interface{}, error)
- func (_m *DashboardReportProcessorInterface) ExecuteSalesTodayReport(_a0 interface{}) (interface{}, error)
- func (_m *DashboardReportProcessorInterface) ExecuteSourcesReport(_a0 interface{}) (interface{}, error)
- func (_m *DashboardReportProcessorInterface) ExecuteTotalTransactionsAndArpuReports(_a0 interface{}) (interface{}, error)
- type DashboardRepositoryInterface
- func (_m *DashboardRepositoryInterface) GetBaseReport(ctx context.Context, merchantId string, period string) (*billingpb.DashboardBaseReports, error)
- func (_m *DashboardRepositoryInterface) GetCustomerARPU(ctx context.Context, merchantId string, customerId string) (*billingpb.DashboardAmountItemWithChart, error)
- func (_m *DashboardRepositoryInterface) GetCustomersReport(ctx context.Context, merchantId string, period string) (*billingpb.DashboardCustomerReport, error)
- func (_m *DashboardRepositoryInterface) GetMainReport(ctx context.Context, merchantId string, period string) (*billingpb.DashboardMainReport, error)
- func (_m *DashboardRepositoryInterface) GetRevenueDynamicsReport(ctx context.Context, merchantId string, period string) (*billingpb.DashboardRevenueDynamicReport, error)
- type FeedbackRepositoryInterface
- type GeoIpServiceTestError
- type GeoIpServiceTestOk
- type GeoIpServiceTestOkWithoutSubdivision
- type KeyProductRepositoryInterface
- func (_m *KeyProductRepositoryInterface) CountByProjectIdSku(_a0 context.Context, _a1 string, _a2 string) (int64, error)
- func (_m *KeyProductRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, ...) ([]*billingpb.KeyProduct, error)
- func (_m *KeyProductRepositoryInterface) FindByIdsProjectId(_a0 context.Context, _a1 []string, _a2 string) ([]*billingpb.KeyProduct, error)
- func (_m *KeyProductRepositoryInterface) FindCount(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, ...) (int64, error)
- func (_m *KeyProductRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.KeyProduct, error)
- func (_m *KeyProductRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.KeyProduct) error
- func (_m *KeyProductRepositoryInterface) Upsert(_a0 context.Context, _a1 *billingpb.KeyProduct) error
- type KeyRepositoryInterface
- func (_m *KeyRepositoryInterface) CancelById(_a0 context.Context, _a1 string) (*billingpb.Key, error)
- func (_m *KeyRepositoryInterface) CountKeysByProductPlatform(_a0 context.Context, _a1 string, _a2 string) (int64, error)
- func (_m *KeyRepositoryInterface) FindUnfinished(_a0 context.Context) ([]*billingpb.Key, error)
- func (_m *KeyRepositoryInterface) FinishRedeemById(_a0 context.Context, _a1 string) (*billingpb.Key, error)
- func (_m *KeyRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Key, error)
- func (_m *KeyRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.Key) error
- func (_m *KeyRepositoryInterface) ReserveKey(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 int32) (*billingpb.Key, error)
- type Mapper
- type MerchantBalanceRepositoryInterface
- func (_m *MerchantBalanceRepositoryInterface) CountByIdAndCurrency(_a0 context.Context, _a1 string, _a2 string) (int64, error)
- func (_m *MerchantBalanceRepositoryInterface) GetByIdAndCurrency(_a0 context.Context, _a1 string, _a2 string) (*billingpb.MerchantBalance, error)
- func (_m *MerchantBalanceRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.MerchantBalance) error
- type MerchantBalanceServiceInterface
- type MerchantDocumentRepositoryInterface
- func (_m *MerchantDocumentRepositoryInterface) CountByMerchantId(_a0 context.Context, _a1 string) (int64, error)
- func (_m *MerchantDocumentRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.MerchantDocument, error)
- func (_m *MerchantDocumentRepositoryInterface) GetByMerchantId(_a0 context.Context, _a1 string, _a2 int64, _a3 int64) ([]*billingpb.MerchantDocument, error)
- func (_m *MerchantDocumentRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.MerchantDocument) error
- type MerchantPaymentMethodHistoryRepositoryInterface
- type MerchantPaymentTariffsInterface
- func (_m *MerchantPaymentTariffsInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 float64, ...) ([]*billingpb.MerchantTariffRatesPayment, error)
- func (_m *MerchantPaymentTariffsInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.MerchantTariffRatesPayment) error
- type MerchantRepositoryInterface
- func (_m *MerchantRepositoryInterface) Find(_a0 context.Context, _a1 primitive.M, _a2 []string, _a3 int64, _a4 int64) ([]*billingpb.Merchant, error)
- func (_m *MerchantRepositoryInterface) FindCount(_a0 context.Context, _a1 primitive.M) (int64, error)
- func (_m *MerchantRepositoryInterface) GetAll(ctx context.Context) ([]*billingpb.Merchant, error)
- func (_m *MerchantRepositoryInterface) GetById(ctx context.Context, id string) (*billingpb.Merchant, error)
- func (_m *MerchantRepositoryInterface) GetByUserId(ctx context.Context, id string) (*billingpb.Merchant, error)
- func (_m *MerchantRepositoryInterface) GetCommonById(ctx context.Context, id string) (*billingpb.MerchantCommon, error)
- func (_m *MerchantRepositoryInterface) GetMerchantsWithAutoPayouts(ctx context.Context) ([]*billingpb.Merchant, error)
- func (_m *MerchantRepositoryInterface) Insert(ctx context.Context, merchant *billingpb.Merchant) error
- func (_m *MerchantRepositoryInterface) MultipleInsert(ctx context.Context, merchants []*billingpb.Merchant) error
- func (_m *MerchantRepositoryInterface) Update(ctx context.Context, merchant *billingpb.Merchant) error
- func (_m *MerchantRepositoryInterface) UpdateTariffs(_a0 context.Context, _a1 string, _a2 *billingpb.PaymentChannelCostMerchant) error
- func (_m *MerchantRepositoryInterface) Upsert(ctx context.Context, merchant *billingpb.Merchant) error
- type MerchantTariffsSettingsInterface
- type MoneyBackCostMerchantInterface
- func (_m *MoneyBackCostMerchantInterface) Delete(obj *billingpb.MoneyBackCostMerchant) error
- func (_m *MoneyBackCostMerchantInterface) Get(merchantId string, name string, payoutCurrency string, undoReason string, ...) (*billingpb.MoneyBackCostMerchantList, error)
- func (_m *MoneyBackCostMerchantInterface) GetAllForMerchant(merchantId string) (*billingpb.MoneyBackCostMerchantList, error)
- func (_m *MoneyBackCostMerchantInterface) GetById(id string) (*billingpb.MoneyBackCostMerchant, error)
- func (_m *MoneyBackCostMerchantInterface) MultipleInsert(obj []*billingpb.MoneyBackCostMerchant) error
- func (_m *MoneyBackCostMerchantInterface) Update(obj *billingpb.MoneyBackCostMerchant) error
- type MoneyBackCostMerchantRepositoryInterface
- func (_m *MoneyBackCostMerchantRepositoryInterface) Delete(_a0 context.Context, _a1 *billingpb.MoneyBackCostMerchant) error
- func (_m *MoneyBackCostMerchantRepositoryInterface) DeleteAndInsertMany(ctx context.Context, merchantId string, ...) error
- func (_m *MoneyBackCostMerchantRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, ...) ([]*pkg.MoneyBackCostMerchantSet, error)
- func (_m *MoneyBackCostMerchantRepositoryInterface) GetAllForMerchant(_a0 context.Context, _a1 string) (*billingpb.MoneyBackCostMerchantList, error)
- func (_m *MoneyBackCostMerchantRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.MoneyBackCostMerchant, error)
- func (_m *MoneyBackCostMerchantRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.MoneyBackCostMerchant) error
- func (_m *MoneyBackCostMerchantRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.MoneyBackCostMerchant) error
- func (_m *MoneyBackCostMerchantRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.MoneyBackCostMerchant) error
- type MoneyBackCostSystemInterface
- func (_m *MoneyBackCostSystemInterface) Delete(obj *billingpb.MoneyBackCostSystem) error
- func (_m *MoneyBackCostSystemInterface) Get(name string, payoutCurrency string, undoReason string, region string, ...) ([]*pkg.MoneyBackCostSystemSet, error)
- func (_m *MoneyBackCostSystemInterface) GetAll() (*billingpb.MoneyBackCostSystemList, error)
- func (_m *MoneyBackCostSystemInterface) GetById(id string) (*billingpb.MoneyBackCostSystem, error)
- func (_m *MoneyBackCostSystemInterface) MultipleInsert(obj []*billingpb.MoneyBackCostSystem) error
- func (_m *MoneyBackCostSystemInterface) Update(obj *billingpb.MoneyBackCostSystem) error
- type MoneyBackCostSystemRepositoryInterface
- func (_m *MoneyBackCostSystemRepositoryInterface) Delete(_a0 context.Context, _a1 *billingpb.MoneyBackCostSystem) error
- func (_m *MoneyBackCostSystemRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, ...) ([]*pkg.MoneyBackCostSystemSet, error)
- func (_m *MoneyBackCostSystemRepositoryInterface) GetAll(_a0 context.Context) (*billingpb.MoneyBackCostSystemList, error)
- func (_m *MoneyBackCostSystemRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.MoneyBackCostSystem, error)
- func (_m *MoneyBackCostSystemRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.MoneyBackCostSystem) error
- func (_m *MoneyBackCostSystemRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.MoneyBackCostSystem) error
- func (_m *MoneyBackCostSystemRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.MoneyBackCostSystem) error
- type NotificationRepositoryInterface
- func (_m *NotificationRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 int32, _a4 []string, ...) ([]*billingpb.Notification, error)
- func (_m *NotificationRepositoryInterface) FindCount(_a0 context.Context, _a1 string, _a2 string, _a3 int32) (int64, error)
- func (_m *NotificationRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Notification, error)
- func (_m *NotificationRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.Notification) error
- func (_m *NotificationRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.Notification) error
- type NotifierOk
- type NotifyRegionRepositoryInterface
- type NotifySalesRepositoryInterface
- type OperatingCompanyInterface
- func (_m *OperatingCompanyInterface) Exists(ctx context.Context, id string) bool
- func (_m *OperatingCompanyInterface) GetAll(ctx context.Context) ([]*billingpb.OperatingCompany, error)
- func (_m *OperatingCompanyInterface) GetById(ctx context.Context, id string) (*billingpb.OperatingCompany, error)
- func (_m *OperatingCompanyInterface) GetByPaymentCountry(ctx context.Context, countryCode string) (*billingpb.OperatingCompany, error)
- func (_m *OperatingCompanyInterface) Upsert(ctx context.Context, oc *billingpb.OperatingCompany) error
- type OperatingCompanyRepositoryInterface
- func (_m *OperatingCompanyRepositoryInterface) Exists(ctx context.Context, id string) bool
- func (_m *OperatingCompanyRepositoryInterface) GetAll(ctx context.Context) ([]*billingpb.OperatingCompany, error)
- func (_m *OperatingCompanyRepositoryInterface) GetById(ctx context.Context, id string) (*billingpb.OperatingCompany, error)
- func (_m *OperatingCompanyRepositoryInterface) GetByPaymentCountry(ctx context.Context, countryCode string) (*billingpb.OperatingCompany, error)
- func (_m *OperatingCompanyRepositoryInterface) Upsert(ctx context.Context, oc *billingpb.OperatingCompany) error
- type OrderRepositoryInterface
- func (_m *OrderRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Order, error)
- func (_m *OrderRepositoryInterface) GetByRefundReceiptNumber(_a0 context.Context, _a1 string) (*billingpb.Order, error)
- func (_m *OrderRepositoryInterface) GetByUuid(_a0 context.Context, _a1 string) (*billingpb.Order, error)
- func (_m *OrderRepositoryInterface) GetByUuidAndMerchantId(ctx context.Context, uuid string, merchantId string) (*billingpb.Order, error)
- func (_m *OrderRepositoryInterface) GetFirstPaymentForMerchant(ctx context.Context, merchantId string) (*billingpb.Order, error)
- func (_m *OrderRepositoryInterface) GetManyBy(ctx context.Context, filter primitive.M, opts ...*options.FindOptions) ([]*billingpb.Order, error)
- func (_m *OrderRepositoryInterface) GetOneBy(ctx context.Context, filter primitive.M, opts ...*options.FindOneOptions) (*billingpb.Order, error)
- func (_m *OrderRepositoryInterface) IncludeOrdersToRoyaltyReport(ctx context.Context, royaltyReportId string, orderIds []primitive.ObjectID) error
- func (_m *OrderRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.Order) error
- func (_m *OrderRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.Order) error
- func (_m *OrderRepositoryInterface) UpdateOrderView(_a0 context.Context, _a1 []string) error
- type OrderViewRepositoryInterface
- func (_m *OrderViewRepositoryInterface) CountTransactions(ctx context.Context, match primitive.M) (int64, error)
- func (_m *OrderViewRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.OrderViewPublic, error)
- func (_m *OrderViewRepositoryInterface) GetCountBy(ctx context.Context, filter primitive.M, opts ...*options.CountOptions) (int64, error)
- func (_m *OrderViewRepositoryInterface) GetManyBy(ctx context.Context, filter primitive.M, opts ...*options.FindOptions) ([]*billingpb.OrderViewPrivate, error)
- func (_m *OrderViewRepositoryInterface) GetPaylinkStat(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*billingpb.StatCommon, error)
- func (_m *OrderViewRepositoryInterface) GetPaylinkStatByCountry(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*billingpb.GroupStatCommon, error)
- func (_m *OrderViewRepositoryInterface) GetPaylinkStatByDate(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*billingpb.GroupStatCommon, error)
- func (_m *OrderViewRepositoryInterface) GetPaylinkStatByReferrer(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*billingpb.GroupStatCommon, error)
- func (_m *OrderViewRepositoryInterface) GetPaylinkStatByUtm(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*billingpb.GroupStatCommon, error)
- func (_m *OrderViewRepositoryInterface) GetPrivateOrderBy(ctx context.Context, id string, uuid string, merchantId string) (*billingpb.OrderViewPrivate, error)
- func (_m *OrderViewRepositoryInterface) GetPublicByOrderId(ctx context.Context, merchantId string) (*billingpb.OrderViewPublic, error)
- func (_m *OrderViewRepositoryInterface) GetPublicOrderBy(ctx context.Context, id string, uuid string, merchantId string) (*billingpb.OrderViewPublic, error)
- func (_m *OrderViewRepositoryInterface) GetRoyaltyForMerchants(_a0 context.Context, _a1 []string, _a2 time.Time, _a3 time.Time) ([]*pkg.RoyaltyReportMerchant, error)
- func (_m *OrderViewRepositoryInterface) GetRoyaltySummary(ctx context.Context, merchantId string, currency string, from time.Time, ...) ([]*billingpb.RoyaltyReportProductSummaryItem, ...)
- func (_m *OrderViewRepositoryInterface) GetRoyaltySummaryRoundedAmounts(ctx context.Context, merchantId string, currency string, from time.Time, ...) ([]*billingpb.RoyaltyReportProductSummaryItem, ...)
- func (_m *OrderViewRepositoryInterface) GetTransactionsPrivate(ctx context.Context, match primitive.M, limit int64, offset int64) ([]*billingpb.OrderViewPrivate, error)
- func (_m *OrderViewRepositoryInterface) GetTransactionsPublic(ctx context.Context, match primitive.M, limit int64, offset int64) ([]*billingpb.OrderViewPublic, error)
- func (_m *OrderViewRepositoryInterface) GetTurnoverSummary(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 time.Time, ...) ([]*pkg.TurnoverQueryResItem, error)
- func (_m *OrderViewRepositoryInterface) GetVatSummary(_a0 context.Context, _a1 string, _a2 string, _a3 bool, _a4 time.Time, ...) ([]*pkg.VatReportQueryResItem, error)
- type PaylinkRepositoryInterface
- func (_m *PaylinkRepositoryInterface) Delete(_a0 context.Context, _a1 *billingpb.Paylink) error
- func (_m *PaylinkRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 int64, _a4 int64) ([]*billingpb.Paylink, error)
- func (_m *PaylinkRepositoryInterface) FindCount(_a0 context.Context, _a1 string, _a2 string) (int64, error)
- func (_m *PaylinkRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Paylink, error)
- func (_m *PaylinkRepositoryInterface) GetByIdAndMerchant(_a0 context.Context, _a1 string, _a2 string) (*billingpb.Paylink, error)
- func (_m *PaylinkRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.Paylink) error
- func (_m *PaylinkRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.Paylink) error
- func (_m *PaylinkRepositoryInterface) UpdateTotalStat(_a0 context.Context, _a1 *billingpb.Paylink) error
- type PaylinkVisitRepositoryInterface
- type PaymentChannelCostMerchantRepositoryInterface
- func (_m *PaymentChannelCostMerchantRepositoryInterface) Delete(ctx context.Context, obj *billingpb.PaymentChannelCostMerchant) error
- func (_m *PaymentChannelCostMerchantRepositoryInterface) DeleteAndInsertMany(ctx context.Context, merchantId string, ...) error
- func (_m *PaymentChannelCostMerchantRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, ...) ([]*pkg.PaymentChannelCostMerchantSet, error)
- func (_m *PaymentChannelCostMerchantRepositoryInterface) GetActiveForMerchant(_a0 context.Context, _a1 string) ([]*billingpb.PaymentChannelCostMerchant, error)
- func (_m *PaymentChannelCostMerchantRepositoryInterface) GetAllForMerchant(_a0 context.Context, _a1 string) ([]*billingpb.PaymentChannelCostMerchant, error)
- func (_m *PaymentChannelCostMerchantRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.PaymentChannelCostMerchant, error)
- func (_m *PaymentChannelCostMerchantRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PaymentChannelCostMerchant) error
- func (_m *PaymentChannelCostMerchantRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.PaymentChannelCostMerchant) error
- func (_m *PaymentChannelCostMerchantRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.PaymentChannelCostMerchant) error
- type PaymentChannelCostSystemRepositoryInterface
- func (_m *PaymentChannelCostSystemRepositoryInterface) Delete(ctx context.Context, obj *billingpb.PaymentChannelCostSystem) error
- func (_m *PaymentChannelCostSystemRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, ...) (*billingpb.PaymentChannelCostSystem, error)
- func (_m *PaymentChannelCostSystemRepositoryInterface) GetAll(_a0 context.Context) ([]*billingpb.PaymentChannelCostSystem, error)
- func (_m *PaymentChannelCostSystemRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.PaymentChannelCostSystem, error)
- func (_m *PaymentChannelCostSystemRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PaymentChannelCostSystem) error
- func (_m *PaymentChannelCostSystemRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.PaymentChannelCostSystem) error
- func (_m *PaymentChannelCostSystemRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.PaymentChannelCostSystem) error
- type PaymentMethodRepositoryInterface
- func (_m *PaymentMethodRepositoryInterface) Delete(_a0 context.Context, _a1 *billingpb.PaymentMethod) error
- func (_m *PaymentMethodRepositoryInterface) FindByName(_a0 context.Context, _a1 string, _a2 []string) ([]*billingpb.PaymentMethod, error)
- func (_m *PaymentMethodRepositoryInterface) GetAll(ctx context.Context) ([]*billingpb.PaymentMethod, error)
- func (_m *PaymentMethodRepositoryInterface) GetByGroupAndCurrency(ctx context.Context, isProduction bool, group string, currency string) (*billingpb.PaymentMethod, error)
- func (_m *PaymentMethodRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.PaymentMethod, error)
- func (_m *PaymentMethodRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PaymentMethod) error
- func (_m *PaymentMethodRepositoryInterface) ListByOrder(ctx context.Context, order *billingpb.Order) ([]*billingpb.PaymentMethod, error)
- func (_m *PaymentMethodRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.PaymentMethod) error
- func (_m *PaymentMethodRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.PaymentMethod) error
- type PaymentMinLimitSystemRepositoryInterface
- func (_m *PaymentMinLimitSystemRepositoryInterface) GetAll(_a0 context.Context) ([]*billingpb.PaymentMinLimitSystem, error)
- func (_m *PaymentMinLimitSystemRepositoryInterface) GetByCurrency(_a0 context.Context, _a1 string) (*billingpb.PaymentMinLimitSystem, error)
- func (_m *PaymentMinLimitSystemRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.PaymentMinLimitSystem) error
- func (_m *PaymentMinLimitSystemRepositoryInterface) Upsert(_a0 context.Context, _a1 *billingpb.PaymentMinLimitSystem) error
- type PaymentSystemInterface
- func (_m *PaymentSystemInterface) CanSaveCard(request protoiface.MessageV1) bool
- func (_m *PaymentSystemInterface) CreatePayment(order *billingpb.Order, successUrl string, failUrl string, ...) (string, error)
- func (_m *PaymentSystemInterface) CreateRecurringSubscription(order *billingpb.Order, subscription *recurringpb.Subscription, ...) (string, error)
- func (_m *PaymentSystemInterface) CreateRefund(order *billingpb.Order, refund *billingpb.Refund) error
- func (_m *PaymentSystemInterface) DeleteRecurringSubscription(order *billingpb.Order, subscription *recurringpb.Subscription) error
- func (_m *PaymentSystemInterface) GetRecurringId(request protoiface.MessageV1) string
- func (_m *PaymentSystemInterface) IsRecurringCallback(request protoiface.MessageV1) bool
- func (_m *PaymentSystemInterface) IsSubscriptionCallback(request protoiface.MessageV1) bool
- func (_m *PaymentSystemInterface) ProcessPayment(order *billingpb.Order, message protoiface.MessageV1, raw string, ...) error
- func (_m *PaymentSystemInterface) ProcessRefund(order *billingpb.Order, refund *billingpb.Refund, message protoiface.MessageV1, ...) error
- type PaymentSystemManagerInterface
- type PaymentSystemRepositoryInterface
- func (_m *PaymentSystemRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.PaymentSystem, error)
- func (_m *PaymentSystemRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PaymentSystem) error
- func (_m *PaymentSystemRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.PaymentSystem) error
- func (_m *PaymentSystemRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.PaymentSystem) error
- type PayoutRepositoryInterface
- func (_m *PayoutRepositoryInterface) Find(ctx context.Context, in *billingpb.GetPayoutDocumentsRequest) ([]*billingpb.PayoutDocument, error)
- func (_m *PayoutRepositoryInterface) FindAll(ctx context.Context) ([]*billingpb.PayoutDocument, error)
- func (_m *PayoutRepositoryInterface) FindCount(ctx context.Context, in *billingpb.GetPayoutDocumentsRequest) (int64, error)
- func (_m *PayoutRepositoryInterface) GetBalanceAmount(_a0 context.Context, _a1 string, _a2 string) (float64, error)
- func (_m *PayoutRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.PayoutDocument, error)
- func (_m *PayoutRepositoryInterface) GetByIdMerchantId(_a0 context.Context, _a1 string, _a2 string) (*billingpb.PayoutDocument, error)
- func (_m *PayoutRepositoryInterface) GetLast(_a0 context.Context, _a1 string, _a2 string) (*billingpb.PayoutDocument, error)
- func (_m *PayoutRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PayoutDocument, _a2 string, _a3 string) error
- func (_m *PayoutRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.PayoutDocument, _a2 string, _a3 string) error
- type PriceGroupRepositoryInterface
- func (_m *PriceGroupRepositoryInterface) GetAll(_a0 context.Context) ([]*billingpb.PriceGroup, error)
- func (_m *PriceGroupRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.PriceGroup, error)
- func (_m *PriceGroupRepositoryInterface) GetByRegion(_a0 context.Context, _a1 string) (*billingpb.PriceGroup, error)
- func (_m *PriceGroupRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PriceGroup) error
- func (_m *PriceGroupRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.PriceGroup) error
- func (_m *PriceGroupRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.PriceGroup) error
- type PriceTableRepositoryInterface
- type PriceTableServiceInterface
- type ProductRepositoryInterface
- func (_m *ProductRepositoryInterface) CountByProject(_a0 context.Context, _a1 string) (int64, error)
- func (_m *ProductRepositoryInterface) CountByProjectSku(_a0 context.Context, _a1 string, _a2 string) (int64, error)
- func (_m *ProductRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 int32, ...) ([]*billingpb.Product, error)
- func (_m *ProductRepositoryInterface) FindCount(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 int32) (int64, error)
- func (_m *ProductRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Product, error)
- func (_m *ProductRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.Product) error
- func (_m *ProductRepositoryInterface) Upsert(ctx context.Context, product *billingpb.Product) error
- type ProjectRepositoryInterface
- func (_m *ProjectRepositoryInterface) CountByMerchantId(_a0 context.Context, _a1 string) (int64, error)
- func (_m *ProjectRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 []int32, _a4 int64, _a5 int64, ...) ([]*billingpb.Project, error)
- func (_m *ProjectRepositoryInterface) FindCount(_a0 context.Context, _a1 string, _a2 string, _a3 []int32) (int64, error)
- func (_m *ProjectRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Project, error)
- func (_m *ProjectRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.Project) error
- func (_m *ProjectRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.Project) error
- func (_m *ProjectRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.Project) error
- type RefundRepositoryInterface
- func (_m *RefundRepositoryInterface) CountByOrderUuid(_a0 context.Context, _a1 string) (int64, error)
- func (_m *RefundRepositoryInterface) FindByOrderUuid(_a0 context.Context, _a1 string, _a2 int64, _a3 int64) ([]*billingpb.Refund, error)
- func (_m *RefundRepositoryInterface) GetAmountByOrderId(_a0 context.Context, _a1 string) (float64, error)
- func (_m *RefundRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Refund, error)
- func (_m *RefundRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.Refund) error
- func (_m *RefundRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.Refund) error
- type RepositoryServiceEmpty
- func (r *RepositoryServiceEmpty) AddSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.AddSubscriptionResponse, error)
- func (r *RepositoryServiceEmpty) DeleteSavedCard(ctx context.Context, in *recurringpb.DeleteSavedCardRequest, ...) (*recurringpb.DeleteSavedCardResponse, error)
- func (r *RepositoryServiceEmpty) DeleteSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.DeleteSubscriptionResponse, error)
- func (r *RepositoryServiceEmpty) FindSavedCardById(ctx context.Context, in *recurringpb.FindByStringValue, ...) (*recurringpb.SavedCard, error)
- func (r *RepositoryServiceEmpty) FindSavedCards(ctx context.Context, in *recurringpb.SavedCardRequest, ...) (*recurringpb.SavedCardList, error)
- func (r *RepositoryServiceEmpty) FindSubscriptions(ctx context.Context, in *recurringpb.FindSubscriptionsRequest, ...) (*recurringpb.FindSubscriptionsResponse, error)
- func (r *RepositoryServiceEmpty) GetSubscription(ctx context.Context, in *recurringpb.GetSubscriptionRequest, ...) (*recurringpb.GetSubscriptionResponse, error)
- func (r *RepositoryServiceEmpty) InsertSavedCard(ctx context.Context, in *recurringpb.SavedCardRequest, ...) (*recurringpb.Result, error)
- func (r *RepositoryServiceEmpty) UpdateSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.UpdateSubscriptionResponse, error)
- type RepositoryServiceError
- func (r *RepositoryServiceError) AddSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.AddSubscriptionResponse, error)
- func (r *RepositoryServiceError) DeleteSavedCard(ctx context.Context, in *recurringpb.DeleteSavedCardRequest, ...) (*recurringpb.DeleteSavedCardResponse, error)
- func (r *RepositoryServiceError) DeleteSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.DeleteSubscriptionResponse, error)
- func (r *RepositoryServiceError) FindSavedCardById(ctx context.Context, in *recurringpb.FindByStringValue, ...) (*recurringpb.SavedCard, error)
- func (r *RepositoryServiceError) FindSavedCards(ctx context.Context, in *recurringpb.SavedCardRequest, ...) (*recurringpb.SavedCardList, error)
- func (r *RepositoryServiceError) FindSubscriptions(ctx context.Context, in *recurringpb.FindSubscriptionsRequest, ...) (*recurringpb.FindSubscriptionsResponse, error)
- func (r *RepositoryServiceError) GetSubscription(ctx context.Context, in *recurringpb.GetSubscriptionRequest, ...) (*recurringpb.GetSubscriptionResponse, error)
- func (r *RepositoryServiceError) InsertSavedCard(ctx context.Context, in *recurringpb.SavedCardRequest, ...) (*recurringpb.Result, error)
- func (r *RepositoryServiceError) UpdateSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.UpdateSubscriptionResponse, error)
- type RepositoryServiceOk
- func (r *RepositoryServiceOk) AddSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.AddSubscriptionResponse, error)
- func (r *RepositoryServiceOk) DeleteSavedCard(ctx context.Context, in *recurringpb.DeleteSavedCardRequest, ...) (*recurringpb.DeleteSavedCardResponse, error)
- func (r *RepositoryServiceOk) DeleteSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.DeleteSubscriptionResponse, error)
- func (r *RepositoryServiceOk) FindSavedCardById(ctx context.Context, in *recurringpb.FindByStringValue, ...) (*recurringpb.SavedCard, error)
- func (r *RepositoryServiceOk) FindSavedCards(ctx context.Context, in *recurringpb.SavedCardRequest, ...) (*recurringpb.SavedCardList, error)
- func (r *RepositoryServiceOk) FindSubscriptions(ctx context.Context, in *recurringpb.FindSubscriptionsRequest, ...) (*recurringpb.FindSubscriptionsResponse, error)
- func (r *RepositoryServiceOk) GetSubscription(ctx context.Context, in *recurringpb.GetSubscriptionRequest, ...) (*recurringpb.GetSubscriptionResponse, error)
- func (r *RepositoryServiceOk) InsertSavedCard(ctx context.Context, in *recurringpb.SavedCardRequest, ...) (*recurringpb.Result, error)
- func (r *RepositoryServiceOk) UpdateSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.UpdateSubscriptionResponse, error)
- type RoyaltyReportRepositoryInterface
- func (_m *RoyaltyReportRepositoryInterface) FindByMerchantStatusDates(ctx context.Context, merchantId string, statuses []string, dateFrom string, ...) ([]*billingpb.RoyaltyReport, error)
- func (_m *RoyaltyReportRepositoryInterface) FindCountByMerchantStatusDates(ctx context.Context, merchantId string, statuses []string, dateFrom string, ...) (int64, error)
- func (_m *RoyaltyReportRepositoryInterface) GetAll(ctx context.Context) ([]*billingpb.RoyaltyReport, error)
- func (_m *RoyaltyReportRepositoryInterface) GetAllRoyaltyReportFinanceItems(royaltyReportId string) []*postmarkpb.PayloadAttachment
- func (_m *RoyaltyReportRepositoryInterface) GetBalanceAmount(ctx context.Context, merchantId string, currency string) (float64, error)
- func (_m *RoyaltyReportRepositoryInterface) GetByAcceptedExpireWithStatus(_a0 context.Context, _a1 time.Time, _a2 string) ([]*billingpb.RoyaltyReport, error)
- func (_m *RoyaltyReportRepositoryInterface) GetById(ctx context.Context, id string) (*billingpb.RoyaltyReport, error)
- func (_m *RoyaltyReportRepositoryInterface) GetByPayoutId(ctx context.Context, payoutId string) ([]*billingpb.RoyaltyReport, error)
- func (_m *RoyaltyReportRepositoryInterface) GetByPeriod(_a0 context.Context, _a1 time.Time, _a2 time.Time) ([]*billingpb.RoyaltyReport, error)
- func (_m *RoyaltyReportRepositoryInterface) GetNonPayoutReports(ctx context.Context, merchantId string, currency string) ([]*billingpb.RoyaltyReport, error)
- func (_m *RoyaltyReportRepositoryInterface) GetReportExists(ctx context.Context, merchantId string, currency string, from time.Time, ...) *billingpb.RoyaltyReport
- func (_m *RoyaltyReportRepositoryInterface) GetRoyaltyHistoryById(ctx context.Context, id string) ([]*billingpb.RoyaltyReportChanges, error)
- func (_m *RoyaltyReportRepositoryInterface) Insert(ctx context.Context, document *billingpb.RoyaltyReport, ip string, ...) error
- func (_m *RoyaltyReportRepositoryInterface) RemoveRoyaltyReportFinanceItems(royaltyReportId string) error
- func (_m *RoyaltyReportRepositoryInterface) SetRoyaltyReportFinanceItem(royaltyReportId string, item *postmarkpb.PayloadAttachment) ([]*postmarkpb.PayloadAttachment, error)
- func (_m *RoyaltyReportRepositoryInterface) Update(ctx context.Context, document *billingpb.RoyaltyReport, ip string, ...) error
- func (_m *RoyaltyReportRepositoryInterface) UpdateMany(ctx context.Context, query primitive.M, set primitive.M) error
- type TaxServiceOkMock
- func (m *TaxServiceOkMock) CreateOrUpdate(ctx context.Context, in *taxpb.TaxRate, opts ...client.CallOption) (*taxpb.TaxRate, error)
- func (m *TaxServiceOkMock) DeleteRateById(ctx context.Context, in *taxpb.DeleteRateRequest, opts ...client.CallOption) (*taxpb.DeleteRateResponse, error)
- func (m *TaxServiceOkMock) GetRate(ctx context.Context, in *taxpb.GeoIdentity, opts ...client.CallOption) (*taxpb.TaxRate, error)
- func (m *TaxServiceOkMock) GetRates(ctx context.Context, in *taxpb.GetRatesRequest, opts ...client.CallOption) (*taxpb.GetRatesResponse, error)
- type TurnoverRepositoryInterface
- func (_m *TurnoverRepositoryInterface) CountAll(_a0 context.Context) (int64, error)
- func (_m *TurnoverRepositoryInterface) Get(_a0 context.Context, _a1 string, _a2 string, _a3 int) (*billingpb.AnnualTurnover, error)
- func (_m *TurnoverRepositoryInterface) Upsert(_a0 context.Context, _a1 *billingpb.AnnualTurnover) error
- type UserProfileRepositoryInterface
- func (_m *UserProfileRepositoryInterface) Add(_a0 context.Context, _a1 *billingpb.UserProfile) error
- func (_m *UserProfileRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.UserProfile, error)
- func (_m *UserProfileRepositoryInterface) GetByUserId(_a0 context.Context, _a1 string) (*billingpb.UserProfile, error)
- func (_m *UserProfileRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.UserProfile) error
- func (_m *UserProfileRepositoryInterface) Upsert(ctx context.Context, profile *billingpb.UserProfile) error
- type UserRoleRepositoryInterface
- func (_m *UserRoleRepositoryInterface) AddAdminUser(_a0 context.Context, _a1 *billingpb.UserRole) error
- func (_m *UserRoleRepositoryInterface) AddMerchantUser(_a0 context.Context, _a1 *billingpb.UserRole) error
- func (_m *UserRoleRepositoryInterface) DeleteAdminUser(_a0 context.Context, _a1 *billingpb.UserRole) error
- func (_m *UserRoleRepositoryInterface) DeleteMerchantUser(_a0 context.Context, _a1 *billingpb.UserRole) error
- func (_m *UserRoleRepositoryInterface) GetAdminUserByEmail(_a0 context.Context, _a1 string) (*billingpb.UserRole, error)
- func (_m *UserRoleRepositoryInterface) GetAdminUserById(_a0 context.Context, _a1 string) (*billingpb.UserRole, error)
- func (_m *UserRoleRepositoryInterface) GetAdminUserByUserId(_a0 context.Context, _a1 string) (*billingpb.UserRole, error)
- func (_m *UserRoleRepositoryInterface) GetMerchantOwner(_a0 context.Context, _a1 string) (*billingpb.UserRole, error)
- func (_m *UserRoleRepositoryInterface) GetMerchantUserByEmail(_a0 context.Context, _a1 string, _a2 string) (*billingpb.UserRole, error)
- func (_m *UserRoleRepositoryInterface) GetMerchantUserById(_a0 context.Context, _a1 string) (*billingpb.UserRole, error)
- func (_m *UserRoleRepositoryInterface) GetMerchantUserByUserId(_a0 context.Context, _a1 string, _a2 string) (*billingpb.UserRole, error)
- func (_m *UserRoleRepositoryInterface) GetMerchantsForUser(_a0 context.Context, _a1 string) ([]*billingpb.UserRole, error)
- func (_m *UserRoleRepositoryInterface) GetSystemAdmin(_a0 context.Context) (*billingpb.UserRole, error)
- func (_m *UserRoleRepositoryInterface) GetUsersForAdmin(_a0 context.Context) ([]*billingpb.UserRole, error)
- func (_m *UserRoleRepositoryInterface) GetUsersForMerchant(_a0 context.Context, _a1 string) ([]*billingpb.UserRole, error)
- func (_m *UserRoleRepositoryInterface) UpdateAdminUser(_a0 context.Context, _a1 *billingpb.UserRole) error
- func (_m *UserRoleRepositoryInterface) UpdateMerchantUser(_a0 context.Context, _a1 *billingpb.UserRole) error
- type VatReportRepositoryInterface
- func (_m *VatReportRepositoryInterface) GetByCountry(_a0 context.Context, _a1 string, _a2 []string, _a3 int64, _a4 int64) ([]*billingpb.VatReport, error)
- func (_m *VatReportRepositoryInterface) GetByCountryPeriod(_a0 context.Context, _a1 string, _a2 time.Time, _a3 time.Time) (*billingpb.VatReport, error)
- func (_m *VatReportRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.VatReport, error)
- func (_m *VatReportRepositoryInterface) GetByStatus(_a0 context.Context, _a1 []string) ([]*billingpb.VatReport, error)
- func (_m *VatReportRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.VatReport) error
- func (_m *VatReportRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.VatReport) error
- type ZipCodeRepositoryInterface
- func (_m *ZipCodeRepositoryInterface) CountByZip(_a0 context.Context, _a1 string, _a2 string) (int64, error)
- func (_m *ZipCodeRepositoryInterface) FindByZipAndCountry(_a0 context.Context, _a1 string, _a2 string, _a3 int64, _a4 int64) ([]*billingpb.ZipCode, error)
- func (_m *ZipCodeRepositoryInterface) GetByZipAndCountry(_a0 context.Context, _a1 string, _a2 string) (*billingpb.ZipCode, error)
- func (_m *ZipCodeRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.ZipCode) error
Constants ¶
const (
SomeError = "some error"
)
Variables ¶
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", }, } )
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
AccountingEntryRepositoryInterface is an autogenerated mock type for the AccountingEntryRepositoryInterface type
func (*AccountingEntryRepositoryInterface) ApplyObjectSource ¶ added in v1.3.0
func (_m *AccountingEntryRepositoryInterface) ApplyObjectSource(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 *billingpb.AccountingEntry) (*billingpb.AccountingEntry, error)
ApplyObjectSource provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5
func (*AccountingEntryRepositoryInterface) BulkWrite ¶ added in v1.3.0
func (_m *AccountingEntryRepositoryInterface) BulkWrite(_a0 context.Context, _a1 []*billingpb.AccountingEntry) error
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
func (_m *AccountingEntryRepositoryInterface) FindBySource(_a0 context.Context, _a1 string, _a2 string) ([]*billingpb.AccountingEntry, error)
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
func (_m *AccountingEntryRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.AccountingEntry, error)
GetById provides a mock function with given fields: _a0, _a1
func (*AccountingEntryRepositoryInterface) GetByObjectSource ¶ added in v1.3.0
func (_m *AccountingEntryRepositoryInterface) GetByObjectSource(_a0 context.Context, _a1 string, _a2 string, _a3 string) (*billingpb.AccountingEntry, error)
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
func (_m *AccountingEntryRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.AccountingEntry) error
MultipleInsert provides a mock function with given fields: _a0, _a1
type AutoincrementRepositoryInterface ¶ added in v1.5.0
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
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
MultipleInsert provides a mock function with given fields: _a0, _a1
type BrokerInterface ¶
BrokerInterface is an autogenerated mock type for the BrokerInterface type
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) 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) 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 ¶
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
type CentrifugoInterface ¶
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
type CountryRepositoryInterface ¶ added in v1.2.0
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
func (_m *CountryRepositoryInterface) FindByVatEnabled(_a0 context.Context) (*billingpb.CountriesList, error)
FindByVatEnabled provides a mock function with given fields: _a0
func (*CountryRepositoryInterface) GetAll ¶ added in v1.2.0
func (_m *CountryRepositoryInterface) GetAll(_a0 context.Context) (*billingpb.CountriesList, error)
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
type CurrencyServiceMockError ¶
type CurrencyServiceMockError struct{}
func (*CurrencyServiceMockError) AddCommonRateCorrectionRule ¶
func (s *CurrencyServiceMockError) AddCommonRateCorrectionRule( ctx context.Context, in *currenciespb.CommonCorrectionRule, opts ...client.CallOption, ) (*currenciespb.EmptyResponse, error)
func (*CurrencyServiceMockError) AddMerchantRateCorrectionRule ¶
func (s *CurrencyServiceMockError) AddMerchantRateCorrectionRule( ctx context.Context, in *currenciespb.CorrectionRule, opts ...client.CallOption, ) (*currenciespb.EmptyResponse, error)
func (*CurrencyServiceMockError) ExchangeCurrencyByDateCommon ¶
func (s *CurrencyServiceMockError) ExchangeCurrencyByDateCommon( ctx context.Context, in *currenciespb.ExchangeCurrencyByDateCommonRequest, opts ...client.CallOption, ) (*currenciespb.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockError) ExchangeCurrencyByDateForMerchant ¶
func (s *CurrencyServiceMockError) ExchangeCurrencyByDateForMerchant( ctx context.Context, in *currenciespb.ExchangeCurrencyByDateForMerchantRequest, opts ...client.CallOption, ) (*currenciespb.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockError) ExchangeCurrencyCurrentCommon ¶
func (s *CurrencyServiceMockError) ExchangeCurrencyCurrentCommon( ctx context.Context, in *currenciespb.ExchangeCurrencyCurrentCommonRequest, opts ...client.CallOption, ) (*currenciespb.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockError) ExchangeCurrencyCurrentForMerchant ¶
func (s *CurrencyServiceMockError) ExchangeCurrencyCurrentForMerchant( ctx context.Context, in *currenciespb.ExchangeCurrencyCurrentForMerchantRequest, opts ...client.CallOption, ) (*currenciespb.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockError) GetAccountingCurrencies ¶
func (s *CurrencyServiceMockError) GetAccountingCurrencies( ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption, ) (*currenciespb.CurrenciesList, error)
func (*CurrencyServiceMockError) GetCommonRateCorrectionRule ¶
func (s *CurrencyServiceMockError) GetCommonRateCorrectionRule( ctx context.Context, in *currenciespb.CommonCorrectionRuleRequest, opts ...client.CallOption, ) (*currenciespb.CorrectionRule, error)
func (*CurrencyServiceMockError) GetCurrenciesPrecision ¶
func (s *CurrencyServiceMockError) GetCurrenciesPrecision(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesPrecisionResponse, error)
func (*CurrencyServiceMockError) GetMerchantRateCorrectionRule ¶
func (s *CurrencyServiceMockError) GetMerchantRateCorrectionRule( ctx context.Context, in *currenciespb.MerchantCorrectionRuleRequest, opts ...client.CallOption, ) (*currenciespb.CorrectionRule, error)
func (*CurrencyServiceMockError) GetPriceCurrencies ¶
func (s *CurrencyServiceMockError) GetPriceCurrencies( ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption, ) (*currenciespb.CurrenciesList, error)
func (*CurrencyServiceMockError) GetRateByDateCommon ¶
func (s *CurrencyServiceMockError) GetRateByDateCommon( ctx context.Context, in *currenciespb.GetRateByDateCommonRequest, opts ...client.CallOption, ) (*currenciespb.RateData, error)
func (*CurrencyServiceMockError) GetRateByDateForMerchant ¶
func (s *CurrencyServiceMockError) GetRateByDateForMerchant( ctx context.Context, in *currenciespb.GetRateByDateForMerchantRequest, opts ...client.CallOption, ) (*currenciespb.RateData, error)
func (*CurrencyServiceMockError) GetRateCurrentCommon ¶
func (s *CurrencyServiceMockError) GetRateCurrentCommon( ctx context.Context, in *currenciespb.GetRateCurrentCommonRequest, opts ...client.CallOption, ) (*currenciespb.RateData, error)
func (*CurrencyServiceMockError) GetRateCurrentForMerchant ¶
func (s *CurrencyServiceMockError) GetRateCurrentForMerchant( ctx context.Context, in *currenciespb.GetRateCurrentForMerchantRequest, opts ...client.CallOption, ) (*currenciespb.RateData, error)
func (*CurrencyServiceMockError) GetSettlementCurrencies ¶
func (s *CurrencyServiceMockError) GetSettlementCurrencies( ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption, ) (*currenciespb.CurrenciesList, error)
func (*CurrencyServiceMockError) GetSupportedCurrencies ¶
func (s *CurrencyServiceMockError) GetSupportedCurrencies( ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption, ) (*currenciespb.CurrenciesList, error)
func (*CurrencyServiceMockError) GetVatCurrencies ¶
func (s *CurrencyServiceMockError) GetVatCurrencies( ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption, ) (*currenciespb.CurrenciesList, error)
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 (s *CurrencyServiceMockOk) AddCommonRateCorrectionRule( ctx context.Context, in *currenciespb.CommonCorrectionRule, opts ...client.CallOption, ) (*currenciespb.EmptyResponse, error)
func (*CurrencyServiceMockOk) AddMerchantRateCorrectionRule ¶
func (s *CurrencyServiceMockOk) AddMerchantRateCorrectionRule( ctx context.Context, in *currenciespb.CorrectionRule, opts ...client.CallOption, ) (*currenciespb.EmptyResponse, error)
func (*CurrencyServiceMockOk) ExchangeCurrencyByDateCommon ¶
func (s *CurrencyServiceMockOk) ExchangeCurrencyByDateCommon( ctx context.Context, in *currenciespb.ExchangeCurrencyByDateCommonRequest, opts ...client.CallOption, ) (*currenciespb.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockOk) ExchangeCurrencyByDateForMerchant ¶
func (s *CurrencyServiceMockOk) ExchangeCurrencyByDateForMerchant( ctx context.Context, in *currenciespb.ExchangeCurrencyByDateForMerchantRequest, opts ...client.CallOption, ) (*currenciespb.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockOk) ExchangeCurrencyCurrentCommon ¶
func (s *CurrencyServiceMockOk) ExchangeCurrencyCurrentCommon( ctx context.Context, in *currenciespb.ExchangeCurrencyCurrentCommonRequest, opts ...client.CallOption, ) (*currenciespb.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockOk) ExchangeCurrencyCurrentForMerchant ¶
func (s *CurrencyServiceMockOk) ExchangeCurrencyCurrentForMerchant( ctx context.Context, in *currenciespb.ExchangeCurrencyCurrentForMerchantRequest, opts ...client.CallOption, ) (*currenciespb.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockOk) GetAccountingCurrencies ¶
func (s *CurrencyServiceMockOk) GetAccountingCurrencies( ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption, ) (*currenciespb.CurrenciesList, error)
func (*CurrencyServiceMockOk) GetCommonRateCorrectionRule ¶
func (s *CurrencyServiceMockOk) GetCommonRateCorrectionRule( ctx context.Context, in *currenciespb.CommonCorrectionRuleRequest, opts ...client.CallOption, ) (*currenciespb.CorrectionRule, error)
func (*CurrencyServiceMockOk) GetCurrenciesPrecision ¶
func (s *CurrencyServiceMockOk) GetCurrenciesPrecision(ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption) (*currenciespb.CurrenciesPrecisionResponse, error)
func (*CurrencyServiceMockOk) GetMerchantRateCorrectionRule ¶
func (s *CurrencyServiceMockOk) GetMerchantRateCorrectionRule( ctx context.Context, in *currenciespb.MerchantCorrectionRuleRequest, opts ...client.CallOption, ) (*currenciespb.CorrectionRule, error)
func (*CurrencyServiceMockOk) GetPriceCurrencies ¶
func (s *CurrencyServiceMockOk) GetPriceCurrencies( ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption, ) (*currenciespb.CurrenciesList, error)
func (*CurrencyServiceMockOk) GetRateByDateCommon ¶
func (s *CurrencyServiceMockOk) GetRateByDateCommon( ctx context.Context, in *currenciespb.GetRateByDateCommonRequest, opts ...client.CallOption, ) (*currenciespb.RateData, error)
func (*CurrencyServiceMockOk) GetRateByDateForMerchant ¶
func (s *CurrencyServiceMockOk) GetRateByDateForMerchant( ctx context.Context, in *currenciespb.GetRateByDateForMerchantRequest, opts ...client.CallOption, ) (*currenciespb.RateData, error)
func (*CurrencyServiceMockOk) GetRateCurrentCommon ¶
func (s *CurrencyServiceMockOk) GetRateCurrentCommon( ctx context.Context, in *currenciespb.GetRateCurrentCommonRequest, opts ...client.CallOption, ) (*currenciespb.RateData, error)
func (*CurrencyServiceMockOk) GetRateCurrentForMerchant ¶
func (s *CurrencyServiceMockOk) GetRateCurrentForMerchant( ctx context.Context, in *currenciespb.GetRateCurrentForMerchantRequest, opts ...client.CallOption, ) (*currenciespb.RateData, error)
func (*CurrencyServiceMockOk) GetSettlementCurrencies ¶
func (s *CurrencyServiceMockOk) GetSettlementCurrencies( ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption, ) (*currenciespb.CurrenciesList, error)
func (*CurrencyServiceMockOk) GetSupportedCurrencies ¶
func (s *CurrencyServiceMockOk) GetSupportedCurrencies( ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption, ) (*currenciespb.CurrenciesList, error)
func (*CurrencyServiceMockOk) GetVatCurrencies ¶
func (s *CurrencyServiceMockOk) GetVatCurrencies( ctx context.Context, in *currenciespb.EmptyRequest, opts ...client.CallOption, ) (*currenciespb.CurrenciesList, error)
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
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
func (_m *CustomerRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 *billingpb.TokenUser) (*billingpb.Customer, error)
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
func (_m *CustomerRepositoryInterface) FindBy(ctx context.Context, query primitive.M, opts ...*options.FindOptions) ([]*billingpb.Customer, error)
FindBy provides a mock function with given fields: ctx, query, opts
func (*CustomerRepositoryInterface) GetById ¶ added in v1.3.0
func (_m *CustomerRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Customer, error)
GetById provides a mock function with given fields: _a0, _a1
type DashboardProcessorRepositoryInterface ¶ added in v1.3.0
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 ¶
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 ¶
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
FeedbackRepositoryInterface is an autogenerated mock type for the FeedbackRepositoryInterface type
func (*FeedbackRepositoryInterface) GetAll ¶ added in v1.3.0
func (_m *FeedbackRepositoryInterface) GetAll(_a0 context.Context) ([]*billingpb.PageReview, error)
GetAll provides a mock function with given fields: _a0
func (*FeedbackRepositoryInterface) Insert ¶ added in v1.3.0
func (_m *FeedbackRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PageReview) error
Insert provides a mock function with given fields: _a0, _a1
type GeoIpServiceTestError ¶
type GeoIpServiceTestError struct{}
func (*GeoIpServiceTestError) GetIpData ¶
func (s *GeoIpServiceTestError) GetIpData( ctx context.Context, in *proto.GeoIpDataRequest, opts ...client.CallOption, ) (*proto.GeoIpDataResponse, error)
type GeoIpServiceTestOk ¶
type GeoIpServiceTestOk struct{}
func (*GeoIpServiceTestOk) GetIpData ¶
func (s *GeoIpServiceTestOk) GetIpData( ctx context.Context, in *proto.GeoIpDataRequest, opts ...client.CallOption, ) (*proto.GeoIpDataResponse, error)
type GeoIpServiceTestOkWithoutSubdivision ¶
type GeoIpServiceTestOkWithoutSubdivision struct{}
func (*GeoIpServiceTestOkWithoutSubdivision) GetIpData ¶
func (s *GeoIpServiceTestOkWithoutSubdivision) GetIpData( ctx context.Context, in *proto.GeoIpDataRequest, opts ...client.CallOption, ) (*proto.GeoIpDataResponse, error)
type KeyProductRepositoryInterface ¶
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 ¶
func (_m *KeyProductRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.KeyProduct, error)
GetById provides a mock function with given fields: _a0, _a1
func (*KeyProductRepositoryInterface) Update ¶
func (_m *KeyProductRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.KeyProduct) error
Update provides a mock function with given fields: _a0, _a1
func (*KeyProductRepositoryInterface) Upsert ¶ added in v1.3.0
func (_m *KeyProductRepositoryInterface) Upsert(_a0 context.Context, _a1 *billingpb.KeyProduct) error
Upsert provides a mock function with given fields: _a0, _a1
type KeyRepositoryInterface ¶
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 ¶
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 ¶
GetById provides a mock function with given fields: _a0, _a1
type Mapper ¶ added in v1.3.0
Mapper is an autogenerated mock type for the Mapper type
func (*Mapper) MapMgoToObject ¶ added in v1.3.0
MapMgoToObject provides a mock function with given fields: obj
func (*Mapper) MapObjectToMgo ¶ added in v1.3.0
MapObjectToMgo provides a mock function with given fields: obj
type MerchantBalanceRepositoryInterface ¶ added in v1.2.0
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
func (_m *MerchantBalanceRepositoryInterface) GetByIdAndCurrency(_a0 context.Context, _a1 string, _a2 string) (*billingpb.MerchantBalance, error)
GetByIdAndCurrency provides a mock function with given fields: _a0, _a1, _a2
func (*MerchantBalanceRepositoryInterface) Insert ¶ added in v1.2.0
func (_m *MerchantBalanceRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.MerchantBalance) error
Insert provides a mock function with given fields: _a0, _a1
type MerchantBalanceServiceInterface ¶
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 ¶
func (_m *MerchantBalanceServiceInterface) Insert(ctx context.Context, document *billingpb.MerchantBalance) error
Insert provides a mock function with given fields: ctx, document
type MerchantDocumentRepositoryInterface ¶ added in v1.10.1
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
func (_m *MerchantDocumentRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.MerchantDocument, error)
GetById provides a mock function with given fields: _a0, _a1
func (*MerchantDocumentRepositoryInterface) GetByMerchantId ¶ added in v1.10.1
func (_m *MerchantDocumentRepositoryInterface) GetByMerchantId(_a0 context.Context, _a1 string, _a2 int64, _a3 int64) ([]*billingpb.MerchantDocument, error)
GetByMerchantId provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*MerchantDocumentRepositoryInterface) Insert ¶ added in v1.10.1
func (_m *MerchantDocumentRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.MerchantDocument) error
Insert provides a mock function with given fields: _a0, _a1
type MerchantPaymentMethodHistoryRepositoryInterface ¶ added in v1.3.0
MerchantPaymentMethodHistoryRepositoryInterface is an autogenerated mock type for the MerchantPaymentMethodHistoryRepositoryInterface type
func (*MerchantPaymentMethodHistoryRepositoryInterface) Insert ¶ added in v1.3.0
func (_m *MerchantPaymentMethodHistoryRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.MerchantPaymentMethodHistory) error
Insert provides a mock function with given fields: _a0, _a1
type MerchantPaymentTariffsInterface ¶ added in v1.3.0
MerchantPaymentTariffsInterface is an autogenerated mock type for the MerchantPaymentTariffsInterface type
func (*MerchantPaymentTariffsInterface) Find ¶ added in v1.3.0
func (_m *MerchantPaymentTariffsInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 float64, _a5 float64) ([]*billingpb.MerchantTariffRatesPayment, error)
Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5
func (*MerchantPaymentTariffsInterface) MultipleInsert ¶ added in v1.3.0
func (_m *MerchantPaymentTariffsInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.MerchantTariffRatesPayment) error
MultipleInsert provides a mock function with given fields: _a0, _a1
type MerchantRepositoryInterface ¶
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) GetById ¶
func (_m *MerchantRepositoryInterface) GetById(ctx context.Context, id string) (*billingpb.Merchant, error)
GetById provides a mock function with given fields: ctx, id
func (*MerchantRepositoryInterface) GetByUserId ¶ added in v1.2.0
func (_m *MerchantRepositoryInterface) GetByUserId(ctx context.Context, id string) (*billingpb.Merchant, error)
GetByUserId provides a mock function with given fields: ctx, id
func (*MerchantRepositoryInterface) GetCommonById ¶
func (_m *MerchantRepositoryInterface) GetCommonById(ctx context.Context, id string) (*billingpb.MerchantCommon, error)
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 ¶
func (_m *MerchantRepositoryInterface) Insert(ctx context.Context, merchant *billingpb.Merchant) error
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 ¶
func (_m *MerchantRepositoryInterface) Update(ctx context.Context, merchant *billingpb.Merchant) error
Update provides a mock function with given fields: ctx, merchant
func (*MerchantRepositoryInterface) UpdateTariffs ¶ added in v1.2.0
func (_m *MerchantRepositoryInterface) UpdateTariffs(_a0 context.Context, _a1 string, _a2 *billingpb.PaymentChannelCostMerchant) error
UpdateTariffs provides a mock function with given fields: _a0, _a1, _a2
type MerchantTariffsSettingsInterface ¶ added in v1.3.0
MerchantTariffsSettingsInterface is an autogenerated mock type for the MerchantTariffsSettingsInterface type
func (*MerchantTariffsSettingsInterface) GetByMccCode ¶ added in v1.3.0
func (_m *MerchantTariffsSettingsInterface) GetByMccCode(ctx context.Context, code string) (*billingpb.MerchantTariffRatesSettings, error)
GetByMccCode provides a mock function with given fields: ctx, code
func (*MerchantTariffsSettingsInterface) Insert ¶ added in v1.3.0
func (_m *MerchantTariffsSettingsInterface) Insert(ctx context.Context, merchant *billingpb.MerchantTariffRatesSettings) error
Insert provides a mock function with given fields: ctx, merchant
type MoneyBackCostMerchantInterface ¶
MoneyBackCostMerchantInterface is an autogenerated mock type for the MoneyBackCostMerchantInterface type
func (*MoneyBackCostMerchantInterface) Delete ¶
func (_m *MoneyBackCostMerchantInterface) Delete(obj *billingpb.MoneyBackCostMerchant) error
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 ¶
func (_m *MoneyBackCostMerchantInterface) GetById(id string) (*billingpb.MoneyBackCostMerchant, error)
GetById provides a mock function with given fields: id
func (*MoneyBackCostMerchantInterface) MultipleInsert ¶
func (_m *MoneyBackCostMerchantInterface) MultipleInsert(obj []*billingpb.MoneyBackCostMerchant) error
MultipleInsert provides a mock function with given fields: obj
func (*MoneyBackCostMerchantInterface) Update ¶
func (_m *MoneyBackCostMerchantInterface) Update(obj *billingpb.MoneyBackCostMerchant) error
Update provides a mock function with given fields: obj
type MoneyBackCostMerchantRepositoryInterface ¶ added in v1.2.0
MoneyBackCostMerchantRepositoryInterface is an autogenerated mock type for the MoneyBackCostMerchantRepositoryInterface type
func (*MoneyBackCostMerchantRepositoryInterface) Delete ¶ added in v1.2.0
func (_m *MoneyBackCostMerchantRepositoryInterface) Delete(_a0 context.Context, _a1 *billingpb.MoneyBackCostMerchant) error
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
func (_m *MoneyBackCostMerchantRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 string, _a6 string, _a7 string, _a8 int32) ([]*pkg.MoneyBackCostMerchantSet, error)
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
func (_m *MoneyBackCostMerchantRepositoryInterface) GetAllForMerchant(_a0 context.Context, _a1 string) (*billingpb.MoneyBackCostMerchantList, error)
GetAllForMerchant provides a mock function with given fields: _a0, _a1
func (*MoneyBackCostMerchantRepositoryInterface) GetById ¶ added in v1.2.0
func (_m *MoneyBackCostMerchantRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.MoneyBackCostMerchant, error)
GetById provides a mock function with given fields: _a0, _a1
func (*MoneyBackCostMerchantRepositoryInterface) Insert ¶ added in v1.2.0
func (_m *MoneyBackCostMerchantRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.MoneyBackCostMerchant) error
Insert provides a mock function with given fields: _a0, _a1
func (*MoneyBackCostMerchantRepositoryInterface) MultipleInsert ¶ added in v1.2.0
func (_m *MoneyBackCostMerchantRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.MoneyBackCostMerchant) error
MultipleInsert provides a mock function with given fields: _a0, _a1
func (*MoneyBackCostMerchantRepositoryInterface) Update ¶ added in v1.2.0
func (_m *MoneyBackCostMerchantRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.MoneyBackCostMerchant) error
Update provides a mock function with given fields: _a0, _a1
type MoneyBackCostSystemInterface ¶
MoneyBackCostSystemInterface is an autogenerated mock type for the MoneyBackCostSystemInterface type
func (*MoneyBackCostSystemInterface) Delete ¶
func (_m *MoneyBackCostSystemInterface) Delete(obj *billingpb.MoneyBackCostSystem) error
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 ¶
func (_m *MoneyBackCostSystemInterface) GetAll() (*billingpb.MoneyBackCostSystemList, error)
GetAll provides a mock function with given fields:
func (*MoneyBackCostSystemInterface) GetById ¶
func (_m *MoneyBackCostSystemInterface) GetById(id string) (*billingpb.MoneyBackCostSystem, error)
GetById provides a mock function with given fields: id
func (*MoneyBackCostSystemInterface) MultipleInsert ¶
func (_m *MoneyBackCostSystemInterface) MultipleInsert(obj []*billingpb.MoneyBackCostSystem) error
MultipleInsert provides a mock function with given fields: obj
func (*MoneyBackCostSystemInterface) Update ¶
func (_m *MoneyBackCostSystemInterface) Update(obj *billingpb.MoneyBackCostSystem) error
Update provides a mock function with given fields: obj
type MoneyBackCostSystemRepositoryInterface ¶ added in v1.2.0
MoneyBackCostSystemRepositoryInterface is an autogenerated mock type for the MoneyBackCostSystemRepositoryInterface type
func (*MoneyBackCostSystemRepositoryInterface) Delete ¶ added in v1.2.0
func (_m *MoneyBackCostSystemRepositoryInterface) Delete(_a0 context.Context, _a1 *billingpb.MoneyBackCostSystem) error
Delete provides a mock function with given fields: _a0, _a1
func (*MoneyBackCostSystemRepositoryInterface) Find ¶ added in v1.2.0
func (_m *MoneyBackCostSystemRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 string, _a6 string, _a7 string, _a8 int32) ([]*pkg.MoneyBackCostSystemSet, error)
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
func (_m *MoneyBackCostSystemRepositoryInterface) GetAll(_a0 context.Context) (*billingpb.MoneyBackCostSystemList, error)
GetAll provides a mock function with given fields: _a0
func (*MoneyBackCostSystemRepositoryInterface) GetById ¶ added in v1.2.0
func (_m *MoneyBackCostSystemRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.MoneyBackCostSystem, error)
GetById provides a mock function with given fields: _a0, _a1
func (*MoneyBackCostSystemRepositoryInterface) Insert ¶ added in v1.2.0
func (_m *MoneyBackCostSystemRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.MoneyBackCostSystem) error
Insert provides a mock function with given fields: _a0, _a1
func (*MoneyBackCostSystemRepositoryInterface) MultipleInsert ¶ added in v1.2.0
func (_m *MoneyBackCostSystemRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.MoneyBackCostSystem) error
MultipleInsert provides a mock function with given fields: _a0, _a1
func (*MoneyBackCostSystemRepositoryInterface) Update ¶ added in v1.2.0
func (_m *MoneyBackCostSystemRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.MoneyBackCostSystem) error
Update provides a mock function with given fields: _a0, _a1
type NotificationRepositoryInterface ¶ added in v1.3.0
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
func (_m *NotificationRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Notification, error)
GetById provides a mock function with given fields: _a0, _a1
func (*NotificationRepositoryInterface) Insert ¶ added in v1.3.0
func (_m *NotificationRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.Notification) error
Insert provides a mock function with given fields: _a0, _a1
func (*NotificationRepositoryInterface) Update ¶ added in v1.3.0
func (_m *NotificationRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.Notification) error
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
func (n NotifierOk) CheckUser(ctx context.Context, in *notifierpb.CheckUserRequest, opts ...client.CallOption) (*notifierpb.CheckUserResponse, error)
type NotifyRegionRepositoryInterface ¶ added in v1.3.0
NotifyRegionRepositoryInterface is an autogenerated mock type for the NotifyRegionRepositoryInterface type
func (*NotifyRegionRepositoryInterface) FindByEmail ¶ added in v1.3.0
func (_m *NotifyRegionRepositoryInterface) FindByEmail(_a0 context.Context, _a1 string) ([]*billingpb.NotifyUserNewRegion, error)
FindByEmail provides a mock function with given fields: _a0, _a1
func (*NotifyRegionRepositoryInterface) Insert ¶ added in v1.3.0
func (_m *NotifyRegionRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.NotifyUserNewRegion) error
Insert provides a mock function with given fields: _a0, _a1
type NotifySalesRepositoryInterface ¶ added in v1.3.0
NotifySalesRepositoryInterface is an autogenerated mock type for the NotifySalesRepositoryInterface type
func (*NotifySalesRepositoryInterface) FindByEmail ¶ added in v1.3.0
func (_m *NotifySalesRepositoryInterface) FindByEmail(_a0 context.Context, _a1 string) ([]*billingpb.NotifyUserSales, error)
FindByEmail provides a mock function with given fields: _a0, _a1
func (*NotifySalesRepositoryInterface) Insert ¶ added in v1.3.0
func (_m *NotifySalesRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.NotifyUserSales) error
Insert provides a mock function with given fields: _a0, _a1
type OperatingCompanyInterface ¶
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 ¶
func (_m *OperatingCompanyInterface) GetAll(ctx context.Context) ([]*billingpb.OperatingCompany, error)
GetAll provides a mock function with given fields: ctx
func (*OperatingCompanyInterface) GetById ¶
func (_m *OperatingCompanyInterface) GetById(ctx context.Context, id string) (*billingpb.OperatingCompany, error)
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 ¶
func (_m *OperatingCompanyInterface) Upsert(ctx context.Context, oc *billingpb.OperatingCompany) error
Upsert provides a mock function with given fields: ctx, oc
type OperatingCompanyRepositoryInterface ¶ added in v1.3.0
OperatingCompanyRepositoryInterface is an autogenerated mock type for the OperatingCompanyRepositoryInterface type
func (*OperatingCompanyRepositoryInterface) Exists ¶ added in v1.3.0
func (_m *OperatingCompanyRepositoryInterface) Exists(ctx context.Context, id string) bool
Exists provides a mock function with given fields: ctx, id
func (*OperatingCompanyRepositoryInterface) GetAll ¶ added in v1.3.0
func (_m *OperatingCompanyRepositoryInterface) GetAll(ctx context.Context) ([]*billingpb.OperatingCompany, error)
GetAll provides a mock function with given fields: ctx
func (*OperatingCompanyRepositoryInterface) GetById ¶ added in v1.3.0
func (_m *OperatingCompanyRepositoryInterface) GetById(ctx context.Context, id string) (*billingpb.OperatingCompany, error)
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
func (_m *OperatingCompanyRepositoryInterface) Upsert(ctx context.Context, oc *billingpb.OperatingCompany) error
Upsert provides a mock function with given fields: ctx, oc
type OrderRepositoryInterface ¶
OrderRepositoryInterface is an autogenerated mock type for the OrderRepositoryInterface type
func (*OrderRepositoryInterface) GetById ¶ added in v1.2.0
func (_m *OrderRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Order, error)
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
func (_m *OrderRepositoryInterface) GetOneBy(ctx context.Context, filter primitive.M, opts ...*options.FindOneOptions) (*billingpb.Order, error)
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
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
func (_m *OrderViewRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.OrderViewPublic, error)
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
func (_m *OrderViewRepositoryInterface) GetManyBy(ctx context.Context, filter primitive.M, opts ...*options.FindOptions) ([]*billingpb.OrderViewPrivate, error)
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
func (_m *OrderViewRepositoryInterface) GetRoyaltySummary(ctx context.Context, merchantId string, currency string, from time.Time, to time.Time) ([]*billingpb.RoyaltyReportProductSummaryItem, *billingpb.RoyaltyReportProductSummaryItem, []primitive.ObjectID, error)
GetRoyaltySummary provides a mock function with given fields: ctx, merchantId, currency, from, to
func (*OrderViewRepositoryInterface) GetRoyaltySummaryRoundedAmounts ¶ added in v1.8.0
func (_m *OrderViewRepositoryInterface) GetRoyaltySummaryRoundedAmounts(ctx context.Context, merchantId string, currency string, from time.Time, to time.Time) ([]*billingpb.RoyaltyReportProductSummaryItem, *billingpb.RoyaltyReportProductSummaryItem, []primitive.ObjectID, error)
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
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
func (_m *PaylinkRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Paylink, error)
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
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
func (_m *PaylinkVisitRepositoryInterface) IncrVisits(ctx context.Context, id string) error
IncrVisits provides a mock function with given fields: ctx, id
type PaymentChannelCostMerchantRepositoryInterface ¶ added in v1.3.0
PaymentChannelCostMerchantRepositoryInterface is an autogenerated mock type for the PaymentChannelCostMerchantRepositoryInterface type
func (*PaymentChannelCostMerchantRepositoryInterface) Delete ¶ added in v1.3.0
func (_m *PaymentChannelCostMerchantRepositoryInterface) Delete(ctx context.Context, obj *billingpb.PaymentChannelCostMerchant) error
Delete provides a mock function with given fields: ctx, obj
func (*PaymentChannelCostMerchantRepositoryInterface) DeleteAndInsertMany ¶ added in v1.3.0
func (_m *PaymentChannelCostMerchantRepositoryInterface) DeleteAndInsertMany(ctx context.Context, merchantId string, tariffs []*billingpb.PaymentChannelCostMerchant) error
DeleteAndInsertMany provides a mock function with given fields: ctx, merchantId, tariffs
func (*PaymentChannelCostMerchantRepositoryInterface) Find ¶ added in v1.3.0
func (_m *PaymentChannelCostMerchantRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 string, _a6 string) ([]*pkg.PaymentChannelCostMerchantSet, error)
Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6
func (*PaymentChannelCostMerchantRepositoryInterface) GetActiveForMerchant ¶ added in v1.10.10
func (_m *PaymentChannelCostMerchantRepositoryInterface) GetActiveForMerchant(_a0 context.Context, _a1 string) ([]*billingpb.PaymentChannelCostMerchant, error)
GetActiveForMerchant provides a mock function with given fields: _a0, _a1
func (*PaymentChannelCostMerchantRepositoryInterface) GetAllForMerchant ¶ added in v1.3.0
func (_m *PaymentChannelCostMerchantRepositoryInterface) GetAllForMerchant(_a0 context.Context, _a1 string) ([]*billingpb.PaymentChannelCostMerchant, error)
GetAllForMerchant provides a mock function with given fields: _a0, _a1
func (*PaymentChannelCostMerchantRepositoryInterface) GetById ¶ added in v1.3.0
func (_m *PaymentChannelCostMerchantRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.PaymentChannelCostMerchant, error)
GetById provides a mock function with given fields: _a0, _a1
func (*PaymentChannelCostMerchantRepositoryInterface) Insert ¶ added in v1.3.0
func (_m *PaymentChannelCostMerchantRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PaymentChannelCostMerchant) error
Insert provides a mock function with given fields: _a0, _a1
func (*PaymentChannelCostMerchantRepositoryInterface) MultipleInsert ¶ added in v1.3.0
func (_m *PaymentChannelCostMerchantRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.PaymentChannelCostMerchant) error
MultipleInsert provides a mock function with given fields: _a0, _a1
func (*PaymentChannelCostMerchantRepositoryInterface) Update ¶ added in v1.3.0
func (_m *PaymentChannelCostMerchantRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.PaymentChannelCostMerchant) error
Update provides a mock function with given fields: _a0, _a1
type PaymentChannelCostSystemRepositoryInterface ¶ added in v1.3.0
PaymentChannelCostSystemRepositoryInterface is an autogenerated mock type for the PaymentChannelCostSystemRepositoryInterface type
func (*PaymentChannelCostSystemRepositoryInterface) Delete ¶ added in v1.3.0
func (_m *PaymentChannelCostSystemRepositoryInterface) Delete(ctx context.Context, obj *billingpb.PaymentChannelCostSystem) error
Delete provides a mock function with given fields: ctx, obj
func (*PaymentChannelCostSystemRepositoryInterface) Find ¶ added in v1.3.0
func (_m *PaymentChannelCostSystemRepositoryInterface) Find(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 string) (*billingpb.PaymentChannelCostSystem, error)
Find provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5
func (*PaymentChannelCostSystemRepositoryInterface) GetAll ¶ added in v1.3.0
func (_m *PaymentChannelCostSystemRepositoryInterface) GetAll(_a0 context.Context) ([]*billingpb.PaymentChannelCostSystem, error)
GetAll provides a mock function with given fields: _a0
func (*PaymentChannelCostSystemRepositoryInterface) GetById ¶ added in v1.3.0
func (_m *PaymentChannelCostSystemRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.PaymentChannelCostSystem, error)
GetById provides a mock function with given fields: _a0, _a1
func (*PaymentChannelCostSystemRepositoryInterface) Insert ¶ added in v1.3.0
func (_m *PaymentChannelCostSystemRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PaymentChannelCostSystem) error
Insert provides a mock function with given fields: _a0, _a1
func (*PaymentChannelCostSystemRepositoryInterface) MultipleInsert ¶ added in v1.3.0
func (_m *PaymentChannelCostSystemRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.PaymentChannelCostSystem) error
MultipleInsert provides a mock function with given fields: _a0, _a1
func (*PaymentChannelCostSystemRepositoryInterface) Update ¶ added in v1.3.0
func (_m *PaymentChannelCostSystemRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.PaymentChannelCostSystem) error
Update provides a mock function with given fields: _a0, _a1
type PaymentMethodRepositoryInterface ¶ added in v1.3.0
PaymentMethodRepositoryInterface is an autogenerated mock type for the PaymentMethodRepositoryInterface type
func (*PaymentMethodRepositoryInterface) Delete ¶ added in v1.3.0
func (_m *PaymentMethodRepositoryInterface) Delete(_a0 context.Context, _a1 *billingpb.PaymentMethod) error
Delete provides a mock function with given fields: _a0, _a1
func (*PaymentMethodRepositoryInterface) FindByName ¶ added in v1.3.0
func (_m *PaymentMethodRepositoryInterface) FindByName(_a0 context.Context, _a1 string, _a2 []string) ([]*billingpb.PaymentMethod, error)
FindByName provides a mock function with given fields: _a0, _a1, _a2
func (*PaymentMethodRepositoryInterface) GetAll ¶ added in v1.3.0
func (_m *PaymentMethodRepositoryInterface) GetAll(ctx context.Context) ([]*billingpb.PaymentMethod, error)
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
func (_m *PaymentMethodRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.PaymentMethod, error)
GetById provides a mock function with given fields: _a0, _a1
func (*PaymentMethodRepositoryInterface) Insert ¶ added in v1.3.0
func (_m *PaymentMethodRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PaymentMethod) error
Insert provides a mock function with given fields: _a0, _a1
func (*PaymentMethodRepositoryInterface) ListByOrder ¶ added in v1.3.0
func (_m *PaymentMethodRepositoryInterface) ListByOrder(ctx context.Context, order *billingpb.Order) ([]*billingpb.PaymentMethod, error)
ListByOrder provides a mock function with given fields: ctx, order
func (*PaymentMethodRepositoryInterface) MultipleInsert ¶ added in v1.3.0
func (_m *PaymentMethodRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.PaymentMethod) error
MultipleInsert provides a mock function with given fields: _a0, _a1
func (*PaymentMethodRepositoryInterface) Update ¶ added in v1.3.0
func (_m *PaymentMethodRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.PaymentMethod) error
Update provides a mock function with given fields: _a0, _a1
type PaymentMinLimitSystemRepositoryInterface ¶ added in v1.3.0
PaymentMinLimitSystemRepositoryInterface is an autogenerated mock type for the PaymentMinLimitSystemRepositoryInterface type
func (*PaymentMinLimitSystemRepositoryInterface) GetAll ¶ added in v1.3.0
func (_m *PaymentMinLimitSystemRepositoryInterface) GetAll(_a0 context.Context) ([]*billingpb.PaymentMinLimitSystem, error)
GetAll provides a mock function with given fields: _a0
func (*PaymentMinLimitSystemRepositoryInterface) GetByCurrency ¶ added in v1.3.0
func (_m *PaymentMinLimitSystemRepositoryInterface) GetByCurrency(_a0 context.Context, _a1 string) (*billingpb.PaymentMinLimitSystem, error)
GetByCurrency provides a mock function with given fields: _a0, _a1
func (*PaymentMinLimitSystemRepositoryInterface) MultipleInsert ¶ added in v1.3.0
func (_m *PaymentMinLimitSystemRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.PaymentMinLimitSystem) error
MultipleInsert provides a mock function with given fields: _a0, _a1
func (*PaymentMinLimitSystemRepositoryInterface) Upsert ¶ added in v1.3.0
func (_m *PaymentMinLimitSystemRepositoryInterface) Upsert(_a0 context.Context, _a1 *billingpb.PaymentMinLimitSystem) error
Upsert provides a mock function with given fields: _a0, _a1
type PaymentSystemInterface ¶ added in v1.8.0
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
PaymentSystemManagerInterface is an autogenerated mock type for the PaymentSystemManagerInterface type
func (*PaymentSystemManagerInterface) GetGateway ¶ added in v1.8.0
func (_m *PaymentSystemManagerInterface) GetGateway(name string) (payment_system.PaymentSystemInterface, error)
GetGateway provides a mock function with given fields: name
type PaymentSystemRepositoryInterface ¶ added in v1.3.0
PaymentSystemRepositoryInterface is an autogenerated mock type for the PaymentSystemRepositoryInterface type
func (*PaymentSystemRepositoryInterface) GetById ¶ added in v1.3.0
func (_m *PaymentSystemRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.PaymentSystem, error)
GetById provides a mock function with given fields: _a0, _a1
func (*PaymentSystemRepositoryInterface) Insert ¶ added in v1.3.0
func (_m *PaymentSystemRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PaymentSystem) error
Insert provides a mock function with given fields: _a0, _a1
func (*PaymentSystemRepositoryInterface) MultipleInsert ¶ added in v1.3.0
func (_m *PaymentSystemRepositoryInterface) MultipleInsert(_a0 context.Context, _a1 []*billingpb.PaymentSystem) error
MultipleInsert provides a mock function with given fields: _a0, _a1
func (*PaymentSystemRepositoryInterface) Update ¶ added in v1.3.0
func (_m *PaymentSystemRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.PaymentSystem) error
Update provides a mock function with given fields: _a0, _a1
type PayoutRepositoryInterface ¶ added in v1.3.0
PayoutRepositoryInterface is an autogenerated mock type for the PayoutRepositoryInterface type
func (*PayoutRepositoryInterface) Find ¶ added in v1.3.0
func (_m *PayoutRepositoryInterface) Find(ctx context.Context, in *billingpb.GetPayoutDocumentsRequest) ([]*billingpb.PayoutDocument, error)
Find provides a mock function with given fields: ctx, in
func (*PayoutRepositoryInterface) FindAll ¶ added in v1.3.0
func (_m *PayoutRepositoryInterface) FindAll(ctx context.Context) ([]*billingpb.PayoutDocument, error)
FindAll provides a mock function with given fields: ctx
func (*PayoutRepositoryInterface) FindCount ¶ added in v1.3.0
func (_m *PayoutRepositoryInterface) FindCount(ctx context.Context, in *billingpb.GetPayoutDocumentsRequest) (int64, error)
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
func (_m *PayoutRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.PayoutDocument, error)
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
func (_m *PayoutRepositoryInterface) GetLast(_a0 context.Context, _a1 string, _a2 string) (*billingpb.PayoutDocument, error)
GetLast provides a mock function with given fields: _a0, _a1, _a2
func (*PayoutRepositoryInterface) Insert ¶ added in v1.3.0
func (_m *PayoutRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PayoutDocument, _a2 string, _a3 string) error
Insert provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*PayoutRepositoryInterface) Update ¶ added in v1.3.0
func (_m *PayoutRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.PayoutDocument, _a2 string, _a3 string) error
Update provides a mock function with given fields: _a0, _a1, _a2, _a3
type PriceGroupRepositoryInterface ¶ added in v1.2.0
PriceGroupRepositoryInterface is an autogenerated mock type for the PriceGroupRepositoryInterface type
func (*PriceGroupRepositoryInterface) GetAll ¶ added in v1.2.0
func (_m *PriceGroupRepositoryInterface) GetAll(_a0 context.Context) ([]*billingpb.PriceGroup, error)
GetAll provides a mock function with given fields: _a0
func (*PriceGroupRepositoryInterface) GetById ¶ added in v1.2.0
func (_m *PriceGroupRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.PriceGroup, error)
GetById provides a mock function with given fields: _a0, _a1
func (*PriceGroupRepositoryInterface) GetByRegion ¶ added in v1.2.0
func (_m *PriceGroupRepositoryInterface) GetByRegion(_a0 context.Context, _a1 string) (*billingpb.PriceGroup, error)
GetByRegion provides a mock function with given fields: _a0, _a1
func (*PriceGroupRepositoryInterface) Insert ¶ added in v1.2.0
func (_m *PriceGroupRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PriceGroup) error
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
func (_m *PriceGroupRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.PriceGroup) error
Update provides a mock function with given fields: _a0, _a1
type PriceTableRepositoryInterface ¶ added in v1.3.0
PriceTableRepositoryInterface is an autogenerated mock type for the PriceTableRepositoryInterface type
func (*PriceTableRepositoryInterface) GetByRegion ¶ added in v1.3.0
func (_m *PriceTableRepositoryInterface) GetByRegion(_a0 context.Context, _a1 string) (*billingpb.PriceTable, error)
GetByRegion provides a mock function with given fields: _a0, _a1
func (*PriceTableRepositoryInterface) Insert ¶ added in v1.3.0
func (_m *PriceTableRepositoryInterface) Insert(_a0 context.Context, _a1 *billingpb.PriceTable) error
Insert provides a mock function with given fields: _a0, _a1
type PriceTableServiceInterface ¶
PriceTableServiceInterface is an autogenerated mock type for the PriceTableServiceInterface type
func (*PriceTableServiceInterface) GetByRegion ¶
func (_m *PriceTableServiceInterface) GetByRegion(_a0 context.Context, _a1 string) (*billingpb.PriceTable, error)
GetByRegion provides a mock function with given fields: _a0, _a1
func (*PriceTableServiceInterface) Insert ¶
func (_m *PriceTableServiceInterface) Insert(_a0 context.Context, _a1 *billingpb.PriceTable) error
Insert provides a mock function with given fields: _a0, _a1
type ProductRepositoryInterface ¶ added in v1.3.0
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
func (_m *ProductRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Product, error)
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
type ProjectRepositoryInterface ¶ added in v1.2.0
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
func (_m *ProjectRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Project, error)
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
type RefundRepositoryInterface ¶ added in v1.2.0
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
func (_m *RefundRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.Refund, error)
GetById provides a mock function with given fields: _a0, _a1
type RepositoryServiceEmpty ¶
type RepositoryServiceEmpty struct{}
func (*RepositoryServiceEmpty) AddSubscription ¶ added in v1.8.0
func (r *RepositoryServiceEmpty) AddSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.AddSubscriptionResponse, error)
func (*RepositoryServiceEmpty) DeleteSavedCard ¶
func (r *RepositoryServiceEmpty) DeleteSavedCard( ctx context.Context, in *recurringpb.DeleteSavedCardRequest, opts ...client.CallOption, ) (*recurringpb.DeleteSavedCardResponse, error)
func (*RepositoryServiceEmpty) DeleteSubscription ¶ added in v1.8.0
func (r *RepositoryServiceEmpty) DeleteSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.DeleteSubscriptionResponse, error)
func (*RepositoryServiceEmpty) FindSavedCardById ¶
func (r *RepositoryServiceEmpty) FindSavedCardById( ctx context.Context, in *recurringpb.FindByStringValue, opts ...client.CallOption, ) (*recurringpb.SavedCard, error)
func (*RepositoryServiceEmpty) FindSavedCards ¶
func (r *RepositoryServiceEmpty) FindSavedCards( ctx context.Context, in *recurringpb.SavedCardRequest, opts ...client.CallOption, ) (*recurringpb.SavedCardList, error)
func (*RepositoryServiceEmpty) FindSubscriptions ¶ added in v1.8.0
func (r *RepositoryServiceEmpty) FindSubscriptions(ctx context.Context, in *recurringpb.FindSubscriptionsRequest, opts ...client.CallOption) (*recurringpb.FindSubscriptionsResponse, error)
func (*RepositoryServiceEmpty) GetSubscription ¶ added in v1.8.0
func (r *RepositoryServiceEmpty) GetSubscription(ctx context.Context, in *recurringpb.GetSubscriptionRequest, opts ...client.CallOption) (*recurringpb.GetSubscriptionResponse, error)
func (*RepositoryServiceEmpty) InsertSavedCard ¶
func (r *RepositoryServiceEmpty) InsertSavedCard( ctx context.Context, in *recurringpb.SavedCardRequest, opts ...client.CallOption, ) (*recurringpb.Result, error)
func (*RepositoryServiceEmpty) UpdateSubscription ¶ added in v1.8.0
func (r *RepositoryServiceEmpty) UpdateSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.UpdateSubscriptionResponse, error)
type RepositoryServiceError ¶
type RepositoryServiceError struct{}
func (*RepositoryServiceError) AddSubscription ¶ added in v1.8.0
func (r *RepositoryServiceError) AddSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.AddSubscriptionResponse, error)
func (*RepositoryServiceError) DeleteSavedCard ¶
func (r *RepositoryServiceError) DeleteSavedCard( ctx context.Context, in *recurringpb.DeleteSavedCardRequest, opts ...client.CallOption, ) (*recurringpb.DeleteSavedCardResponse, error)
func (*RepositoryServiceError) DeleteSubscription ¶ added in v1.8.0
func (r *RepositoryServiceError) DeleteSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.DeleteSubscriptionResponse, error)
func (*RepositoryServiceError) FindSavedCardById ¶
func (r *RepositoryServiceError) FindSavedCardById( ctx context.Context, in *recurringpb.FindByStringValue, opts ...client.CallOption, ) (*recurringpb.SavedCard, error)
func (*RepositoryServiceError) FindSavedCards ¶
func (r *RepositoryServiceError) FindSavedCards( ctx context.Context, in *recurringpb.SavedCardRequest, opts ...client.CallOption, ) (*recurringpb.SavedCardList, error)
func (*RepositoryServiceError) FindSubscriptions ¶ added in v1.8.0
func (r *RepositoryServiceError) FindSubscriptions(ctx context.Context, in *recurringpb.FindSubscriptionsRequest, opts ...client.CallOption) (*recurringpb.FindSubscriptionsResponse, error)
func (*RepositoryServiceError) GetSubscription ¶ added in v1.8.0
func (r *RepositoryServiceError) GetSubscription(ctx context.Context, in *recurringpb.GetSubscriptionRequest, opts ...client.CallOption) (*recurringpb.GetSubscriptionResponse, error)
func (*RepositoryServiceError) InsertSavedCard ¶
func (r *RepositoryServiceError) InsertSavedCard( ctx context.Context, in *recurringpb.SavedCardRequest, opts ...client.CallOption, ) (*recurringpb.Result, error)
func (*RepositoryServiceError) UpdateSubscription ¶ added in v1.8.0
func (r *RepositoryServiceError) UpdateSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.UpdateSubscriptionResponse, error)
type RepositoryServiceOk ¶
type RepositoryServiceOk struct{}
func (*RepositoryServiceOk) AddSubscription ¶ added in v1.8.0
func (r *RepositoryServiceOk) AddSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.AddSubscriptionResponse, error)
func (*RepositoryServiceOk) DeleteSavedCard ¶
func (r *RepositoryServiceOk) DeleteSavedCard( ctx context.Context, in *recurringpb.DeleteSavedCardRequest, opts ...client.CallOption, ) (*recurringpb.DeleteSavedCardResponse, error)
func (*RepositoryServiceOk) DeleteSubscription ¶ added in v1.8.0
func (r *RepositoryServiceOk) DeleteSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.DeleteSubscriptionResponse, error)
func (*RepositoryServiceOk) FindSavedCardById ¶
func (r *RepositoryServiceOk) FindSavedCardById( ctx context.Context, in *recurringpb.FindByStringValue, opts ...client.CallOption, ) (*recurringpb.SavedCard, error)
func (*RepositoryServiceOk) FindSavedCards ¶
func (r *RepositoryServiceOk) FindSavedCards( ctx context.Context, in *recurringpb.SavedCardRequest, opts ...client.CallOption, ) (*recurringpb.SavedCardList, error)
func (*RepositoryServiceOk) FindSubscriptions ¶ added in v1.8.0
func (r *RepositoryServiceOk) FindSubscriptions(ctx context.Context, in *recurringpb.FindSubscriptionsRequest, opts ...client.CallOption) (*recurringpb.FindSubscriptionsResponse, error)
func (*RepositoryServiceOk) GetSubscription ¶ added in v1.8.0
func (r *RepositoryServiceOk) GetSubscription(ctx context.Context, in *recurringpb.GetSubscriptionRequest, opts ...client.CallOption) (*recurringpb.GetSubscriptionResponse, error)
func (*RepositoryServiceOk) InsertSavedCard ¶
func (r *RepositoryServiceOk) InsertSavedCard( ctx context.Context, in *recurringpb.SavedCardRequest, opts ...client.CallOption, ) (*recurringpb.Result, error)
func (*RepositoryServiceOk) UpdateSubscription ¶ added in v1.8.0
func (r *RepositoryServiceOk) UpdateSubscription(ctx context.Context, in *recurringpb.Subscription, opts ...client.CallOption) (*recurringpb.UpdateSubscriptionResponse, error)
type RoyaltyReportRepositoryInterface ¶ added in v1.3.0
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
func (_m *RoyaltyReportRepositoryInterface) GetAll(ctx context.Context) ([]*billingpb.RoyaltyReport, error)
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
func (_m *RoyaltyReportRepositoryInterface) GetById(ctx context.Context, id string) (*billingpb.RoyaltyReport, error)
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
func (_m *RoyaltyReportRepositoryInterface) GetByPeriod(_a0 context.Context, _a1 time.Time, _a2 time.Time) ([]*billingpb.RoyaltyReport, error)
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
func (_m *RoyaltyReportRepositoryInterface) GetRoyaltyHistoryById(ctx context.Context, id string) ([]*billingpb.RoyaltyReportChanges, error)
GetRoyaltyHistoryById provides a mock function with given fields: ctx, id
func (*RoyaltyReportRepositoryInterface) Insert ¶ added in v1.3.0
func (_m *RoyaltyReportRepositoryInterface) Insert(ctx context.Context, document *billingpb.RoyaltyReport, ip string, source string) error
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
func (_m *RoyaltyReportRepositoryInterface) Update(ctx context.Context, document *billingpb.RoyaltyReport, ip string, source string) error
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 (m *TaxServiceOkMock) DeleteRateById( ctx context.Context, in *taxpb.DeleteRateRequest, opts ...client.CallOption, ) (*taxpb.DeleteRateResponse, error)
func (*TaxServiceOkMock) GetRate ¶
func (m *TaxServiceOkMock) GetRate( ctx context.Context, in *taxpb.GeoIdentity, opts ...client.CallOption, ) (*taxpb.TaxRate, error)
func (*TaxServiceOkMock) GetRates ¶
func (m *TaxServiceOkMock) GetRates( ctx context.Context, in *taxpb.GetRatesRequest, opts ...client.CallOption, ) (*taxpb.GetRatesResponse, error)
type TurnoverRepositoryInterface ¶ added in v1.2.0
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
func (_m *TurnoverRepositoryInterface) Get(_a0 context.Context, _a1 string, _a2 string, _a3 int) (*billingpb.AnnualTurnover, error)
Get provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*TurnoverRepositoryInterface) Upsert ¶ added in v1.2.0
func (_m *TurnoverRepositoryInterface) Upsert(_a0 context.Context, _a1 *billingpb.AnnualTurnover) error
Upsert provides a mock function with given fields: _a0, _a1
type UserProfileRepositoryInterface ¶
UserProfileRepositoryInterface is an autogenerated mock type for the UserProfileRepositoryInterface type
func (*UserProfileRepositoryInterface) Add ¶
func (_m *UserProfileRepositoryInterface) Add(_a0 context.Context, _a1 *billingpb.UserProfile) error
Add provides a mock function with given fields: _a0, _a1
func (*UserProfileRepositoryInterface) GetById ¶
func (_m *UserProfileRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.UserProfile, error)
GetById provides a mock function with given fields: _a0, _a1
func (*UserProfileRepositoryInterface) GetByUserId ¶
func (_m *UserProfileRepositoryInterface) GetByUserId(_a0 context.Context, _a1 string) (*billingpb.UserProfile, error)
GetByUserId provides a mock function with given fields: _a0, _a1
func (*UserProfileRepositoryInterface) Update ¶ added in v1.1.0
func (_m *UserProfileRepositoryInterface) Update(_a0 context.Context, _a1 *billingpb.UserProfile) error
Update provides a mock function with given fields: _a0, _a1
func (*UserProfileRepositoryInterface) Upsert ¶ added in v1.2.0
func (_m *UserProfileRepositoryInterface) Upsert(ctx context.Context, profile *billingpb.UserProfile) error
Upsert provides a mock function with given fields: ctx, profile
type UserRoleRepositoryInterface ¶ added in v1.2.0
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
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
func (_m *VatReportRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billingpb.VatReport, error)
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
type ZipCodeRepositoryInterface ¶ added in v1.2.0
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
Source Files ¶
- AccountingEntryRepositoryInterface.go
- AutoincrementRepositoryInterface.go
- BankBinRepositoryInterface.go
- BrokerInterface.go
- CacheInterface.go
- CentrifugoInterface.go
- CountryRepositoryInterface.go
- CustomerRepositoryInterface.go
- DashboardProcessorRepositoryInterface.go
- DashboardReportProcessorInterface.go
- DashboardRepositoryInterface.go
- FeedbackRepositoryInterface.go
- KeyProductRepositoryInterface.go
- KeyRepositoryInterface.go
- Mapper.go
- MerchantBalanceRepositoryInterface.go
- MerchantBalanceServiceInterface.go
- MerchantDocumentRepositoryInterface.go
- MerchantPaymentMethodHistoryRepositoryInterface.go
- MerchantPaymentTariffsInterface.go
- MerchantRepositoryInterface.go
- MerchantTariffsSettingsInterface.go
- MoneyBackCostMerchantInterface.go
- MoneyBackCostMerchantRepositoryInterface.go
- MoneyBackCostSystemInterface.go
- MoneyBackCostSystemRepositoryInterface.go
- NotificationRepositoryInterface.go
- NotifyRegionRepositoryInterface.go
- NotifySalesRepositoryInterface.go
- OperatingCompanyInterface.go
- OperatingCompanyRepositoryInterface.go
- OrderRepositoryInterface.go
- OrderViewRepositoryInterface.go
- PaylinkRepositoryInterface.go
- PaylinkVisitRepositoryInterface.go
- PaymentChannelCostMerchantRepositoryInterface.go
- PaymentChannelCostSystemRepositoryInterface.go
- PaymentMethodRepositoryInterface.go
- PaymentMinLimitSystemRepositoryInterface.go
- PaymentSystemInterface.go
- PaymentSystemManagerInterface.go
- PaymentSystemRepositoryInterface.go
- PayoutRepositoryInterface.go
- PriceGroupRepositoryInterface.go
- PriceTableRepositoryInterface.go
- PriceTableServiceInterface.go
- ProductRepositoryInterface.go
- ProjectRepositoryInterface.go
- RefundRepositoryInterface.go
- RoyaltyReportRepositoryInterface.go
- TurnoverRepositoryInterface.go
- UserProfileRepositoryInterface.go
- UserRoleRepositoryInterface.go
- VatReportRepositoryInterface.go
- ZipCodeRepositoryInterface.go
- currency_service.go
- document_signer.go
- geo.go
- localizator.go
- notifier.go
- rabbitmq.go
- redis.go
- repository.go
- tax.go