Documentation ¶
Index ¶
- Constants
- Variables
- func NewBrokerMockError() rabbitmq.BrokerInterface
- func NewBrokerMockOk() rabbitmq.BrokerInterface
- func NewCardPayHttpClientStatusOk() *http.Client
- func NewClientStatusOk() *http.Client
- func NewCurrencyServiceMockError() currencies.CurrencyratesService
- func NewCurrencyServiceMockOk() currencies.CurrencyratesService
- func NewDocumentSignerMockOk() proto.DocumentSignerService
- func NewFormatterOK() paysuper_i18n.Formatter
- func NewGeoIpServiceTestError() proto.GeoIpService
- func NewGeoIpServiceTestOk() proto.GeoIpService
- func NewGeoIpServiceTestOkWithoutSubdivision() proto.GeoIpService
- func NewRepositoryServiceEmpty() repository.RepositoryService
- func NewRepositoryServiceError() repository.RepositoryService
- func NewRepositoryServiceOk() repository.RepositoryService
- func NewTaxServiceOkMock() tax_service.TaxService
- func NewTestRedis() *redismock.ClientMock
- type AccountingServiceInterface
- func (_m *AccountingServiceInterface) GetCorrectionsForRoyaltyReport(ctx context.Context, merchantId string, currency string, from time.Time, ...) ([]*billing.AccountingEntry, error)
- func (_m *AccountingServiceInterface) GetRollingReservesForRoyaltyReport(ctx context.Context, merchantId string, currency string, from time.Time, ...) ([]*billing.AccountingEntry, error)
- type BrokerInterface
- type BrokerMockError
- type BrokerMockOk
- type CacheInterface
- type CentrifugoInterface
- type CountryServiceInterface
- func (_m *CountryServiceInterface) GetAll(_a0 context.Context) (*billing.CountriesList, error)
- func (_m *CountryServiceInterface) GetByIsoCodeA2(_a0 context.Context, _a1 string) (*billing.Country, error)
- func (_m *CountryServiceInterface) GetCountriesAndRegionsByTariffRegion(ctx context.Context, tariffRegion string) ([]*pkg.CountryAndRegionItem, error)
- func (_m *CountryServiceInterface) GetCountriesWithVatEnabled(_a0 context.Context) (*billing.CountriesList, error)
- func (_m *CountryServiceInterface) GetPaymentCountriesForOrder(ctx context.Context, isHighRiskOrder bool) (*billing.CountriesList, error)
- func (_m *CountryServiceInterface) Insert(_a0 context.Context, _a1 *billing.Country) error
- func (_m *CountryServiceInterface) IsRegionExists(_a0 context.Context, _a1 string) (bool, error)
- func (_m *CountryServiceInterface) IsTariffRegionExists(_a0 string) bool
- func (_m *CountryServiceInterface) MultipleInsert(_a0 context.Context, _a1 []*billing.Country) error
- func (_m *CountryServiceInterface) Update(_a0 context.Context, _a1 *billing.Country) error
- type CurrencyServiceMockError
- func (s *CurrencyServiceMockError) AddCommonRateCorrectionRule(ctx context.Context, in *currencies.CommonCorrectionRule, ...) (*currencies.EmptyResponse, error)
- func (s *CurrencyServiceMockError) AddMerchantRateCorrectionRule(ctx context.Context, in *currencies.CorrectionRule, opts ...client.CallOption) (*currencies.EmptyResponse, error)
- func (s *CurrencyServiceMockError) ExchangeCurrencyByDateCommon(ctx context.Context, in *currencies.ExchangeCurrencyByDateCommonRequest, ...) (*currencies.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockError) ExchangeCurrencyByDateForMerchant(ctx context.Context, in *currencies.ExchangeCurrencyByDateForMerchantRequest, ...) (*currencies.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockError) ExchangeCurrencyCurrentCommon(ctx context.Context, in *currencies.ExchangeCurrencyCurrentCommonRequest, ...) (*currencies.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockError) ExchangeCurrencyCurrentForMerchant(ctx context.Context, in *currencies.ExchangeCurrencyCurrentForMerchantRequest, ...) (*currencies.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockError) GetAccountingCurrencies(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesList, error)
- func (s *CurrencyServiceMockError) GetCommonRateCorrectionRule(ctx context.Context, in *currencies.CommonCorrectionRuleRequest, ...) (*currencies.CorrectionRule, error)
- func (s *CurrencyServiceMockError) GetCurrenciesPrecision(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesPrecisionResponse, error)
- func (s *CurrencyServiceMockError) GetMerchantRateCorrectionRule(ctx context.Context, in *currencies.MerchantCorrectionRuleRequest, ...) (*currencies.CorrectionRule, error)
- func (s *CurrencyServiceMockError) GetPriceCurrencies(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesList, error)
- func (s *CurrencyServiceMockError) GetRateByDateCommon(ctx context.Context, in *currencies.GetRateByDateCommonRequest, ...) (*currencies.RateData, error)
- func (s *CurrencyServiceMockError) GetRateByDateForMerchant(ctx context.Context, in *currencies.GetRateByDateForMerchantRequest, ...) (*currencies.RateData, error)
- func (s *CurrencyServiceMockError) GetRateCurrentCommon(ctx context.Context, in *currencies.GetRateCurrentCommonRequest, ...) (*currencies.RateData, error)
- func (s *CurrencyServiceMockError) GetRateCurrentForMerchant(ctx context.Context, in *currencies.GetRateCurrentForMerchantRequest, ...) (*currencies.RateData, error)
- func (s *CurrencyServiceMockError) GetSettlementCurrencies(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesList, error)
- func (s *CurrencyServiceMockError) GetSupportedCurrencies(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesList, error)
- func (s *CurrencyServiceMockError) GetVatCurrencies(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesList, error)
- func (s *CurrencyServiceMockError) SetPaysuperCorrectionCorridor(ctx context.Context, in *currencies.CorrectionCorridor, ...) (*currencies.EmptyResponse, error)
- type CurrencyServiceMockOk
- func (s *CurrencyServiceMockOk) AddCommonRateCorrectionRule(ctx context.Context, in *currencies.CommonCorrectionRule, ...) (*currencies.EmptyResponse, error)
- func (s *CurrencyServiceMockOk) AddMerchantRateCorrectionRule(ctx context.Context, in *currencies.CorrectionRule, opts ...client.CallOption) (*currencies.EmptyResponse, error)
- func (s *CurrencyServiceMockOk) ExchangeCurrencyByDateCommon(ctx context.Context, in *currencies.ExchangeCurrencyByDateCommonRequest, ...) (*currencies.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockOk) ExchangeCurrencyByDateForMerchant(ctx context.Context, in *currencies.ExchangeCurrencyByDateForMerchantRequest, ...) (*currencies.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockOk) ExchangeCurrencyCurrentCommon(ctx context.Context, in *currencies.ExchangeCurrencyCurrentCommonRequest, ...) (*currencies.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockOk) ExchangeCurrencyCurrentForMerchant(ctx context.Context, in *currencies.ExchangeCurrencyCurrentForMerchantRequest, ...) (*currencies.ExchangeCurrencyResponse, error)
- func (s *CurrencyServiceMockOk) GetAccountingCurrencies(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesList, error)
- func (s *CurrencyServiceMockOk) GetCommonRateCorrectionRule(ctx context.Context, in *currencies.CommonCorrectionRuleRequest, ...) (*currencies.CorrectionRule, error)
- func (s *CurrencyServiceMockOk) GetCurrenciesPrecision(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesPrecisionResponse, error)
- func (s *CurrencyServiceMockOk) GetMerchantRateCorrectionRule(ctx context.Context, in *currencies.MerchantCorrectionRuleRequest, ...) (*currencies.CorrectionRule, error)
- func (s *CurrencyServiceMockOk) GetPriceCurrencies(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesList, error)
- func (s *CurrencyServiceMockOk) GetRateByDateCommon(ctx context.Context, in *currencies.GetRateByDateCommonRequest, ...) (*currencies.RateData, error)
- func (s *CurrencyServiceMockOk) GetRateByDateForMerchant(ctx context.Context, in *currencies.GetRateByDateForMerchantRequest, ...) (*currencies.RateData, error)
- func (s *CurrencyServiceMockOk) GetRateCurrentCommon(ctx context.Context, in *currencies.GetRateCurrentCommonRequest, ...) (*currencies.RateData, error)
- func (s *CurrencyServiceMockOk) GetRateCurrentForMerchant(ctx context.Context, in *currencies.GetRateCurrentForMerchantRequest, ...) (*currencies.RateData, error)
- func (s *CurrencyServiceMockOk) GetSettlementCurrencies(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesList, error)
- func (s *CurrencyServiceMockOk) GetSupportedCurrencies(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesList, error)
- func (s *CurrencyServiceMockOk) GetVatCurrencies(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesList, error)
- func (s *CurrencyServiceMockOk) SetPaysuperCorrectionCorridor(ctx context.Context, in *currencies.CorrectionCorridor, ...) (*currencies.EmptyResponse, 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(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardBaseReports, error)
- func (_m *DashboardRepositoryInterface) GetBaseRevenueByCountryReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardRevenueByCountryReport, error)
- func (_m *DashboardRepositoryInterface) GetBaseSalesTodayReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardSalesTodayReport, error)
- func (_m *DashboardRepositoryInterface) GetBaseSourcesReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardSourcesReport, error)
- func (_m *DashboardRepositoryInterface) GetMainReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardMainReport, error)
- func (_m *DashboardRepositoryInterface) GetRevenueDynamicsReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardRevenueDynamicReport, error)
- type DocumentSignerService
- type GeoIpServiceTestError
- type GeoIpServiceTestOk
- type GeoIpServiceTestOkWithoutSubdivision
- type KeyProductRepositoryInterface
- type KeyRepositoryInterface
- func (_m *KeyRepositoryInterface) CancelById(_a0 context.Context, _a1 string) (*billing.Key, error)
- func (_m *KeyRepositoryInterface) CountKeysByProductPlatform(_a0 context.Context, _a1 string, _a2 string) (int64, error)
- func (_m *KeyRepositoryInterface) FindUnfinished(_a0 context.Context) ([]*billing.Key, error)
- func (_m *KeyRepositoryInterface) FinishRedeemById(_a0 context.Context, _a1 string) (*billing.Key, error)
- func (_m *KeyRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*billing.Key, error)
- func (_m *KeyRepositoryInterface) Insert(_a0 context.Context, _a1 *billing.Key) error
- func (_m *KeyRepositoryInterface) ReserveKey(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 int32) (*billing.Key, error)
- type MerchantBalanceServiceInterface
- type MerchantRepositoryInterface
- func (_m *MerchantRepositoryInterface) GetAll(ctx context.Context) ([]*billing.Merchant, error)
- func (_m *MerchantRepositoryInterface) GetById(ctx context.Context, id string) (*billing.Merchant, error)
- func (_m *MerchantRepositoryInterface) GetCommonById(ctx context.Context, id string) (*billing.MerchantCommon, error)
- func (_m *MerchantRepositoryInterface) GetMerchantsWithAutoPayouts(ctx context.Context) ([]*billing.Merchant, error)
- func (_m *MerchantRepositoryInterface) GetPaymentMethod(ctx context.Context, merchantId string, method string) (*billing.MerchantPaymentMethod, error)
- func (_m *MerchantRepositoryInterface) Insert(ctx context.Context, merchant *billing.Merchant) error
- func (_m *MerchantRepositoryInterface) MultipleInsert(ctx context.Context, merchants []*billing.Merchant) error
- func (_m *MerchantRepositoryInterface) Update(ctx context.Context, merchant *billing.Merchant) error
- func (_m *MerchantRepositoryInterface) Upsert(ctx context.Context, merchant *billing.Merchant) error
- type MerchantTariffRatesInterface
- func (_m *MerchantTariffRatesInterface) GetBy(ctx context.Context, in *grpc.GetMerchantTariffRatesRequest) (*grpc.GetMerchantTariffRatesResponseItems, error)
- func (_m *MerchantTariffRatesInterface) GetCacheKeyForGetBy(_a0 *grpc.GetMerchantTariffRatesRequest) (string, error)
- func (_m *MerchantTariffRatesInterface) GetPaymentTariffsBy(_a0 context.Context, _a1 *grpc.GetMerchantTariffRatesRequest) ([]*billing.MerchantTariffRatesPayment, error)
- func (_m *MerchantTariffRatesInterface) GetTariffsSettings(ctx context.Context, in *grpc.GetMerchantTariffRatesRequest) (*billing.MerchantTariffRatesSettings, error)
- type MoneyBackCostMerchantInterface
- func (_m *MoneyBackCostMerchantInterface) Delete(obj *billing.MoneyBackCostMerchant) error
- func (_m *MoneyBackCostMerchantInterface) Get(merchantId string, name string, payoutCurrency string, undoReason string, ...) (*billing.MoneyBackCostMerchantList, error)
- func (_m *MoneyBackCostMerchantInterface) GetAllForMerchant(merchantId string) (*billing.MoneyBackCostMerchantList, error)
- func (_m *MoneyBackCostMerchantInterface) GetById(id string) (*billing.MoneyBackCostMerchant, error)
- func (_m *MoneyBackCostMerchantInterface) MultipleInsert(obj []*billing.MoneyBackCostMerchant) error
- func (_m *MoneyBackCostMerchantInterface) Update(obj *billing.MoneyBackCostMerchant) error
- type MoneyBackCostSystemInterface
- func (_m *MoneyBackCostSystemInterface) Delete(obj *billing.MoneyBackCostSystem) error
- func (_m *MoneyBackCostSystemInterface) Get(name string, payoutCurrency string, undoReason string, region string, ...) ([]*pkg.MoneyBackCostSystemSet, error)
- func (_m *MoneyBackCostSystemInterface) GetAll() (*billing.MoneyBackCostSystemList, error)
- func (_m *MoneyBackCostSystemInterface) GetById(id string) (*billing.MoneyBackCostSystem, error)
- func (_m *MoneyBackCostSystemInterface) MultipleInsert(obj []*billing.MoneyBackCostSystem) error
- func (_m *MoneyBackCostSystemInterface) Update(obj *billing.MoneyBackCostSystem) error
- type OperatingCompanyInterface
- func (_m *OperatingCompanyInterface) Exists(ctx context.Context, id string) bool
- func (_m *OperatingCompanyInterface) GetAll(ctx context.Context) ([]*billing.OperatingCompany, error)
- func (_m *OperatingCompanyInterface) GetById(ctx context.Context, id string) (*billing.OperatingCompany, error)
- func (_m *OperatingCompanyInterface) GetByPaymentCountry(ctx context.Context, countryCode string) (*billing.OperatingCompany, error)
- func (_m *OperatingCompanyInterface) Upsert(ctx context.Context, oc *billing.OperatingCompany) error
- type OrderRepositoryInterface
- type OrderViewServiceInterface
- func (_m *OrderViewServiceInterface) CountTransactions(ctx context.Context, match primitive.M) (int64, error)
- func (_m *OrderViewServiceInterface) GetOrderBy(ctx context.Context, id string, uuid string, merchantId string, ...) (interface{}, error)
- func (_m *OrderViewServiceInterface) GetPaylinkStat(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*paylink.StatCommon, error)
- func (_m *OrderViewServiceInterface) GetPaylinkStatByCountry(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*paylink.GroupStatCommon, error)
- func (_m *OrderViewServiceInterface) GetPaylinkStatByDate(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*paylink.GroupStatCommon, error)
- func (_m *OrderViewServiceInterface) GetPaylinkStatByReferrer(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*paylink.GroupStatCommon, error)
- func (_m *OrderViewServiceInterface) GetPaylinkStatByUtm(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*paylink.GroupStatCommon, error)
- func (_m *OrderViewServiceInterface) GetRoyaltySummary(ctx context.Context, merchantId string, currency string, from time.Time, ...) ([]*billing.RoyaltyReportProductSummaryItem, ...)
- func (_m *OrderViewServiceInterface) GetTransactionsPrivate(ctx context.Context, match primitive.M, limit int64, offset int64) ([]*billing.OrderViewPrivate, error)
- func (_m *OrderViewServiceInterface) GetTransactionsPublic(ctx context.Context, match primitive.M, limit int64, offset int64) ([]*billing.OrderViewPublic, error)
- type PaylinkServiceInterface
- func (_m *PaylinkServiceInterface) CountByQuery(ctx context.Context, query primitive.M) (int64, error)
- func (_m *PaylinkServiceInterface) Delete(ctx context.Context, id string, merchantId string) error
- func (_m *PaylinkServiceInterface) GetById(ctx context.Context, id string) (*paylink.Paylink, error)
- func (_m *PaylinkServiceInterface) GetByIdAndMerchant(ctx context.Context, id string, merchantId string) (*paylink.Paylink, error)
- func (_m *PaylinkServiceInterface) GetListByQuery(ctx context.Context, query primitive.M, limit int64, offset int64) ([]*paylink.Paylink, error)
- func (_m *PaylinkServiceInterface) GetPaylinkVisits(ctx context.Context, id string, from int64, to int64) (int64, error)
- func (_m *PaylinkServiceInterface) GetUrl(ctx context.Context, id string, merchantId string, urlMask string, ...) (string, error)
- func (_m *PaylinkServiceInterface) IncrVisits(ctx context.Context, id string) error
- func (_m *PaylinkServiceInterface) Insert(ctx context.Context, pl *paylink.Paylink) error
- func (_m *PaylinkServiceInterface) Update(ctx context.Context, pl *paylink.Paylink) error
- func (_m *PaylinkServiceInterface) UpdatePaylinkTotalStat(ctx context.Context, id string, merchantId string) error
- type PaymentChannelCostMerchantInterface
- func (_m *PaymentChannelCostMerchantInterface) Delete(ctx context.Context, obj *billing.PaymentChannelCostMerchant) error
- func (_m *PaymentChannelCostMerchantInterface) Get(ctx context.Context, merchantId string, name string, payoutCurrency string, ...) ([]*pkg.PaymentChannelCostMerchantSet, error)
- func (_m *PaymentChannelCostMerchantInterface) GetAllForMerchant(ctx context.Context, merchantId string) (*billing.PaymentChannelCostMerchantList, error)
- func (_m *PaymentChannelCostMerchantInterface) GetById(ctx context.Context, id string) (*billing.PaymentChannelCostMerchant, error)
- func (_m *PaymentChannelCostMerchantInterface) MultipleInsert(ctx context.Context, obj []*billing.PaymentChannelCostMerchant) error
- func (_m *PaymentChannelCostMerchantInterface) Update(ctx context.Context, obj *billing.PaymentChannelCostMerchant) error
- type PaymentChannelCostSystemInterface
- func (_m *PaymentChannelCostSystemInterface) Delete(ctx context.Context, obj *billing.PaymentChannelCostSystem) error
- func (_m *PaymentChannelCostSystemInterface) Get(ctx context.Context, name string, region string, country string, ...) (*billing.PaymentChannelCostSystem, error)
- func (_m *PaymentChannelCostSystemInterface) GetAll(ctx context.Context) (*billing.PaymentChannelCostSystemList, error)
- func (_m *PaymentChannelCostSystemInterface) GetById(ctx context.Context, id string) (*billing.PaymentChannelCostSystem, error)
- func (_m *PaymentChannelCostSystemInterface) MultipleInsert(ctx context.Context, obj []*billing.PaymentChannelCostSystem) error
- func (_m *PaymentChannelCostSystemInterface) Update(ctx context.Context, obj *billing.PaymentChannelCostSystem) error
- type PaymentMethodInterface
- func (_m *PaymentMethodInterface) GetAll(ctx context.Context) (map[string]*billing.PaymentMethod, error)
- func (_m *PaymentMethodInterface) GetByGroupAndCurrency(ctx context.Context, project *billing.Project, group string, currency string) (*billing.PaymentMethod, error)
- func (_m *PaymentMethodInterface) GetById(_a0 context.Context, _a1 string) (*billing.PaymentMethod, error)
- func (_m *PaymentMethodInterface) GetPaymentSettings(paymentMethod *billing.PaymentMethod, currency string, mccCode string, ...) (*billing.PaymentMethodParams, error)
- func (_m *PaymentMethodInterface) Insert(_a0 context.Context, _a1 *billing.PaymentMethod) error
- func (_m *PaymentMethodInterface) ListByParams(ctx context.Context, project *billing.Project, currency string, mccCode string, ...) ([]*billing.PaymentMethod, error)
- func (_m *PaymentMethodInterface) MultipleInsert(_a0 context.Context, _a1 []*billing.PaymentMethod) error
- func (_m *PaymentMethodInterface) Update(_a0 context.Context, _a1 *billing.PaymentMethod) error
- type PaymentMinLimitSystemInterface
- func (_m *PaymentMinLimitSystemInterface) GetAll(ctx context.Context) ([]*billing.PaymentMinLimitSystem, error)
- func (_m *PaymentMinLimitSystemInterface) GetByCurrency(ctx context.Context, currency string) (*billing.PaymentMinLimitSystem, error)
- func (_m *PaymentMinLimitSystemInterface) MultipleInsert(ctx context.Context, pmlsArray []*billing.PaymentMinLimitSystem) error
- func (_m *PaymentMinLimitSystemInterface) Upsert(ctx context.Context, pmls *billing.PaymentMinLimitSystem) error
- type PaymentSystem
- func (_m *PaymentSystem) CreatePayment(order *billing.Order, successUrl string, failUrl string, ...) (string, error)
- func (_m *PaymentSystem) CreateRefund(order *billing.Order, refund *billing.Refund) error
- func (_m *PaymentSystem) GetRecurringId(request proto.Message) string
- func (_m *PaymentSystem) IsRecurringCallback(request proto.Message) bool
- func (_m *PaymentSystem) ProcessPayment(order *billing.Order, message proto.Message, raw string, signature string) error
- func (_m *PaymentSystem) ProcessRefund(order *billing.Order, refund *billing.Refund, message proto.Message, ...) error
- type PaymentSystemServiceInterface
- func (_m *PaymentSystemServiceInterface) GetById(_a0 context.Context, _a1 string) (*billing.PaymentSystem, error)
- func (_m *PaymentSystemServiceInterface) Insert(_a0 context.Context, _a1 *billing.PaymentSystem) error
- func (_m *PaymentSystemServiceInterface) MultipleInsert(_a0 context.Context, _a1 []*billing.PaymentSystem) error
- func (_m *PaymentSystemServiceInterface) Update(_a0 context.Context, _a1 *billing.PaymentSystem) error
- type PayoutDocumentServiceInterface
- func (_m *PayoutDocumentServiceInterface) CountByQuery(ctx context.Context, query primitive.M) (int64, error)
- func (_m *PayoutDocumentServiceInterface) FindByQuery(ctx context.Context, query primitive.M, sorts []string, limit int64, ...) ([]*billing.PayoutDocument, error)
- func (_m *PayoutDocumentServiceInterface) GetBalanceAmount(ctx context.Context, merchantId string, currency string) (float64, error)
- func (_m *PayoutDocumentServiceInterface) GetById(ctx context.Context, id string) (*billing.PayoutDocument, error)
- func (_m *PayoutDocumentServiceInterface) GetByIdAndMerchant(ctx context.Context, id string, merchantId string) (*billing.PayoutDocument, error)
- func (_m *PayoutDocumentServiceInterface) GetLast(ctx context.Context, merchantId string, currency string) (*billing.PayoutDocument, error)
- func (_m *PayoutDocumentServiceInterface) Insert(ctx context.Context, document *billing.PayoutDocument, ip string, ...) error
- func (_m *PayoutDocumentServiceInterface) Update(ctx context.Context, document *billing.PayoutDocument, ip string, ...) error
- type PriceGroupServiceInterface
- func (_m *PriceGroupServiceInterface) CalculatePriceWithFraction(_a0 float64, _a1 float64) float64
- func (_m *PriceGroupServiceInterface) GetAll(_a0 context.Context) ([]*billing.PriceGroup, error)
- func (_m *PriceGroupServiceInterface) GetById(_a0 context.Context, _a1 string) (*billing.PriceGroup, error)
- func (_m *PriceGroupServiceInterface) GetByRegion(_a0 context.Context, _a1 string) (*billing.PriceGroup, error)
- func (_m *PriceGroupServiceInterface) Insert(_a0 context.Context, _a1 *billing.PriceGroup) error
- func (_m *PriceGroupServiceInterface) MakeCurrencyList(_a0 []*billing.PriceGroup, _a1 *billing.CountriesList) []*grpc.PriceGroupRegions
- func (_m *PriceGroupServiceInterface) MultipleInsert(_a0 context.Context, _a1 []*billing.PriceGroup) error
- func (_m *PriceGroupServiceInterface) Update(_a0 context.Context, _a1 *billing.PriceGroup) error
- type PriceTableServiceInterface
- type ProductServiceInterface
- func (_m *ProductServiceInterface) CountByProjectSku(_a0 context.Context, _a1 string, _a2 string) (int64, error)
- func (_m *ProductServiceInterface) GetById(_a0 context.Context, _a1 string) (*grpc.Product, error)
- func (_m *ProductServiceInterface) List(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 int64, ...) (int64, []*grpc.Product)
- func (_m *ProductServiceInterface) Upsert(ctx context.Context, product *grpc.Product) error
- type RepositoryServiceEmpty
- func (r *RepositoryServiceEmpty) DeleteSavedCard(ctx context.Context, in *repository.DeleteSavedCardRequest, ...) (*repository.DeleteSavedCardResponse, error)
- func (r *RepositoryServiceEmpty) FindSavedCardById(ctx context.Context, in *repository.FindByStringValue, ...) (*entity.SavedCard, error)
- func (r *RepositoryServiceEmpty) FindSavedCards(ctx context.Context, in *repository.SavedCardRequest, ...) (*repository.SavedCardList, error)
- func (r *RepositoryServiceEmpty) InsertSavedCard(ctx context.Context, in *repository.SavedCardRequest, ...) (*repository.Result, error)
- type RepositoryServiceError
- func (r *RepositoryServiceError) DeleteSavedCard(ctx context.Context, in *repository.DeleteSavedCardRequest, ...) (*repository.DeleteSavedCardResponse, error)
- func (r *RepositoryServiceError) FindSavedCardById(ctx context.Context, in *repository.FindByStringValue, ...) (*entity.SavedCard, error)
- func (r *RepositoryServiceError) FindSavedCards(ctx context.Context, in *repository.SavedCardRequest, ...) (*repository.SavedCardList, error)
- func (r *RepositoryServiceError) InsertSavedCard(ctx context.Context, in *repository.SavedCardRequest, ...) (*repository.Result, error)
- type RepositoryServiceOk
- func (r *RepositoryServiceOk) DeleteSavedCard(ctx context.Context, in *repository.DeleteSavedCardRequest, ...) (*repository.DeleteSavedCardResponse, error)
- func (r *RepositoryServiceOk) FindSavedCardById(ctx context.Context, in *repository.FindByStringValue, ...) (*entity.SavedCard, error)
- func (r *RepositoryServiceOk) FindSavedCards(ctx context.Context, in *repository.SavedCardRequest, ...) (*repository.SavedCardList, error)
- func (r *RepositoryServiceOk) InsertSavedCard(ctx context.Context, in *repository.SavedCardRequest, ...) (*repository.Result, error)
- type RoyaltyReportServiceInterface
- func (_m *RoyaltyReportServiceInterface) GetBalanceAmount(ctx context.Context, merchantId string, currency string) (float64, error)
- func (_m *RoyaltyReportServiceInterface) GetById(ctx context.Context, id string) (*billing.RoyaltyReport, error)
- func (_m *RoyaltyReportServiceInterface) GetByPayoutId(ctx context.Context, payoutId string) ([]*billing.RoyaltyReport, error)
- func (_m *RoyaltyReportServiceInterface) GetNonPayoutReports(ctx context.Context, merchantId string, currency string) ([]*billing.RoyaltyReport, error)
- func (_m *RoyaltyReportServiceInterface) GetReportExists(ctx context.Context, merchantId string, currency string, from time.Time, ...) *billing.RoyaltyReport
- func (_m *RoyaltyReportServiceInterface) Insert(ctx context.Context, document *billing.RoyaltyReport, ip string, source string) error
- func (_m *RoyaltyReportServiceInterface) SetPaid(ctx context.Context, reportIds []string, payoutDocumentId string, ip string, ...) error
- func (_m *RoyaltyReportServiceInterface) SetPayoutDocumentId(ctx context.Context, reportIds []string, payoutDocumentId string, ip string, ...) error
- func (_m *RoyaltyReportServiceInterface) UnsetPaid(ctx context.Context, reportIds []string, ip string, source string) error
- func (_m *RoyaltyReportServiceInterface) UnsetPayoutDocumentId(ctx context.Context, reportIds []string, ip string, source string) error
- func (_m *RoyaltyReportServiceInterface) Update(ctx context.Context, document *billing.RoyaltyReport, ip string, source string) error
- type TaxServiceOkMock
- func (m *TaxServiceOkMock) CreateOrUpdate(ctx context.Context, in *tax_service.TaxRate, opts ...client.CallOption) (*tax_service.TaxRate, error)
- func (m *TaxServiceOkMock) DeleteRateById(ctx context.Context, in *tax_service.DeleteRateRequest, ...) (*tax_service.DeleteRateResponse, error)
- func (m *TaxServiceOkMock) GetRate(ctx context.Context, in *tax_service.GeoIdentity, opts ...client.CallOption) (*tax_service.TaxRate, error)
- func (m *TaxServiceOkMock) GetRates(ctx context.Context, in *tax_service.GetRatesRequest, ...) (*tax_service.GetRatesResponse, error)
- type TransportCardPayOk
- type TransportStatusError
- type TransportStatusOk
- type UserProfileRepositoryInterface
- func (_m *UserProfileRepositoryInterface) Add(_a0 context.Context, _a1 *grpc.UserProfile) error
- func (_m *UserProfileRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*grpc.UserProfile, error)
- func (_m *UserProfileRepositoryInterface) GetByUserId(_a0 context.Context, _a1 string) (*grpc.UserProfile, error)
- func (_m *UserProfileRepositoryInterface) Update(_a0 context.Context, _a1 *grpc.UserProfile) error
- type UserRoleServiceInterface
- func (_m *UserRoleServiceInterface) AddAdminUser(_a0 context.Context, _a1 *billing.UserRole) error
- func (_m *UserRoleServiceInterface) AddMerchantUser(_a0 context.Context, _a1 *billing.UserRole) error
- func (_m *UserRoleServiceInterface) DeleteAdminUser(_a0 context.Context, _a1 *billing.UserRole) error
- func (_m *UserRoleServiceInterface) DeleteMerchantUser(_a0 context.Context, _a1 *billing.UserRole) error
- func (_m *UserRoleServiceInterface) GetAdminUserByEmail(_a0 context.Context, _a1 string) (*billing.UserRole, error)
- func (_m *UserRoleServiceInterface) GetAdminUserById(_a0 context.Context, _a1 string) (*billing.UserRole, error)
- func (_m *UserRoleServiceInterface) GetAdminUserByUserId(_a0 context.Context, _a1 string) (*billing.UserRole, error)
- func (_m *UserRoleServiceInterface) GetMerchantOwner(_a0 context.Context, _a1 string) (*billing.UserRole, error)
- func (_m *UserRoleServiceInterface) GetMerchantUserByEmail(_a0 context.Context, _a1 string, _a2 string) (*billing.UserRole, error)
- func (_m *UserRoleServiceInterface) GetMerchantUserById(_a0 context.Context, _a1 string) (*billing.UserRole, error)
- func (_m *UserRoleServiceInterface) GetMerchantUserByUserId(_a0 context.Context, _a1 string, _a2 string) (*billing.UserRole, error)
- func (_m *UserRoleServiceInterface) GetMerchantsForUser(_a0 context.Context, _a1 string) ([]*billing.UserRole, error)
- func (_m *UserRoleServiceInterface) GetSystemAdmin(_a0 context.Context) (*billing.UserRole, error)
- func (_m *UserRoleServiceInterface) GetUsersForAdmin(_a0 context.Context) ([]*billing.UserRole, error)
- func (_m *UserRoleServiceInterface) GetUsersForMerchant(_a0 context.Context, _a1 string) ([]*billing.UserRole, error)
- func (_m *UserRoleServiceInterface) UpdateAdminUser(_a0 context.Context, _a1 *billing.UserRole) error
- func (_m *UserRoleServiceInterface) UpdateMerchantUser(_a0 context.Context, _a1 *billing.UserRole) error
Constants ¶
const (
SomeError = "some error"
)
Variables ¶
var ( CreateSignatureResponse = &proto.CreateSignatureResponse{ Status: pkg.ResponseStatusOk, Item: &proto.CreateSignatureResponseItem{ DetailsUrl: "http:/127.0.0.1", FilesUrl: "http:/127.0.0.1", SignatureRequestId: primitive.NewObjectID().Hex(), MerchantSignatureId: primitive.NewObjectID().Hex(), PsSignatureId: primitive.NewObjectID().Hex(), }, } GetSignatureUrlResponse = &proto.GetSignatureUrlResponse{ Status: pkg.ResponseStatusOk, Item: &proto.GetSignatureUrlResponseEmbedded{ SignUrl: "http://127.0.0.1", }, } )
var (
MerchantIdMock = primitive.NewObjectID().Hex()
)
Functions ¶
func NewBrokerMockError ¶
func NewBrokerMockError() rabbitmq.BrokerInterface
func NewBrokerMockOk ¶
func NewBrokerMockOk() rabbitmq.BrokerInterface
func NewClientStatusOk ¶
func NewCurrencyServiceMockError ¶
func NewCurrencyServiceMockError() currencies.CurrencyratesService
func NewCurrencyServiceMockOk ¶
func NewCurrencyServiceMockOk() currencies.CurrencyratesService
func NewDocumentSignerMockOk ¶
func NewDocumentSignerMockOk() proto.DocumentSignerService
func NewFormatterOK ¶
func NewFormatterOK() paysuper_i18n.Formatter
func NewGeoIpServiceTestError ¶
func NewGeoIpServiceTestError() proto.GeoIpService
func NewGeoIpServiceTestOk ¶
func NewGeoIpServiceTestOk() proto.GeoIpService
func NewGeoIpServiceTestOkWithoutSubdivision ¶
func NewGeoIpServiceTestOkWithoutSubdivision() proto.GeoIpService
func NewRepositoryServiceEmpty ¶
func NewRepositoryServiceEmpty() repository.RepositoryService
func NewRepositoryServiceError ¶
func NewRepositoryServiceError() repository.RepositoryService
func NewRepositoryServiceOk ¶
func NewRepositoryServiceOk() repository.RepositoryService
func NewTaxServiceOkMock ¶
func NewTaxServiceOkMock() tax_service.TaxService
func NewTestRedis ¶
func NewTestRedis() *redismock.ClientMock
Types ¶
type AccountingServiceInterface ¶
AccountingServiceInterface is an autogenerated mock type for the AccountingServiceInterface type
func (*AccountingServiceInterface) GetCorrectionsForRoyaltyReport ¶
func (_m *AccountingServiceInterface) GetCorrectionsForRoyaltyReport(ctx context.Context, merchantId string, currency string, from time.Time, to time.Time) ([]*billing.AccountingEntry, error)
GetCorrectionsForRoyaltyReport provides a mock function with given fields: ctx, merchantId, currency, from, to
func (*AccountingServiceInterface) GetRollingReservesForRoyaltyReport ¶
func (_m *AccountingServiceInterface) GetRollingReservesForRoyaltyReport(ctx context.Context, merchantId string, currency string, from time.Time, to time.Time) ([]*billing.AccountingEntry, error)
GetRollingReservesForRoyaltyReport provides a mock function with given fields: ctx, merchantId, currency, from, to
type BrokerInterface ¶
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) 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) 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) 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 CountryServiceInterface ¶
CountryServiceInterface is an autogenerated mock type for the CountryServiceInterface type
func (*CountryServiceInterface) GetAll ¶
func (_m *CountryServiceInterface) GetAll(_a0 context.Context) (*billing.CountriesList, error)
GetAll provides a mock function with given fields: _a0
func (*CountryServiceInterface) GetByIsoCodeA2 ¶
func (_m *CountryServiceInterface) GetByIsoCodeA2(_a0 context.Context, _a1 string) (*billing.Country, error)
GetByIsoCodeA2 provides a mock function with given fields: _a0, _a1
func (*CountryServiceInterface) GetCountriesAndRegionsByTariffRegion ¶
func (_m *CountryServiceInterface) GetCountriesAndRegionsByTariffRegion(ctx context.Context, tariffRegion string) ([]*pkg.CountryAndRegionItem, error)
GetCountriesAndRegionsByTariffRegion provides a mock function with given fields: ctx, tariffRegion
func (*CountryServiceInterface) GetCountriesWithVatEnabled ¶
func (_m *CountryServiceInterface) GetCountriesWithVatEnabled(_a0 context.Context) (*billing.CountriesList, error)
GetCountriesWithVatEnabled provides a mock function with given fields: _a0
func (*CountryServiceInterface) GetPaymentCountriesForOrder ¶
func (_m *CountryServiceInterface) GetPaymentCountriesForOrder(ctx context.Context, isHighRiskOrder bool) (*billing.CountriesList, error)
GetPaymentCountriesForOrder provides a mock function with given fields: ctx, isHighRiskOrder
func (*CountryServiceInterface) Insert ¶
Insert provides a mock function with given fields: _a0, _a1
func (*CountryServiceInterface) IsRegionExists ¶
IsRegionExists provides a mock function with given fields: _a0, _a1
func (*CountryServiceInterface) IsTariffRegionExists ¶
func (_m *CountryServiceInterface) IsTariffRegionExists(_a0 string) bool
IsTariffRegionExists provides a mock function with given fields: _a0
func (*CountryServiceInterface) MultipleInsert ¶
func (_m *CountryServiceInterface) MultipleInsert(_a0 context.Context, _a1 []*billing.Country) error
MultipleInsert provides a mock function with given fields: _a0, _a1
type CurrencyServiceMockError ¶
type CurrencyServiceMockError struct{}
func (*CurrencyServiceMockError) AddCommonRateCorrectionRule ¶
func (s *CurrencyServiceMockError) AddCommonRateCorrectionRule( ctx context.Context, in *currencies.CommonCorrectionRule, opts ...client.CallOption, ) (*currencies.EmptyResponse, error)
func (*CurrencyServiceMockError) AddMerchantRateCorrectionRule ¶
func (s *CurrencyServiceMockError) AddMerchantRateCorrectionRule( ctx context.Context, in *currencies.CorrectionRule, opts ...client.CallOption, ) (*currencies.EmptyResponse, error)
func (*CurrencyServiceMockError) ExchangeCurrencyByDateCommon ¶
func (s *CurrencyServiceMockError) ExchangeCurrencyByDateCommon( ctx context.Context, in *currencies.ExchangeCurrencyByDateCommonRequest, opts ...client.CallOption, ) (*currencies.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockError) ExchangeCurrencyByDateForMerchant ¶
func (s *CurrencyServiceMockError) ExchangeCurrencyByDateForMerchant( ctx context.Context, in *currencies.ExchangeCurrencyByDateForMerchantRequest, opts ...client.CallOption, ) (*currencies.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockError) ExchangeCurrencyCurrentCommon ¶
func (s *CurrencyServiceMockError) ExchangeCurrencyCurrentCommon( ctx context.Context, in *currencies.ExchangeCurrencyCurrentCommonRequest, opts ...client.CallOption, ) (*currencies.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockError) ExchangeCurrencyCurrentForMerchant ¶
func (s *CurrencyServiceMockError) ExchangeCurrencyCurrentForMerchant( ctx context.Context, in *currencies.ExchangeCurrencyCurrentForMerchantRequest, opts ...client.CallOption, ) (*currencies.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockError) GetAccountingCurrencies ¶
func (s *CurrencyServiceMockError) GetAccountingCurrencies( ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption, ) (*currencies.CurrenciesList, error)
func (*CurrencyServiceMockError) GetCommonRateCorrectionRule ¶
func (s *CurrencyServiceMockError) GetCommonRateCorrectionRule( ctx context.Context, in *currencies.CommonCorrectionRuleRequest, opts ...client.CallOption, ) (*currencies.CorrectionRule, error)
func (*CurrencyServiceMockError) GetCurrenciesPrecision ¶
func (s *CurrencyServiceMockError) GetCurrenciesPrecision(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesPrecisionResponse, error)
func (*CurrencyServiceMockError) GetMerchantRateCorrectionRule ¶
func (s *CurrencyServiceMockError) GetMerchantRateCorrectionRule( ctx context.Context, in *currencies.MerchantCorrectionRuleRequest, opts ...client.CallOption, ) (*currencies.CorrectionRule, error)
func (*CurrencyServiceMockError) GetPriceCurrencies ¶
func (s *CurrencyServiceMockError) GetPriceCurrencies( ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption, ) (*currencies.CurrenciesList, error)
func (*CurrencyServiceMockError) GetRateByDateCommon ¶
func (s *CurrencyServiceMockError) GetRateByDateCommon( ctx context.Context, in *currencies.GetRateByDateCommonRequest, opts ...client.CallOption, ) (*currencies.RateData, error)
func (*CurrencyServiceMockError) GetRateByDateForMerchant ¶
func (s *CurrencyServiceMockError) GetRateByDateForMerchant( ctx context.Context, in *currencies.GetRateByDateForMerchantRequest, opts ...client.CallOption, ) (*currencies.RateData, error)
func (*CurrencyServiceMockError) GetRateCurrentCommon ¶
func (s *CurrencyServiceMockError) GetRateCurrentCommon( ctx context.Context, in *currencies.GetRateCurrentCommonRequest, opts ...client.CallOption, ) (*currencies.RateData, error)
func (*CurrencyServiceMockError) GetRateCurrentForMerchant ¶
func (s *CurrencyServiceMockError) GetRateCurrentForMerchant( ctx context.Context, in *currencies.GetRateCurrentForMerchantRequest, opts ...client.CallOption, ) (*currencies.RateData, error)
func (*CurrencyServiceMockError) GetSettlementCurrencies ¶
func (s *CurrencyServiceMockError) GetSettlementCurrencies( ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption, ) (*currencies.CurrenciesList, error)
func (*CurrencyServiceMockError) GetSupportedCurrencies ¶
func (s *CurrencyServiceMockError) GetSupportedCurrencies( ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption, ) (*currencies.CurrenciesList, error)
func (*CurrencyServiceMockError) GetVatCurrencies ¶
func (s *CurrencyServiceMockError) GetVatCurrencies( ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption, ) (*currencies.CurrenciesList, error)
func (*CurrencyServiceMockError) SetPaysuperCorrectionCorridor ¶
func (s *CurrencyServiceMockError) SetPaysuperCorrectionCorridor( ctx context.Context, in *currencies.CorrectionCorridor, opts ...client.CallOption, ) (*currencies.EmptyResponse, error)
type CurrencyServiceMockOk ¶
type CurrencyServiceMockOk struct{}
func (*CurrencyServiceMockOk) AddCommonRateCorrectionRule ¶
func (s *CurrencyServiceMockOk) AddCommonRateCorrectionRule( ctx context.Context, in *currencies.CommonCorrectionRule, opts ...client.CallOption, ) (*currencies.EmptyResponse, error)
func (*CurrencyServiceMockOk) AddMerchantRateCorrectionRule ¶
func (s *CurrencyServiceMockOk) AddMerchantRateCorrectionRule( ctx context.Context, in *currencies.CorrectionRule, opts ...client.CallOption, ) (*currencies.EmptyResponse, error)
func (*CurrencyServiceMockOk) ExchangeCurrencyByDateCommon ¶
func (s *CurrencyServiceMockOk) ExchangeCurrencyByDateCommon( ctx context.Context, in *currencies.ExchangeCurrencyByDateCommonRequest, opts ...client.CallOption, ) (*currencies.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockOk) ExchangeCurrencyByDateForMerchant ¶
func (s *CurrencyServiceMockOk) ExchangeCurrencyByDateForMerchant( ctx context.Context, in *currencies.ExchangeCurrencyByDateForMerchantRequest, opts ...client.CallOption, ) (*currencies.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockOk) ExchangeCurrencyCurrentCommon ¶
func (s *CurrencyServiceMockOk) ExchangeCurrencyCurrentCommon( ctx context.Context, in *currencies.ExchangeCurrencyCurrentCommonRequest, opts ...client.CallOption, ) (*currencies.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockOk) ExchangeCurrencyCurrentForMerchant ¶
func (s *CurrencyServiceMockOk) ExchangeCurrencyCurrentForMerchant( ctx context.Context, in *currencies.ExchangeCurrencyCurrentForMerchantRequest, opts ...client.CallOption, ) (*currencies.ExchangeCurrencyResponse, error)
func (*CurrencyServiceMockOk) GetAccountingCurrencies ¶
func (s *CurrencyServiceMockOk) GetAccountingCurrencies( ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption, ) (*currencies.CurrenciesList, error)
func (*CurrencyServiceMockOk) GetCommonRateCorrectionRule ¶
func (s *CurrencyServiceMockOk) GetCommonRateCorrectionRule( ctx context.Context, in *currencies.CommonCorrectionRuleRequest, opts ...client.CallOption, ) (*currencies.CorrectionRule, error)
func (*CurrencyServiceMockOk) GetCurrenciesPrecision ¶
func (s *CurrencyServiceMockOk) GetCurrenciesPrecision(ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption) (*currencies.CurrenciesPrecisionResponse, error)
func (*CurrencyServiceMockOk) GetMerchantRateCorrectionRule ¶
func (s *CurrencyServiceMockOk) GetMerchantRateCorrectionRule( ctx context.Context, in *currencies.MerchantCorrectionRuleRequest, opts ...client.CallOption, ) (*currencies.CorrectionRule, error)
func (*CurrencyServiceMockOk) GetPriceCurrencies ¶
func (s *CurrencyServiceMockOk) GetPriceCurrencies( ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption, ) (*currencies.CurrenciesList, error)
func (*CurrencyServiceMockOk) GetRateByDateCommon ¶
func (s *CurrencyServiceMockOk) GetRateByDateCommon( ctx context.Context, in *currencies.GetRateByDateCommonRequest, opts ...client.CallOption, ) (*currencies.RateData, error)
func (*CurrencyServiceMockOk) GetRateByDateForMerchant ¶
func (s *CurrencyServiceMockOk) GetRateByDateForMerchant( ctx context.Context, in *currencies.GetRateByDateForMerchantRequest, opts ...client.CallOption, ) (*currencies.RateData, error)
func (*CurrencyServiceMockOk) GetRateCurrentCommon ¶
func (s *CurrencyServiceMockOk) GetRateCurrentCommon( ctx context.Context, in *currencies.GetRateCurrentCommonRequest, opts ...client.CallOption, ) (*currencies.RateData, error)
func (*CurrencyServiceMockOk) GetRateCurrentForMerchant ¶
func (s *CurrencyServiceMockOk) GetRateCurrentForMerchant( ctx context.Context, in *currencies.GetRateCurrentForMerchantRequest, opts ...client.CallOption, ) (*currencies.RateData, error)
func (*CurrencyServiceMockOk) GetSettlementCurrencies ¶
func (s *CurrencyServiceMockOk) GetSettlementCurrencies( ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption, ) (*currencies.CurrenciesList, error)
func (*CurrencyServiceMockOk) GetSupportedCurrencies ¶
func (s *CurrencyServiceMockOk) GetSupportedCurrencies( ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption, ) (*currencies.CurrenciesList, error)
func (*CurrencyServiceMockOk) GetVatCurrencies ¶
func (s *CurrencyServiceMockOk) GetVatCurrencies( ctx context.Context, in *currencies.EmptyRequest, opts ...client.CallOption, ) (*currencies.CurrenciesList, error)
func (*CurrencyServiceMockOk) SetPaysuperCorrectionCorridor ¶
func (s *CurrencyServiceMockOk) SetPaysuperCorrectionCorridor( ctx context.Context, in *currencies.CorrectionCorridor, opts ...client.CallOption, ) (*currencies.EmptyResponse, error)
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(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardBaseReports, error)
GetBaseReport provides a mock function with given fields: _a0, _a1, _a2
func (*DashboardRepositoryInterface) GetBaseRevenueByCountryReport ¶
func (_m *DashboardRepositoryInterface) GetBaseRevenueByCountryReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardRevenueByCountryReport, error)
GetBaseRevenueByCountryReport provides a mock function with given fields: _a0, _a1, _a2
func (*DashboardRepositoryInterface) GetBaseSalesTodayReport ¶
func (_m *DashboardRepositoryInterface) GetBaseSalesTodayReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardSalesTodayReport, error)
GetBaseSalesTodayReport provides a mock function with given fields: _a0, _a1, _a2
func (*DashboardRepositoryInterface) GetBaseSourcesReport ¶
func (_m *DashboardRepositoryInterface) GetBaseSourcesReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardSourcesReport, error)
GetBaseSourcesReport provides a mock function with given fields: _a0, _a1, _a2
func (*DashboardRepositoryInterface) GetMainReport ¶
func (_m *DashboardRepositoryInterface) GetMainReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardMainReport, error)
GetMainReport provides a mock function with given fields: _a0, _a1, _a2
func (*DashboardRepositoryInterface) GetRevenueDynamicsReport ¶
func (_m *DashboardRepositoryInterface) GetRevenueDynamicsReport(_a0 context.Context, _a1 string, _a2 string) (*grpc.DashboardRevenueDynamicReport, error)
GetRevenueDynamicsReport provides a mock function with given fields: _a0, _a1, _a2
type DocumentSignerService ¶
DocumentSignerService is an autogenerated mock type for the DocumentSignerService type
func (*DocumentSignerService) CreateSignature ¶
func (_m *DocumentSignerService) CreateSignature(ctx context.Context, in *proto.CreateSignatureRequest, opts ...client.CallOption) (*proto.CreateSignatureResponse, error)
CreateSignature provides a mock function with given fields: ctx, in, opts
func (*DocumentSignerService) GetSignatureUrl ¶
func (_m *DocumentSignerService) GetSignatureUrl(ctx context.Context, in *proto.GetSignatureUrlRequest, opts ...client.CallOption) (*proto.GetSignatureUrlResponse, error)
GetSignatureUrl provides a mock function with given fields: ctx, in, opts
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) GetById ¶
func (_m *KeyProductRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*grpc.KeyProduct, error)
GetById provides a mock function with given fields: _a0, _a1
func (*KeyProductRepositoryInterface) Update ¶
func (_m *KeyProductRepositoryInterface) Update(_a0 context.Context, _a1 *grpc.KeyProduct) error
Update provides a mock function with given fields: _a0, _a1
type KeyRepositoryInterface ¶
KeyRepositoryInterface is an autogenerated mock type for the KeyRepositoryInterface type
func (*KeyRepositoryInterface) CancelById ¶
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) (*billing.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 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) (*billing.MerchantBalance, error)
GetByMerchantIdAndCurrency provides a mock function with given fields: ctx, merchantId, currency
func (*MerchantBalanceServiceInterface) Insert ¶
func (_m *MerchantBalanceServiceInterface) Insert(ctx context.Context, document *billing.MerchantBalance) error
Insert provides a mock function with given fields: ctx, document
type MerchantRepositoryInterface ¶
MerchantRepositoryInterface is an autogenerated mock type for the MerchantRepositoryInterface type
func (*MerchantRepositoryInterface) GetById ¶
func (_m *MerchantRepositoryInterface) GetById(ctx context.Context, id string) (*billing.Merchant, error)
GetById provides a mock function with given fields: ctx, id
func (*MerchantRepositoryInterface) GetCommonById ¶
func (_m *MerchantRepositoryInterface) GetCommonById(ctx context.Context, id string) (*billing.MerchantCommon, error)
GetCommonById provides a mock function with given fields: ctx, id
func (*MerchantRepositoryInterface) GetMerchantsWithAutoPayouts ¶
func (_m *MerchantRepositoryInterface) GetMerchantsWithAutoPayouts(ctx context.Context) ([]*billing.Merchant, error)
GetMerchantsWithAutoPayouts provides a mock function with given fields: ctx
func (*MerchantRepositoryInterface) GetPaymentMethod ¶
func (_m *MerchantRepositoryInterface) GetPaymentMethod(ctx context.Context, merchantId string, method string) (*billing.MerchantPaymentMethod, error)
GetPaymentMethod provides a mock function with given fields: ctx, merchantId, method
func (*MerchantRepositoryInterface) Insert ¶
func (_m *MerchantRepositoryInterface) Insert(ctx context.Context, merchant *billing.Merchant) error
Insert provides a mock function with given fields: ctx, merchant
func (*MerchantRepositoryInterface) MultipleInsert ¶
func (_m *MerchantRepositoryInterface) MultipleInsert(ctx context.Context, merchants []*billing.Merchant) error
MultipleInsert provides a mock function with given fields: ctx, merchants
type MerchantTariffRatesInterface ¶
MerchantTariffRatesInterface is an autogenerated mock type for the MerchantTariffRatesInterface type
func (*MerchantTariffRatesInterface) GetBy ¶
func (_m *MerchantTariffRatesInterface) GetBy(ctx context.Context, in *grpc.GetMerchantTariffRatesRequest) (*grpc.GetMerchantTariffRatesResponseItems, error)
GetBy provides a mock function with given fields: ctx, in
func (*MerchantTariffRatesInterface) GetCacheKeyForGetBy ¶
func (_m *MerchantTariffRatesInterface) GetCacheKeyForGetBy(_a0 *grpc.GetMerchantTariffRatesRequest) (string, error)
GetCacheKeyForGetBy provides a mock function with given fields: _a0
func (*MerchantTariffRatesInterface) GetPaymentTariffsBy ¶
func (_m *MerchantTariffRatesInterface) GetPaymentTariffsBy(_a0 context.Context, _a1 *grpc.GetMerchantTariffRatesRequest) ([]*billing.MerchantTariffRatesPayment, error)
GetPaymentTariffsBy provides a mock function with given fields: _a0, _a1
func (*MerchantTariffRatesInterface) GetTariffsSettings ¶
func (_m *MerchantTariffRatesInterface) GetTariffsSettings(ctx context.Context, in *grpc.GetMerchantTariffRatesRequest) (*billing.MerchantTariffRatesSettings, error)
GetTariffsSettings provides a mock function with given fields: ctx, in
type MoneyBackCostMerchantInterface ¶
MoneyBackCostMerchantInterface is an autogenerated mock type for the MoneyBackCostMerchantInterface type
func (*MoneyBackCostMerchantInterface) Delete ¶
func (_m *MoneyBackCostMerchantInterface) Delete(obj *billing.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) (*billing.MoneyBackCostMerchantList, error)
Get provides a mock function with given fields: merchantId, name, payoutCurrency, undoReason, region, country, mccCode, paymentStage
func (*MoneyBackCostMerchantInterface) GetAllForMerchant ¶
func (_m *MoneyBackCostMerchantInterface) GetAllForMerchant(merchantId string) (*billing.MoneyBackCostMerchantList, error)
GetAllForMerchant provides a mock function with given fields: merchantId
func (*MoneyBackCostMerchantInterface) GetById ¶
func (_m *MoneyBackCostMerchantInterface) GetById(id string) (*billing.MoneyBackCostMerchant, error)
GetById provides a mock function with given fields: id
func (*MoneyBackCostMerchantInterface) MultipleInsert ¶
func (_m *MoneyBackCostMerchantInterface) MultipleInsert(obj []*billing.MoneyBackCostMerchant) error
MultipleInsert provides a mock function with given fields: obj
func (*MoneyBackCostMerchantInterface) Update ¶
func (_m *MoneyBackCostMerchantInterface) Update(obj *billing.MoneyBackCostMerchant) error
Update provides a mock function with given fields: obj
type MoneyBackCostSystemInterface ¶
MoneyBackCostSystemInterface is an autogenerated mock type for the MoneyBackCostSystemInterface type
func (*MoneyBackCostSystemInterface) Delete ¶
func (_m *MoneyBackCostSystemInterface) Delete(obj *billing.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() (*billing.MoneyBackCostSystemList, error)
GetAll provides a mock function with given fields:
func (*MoneyBackCostSystemInterface) GetById ¶
func (_m *MoneyBackCostSystemInterface) GetById(id string) (*billing.MoneyBackCostSystem, error)
GetById provides a mock function with given fields: id
func (*MoneyBackCostSystemInterface) MultipleInsert ¶
func (_m *MoneyBackCostSystemInterface) MultipleInsert(obj []*billing.MoneyBackCostSystem) error
MultipleInsert provides a mock function with given fields: obj
func (*MoneyBackCostSystemInterface) Update ¶
func (_m *MoneyBackCostSystemInterface) Update(obj *billing.MoneyBackCostSystem) error
Update provides a mock function with given fields: obj
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) ([]*billing.OperatingCompany, error)
GetAll provides a mock function with given fields: ctx
func (*OperatingCompanyInterface) GetById ¶
func (_m *OperatingCompanyInterface) GetById(ctx context.Context, id string) (*billing.OperatingCompany, error)
GetById provides a mock function with given fields: ctx, id
func (*OperatingCompanyInterface) GetByPaymentCountry ¶
func (_m *OperatingCompanyInterface) GetByPaymentCountry(ctx context.Context, countryCode string) (*billing.OperatingCompany, error)
GetByPaymentCountry provides a mock function with given fields: ctx, countryCode
func (*OperatingCompanyInterface) Upsert ¶
func (_m *OperatingCompanyInterface) Upsert(ctx context.Context, oc *billing.OperatingCompany) error
Upsert provides a mock function with given fields: ctx, oc
type OrderRepositoryInterface ¶
OrderRepositoryInterface is an autogenerated mock type for the OrderRepositoryInterface type
type OrderViewServiceInterface ¶
OrderViewServiceInterface is an autogenerated mock type for the OrderViewServiceInterface type
func (*OrderViewServiceInterface) CountTransactions ¶
func (_m *OrderViewServiceInterface) CountTransactions(ctx context.Context, match primitive.M) (int64, error)
CountTransactions provides a mock function with given fields: ctx, match
func (*OrderViewServiceInterface) GetOrderBy ¶
func (_m *OrderViewServiceInterface) GetOrderBy(ctx context.Context, id string, uuid string, merchantId string, receiver interface{}) (interface{}, error)
GetOrderBy provides a mock function with given fields: ctx, id, uuid, merchantId, receiver
func (*OrderViewServiceInterface) GetPaylinkStat ¶
func (_m *OrderViewServiceInterface) GetPaylinkStat(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*paylink.StatCommon, error)
GetPaylinkStat provides a mock function with given fields: ctx, paylinkId, merchantId, from, to
func (*OrderViewServiceInterface) GetPaylinkStatByCountry ¶
func (_m *OrderViewServiceInterface) GetPaylinkStatByCountry(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*paylink.GroupStatCommon, error)
GetPaylinkStatByCountry provides a mock function with given fields: ctx, paylinkId, merchantId, from, to
func (*OrderViewServiceInterface) GetPaylinkStatByDate ¶
func (_m *OrderViewServiceInterface) GetPaylinkStatByDate(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*paylink.GroupStatCommon, error)
GetPaylinkStatByDate provides a mock function with given fields: ctx, paylinkId, merchantId, from, to
func (*OrderViewServiceInterface) GetPaylinkStatByReferrer ¶
func (_m *OrderViewServiceInterface) GetPaylinkStatByReferrer(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*paylink.GroupStatCommon, error)
GetPaylinkStatByReferrer provides a mock function with given fields: ctx, paylinkId, merchantId, from, to
func (*OrderViewServiceInterface) GetPaylinkStatByUtm ¶
func (_m *OrderViewServiceInterface) GetPaylinkStatByUtm(ctx context.Context, paylinkId string, merchantId string, from int64, to int64) (*paylink.GroupStatCommon, error)
GetPaylinkStatByUtm provides a mock function with given fields: ctx, paylinkId, merchantId, from, to
func (*OrderViewServiceInterface) GetRoyaltySummary ¶
func (_m *OrderViewServiceInterface) GetRoyaltySummary(ctx context.Context, merchantId string, currency string, from time.Time, to time.Time) ([]*billing.RoyaltyReportProductSummaryItem, *billing.RoyaltyReportProductSummaryItem, error)
GetRoyaltySummary provides a mock function with given fields: ctx, merchantId, currency, from, to
func (*OrderViewServiceInterface) GetTransactionsPrivate ¶
func (_m *OrderViewServiceInterface) GetTransactionsPrivate(ctx context.Context, match primitive.M, limit int64, offset int64) ([]*billing.OrderViewPrivate, error)
GetTransactionsPrivate provides a mock function with given fields: ctx, match, limit, offset
func (*OrderViewServiceInterface) GetTransactionsPublic ¶
func (_m *OrderViewServiceInterface) GetTransactionsPublic(ctx context.Context, match primitive.M, limit int64, offset int64) ([]*billing.OrderViewPublic, error)
GetTransactionsPublic provides a mock function with given fields: ctx, match, limit, offset
type PaylinkServiceInterface ¶
PaylinkServiceInterface is an autogenerated mock type for the PaylinkServiceInterface type
func (*PaylinkServiceInterface) CountByQuery ¶
func (_m *PaylinkServiceInterface) CountByQuery(ctx context.Context, query primitive.M) (int64, error)
CountByQuery provides a mock function with given fields: ctx, query
func (*PaylinkServiceInterface) Delete ¶
Delete provides a mock function with given fields: ctx, id, merchantId
func (*PaylinkServiceInterface) GetById ¶
func (_m *PaylinkServiceInterface) GetById(ctx context.Context, id string) (*paylink.Paylink, error)
GetById provides a mock function with given fields: ctx, id
func (*PaylinkServiceInterface) GetByIdAndMerchant ¶
func (_m *PaylinkServiceInterface) GetByIdAndMerchant(ctx context.Context, id string, merchantId string) (*paylink.Paylink, error)
GetByIdAndMerchant provides a mock function with given fields: ctx, id, merchantId
func (*PaylinkServiceInterface) GetListByQuery ¶
func (_m *PaylinkServiceInterface) GetListByQuery(ctx context.Context, query primitive.M, limit int64, offset int64) ([]*paylink.Paylink, error)
GetListByQuery provides a mock function with given fields: ctx, query, limit, offset
func (*PaylinkServiceInterface) GetPaylinkVisits ¶
func (_m *PaylinkServiceInterface) GetPaylinkVisits(ctx context.Context, id string, from int64, to int64) (int64, error)
GetPaylinkVisits provides a mock function with given fields: ctx, id, from, to
func (*PaylinkServiceInterface) GetUrl ¶
func (_m *PaylinkServiceInterface) GetUrl(ctx context.Context, id string, merchantId string, urlMask string, utmSource string, utmMedium string, utmCampaign string) (string, error)
GetUrl provides a mock function with given fields: ctx, id, merchantId, urlMask, utmSource, utmMedium, utmCampaign
func (*PaylinkServiceInterface) IncrVisits ¶
func (_m *PaylinkServiceInterface) IncrVisits(ctx context.Context, id string) error
IncrVisits provides a mock function with given fields: ctx, id
func (*PaylinkServiceInterface) UpdatePaylinkTotalStat ¶
func (_m *PaylinkServiceInterface) UpdatePaylinkTotalStat(ctx context.Context, id string, merchantId string) error
UpdatePaylinkTotalStat provides a mock function with given fields: ctx, id, merchantId
type PaymentChannelCostMerchantInterface ¶
PaymentChannelCostMerchantInterface is an autogenerated mock type for the PaymentChannelCostMerchantInterface type
func (*PaymentChannelCostMerchantInterface) Delete ¶
func (_m *PaymentChannelCostMerchantInterface) Delete(ctx context.Context, obj *billing.PaymentChannelCostMerchant) error
Delete provides a mock function with given fields: ctx, obj
func (*PaymentChannelCostMerchantInterface) Get ¶
func (_m *PaymentChannelCostMerchantInterface) Get(ctx context.Context, merchantId string, name string, payoutCurrency string, region string, country string, mccCode string) ([]*pkg.PaymentChannelCostMerchantSet, error)
Get provides a mock function with given fields: ctx, merchantId, name, payoutCurrency, region, country, mccCode
func (*PaymentChannelCostMerchantInterface) GetAllForMerchant ¶
func (_m *PaymentChannelCostMerchantInterface) GetAllForMerchant(ctx context.Context, merchantId string) (*billing.PaymentChannelCostMerchantList, error)
GetAllForMerchant provides a mock function with given fields: ctx, merchantId
func (*PaymentChannelCostMerchantInterface) GetById ¶
func (_m *PaymentChannelCostMerchantInterface) GetById(ctx context.Context, id string) (*billing.PaymentChannelCostMerchant, error)
GetById provides a mock function with given fields: ctx, id
func (*PaymentChannelCostMerchantInterface) MultipleInsert ¶
func (_m *PaymentChannelCostMerchantInterface) MultipleInsert(ctx context.Context, obj []*billing.PaymentChannelCostMerchant) error
MultipleInsert provides a mock function with given fields: ctx, obj
func (*PaymentChannelCostMerchantInterface) Update ¶
func (_m *PaymentChannelCostMerchantInterface) Update(ctx context.Context, obj *billing.PaymentChannelCostMerchant) error
Update provides a mock function with given fields: ctx, obj
type PaymentChannelCostSystemInterface ¶
PaymentChannelCostSystemInterface is an autogenerated mock type for the PaymentChannelCostSystemInterface type
func (*PaymentChannelCostSystemInterface) Delete ¶
func (_m *PaymentChannelCostSystemInterface) Delete(ctx context.Context, obj *billing.PaymentChannelCostSystem) error
Delete provides a mock function with given fields: ctx, obj
func (*PaymentChannelCostSystemInterface) Get ¶
func (_m *PaymentChannelCostSystemInterface) Get(ctx context.Context, name string, region string, country string, mccCode string, operatingCompanyId string) (*billing.PaymentChannelCostSystem, error)
Get provides a mock function with given fields: ctx, name, region, country, mccCode, operatingCompanyId
func (*PaymentChannelCostSystemInterface) GetAll ¶
func (_m *PaymentChannelCostSystemInterface) GetAll(ctx context.Context) (*billing.PaymentChannelCostSystemList, error)
GetAll provides a mock function with given fields: ctx
func (*PaymentChannelCostSystemInterface) GetById ¶
func (_m *PaymentChannelCostSystemInterface) GetById(ctx context.Context, id string) (*billing.PaymentChannelCostSystem, error)
GetById provides a mock function with given fields: ctx, id
func (*PaymentChannelCostSystemInterface) MultipleInsert ¶
func (_m *PaymentChannelCostSystemInterface) MultipleInsert(ctx context.Context, obj []*billing.PaymentChannelCostSystem) error
MultipleInsert provides a mock function with given fields: ctx, obj
func (*PaymentChannelCostSystemInterface) Update ¶
func (_m *PaymentChannelCostSystemInterface) Update(ctx context.Context, obj *billing.PaymentChannelCostSystem) error
Update provides a mock function with given fields: ctx, obj
type PaymentMethodInterface ¶
PaymentMethodInterface is an autogenerated mock type for the PaymentMethodInterface type
func (*PaymentMethodInterface) GetAll ¶
func (_m *PaymentMethodInterface) GetAll(ctx context.Context) (map[string]*billing.PaymentMethod, error)
GetAll provides a mock function with given fields: ctx
func (*PaymentMethodInterface) GetByGroupAndCurrency ¶
func (_m *PaymentMethodInterface) GetByGroupAndCurrency(ctx context.Context, project *billing.Project, group string, currency string) (*billing.PaymentMethod, error)
GetByGroupAndCurrency provides a mock function with given fields: ctx, project, group, currency
func (*PaymentMethodInterface) GetById ¶
func (_m *PaymentMethodInterface) GetById(_a0 context.Context, _a1 string) (*billing.PaymentMethod, error)
GetById provides a mock function with given fields: _a0, _a1
func (*PaymentMethodInterface) GetPaymentSettings ¶
func (_m *PaymentMethodInterface) GetPaymentSettings(paymentMethod *billing.PaymentMethod, currency string, mccCode string, operatingCompanyId string, paymentMethodBrand string, project *billing.Project) (*billing.PaymentMethodParams, error)
GetPaymentSettings provides a mock function with given fields: paymentMethod, currency, mccCode, operatingCompanyId, paymentMethodBrand, project
func (*PaymentMethodInterface) Insert ¶
func (_m *PaymentMethodInterface) Insert(_a0 context.Context, _a1 *billing.PaymentMethod) error
Insert provides a mock function with given fields: _a0, _a1
func (*PaymentMethodInterface) ListByParams ¶
func (_m *PaymentMethodInterface) ListByParams(ctx context.Context, project *billing.Project, currency string, mccCode string, operatingCompanyId string) ([]*billing.PaymentMethod, error)
ListByParams provides a mock function with given fields: ctx, project, currency, mccCode, operatingCompanyId
func (*PaymentMethodInterface) MultipleInsert ¶
func (_m *PaymentMethodInterface) MultipleInsert(_a0 context.Context, _a1 []*billing.PaymentMethod) error
MultipleInsert provides a mock function with given fields: _a0, _a1
func (*PaymentMethodInterface) Update ¶
func (_m *PaymentMethodInterface) Update(_a0 context.Context, _a1 *billing.PaymentMethod) error
Update provides a mock function with given fields: _a0, _a1
type PaymentMinLimitSystemInterface ¶
PaymentMinLimitSystemInterface is an autogenerated mock type for the PaymentMinLimitSystemInterface type
func (*PaymentMinLimitSystemInterface) GetAll ¶
func (_m *PaymentMinLimitSystemInterface) GetAll(ctx context.Context) ([]*billing.PaymentMinLimitSystem, error)
GetAll provides a mock function with given fields: ctx
func (*PaymentMinLimitSystemInterface) GetByCurrency ¶
func (_m *PaymentMinLimitSystemInterface) GetByCurrency(ctx context.Context, currency string) (*billing.PaymentMinLimitSystem, error)
GetByCurrency provides a mock function with given fields: ctx, currency
func (*PaymentMinLimitSystemInterface) MultipleInsert ¶
func (_m *PaymentMinLimitSystemInterface) MultipleInsert(ctx context.Context, pmlsArray []*billing.PaymentMinLimitSystem) error
MultipleInsert provides a mock function with given fields: ctx, pmlsArray
func (*PaymentMinLimitSystemInterface) Upsert ¶
func (_m *PaymentMinLimitSystemInterface) Upsert(ctx context.Context, pmls *billing.PaymentMinLimitSystem) error
Upsert provides a mock function with given fields: ctx, pmls
type PaymentSystem ¶
PaymentSystem is an autogenerated mock type for the PaymentSystem type
func (*PaymentSystem) CreatePayment ¶
func (_m *PaymentSystem) CreatePayment(order *billing.Order, successUrl string, failUrl string, requisites map[string]string) (string, error)
CreatePayment provides a mock function with given fields: order, successUrl, failUrl, requisites
func (*PaymentSystem) CreateRefund ¶
CreateRefund provides a mock function with given fields: order, refund
func (*PaymentSystem) GetRecurringId ¶
func (_m *PaymentSystem) GetRecurringId(request proto.Message) string
GetRecurringId provides a mock function with given fields: request
func (*PaymentSystem) IsRecurringCallback ¶
func (_m *PaymentSystem) IsRecurringCallback(request proto.Message) bool
IsRecurringCallback provides a mock function with given fields: request
func (*PaymentSystem) ProcessPayment ¶
func (_m *PaymentSystem) ProcessPayment(order *billing.Order, message proto.Message, raw string, signature string) error
ProcessPayment provides a mock function with given fields: order, message, raw, signature
type PaymentSystemServiceInterface ¶
PaymentSystemServiceInterface is an autogenerated mock type for the PaymentSystemServiceInterface type
func (*PaymentSystemServiceInterface) GetById ¶
func (_m *PaymentSystemServiceInterface) GetById(_a0 context.Context, _a1 string) (*billing.PaymentSystem, error)
GetById provides a mock function with given fields: _a0, _a1
func (*PaymentSystemServiceInterface) Insert ¶
func (_m *PaymentSystemServiceInterface) Insert(_a0 context.Context, _a1 *billing.PaymentSystem) error
Insert provides a mock function with given fields: _a0, _a1
func (*PaymentSystemServiceInterface) MultipleInsert ¶
func (_m *PaymentSystemServiceInterface) MultipleInsert(_a0 context.Context, _a1 []*billing.PaymentSystem) error
MultipleInsert provides a mock function with given fields: _a0, _a1
func (*PaymentSystemServiceInterface) Update ¶
func (_m *PaymentSystemServiceInterface) Update(_a0 context.Context, _a1 *billing.PaymentSystem) error
Update provides a mock function with given fields: _a0, _a1
type PayoutDocumentServiceInterface ¶
PayoutDocumentServiceInterface is an autogenerated mock type for the PayoutDocumentServiceInterface type
func (*PayoutDocumentServiceInterface) CountByQuery ¶
func (_m *PayoutDocumentServiceInterface) CountByQuery(ctx context.Context, query primitive.M) (int64, error)
CountByQuery provides a mock function with given fields: ctx, query
func (*PayoutDocumentServiceInterface) FindByQuery ¶
func (_m *PayoutDocumentServiceInterface) FindByQuery(ctx context.Context, query primitive.M, sorts []string, limit int64, offset int64) ([]*billing.PayoutDocument, error)
FindByQuery provides a mock function with given fields: ctx, query, sorts, limit, offset
func (*PayoutDocumentServiceInterface) GetBalanceAmount ¶
func (_m *PayoutDocumentServiceInterface) GetBalanceAmount(ctx context.Context, merchantId string, currency string) (float64, error)
GetBalanceAmount provides a mock function with given fields: ctx, merchantId, currency
func (*PayoutDocumentServiceInterface) GetById ¶
func (_m *PayoutDocumentServiceInterface) GetById(ctx context.Context, id string) (*billing.PayoutDocument, error)
GetById provides a mock function with given fields: ctx, id
func (*PayoutDocumentServiceInterface) GetByIdAndMerchant ¶
func (_m *PayoutDocumentServiceInterface) GetByIdAndMerchant(ctx context.Context, id string, merchantId string) (*billing.PayoutDocument, error)
GetByIdAndMerchant provides a mock function with given fields: ctx, id, merchantId
func (*PayoutDocumentServiceInterface) GetLast ¶
func (_m *PayoutDocumentServiceInterface) GetLast(ctx context.Context, merchantId string, currency string) (*billing.PayoutDocument, error)
GetLast provides a mock function with given fields: ctx, merchantId, currency
func (*PayoutDocumentServiceInterface) Insert ¶
func (_m *PayoutDocumentServiceInterface) Insert(ctx context.Context, document *billing.PayoutDocument, ip string, source string) error
Insert provides a mock function with given fields: ctx, document, ip, source
func (*PayoutDocumentServiceInterface) Update ¶
func (_m *PayoutDocumentServiceInterface) Update(ctx context.Context, document *billing.PayoutDocument, ip string, source string) error
Update provides a mock function with given fields: ctx, document, ip, source
type PriceGroupServiceInterface ¶
PriceGroupServiceInterface is an autogenerated mock type for the PriceGroupServiceInterface type
func (*PriceGroupServiceInterface) CalculatePriceWithFraction ¶
func (_m *PriceGroupServiceInterface) CalculatePriceWithFraction(_a0 float64, _a1 float64) float64
CalculatePriceWithFraction provides a mock function with given fields: _a0, _a1
func (*PriceGroupServiceInterface) GetAll ¶
func (_m *PriceGroupServiceInterface) GetAll(_a0 context.Context) ([]*billing.PriceGroup, error)
GetAll provides a mock function with given fields: _a0
func (*PriceGroupServiceInterface) GetById ¶
func (_m *PriceGroupServiceInterface) GetById(_a0 context.Context, _a1 string) (*billing.PriceGroup, error)
GetById provides a mock function with given fields: _a0, _a1
func (*PriceGroupServiceInterface) GetByRegion ¶
func (_m *PriceGroupServiceInterface) GetByRegion(_a0 context.Context, _a1 string) (*billing.PriceGroup, error)
GetByRegion provides a mock function with given fields: _a0, _a1
func (*PriceGroupServiceInterface) Insert ¶
func (_m *PriceGroupServiceInterface) Insert(_a0 context.Context, _a1 *billing.PriceGroup) error
Insert provides a mock function with given fields: _a0, _a1
func (*PriceGroupServiceInterface) MakeCurrencyList ¶
func (_m *PriceGroupServiceInterface) MakeCurrencyList(_a0 []*billing.PriceGroup, _a1 *billing.CountriesList) []*grpc.PriceGroupRegions
MakeCurrencyList provides a mock function with given fields: _a0, _a1
func (*PriceGroupServiceInterface) MultipleInsert ¶
func (_m *PriceGroupServiceInterface) MultipleInsert(_a0 context.Context, _a1 []*billing.PriceGroup) error
MultipleInsert provides a mock function with given fields: _a0, _a1
func (*PriceGroupServiceInterface) Update ¶
func (_m *PriceGroupServiceInterface) Update(_a0 context.Context, _a1 *billing.PriceGroup) error
Update 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) (*billing.PriceTable, error)
GetByRegion provides a mock function with given fields: _a0, _a1
func (*PriceTableServiceInterface) Insert ¶
func (_m *PriceTableServiceInterface) Insert(_a0 context.Context, _a1 *billing.PriceTable) error
Insert provides a mock function with given fields: _a0, _a1
type ProductServiceInterface ¶
ProductServiceInterface is an autogenerated mock type for the ProductServiceInterface type
func (*ProductServiceInterface) CountByProjectSku ¶
func (_m *ProductServiceInterface) CountByProjectSku(_a0 context.Context, _a1 string, _a2 string) (int64, error)
CountByProjectSku provides a mock function with given fields: _a0, _a1, _a2
func (*ProductServiceInterface) GetById ¶
GetById provides a mock function with given fields: _a0, _a1
type RepositoryServiceEmpty ¶
type RepositoryServiceEmpty struct{}
func (*RepositoryServiceEmpty) DeleteSavedCard ¶
func (r *RepositoryServiceEmpty) DeleteSavedCard( ctx context.Context, in *repository.DeleteSavedCardRequest, opts ...client.CallOption, ) (*repository.DeleteSavedCardResponse, error)
func (*RepositoryServiceEmpty) FindSavedCardById ¶
func (r *RepositoryServiceEmpty) FindSavedCardById( ctx context.Context, in *repository.FindByStringValue, opts ...client.CallOption, ) (*entity.SavedCard, error)
func (*RepositoryServiceEmpty) FindSavedCards ¶
func (r *RepositoryServiceEmpty) FindSavedCards( ctx context.Context, in *repository.SavedCardRequest, opts ...client.CallOption, ) (*repository.SavedCardList, error)
func (*RepositoryServiceEmpty) InsertSavedCard ¶
func (r *RepositoryServiceEmpty) InsertSavedCard( ctx context.Context, in *repository.SavedCardRequest, opts ...client.CallOption, ) (*repository.Result, error)
type RepositoryServiceError ¶
type RepositoryServiceError struct{}
func (*RepositoryServiceError) DeleteSavedCard ¶
func (r *RepositoryServiceError) DeleteSavedCard( ctx context.Context, in *repository.DeleteSavedCardRequest, opts ...client.CallOption, ) (*repository.DeleteSavedCardResponse, error)
func (*RepositoryServiceError) FindSavedCardById ¶
func (r *RepositoryServiceError) FindSavedCardById( ctx context.Context, in *repository.FindByStringValue, opts ...client.CallOption, ) (*entity.SavedCard, error)
func (*RepositoryServiceError) FindSavedCards ¶
func (r *RepositoryServiceError) FindSavedCards( ctx context.Context, in *repository.SavedCardRequest, opts ...client.CallOption, ) (*repository.SavedCardList, error)
func (*RepositoryServiceError) InsertSavedCard ¶
func (r *RepositoryServiceError) InsertSavedCard( ctx context.Context, in *repository.SavedCardRequest, opts ...client.CallOption, ) (*repository.Result, error)
type RepositoryServiceOk ¶
type RepositoryServiceOk struct{}
func (*RepositoryServiceOk) DeleteSavedCard ¶
func (r *RepositoryServiceOk) DeleteSavedCard( ctx context.Context, in *repository.DeleteSavedCardRequest, opts ...client.CallOption, ) (*repository.DeleteSavedCardResponse, error)
func (*RepositoryServiceOk) FindSavedCardById ¶
func (r *RepositoryServiceOk) FindSavedCardById( ctx context.Context, in *repository.FindByStringValue, opts ...client.CallOption, ) (*entity.SavedCard, error)
func (*RepositoryServiceOk) FindSavedCards ¶
func (r *RepositoryServiceOk) FindSavedCards( ctx context.Context, in *repository.SavedCardRequest, opts ...client.CallOption, ) (*repository.SavedCardList, error)
func (*RepositoryServiceOk) InsertSavedCard ¶
func (r *RepositoryServiceOk) InsertSavedCard( ctx context.Context, in *repository.SavedCardRequest, opts ...client.CallOption, ) (*repository.Result, error)
type RoyaltyReportServiceInterface ¶
RoyaltyReportServiceInterface is an autogenerated mock type for the RoyaltyReportServiceInterface type
func (*RoyaltyReportServiceInterface) GetBalanceAmount ¶
func (_m *RoyaltyReportServiceInterface) GetBalanceAmount(ctx context.Context, merchantId string, currency string) (float64, error)
GetBalanceAmount provides a mock function with given fields: ctx, merchantId, currency
func (*RoyaltyReportServiceInterface) GetById ¶
func (_m *RoyaltyReportServiceInterface) GetById(ctx context.Context, id string) (*billing.RoyaltyReport, error)
GetById provides a mock function with given fields: ctx, id
func (*RoyaltyReportServiceInterface) GetByPayoutId ¶
func (_m *RoyaltyReportServiceInterface) GetByPayoutId(ctx context.Context, payoutId string) ([]*billing.RoyaltyReport, error)
GetByPayoutId provides a mock function with given fields: ctx, payoutId
func (*RoyaltyReportServiceInterface) GetNonPayoutReports ¶
func (_m *RoyaltyReportServiceInterface) GetNonPayoutReports(ctx context.Context, merchantId string, currency string) ([]*billing.RoyaltyReport, error)
GetNonPayoutReports provides a mock function with given fields: ctx, merchantId, currency
func (*RoyaltyReportServiceInterface) GetReportExists ¶
func (_m *RoyaltyReportServiceInterface) GetReportExists(ctx context.Context, merchantId string, currency string, from time.Time, to time.Time) *billing.RoyaltyReport
GetReportExists provides a mock function with given fields: ctx, merchantId, currency, from, to
func (*RoyaltyReportServiceInterface) Insert ¶
func (_m *RoyaltyReportServiceInterface) Insert(ctx context.Context, document *billing.RoyaltyReport, ip string, source string) error
Insert provides a mock function with given fields: ctx, document, ip, source
func (*RoyaltyReportServiceInterface) SetPaid ¶
func (_m *RoyaltyReportServiceInterface) SetPaid(ctx context.Context, reportIds []string, payoutDocumentId string, ip string, source string) error
SetPaid provides a mock function with given fields: ctx, reportIds, payoutDocumentId, ip, source
func (*RoyaltyReportServiceInterface) SetPayoutDocumentId ¶
func (_m *RoyaltyReportServiceInterface) SetPayoutDocumentId(ctx context.Context, reportIds []string, payoutDocumentId string, ip string, source string) error
SetPayoutDocumentId provides a mock function with given fields: ctx, reportIds, payoutDocumentId, ip, source
func (*RoyaltyReportServiceInterface) UnsetPaid ¶
func (_m *RoyaltyReportServiceInterface) UnsetPaid(ctx context.Context, reportIds []string, ip string, source string) error
UnsetPaid provides a mock function with given fields: ctx, reportIds, ip, source
func (*RoyaltyReportServiceInterface) UnsetPayoutDocumentId ¶
func (_m *RoyaltyReportServiceInterface) UnsetPayoutDocumentId(ctx context.Context, reportIds []string, ip string, source string) error
UnsetPayoutDocumentId provides a mock function with given fields: ctx, reportIds, ip, source
func (*RoyaltyReportServiceInterface) Update ¶
func (_m *RoyaltyReportServiceInterface) Update(ctx context.Context, document *billing.RoyaltyReport, ip string, source string) error
Update provides a mock function with given fields: ctx, document, ip, source
type TaxServiceOkMock ¶
type TaxServiceOkMock struct{}
func (*TaxServiceOkMock) CreateOrUpdate ¶
func (m *TaxServiceOkMock) CreateOrUpdate( ctx context.Context, in *tax_service.TaxRate, opts ...client.CallOption, ) (*tax_service.TaxRate, error)
func (*TaxServiceOkMock) DeleteRateById ¶
func (m *TaxServiceOkMock) DeleteRateById( ctx context.Context, in *tax_service.DeleteRateRequest, opts ...client.CallOption, ) (*tax_service.DeleteRateResponse, error)
func (*TaxServiceOkMock) GetRate ¶
func (m *TaxServiceOkMock) GetRate( ctx context.Context, in *tax_service.GeoIdentity, opts ...client.CallOption, ) (*tax_service.TaxRate, error)
func (*TaxServiceOkMock) GetRates ¶
func (m *TaxServiceOkMock) GetRates( ctx context.Context, in *tax_service.GetRatesRequest, opts ...client.CallOption, ) (*tax_service.GetRatesResponse, error)
type TransportCardPayOk ¶
type TransportCardPayOk struct {
Transport http.RoundTripper
}
type TransportStatusError ¶
type TransportStatusError struct {
Transport http.RoundTripper
}
type TransportStatusOk ¶
type TransportStatusOk struct { Transport http.RoundTripper Err error }
type UserProfileRepositoryInterface ¶
UserProfileRepositoryInterface is an autogenerated mock type for the UserProfileRepositoryInterface type
func (*UserProfileRepositoryInterface) Add ¶
func (_m *UserProfileRepositoryInterface) Add(_a0 context.Context, _a1 *grpc.UserProfile) error
Add provides a mock function with given fields: _a0, _a1
func (*UserProfileRepositoryInterface) GetById ¶
func (_m *UserProfileRepositoryInterface) GetById(_a0 context.Context, _a1 string) (*grpc.UserProfile, error)
GetById provides a mock function with given fields: _a0, _a1
func (*UserProfileRepositoryInterface) GetByUserId ¶
func (_m *UserProfileRepositoryInterface) GetByUserId(_a0 context.Context, _a1 string) (*grpc.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 *grpc.UserProfile) error
Update provides a mock function with given fields: _a0, _a1
type UserRoleServiceInterface ¶
UserRoleServiceInterface is an autogenerated mock type for the UserRoleServiceInterface type
func (*UserRoleServiceInterface) AddAdminUser ¶
AddAdminUser provides a mock function with given fields: _a0, _a1
func (*UserRoleServiceInterface) AddMerchantUser ¶
func (_m *UserRoleServiceInterface) AddMerchantUser(_a0 context.Context, _a1 *billing.UserRole) error
AddMerchantUser provides a mock function with given fields: _a0, _a1
func (*UserRoleServiceInterface) DeleteAdminUser ¶
func (_m *UserRoleServiceInterface) DeleteAdminUser(_a0 context.Context, _a1 *billing.UserRole) error
DeleteAdminUser provides a mock function with given fields: _a0, _a1
func (*UserRoleServiceInterface) DeleteMerchantUser ¶
func (_m *UserRoleServiceInterface) DeleteMerchantUser(_a0 context.Context, _a1 *billing.UserRole) error
DeleteMerchantUser provides a mock function with given fields: _a0, _a1
func (*UserRoleServiceInterface) GetAdminUserByEmail ¶
func (_m *UserRoleServiceInterface) GetAdminUserByEmail(_a0 context.Context, _a1 string) (*billing.UserRole, error)
GetAdminUserByEmail provides a mock function with given fields: _a0, _a1
func (*UserRoleServiceInterface) GetAdminUserById ¶
func (_m *UserRoleServiceInterface) GetAdminUserById(_a0 context.Context, _a1 string) (*billing.UserRole, error)
GetAdminUserById provides a mock function with given fields: _a0, _a1
func (*UserRoleServiceInterface) GetAdminUserByUserId ¶
func (_m *UserRoleServiceInterface) GetAdminUserByUserId(_a0 context.Context, _a1 string) (*billing.UserRole, error)
GetAdminUserByUserId provides a mock function with given fields: _a0, _a1
func (*UserRoleServiceInterface) GetMerchantOwner ¶
func (_m *UserRoleServiceInterface) GetMerchantOwner(_a0 context.Context, _a1 string) (*billing.UserRole, error)
GetMerchantOwner provides a mock function with given fields: _a0, _a1
func (*UserRoleServiceInterface) GetMerchantUserByEmail ¶
func (_m *UserRoleServiceInterface) GetMerchantUserByEmail(_a0 context.Context, _a1 string, _a2 string) (*billing.UserRole, error)
GetMerchantUserByEmail provides a mock function with given fields: _a0, _a1, _a2
func (*UserRoleServiceInterface) GetMerchantUserById ¶
func (_m *UserRoleServiceInterface) GetMerchantUserById(_a0 context.Context, _a1 string) (*billing.UserRole, error)
GetMerchantUserById provides a mock function with given fields: _a0, _a1
func (*UserRoleServiceInterface) GetMerchantUserByUserId ¶
func (_m *UserRoleServiceInterface) GetMerchantUserByUserId(_a0 context.Context, _a1 string, _a2 string) (*billing.UserRole, error)
GetMerchantUserByUserId provides a mock function with given fields: _a0, _a1, _a2
func (*UserRoleServiceInterface) GetMerchantsForUser ¶
func (_m *UserRoleServiceInterface) GetMerchantsForUser(_a0 context.Context, _a1 string) ([]*billing.UserRole, error)
GetMerchantsForUser provides a mock function with given fields: _a0, _a1
func (*UserRoleServiceInterface) GetSystemAdmin ¶
GetSystemAdmin provides a mock function with given fields: _a0
func (*UserRoleServiceInterface) GetUsersForAdmin ¶
func (_m *UserRoleServiceInterface) GetUsersForAdmin(_a0 context.Context) ([]*billing.UserRole, error)
GetUsersForAdmin provides a mock function with given fields: _a0
func (*UserRoleServiceInterface) GetUsersForMerchant ¶
func (_m *UserRoleServiceInterface) GetUsersForMerchant(_a0 context.Context, _a1 string) ([]*billing.UserRole, error)
GetUsersForMerchant provides a mock function with given fields: _a0, _a1
func (*UserRoleServiceInterface) UpdateAdminUser ¶
func (_m *UserRoleServiceInterface) UpdateAdminUser(_a0 context.Context, _a1 *billing.UserRole) error
UpdateAdminUser provides a mock function with given fields: _a0, _a1
func (*UserRoleServiceInterface) UpdateMerchantUser ¶
func (_m *UserRoleServiceInterface) UpdateMerchantUser(_a0 context.Context, _a1 *billing.UserRole) error
UpdateMerchantUser provides a mock function with given fields: _a0, _a1
Source Files ¶
- AccountingServiceInterface.go
- BrokerInterface.go
- CacheInterface.go
- CentrifugoInterface.go
- CountryServiceInterface.go
- DashboardReportProcessorInterface.go
- DashboardRepositoryInterface.go
- DocumentSignerService.go
- KeyProductRepositoryInterface.go
- KeyRepositoryInterface.go
- MerchantBalanceServiceInterface.go
- MerchantRepositoryInterface.go
- MerchantTariffRatesInterface.go
- MoneyBackCostMerchantInterface.go
- MoneyBackCostSystemInterface.go
- OperatingCompanyInterface.go
- OrderRepositoryInterface.go
- OrderViewServiceInterface.go
- PaylinkServiceInterface.go
- PaymentChannelCostMerchantInterface.go
- PaymentChannelCostSystemInterface.go
- PaymentMethodInterface.go
- PaymentMinLimitSystemInterface.go
- PaymentSystem.go
- PaymentSystemServiceInterface.go
- PayoutDocumentServiceInterface.go
- PriceGroupServiceInterface.go
- PriceTableServiceInterface.go
- ProductServiceInterface.go
- RoyaltyReportServiceInterface.go
- UserProfileRepositoryInterface.go
- UserRoleServiceInterface.go
- currency_service.go
- document_signer.go
- geo.go
- http_client.go
- localizator.go
- rabbitmq.go
- redis.go
- repository.go
- tax.go