Documentation ¶
Index ¶
- Constants
- Variables
- func CreateKeyProductsForProject(suite suite.Suite, service *Service, project *billingpb.Project, ...) []*billingpb.KeyProduct
- func CreateProductsForProject(suite suite.Suite, service *Service, project *billingpb.Project, ...) []*billingpb.Product
- func HelperCreateAndPayOrder(suite suite.Suite, service *Service, amount float64, currency, country string, ...) *billingpb.Order
- func HelperCreateAndPayOrder2(suite suite.Suite, service *Service, amount float64, currency, country string, ...) *billingpb.Order
- func HelperCreateAndPayOrderWithRecurring(suite suite.Suite, service *Service, amount float64, currency, country string, ...) *billingpb.Order
- func HelperCreateAndPayOrderWithUser(suite suite.Suite, service *Service, amount float64, currency, country string, ...) *billingpb.Order
- func HelperCreateAndPayPaylinkOrder(suite suite.Suite, service *Service, paylinkId, country, cookie string, ...) *billingpb.Order
- func HelperCreateEntitiesForTests(suite suite.Suite, service *Service) (*billingpb.Merchant, *billingpb.Project, *billingpb.PaymentMethod, ...)
- func HelperCreateMerchant(suite suite.Suite, service *Service, currency string, country string, ...) *billingpb.Merchant
- func HelperCreateProject(suite suite.Suite, service *Service, merchantId string, vatPayer string) *billingpb.Project
- func HelperGetOrdersViewsMap(suite suite.Suite, service *Service, orderIds []primitive.ObjectID) []map[string]interface{}
- func HelperMakeRefund(suite suite.Suite, service *Service, order *billingpb.Order, amount float64, ...) *billingpb.Refund
- func HelperOperatingCompany(suite suite.Suite, service *Service) *billingpb.OperatingCompany
- func HelperPayOrder(suite suite.Suite, service *Service, order *billingpb.Order, ...) *billingpb.Order
- func NewCardPayMock() payment_system.PaymentSystemInterface
- func NewPaymentSystemGateway() payment_system.PaymentSystemManagerInterface
- func NewPaymentSystemMockError() payment_system.PaymentSystemInterface
- func NewPaymentSystemMockOk() payment_system.PaymentSystemInterface
- func NewVatReportProcessor(s *Service, ctx context.Context, date *timestamp.Timestamp) (*vatReportProcessor, error)
- func RandomString(n int) string
- type BrowserCookieCustomer
- type Centrifugo
- type CentrifugoInterface
- type DashboardRepository
- type EmailConfirmToken
- type Gateway
- type OrderCreateRequestProcessor
- type PaymentCreateProcessor
- type PaymentFormProcessor
- type PaymentSystemMockError
- func (m *PaymentSystemMockError) CanSaveCard(_ proto.Message) bool
- func (m *PaymentSystemMockError) CreatePayment(_ *billingpb.Order, _, _ string, _ map[string]string) (string, error)
- func (m *PaymentSystemMockError) CreateRecurringSubscription(_ *billingpb.Order, _ *recurringpb.Subscription, _, _ string, ...) (string, error)
- func (m *PaymentSystemMockError) CreateRefund(_ *billingpb.Order, refund *billingpb.Refund) error
- func (m *PaymentSystemMockError) DeleteRecurringSubscription(_ *billingpb.Order, _ *recurringpb.Subscription) error
- func (m *PaymentSystemMockError) GetRecurringId(_ proto.Message) string
- func (m *PaymentSystemMockError) IsRecurringCallback(_ proto.Message) bool
- func (m *PaymentSystemMockError) IsSubscriptionCallback(_ proto.Message) bool
- func (m *PaymentSystemMockError) ProcessPayment(_ *billingpb.Order, _ proto.Message, _, _ string) error
- func (m *PaymentSystemMockError) ProcessRefund(_ *billingpb.Order, refund *billingpb.Refund, _ proto.Message, _, _ string) error
- type PaymentSystemMockOk
- func (m *PaymentSystemMockOk) CanSaveCard(_ proto.Message) bool
- func (m *PaymentSystemMockOk) CreatePayment(_ *billingpb.Order, _, _ string, _ map[string]string) (string, error)
- func (m *PaymentSystemMockOk) CreateRecurringSubscription(_ *billingpb.Order, _ *recurringpb.Subscription, _, _ string, ...) (string, error)
- func (m *PaymentSystemMockOk) CreateRefund(_ *billingpb.Order, refund *billingpb.Refund) error
- func (m *PaymentSystemMockOk) DeleteRecurringSubscription(_ *billingpb.Order, _ *recurringpb.Subscription) error
- func (m *PaymentSystemMockOk) GetRecurringId(_ proto.Message) string
- func (m *PaymentSystemMockOk) IsRecurringCallback(_ proto.Message) bool
- func (m *PaymentSystemMockOk) IsSubscriptionCallback(_ proto.Message) bool
- func (m *PaymentSystemMockOk) ProcessPayment(_ *billingpb.Order, _ proto.Message, _, _ string) error
- func (m *PaymentSystemMockOk) ProcessRefund(_ *billingpb.Order, refund *billingpb.Refund, _ proto.Message, _, _ string) error
- type Repository
- type Service
- func (s *Service) AcceptInvite(ctx context.Context, req *billingpb.AcceptInviteRequest, ...) error
- func (s *Service) AddMerchantDocument(ctx context.Context, req *billingpb.MerchantDocument, ...) error
- func (s *Service) AddOperatingCompany(ctx context.Context, req *billingpb.OperatingCompany, ...) (err error)
- func (s *Service) AutoAcceptRoyaltyReports(ctx context.Context, _ *billingpb.EmptyRequest, _ *billingpb.EmptyResponse) error
- func (s *Service) AutoCreatePayoutDocuments(ctx context.Context, _ *billingpb.EmptyRequest, _ *billingpb.EmptyResponse) error
- func (s *Service) CalcAnnualTurnovers(ctx context.Context, req *billingpb.EmptyRequest, res *billingpb.EmptyResponse) error
- func (s *Service) CancelRedeemKeyForOrder(ctx context.Context, req *billingpb.KeyForOrderRequest, ...) error
- func (s *Service) ChangeCodeInOrder(ctx context.Context, req *billingpb.ChangeCodeInOrderRequest, ...) error
- func (s *Service) ChangeMerchant(ctx context.Context, req *billingpb.OnboardingRequest, ...) error
- func (s *Service) ChangeMerchantData(ctx context.Context, req *billingpb.ChangeMerchantDataRequest, ...) error
- func (s *Service) ChangeMerchantManualPayouts(ctx context.Context, req *billingpb.ChangeMerchantManualPayoutsRequest, ...) error
- func (s *Service) ChangeMerchantPaymentMethod(ctx context.Context, req *billingpb.MerchantPaymentMethodRequest, ...) (err error)
- func (s *Service) ChangeMerchantStatus(ctx context.Context, req *billingpb.MerchantChangeStatusRequest, ...) error
- func (s *Service) ChangeProject(ctx context.Context, req *billingpb.Project, ...) error
- func (s *Service) ChangeRoleForAdminUser(ctx context.Context, req *billingpb.ChangeRoleForAdminUserRequest, ...) error
- func (s *Service) ChangeRoleForMerchantUser(ctx context.Context, req *billingpb.ChangeRoleForMerchantUserRequest, ...) error
- func (s *Service) ChangeRoyaltyReport(ctx context.Context, req *billingpb.ChangeRoyaltyReportRequest, ...) error
- func (s *Service) CheckInviteToken(_ context.Context, req *billingpb.CheckInviteTokenRequest, ...) error
- func (s *Service) CheckProjectRequestSignature(ctx context.Context, req *billingpb.CheckProjectRequestSignatureRequest, ...) error
- func (s *Service) CheckSkuAndKeyProject(ctx context.Context, req *billingpb.CheckSkuAndKeyProjectRequest, ...) error
- func (s *Service) ConfirmUserEmail(ctx context.Context, req *billingpb.ConfirmUserEmailRequest, ...) error
- func (s *Service) CreateAccountingEntry(ctx context.Context, req *billingpb.CreateAccountingEntryRequest, ...) error
- func (s *Service) CreateNotification(ctx context.Context, req *billingpb.NotificationRequest, ...) error
- func (s *Service) CreateOrUpdateKeyProduct(ctx context.Context, req *billingpb.CreateOrUpdateKeyProductRequest, ...) error
- func (s *Service) CreateOrUpdatePaylink(ctx context.Context, req *billingpb.CreatePaylinkRequest, ...) (err error)
- func (s *Service) CreateOrUpdatePaymentMethod(ctx context.Context, req *billingpb.PaymentMethod, ...) error
- func (s *Service) CreateOrUpdatePaymentMethodProductionSettings(ctx context.Context, req *billingpb.ChangePaymentMethodParamsRequest, ...) error
- func (s *Service) CreateOrUpdatePaymentMethodTestSettings(ctx context.Context, req *billingpb.ChangePaymentMethodParamsRequest, ...) error
- func (s *Service) CreateOrUpdateProduct(ctx context.Context, req *billingpb.Product, res *billingpb.Product) error
- func (s *Service) CreateOrUpdateUserProfile(ctx context.Context, req *billingpb.UserProfile, ...) error
- func (s *Service) CreatePageReview(ctx context.Context, req *billingpb.CreatePageReviewRequest, ...) error
- func (s *Service) CreatePayoutDocument(ctx context.Context, req *billingpb.CreatePayoutDocumentRequest, ...) error
- func (s *Service) CreateRefund(ctx context.Context, req *billingpb.CreateRefundRequest, ...) error
- func (s *Service) CreateRoyaltyReport(ctx context.Context, req *billingpb.CreateRoyaltyReportRequest, ...) error
- func (s *Service) CreateToken(ctx context.Context, req *billingpb.TokenRequest, rsp *billingpb.TokenResponse) error
- func (s *Service) DeleteAdminUser(ctx context.Context, req *billingpb.AdminRoleRequest, ...) error
- func (s *Service) DeleteCustomerCard(ctx context.Context, req *billingpb.DeleteCustomerCardRequest, ...) error
- func (s *Service) DeleteKeyProduct(ctx context.Context, req *billingpb.RequestKeyProductMerchant, ...) error
- func (s *Service) DeleteMerchantUser(ctx context.Context, req *billingpb.MerchantRoleRequest, ...) error
- func (s *Service) DeleteMoneyBackCostMerchant(ctx context.Context, req *billingpb.PaymentCostDeleteRequest, ...) error
- func (s *Service) DeleteMoneyBackCostSystem(ctx context.Context, req *billingpb.PaymentCostDeleteRequest, ...) error
- func (s *Service) DeletePaylink(ctx context.Context, req *billingpb.PaylinkRequest, ...) error
- func (s *Service) DeletePaymentChannelCostMerchant(ctx context.Context, req *billingpb.PaymentCostDeleteRequest, ...) error
- func (s *Service) DeletePaymentChannelCostSystem(ctx context.Context, req *billingpb.PaymentCostDeleteRequest, ...) error
- func (s *Service) DeletePaymentMethodProductionSettings(ctx context.Context, req *billingpb.GetPaymentMethodSettingsRequest, ...) error
- func (s *Service) DeletePaymentMethodTestSettings(ctx context.Context, req *billingpb.GetPaymentMethodSettingsRequest, ...) error
- func (s *Service) DeleteProduct(ctx context.Context, req *billingpb.RequestProduct, ...) error
- func (s *Service) DeleteProject(ctx context.Context, req *billingpb.GetProjectRequest, ...) error
- func (s *Service) DeleteRecurringSubscription(ctx context.Context, req *billingpb.DeleteRecurringSubscriptionRequest, ...) error
- func (s *Service) DeleteSavedCard(ctx context.Context, req *billingpb.DeleteSavedCardRequest, ...) error
- func (s *Service) DeserializeCookie(ctx context.Context, req *billingpb.DeserializeCookieRequest, ...) error
- func (s *Service) FindAllOrders(ctx context.Context, req *billingpb.ListOrdersRequest, ...) error
- func (s *Service) FindAllOrdersPrivate(ctx context.Context, req *billingpb.ListOrdersRequest, ...) error
- func (s *Service) FindAllOrdersPublic(ctx context.Context, req *billingpb.ListOrdersRequest, ...) error
- func (s *Service) FindByZipCode(ctx context.Context, req *billingpb.FindByZipCodeRequest, ...) error
- func (s *Service) FindSubscriptions(ctx context.Context, req *billingpb.FindSubscriptionsRequest, ...) error
- func (s *Service) FinishRedeemKeyForOrder(ctx context.Context, req *billingpb.KeyForOrderRequest, ...) error
- func (s *Service) FixTaxes(ctx context.Context) error
- func (s *Service) FormatAmount(amount float64, currency string) float64
- func (s *Service) GetActOfCompletion(ctx context.Context, req *billingpb.ActOfCompletionRequest, ...) error
- func (s *Service) GetActsOfCompletionList(ctx context.Context, req *billingpb.ActsOfCompletionListRequest, ...) error
- func (s *Service) GetAdminByUserId(ctx context.Context, req *billingpb.CommonUserProfileRequest, ...) error
- func (s *Service) GetAdminUserRole(ctx context.Context, req *billingpb.AdminRoleRequest, ...) error
- func (s *Service) GetAdminUsers(ctx context.Context, _ *billingpb.EmptyRequest, ...) error
- func (s *Service) GetAllMoneyBackCostMerchant(ctx context.Context, req *billingpb.MoneyBackCostMerchantListRequest, ...) error
- func (s *Service) GetAllMoneyBackCostSystem(ctx context.Context, req *billingpb.EmptyRequest, ...) error
- func (s *Service) GetAllPaymentChannelCostMerchant(ctx context.Context, req *billingpb.PaymentChannelCostMerchantListRequest, ...) error
- func (s *Service) GetAllPaymentChannelCostSystem(ctx context.Context, req *billingpb.EmptyRequest, ...) error
- func (s *Service) GetAmountForVirtualCurrency(virtualAmount float64, group *billingpb.PriceGroup, ...) (float64, error)
- func (s *Service) GetAvailableKeysCount(ctx context.Context, req *billingpb.GetPlatformKeyCountRequest, ...) error
- func (s *Service) GetB2bVatRate(operatingCompanyCountry, merchantCountry string) (rate float64, err error)
- func (s *Service) GetCommonUserProfile(ctx context.Context, req *billingpb.CommonUserProfileRequest, ...) error
- func (s *Service) GetCountriesList(ctx context.Context, req *billingpb.EmptyRequest, res *billingpb.CountriesList) error
- func (s *Service) GetCountriesListForOrder(ctx context.Context, req *billingpb.GetCountriesListForOrderRequest, ...) error
- func (s *Service) GetCountry(ctx context.Context, req *billingpb.GetCountryRequest, res *billingpb.Country) error
- func (s *Service) GetCustomerInfo(ctx context.Context, req *billingpb.GetCustomerInfoRequest, ...) error
- func (s *Service) GetCustomerList(ctx context.Context, req *billingpb.ListCustomersRequest, ...) error
- func (s *Service) GetCustomerShortInfo(ctx context.Context, req *billingpb.GetCustomerShortInfoRequest, ...) error
- func (s *Service) GetDashboardBaseReport(ctx context.Context, req *billingpb.GetDashboardBaseReportRequest, ...) error
- func (s *Service) GetDashboardCustomerArpu(ctx context.Context, req *billingpb.DashboardCustomerReportArpuRequest, ...) error
- func (s *Service) GetDashboardCustomersReport(ctx context.Context, req *billingpb.DashboardCustomerReportRequest, ...) error
- func (s *Service) GetDashboardMainReport(ctx context.Context, req *billingpb.GetDashboardMainRequest, ...) error
- func (s *Service) GetDashboardRevenueDynamicsReport(ctx context.Context, req *billingpb.GetDashboardMainRequest, ...) error
- func (s *Service) GetKeyByID(ctx context.Context, req *billingpb.KeyForOrderRequest, ...) error
- func (s *Service) GetKeyProduct(ctx context.Context, req *billingpb.RequestKeyProductMerchant, ...) error
- func (s *Service) GetKeyProductInfo(ctx context.Context, req *billingpb.GetKeyProductInfoRequest, ...) error
- func (s *Service) GetKeyProducts(ctx context.Context, req *billingpb.ListKeyProductsRequest, ...) error
- func (s *Service) GetKeyProductsForOrder(ctx context.Context, req *billingpb.GetKeyProductsForOrderRequest, ...) error
- func (s *Service) GetMerchantBalance(ctx context.Context, req *billingpb.GetMerchantBalanceRequest, ...) error
- func (s *Service) GetMerchantBy(ctx context.Context, req *billingpb.GetMerchantByRequest, ...) error
- func (s *Service) GetMerchantDocument(ctx context.Context, req *billingpb.GetMerchantDocumentRequest, ...) error
- func (s *Service) GetMerchantDocuments(ctx context.Context, req *billingpb.GetMerchantDocumentsRequest, ...) error
- func (s *Service) GetMerchantOnboardingCompleteData(ctx context.Context, req *billingpb.SetMerchantS3AgreementRequest, ...) error
- func (s *Service) GetMerchantPaymentMethod(ctx context.Context, req *billingpb.GetMerchantPaymentMethodRequest, ...) error
- func (s *Service) GetMerchantTariffRates(ctx context.Context, req *billingpb.GetMerchantTariffRatesRequest, ...) error
- func (s *Service) GetMerchantUserRole(ctx context.Context, req *billingpb.MerchantRoleRequest, ...) error
- func (s *Service) GetMerchantUsers(ctx context.Context, req *billingpb.GetMerchantUsersRequest, ...) error
- func (s *Service) GetMerchantsForUser(ctx context.Context, req *billingpb.GetMerchantsForUserRequest, ...) error
- func (s *Service) GetMoneyBackCostMerchant(ctx context.Context, req *billingpb.MoneyBackCostMerchantRequest, ...) error
- func (s *Service) GetMoneyBackCostSystem(ctx context.Context, req *billingpb.MoneyBackCostSystemRequest, ...) error
- func (s *Service) GetNotification(ctx context.Context, req *billingpb.GetNotificationRequest, ...) error
- func (s *Service) GetOperatingCompaniesList(ctx context.Context, req *billingpb.EmptyRequest, ...) (err error)
- func (s *Service) GetOperatingCompany(ctx context.Context, req *billingpb.GetOperatingCompanyRequest, ...) (err error)
- func (s *Service) GetOrderKeyProducts(ctx context.Context, projectId string, productIds []string) ([]*billingpb.KeyProduct, error)
- func (s *Service) GetOrderKeyProductsAmount(products []*billingpb.KeyProduct, group *billingpb.PriceGroup, ...) (float64, error)
- func (s *Service) GetOrderKeyProductsItems(products []*billingpb.KeyProduct, language string, group *billingpb.PriceGroup, ...) ([]*billingpb.OrderItem, error)
- func (s *Service) GetOrderPrivate(ctx context.Context, req *billingpb.GetOrderRequest, ...) error
- func (s *Service) GetOrderProducts(ctx context.Context, projectId string, productIds []string) ([]*billingpb.Product, error)
- func (s *Service) GetOrderProductsAmount(products []*billingpb.Product, group *billingpb.PriceGroup) (float64, error)
- func (s *Service) GetOrderProductsItems(products []*billingpb.Product, language string, group *billingpb.PriceGroup) ([]*billingpb.OrderItem, error)
- func (s *Service) GetOrderPublic(ctx context.Context, req *billingpb.GetOrderRequest, ...) error
- func (s *Service) GetPaylink(ctx context.Context, req *billingpb.PaylinkRequest, ...) (err error)
- func (s *Service) GetPaylinkStatByCountry(ctx context.Context, req *billingpb.GetPaylinkStatCommonRequest, ...) (err error)
- func (s *Service) GetPaylinkStatByDate(ctx context.Context, req *billingpb.GetPaylinkStatCommonRequest, ...) (err error)
- func (s *Service) GetPaylinkStatByReferrer(ctx context.Context, req *billingpb.GetPaylinkStatCommonRequest, ...) (err error)
- func (s *Service) GetPaylinkStatByUtm(ctx context.Context, req *billingpb.GetPaylinkStatCommonRequest, ...) (err error)
- func (s *Service) GetPaylinkStatTotal(ctx context.Context, req *billingpb.GetPaylinkStatCommonRequest, ...) (err error)
- func (s *Service) GetPaylinkTransactions(ctx context.Context, req *billingpb.GetPaylinkTransactionsRequest, ...) error
- func (s *Service) GetPaylinkURL(ctx context.Context, req *billingpb.GetPaylinkURLRequest, ...) (err error)
- func (s *Service) GetPaylinks(ctx context.Context, req *billingpb.GetPaylinksRequest, ...) error
- func (s *Service) GetPaymentChannelCostMerchant(ctx context.Context, req *billingpb.PaymentChannelCostMerchantRequest, ...) error
- func (s *Service) GetPaymentChannelCostSystem(ctx context.Context, req *billingpb.PaymentChannelCostSystemRequest, ...) error
- func (s *Service) GetPaymentMethodProductionSettings(ctx context.Context, req *billingpb.GetPaymentMethodSettingsRequest, ...) error
- func (s *Service) GetPaymentMethodTestSettings(ctx context.Context, req *billingpb.GetPaymentMethodSettingsRequest, ...) error
- func (s *Service) GetPaymentMinLimitsSystem(ctx context.Context, req *billingpb.EmptyRequest, ...) (err error)
- func (s *Service) GetPayoutDocument(ctx context.Context, req *billingpb.GetPayoutDocumentRequest, ...) (err error)
- func (s *Service) GetPayoutDocumentRoyaltyReports(ctx context.Context, req *billingpb.GetPayoutDocumentRequest, ...) error
- func (s *Service) GetPayoutDocuments(ctx context.Context, req *billingpb.GetPayoutDocumentsRequest, ...) error
- func (s *Service) GetPlatforms(ctx context.Context, req *billingpb.ListPlatformsRequest, ...) error
- func (s *Service) GetPriceGroup(ctx context.Context, req *billingpb.GetPriceGroupRequest, ...) error
- func (s *Service) GetPriceGroupByCountry(ctx context.Context, req *billingpb.PriceGroupByCountryRequest, ...) error
- func (s *Service) GetPriceGroupByRegion(ctx context.Context, req *billingpb.GetPriceGroupByRegionRequest, ...) error
- func (s *Service) GetPriceGroupCurrencies(ctx context.Context, req *billingpb.EmptyRequest, ...) error
- func (s *Service) GetPriceGroupCurrencyByRegion(ctx context.Context, req *billingpb.PriceGroupByRegionRequest, ...) error
- func (s *Service) GetProduct(ctx context.Context, req *billingpb.RequestProduct, ...) error
- func (s *Service) GetProductPrices(ctx context.Context, req *billingpb.RequestProduct, ...) error
- func (s *Service) GetProductsForOrder(ctx context.Context, req *billingpb.GetProductsForOrderRequest, ...) error
- func (s *Service) GetProject(ctx context.Context, req *billingpb.GetProjectRequest, ...) error
- func (s *Service) GetRecommendedPriceByConversion(ctx context.Context, req *billingpb.RecommendedPriceRequest, ...) error
- func (s *Service) GetRecommendedPriceByPriceGroup(ctx context.Context, req *billingpb.RecommendedPriceRequest, ...) error
- func (s *Service) GetRecommendedPriceTable(ctx context.Context, req *billingpb.RecommendedPriceTableRequest, ...) error
- func (s *Service) GetRefund(ctx context.Context, req *billingpb.GetRefundRequest, ...) error
- func (s *Service) GetRoleList(_ context.Context, req *billingpb.GetRoleListRequest, ...) error
- func (s *Service) GetRoyaltyReport(ctx context.Context, req *billingpb.GetRoyaltyReportRequest, ...) error
- func (s *Service) GetSubscription(ctx context.Context, req *billingpb.GetSubscriptionRequest, ...) error
- func (s *Service) GetSubscriptionOrders(ctx context.Context, req *billingpb.GetSubscriptionOrdersRequest, ...) error
- func (s *Service) GetUserProfile(ctx context.Context, req *billingpb.GetUserProfileRequest, ...) error
- func (s *Service) GetVatReport(ctx context.Context, req *billingpb.VatReportRequest, ...) error
- func (s *Service) GetVatReportTransactions(ctx context.Context, req *billingpb.VatTransactionsRequest, ...) error
- func (s *Service) GetVatReportsDashboard(ctx context.Context, req *billingpb.EmptyRequest, ...) error
- func (s *Service) GetVatReportsForCountry(ctx context.Context, req *billingpb.VatReportsRequest, ...) error
- func (s *Service) IncrPaylinkVisits(ctx context.Context, req *billingpb.PaylinkRequestById, ...) error
- func (s *Service) Init() (err error)
- func (s *Service) InviteUserAdmin(ctx context.Context, req *billingpb.InviteUserAdminRequest, ...) error
- func (s *Service) InviteUserMerchant(ctx context.Context, req *billingpb.InviteUserMerchantRequest, ...) error
- func (s *Service) IsChangeDataAllow(merchant *billingpb.Merchant, data *billingpb.OnboardingRequest) bool
- func (s *Service) IsDbNotFoundError(err error) bool
- func (s *Service) IsOrderCanBePaying(ctx context.Context, req *billingpb.IsOrderCanBePayingRequest, ...) error
- func (s *Service) KeyDaemonProcess(ctx context.Context) (int, error)
- func (s *Service) ListMerchantPaymentMethods(ctx context.Context, req *billingpb.ListMerchantPaymentMethodsRequest, ...) error
- func (s *Service) ListMerchants(ctx context.Context, req *billingpb.MerchantListingRequest, ...) error
- func (s *Service) ListMerchantsForAgreement(ctx context.Context, req *billingpb.MerchantListingRequest, ...) error
- func (s *Service) ListNotifications(ctx context.Context, req *billingpb.ListingNotificationRequest, ...) error
- func (s *Service) ListProducts(ctx context.Context, req *billingpb.ListProductsRequest, ...) error
- func (s *Service) ListProjects(ctx context.Context, req *billingpb.ListProjectsRequest, ...) error
- func (s *Service) ListRefunds(ctx context.Context, req *billingpb.ListRefundsRequest, ...) error
- func (s *Service) ListRoyaltyReportOrders(ctx context.Context, req *billingpb.ListRoyaltyReportOrdersRequest, ...) error
- func (s *Service) ListRoyaltyReports(ctx context.Context, req *billingpb.ListRoyaltyReportsRequest, ...) error
- func (s *Service) MarkNotificationAsRead(ctx context.Context, req *billingpb.GetNotificationRequest, ...) error
- func (s *Service) MerchantReviewRoyaltyReport(ctx context.Context, req *billingpb.MerchantReviewRoyaltyReportRequest, ...) error
- func (s *Service) MerchantsMigrate(ctx context.Context) error
- func (s *Service) MigrateCustomers(ctx context.Context) error
- func (s *Service) NotifyWebhookTestResults(ctx context.Context, req *billingpb.NotifyWebhookTestResultsRequest, ...) error
- func (s *Service) OrderCreateByPaylink(ctx context.Context, req *billingpb.OrderCreateByPaylink, ...) error
- func (s *Service) OrderCreateProcess(ctx context.Context, req *billingpb.OrderCreateRequest, ...) error
- func (s *Service) OrderReCreateProcess(ctx context.Context, req *billingpb.OrderReCreateProcessRequest, ...) error
- func (s *Service) OrderReceipt(ctx context.Context, req *billingpb.OrderReceiptRequest, ...) error
- func (s *Service) PaymentCallbackProcess(ctx context.Context, req *billingpb.PaymentNotifyRequest, ...) error
- func (s *Service) PaymentCreateProcess(ctx context.Context, req *billingpb.PaymentCreateRequest, ...) error
- func (s *Service) PaymentFormJsonDataProcess(ctx context.Context, req *billingpb.PaymentFormJsonDataRequest, ...) error
- func (s *Service) PaymentFormLanguageChanged(ctx context.Context, req *billingpb.PaymentFormUserChangeLangRequest, ...) error
- func (s *Service) PaymentFormPaymentAccountChanged(ctx context.Context, req *billingpb.PaymentFormUserChangePaymentAccountRequest, ...) error
- func (s *Service) PaymentFormPlatformChanged(ctx context.Context, req *billingpb.PaymentFormUserChangePlatformRequest, ...) error
- func (s *Service) PayoutDocumentPdfUploaded(ctx context.Context, req *billingpb.PayoutDocumentPdfUploadedRequest, ...) error
- func (s *Service) PayoutFinanceDone(ctx context.Context, req *billingpb.ReportFinanceDoneRequest, ...) error
- func (s *Service) ProcessBillingAddress(ctx context.Context, req *billingpb.ProcessBillingAddressRequest, ...) error
- func (s *Service) ProcessOrderKeyProducts(ctx context.Context, order *billingpb.Order) ([]*billingpb.Platform, error)
- func (s *Service) ProcessOrderProducts(ctx context.Context, order *billingpb.Order) error
- func (s *Service) ProcessOrderVirtualCurrency(ctx context.Context, order *billingpb.Order) error
- func (s *Service) ProcessRefundCallback(ctx context.Context, req *billingpb.CallbackRequest, ...) error
- func (s *Service) ProcessVatReports(ctx context.Context, req *billingpb.ProcessVatReportsRequest, ...) error
- func (s *Service) PublishKeyProduct(ctx context.Context, req *billingpb.PublishKeyProductRequest, ...) error
- func (s *Service) RebuildAccountingEntries(ctx context.Context, orderId string, force bool) error
- func (s *Service) RebuildOrderView(ctx context.Context) error
- func (s *Service) ResendInviteAdmin(ctx context.Context, req *billingpb.ResendInviteAdminRequest, ...) error
- func (s *Service) ResendInviteMerchant(ctx context.Context, req *billingpb.ResendInviteMerchantRequest, ...) error
- func (s *Service) ReserveKeyForOrder(ctx context.Context, req *billingpb.PlatformKeyReserveRequest, ...) error
- func (s *Service) RoyaltyReportFinanceDone(ctx context.Context, req *billingpb.ReportFinanceDoneRequest, ...) error
- func (s *Service) RoyaltyReportPdfUploaded(ctx context.Context, req *billingpb.RoyaltyReportPdfUploadedRequest, ...) error
- func (s *Service) SendWebhookToMerchant(ctx context.Context, req *billingpb.OrderCreateRequest, ...) error
- func (s *Service) SetAllPaymentChannelCostMerchant(ctx context.Context, req *billingpb.SetAllPaymentChannelCostMerchantRequest, ...) error
- func (s *Service) SetCustomerPaymentActivity(ctx context.Context, req *billingpb.SetCustomerPaymentActivityRequest, ...) error
- func (s *Service) SetMerchantAcceptedStatus(ctx context.Context, req *billingpb.SetMerchantAcceptedStatusRequest, ...) error
- func (s *Service) SetMerchantOperatingCompany(ctx context.Context, req *billingpb.SetMerchantOperatingCompanyRequest, ...) error
- func (s *Service) SetMerchantS3Agreement(ctx context.Context, req *billingpb.SetMerchantS3AgreementRequest, ...) error
- func (s *Service) SetMerchantTariffRates(ctx context.Context, req *billingpb.SetMerchantTariffRatesRequest, ...) error
- func (s *Service) SetMoneyBackCostMerchant(ctx context.Context, req *billingpb.MoneyBackCostMerchant, ...) error
- func (s *Service) SetMoneyBackCostSystem(ctx context.Context, req *billingpb.MoneyBackCostSystem, ...) error
- func (s *Service) SetPaymentChannelCostMerchant(ctx context.Context, req *billingpb.PaymentChannelCostMerchant, ...) error
- func (s *Service) SetPaymentChannelCostSystem(ctx context.Context, req *billingpb.PaymentChannelCostSystem, ...) error
- func (s *Service) SetPaymentMinLimitSystem(ctx context.Context, req *billingpb.PaymentMinLimitSystem, ...) (err error)
- func (s *Service) SetUserNotifyNewRegion(ctx context.Context, req *billingpb.SetUserNotifyRequest, ...) error
- func (s *Service) SetUserNotifySales(ctx context.Context, req *billingpb.SetUserNotifyRequest, ...) error
- func (s *Service) TaskExtendPayoutsWithVat(ctx context.Context) (err error)
- func (s *Service) TaskExtendRoyaltiesWithVat(ctx context.Context) (err error)
- func (s *Service) TaskFixReportDates(ctx context.Context) (err error)
- func (s *Service) UnPublishKeyProduct(ctx context.Context, req *billingpb.UnPublishKeyProductRequest, ...) error
- func (s *Service) UpdateCountry(ctx context.Context, req *billingpb.Country, res *billingpb.Country) error
- func (s *Service) UpdateCustomersPayments(ctx context.Context) error
- func (s *Service) UpdateFirstPayments(ctx context.Context) error
- func (s *Service) UpdateOrder(ctx context.Context, req *billingpb.Order, _ *billingpb.EmptyResponse) error
- func (s *Service) UpdatePayoutDocument(ctx context.Context, req *billingpb.UpdatePayoutDocumentRequest, ...) error
- func (s *Service) UpdatePriceGroup(ctx context.Context, req *billingpb.PriceGroup, res *billingpb.PriceGroup) error
- func (s *Service) UpdateProductPrices(ctx context.Context, req *billingpb.UpdateProductPricesRequest, ...) error
- func (s *Service) UpdateVatReportStatus(ctx context.Context, req *billingpb.UpdateVatReportStatusRequest, ...) error
- func (s *Service) UploadKeysFile(ctx context.Context, req *billingpb.PlatformKeysFileRequest, ...) error
- type Token
Constants ¶
View Source
const ( PaymentSystemHandlerMockOk = "mock_ok" PaymentSystemHandlerMockError = "mock_error" PaymentSystemHandlerCardPayMock = "cardpay_mock" )
View Source
const ( CountryCodeUSA = "US" DefaultLanguage = "en" )
View Source
const ( VatPeriodEvery1Month = 1 VatPeriodEvery2Month = 2 VatPeriodEvery3Month = 3 )
Variables ¶
View Source
var ( VatReportOnStatusNotifyToCentrifugo = []string{ pkg.VatReportStatusNeedToPay, pkg.VatReportStatusPaid, pkg.VatReportStatusOverdue, pkg.VatReportStatusCanceled, } VatReportOnStatusNotifyToEmail = []string{ pkg.VatReportStatusNeedToPay, pkg.VatReportStatusOverdue, pkg.VatReportStatusCanceled, } VatReportStatusAllowManualChangeFrom = []string{ pkg.VatReportStatusNeedToPay, pkg.VatReportStatusOverdue, } VatReportStatusAllowManualChangeTo = []string{ pkg.VatReportStatusPaid, pkg.VatReportStatusCanceled, } AccountingEntriesLocalAmountsUpdate = []string{ pkg.AccountingEntryTypeRealGrossRevenue, pkg.AccountingEntryTypeRealTaxFee, pkg.AccountingEntryTypeCentralBankTaxFee, pkg.AccountingEntryTypeRealRefund, pkg.AccountingEntryTypeRealRefundTaxFee, } )
Functions ¶
func CreateKeyProductsForProject ¶ added in v1.3.0
func CreateProductsForProject ¶ added in v1.3.0
func HelperCreateAndPayOrder ¶ added in v1.3.0
func HelperCreateAndPayOrder2 ¶ added in v1.3.0
func HelperCreateAndPayOrder2( suite suite.Suite, service *Service, amount float64, currency, country string, project *billingpb.Project, paymentMethod *billingpb.PaymentMethod, paymentMethodClosedAt time.Time, product *billingpb.Product, keyProduct *billingpb.KeyProduct, issuerUrl string, metadata map[string]string, cookie string, ) *billingpb.Order
func HelperCreateAndPayOrderWithRecurring ¶ added in v1.8.0
func HelperCreateAndPayOrderWithUser ¶ added in v1.8.0
func HelperCreateAndPayOrderWithUser( suite suite.Suite, service *Service, amount float64, currency, country string, project *billingpb.Project, paymentMethod *billingpb.PaymentMethod, paymentMethodClosedAt time.Time, product *billingpb.Product, keyProduct *billingpb.KeyProduct, issuerUrl string, metadata map[string]string, userEmail string, cookie string, ) *billingpb.Order
func HelperCreateAndPayPaylinkOrder ¶ added in v1.3.0
func HelperCreateAndPayPaylinkOrder( suite suite.Suite, service *Service, paylinkId, country, cookie string, paymentMethod *billingpb.PaymentMethod, issuer *billingpb.OrderIssuer, ) *billingpb.Order
func HelperCreateEntitiesForTests ¶ added in v1.3.0
func HelperCreateMerchant ¶ added in v1.3.0
func HelperCreateProject ¶ added in v1.3.0
func HelperGetOrdersViewsMap ¶ added in v1.4.0
func HelperMakeRefund ¶ added in v1.3.0
func HelperOperatingCompany ¶ added in v1.3.0
func HelperOperatingCompany( suite suite.Suite, service *Service, ) *billingpb.OperatingCompany
func HelperPayOrder ¶ added in v1.3.0
func NewCardPayMock ¶
func NewCardPayMock() payment_system.PaymentSystemInterface
func NewPaymentSystemGateway ¶ added in v1.8.0
func NewPaymentSystemGateway() payment_system.PaymentSystemManagerInterface
func NewPaymentSystemMockError ¶
func NewPaymentSystemMockError() payment_system.PaymentSystemInterface
func NewPaymentSystemMockOk ¶
func NewPaymentSystemMockOk() payment_system.PaymentSystemInterface
func NewVatReportProcessor ¶
func RandomString ¶
Types ¶
type BrowserCookieCustomer ¶
type BrowserCookieCustomer struct { CustomerId string `json:"customer_id"` VirtualCustomerId string `json:"virtual_customer_id"` Ip string `json:"ip"` IpCountry string `json:"ip_country"` SelectedCountry string `json:"selected_country"` UserAgent string `json:"user_agent"` AcceptLanguage string `json:"accept_language"` SessionCount int32 `json:"session_count"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type Centrifugo ¶
type Centrifugo struct {
// contains filtered or unexported fields
}
func (*Centrifugo) GetChannelToken ¶
func (c *Centrifugo) GetChannelToken(subject string, expire int64) string
type CentrifugoInterface ¶
type DashboardRepository ¶
type DashboardRepository Repository
type EmailConfirmToken ¶
type Gateway ¶ added in v1.2.0
type Gateway struct {
// contains filtered or unexported fields
}
func (*Gateway) GetGateway ¶ added in v1.8.0
func (m *Gateway) GetGateway(name string) (payment_system.PaymentSystemInterface, error)
type OrderCreateRequestProcessor ¶
type OrderCreateRequestProcessor struct { *Service // contains filtered or unexported fields }
func (*OrderCreateRequestProcessor) UserCountryExists ¶
func (v *OrderCreateRequestProcessor) UserCountryExists() bool
type PaymentCreateProcessor ¶
type PaymentCreateProcessor struct {
// contains filtered or unexported fields
}
func (*PaymentCreateProcessor) GetMerchantId ¶
func (v *PaymentCreateProcessor) GetMerchantId() string
type PaymentFormProcessor ¶
type PaymentFormProcessor struct {
// contains filtered or unexported fields
}
type PaymentSystemMockError ¶
type PaymentSystemMockError struct{}
func (*PaymentSystemMockError) CanSaveCard ¶ added in v1.8.0
func (m *PaymentSystemMockError) CanSaveCard(_ proto.Message) bool
func (*PaymentSystemMockError) CreatePayment ¶
func (*PaymentSystemMockError) CreateRecurringSubscription ¶ added in v1.8.0
func (m *PaymentSystemMockError) CreateRecurringSubscription(_ *billingpb.Order, _ *recurringpb.Subscription, _, _ string, _ map[string]string) (string, error)
func (*PaymentSystemMockError) CreateRefund ¶
func (*PaymentSystemMockError) DeleteRecurringSubscription ¶ added in v1.8.0
func (m *PaymentSystemMockError) DeleteRecurringSubscription(_ *billingpb.Order, _ *recurringpb.Subscription) error
func (*PaymentSystemMockError) GetRecurringId ¶
func (m *PaymentSystemMockError) GetRecurringId(_ proto.Message) string
func (*PaymentSystemMockError) IsRecurringCallback ¶
func (m *PaymentSystemMockError) IsRecurringCallback(_ proto.Message) bool
func (*PaymentSystemMockError) IsSubscriptionCallback ¶ added in v1.8.0
func (m *PaymentSystemMockError) IsSubscriptionCallback(_ proto.Message) bool
func (*PaymentSystemMockError) ProcessPayment ¶
type PaymentSystemMockOk ¶
type PaymentSystemMockOk struct{}
func (*PaymentSystemMockOk) CanSaveCard ¶ added in v1.8.0
func (m *PaymentSystemMockOk) CanSaveCard(_ proto.Message) bool
func (*PaymentSystemMockOk) CreatePayment ¶
func (*PaymentSystemMockOk) CreateRecurringSubscription ¶ added in v1.8.0
func (m *PaymentSystemMockOk) CreateRecurringSubscription(_ *billingpb.Order, _ *recurringpb.Subscription, _, _ string, _ map[string]string) (string, error)
func (*PaymentSystemMockOk) CreateRefund ¶
func (*PaymentSystemMockOk) DeleteRecurringSubscription ¶ added in v1.8.0
func (m *PaymentSystemMockOk) DeleteRecurringSubscription(_ *billingpb.Order, _ *recurringpb.Subscription) error
func (*PaymentSystemMockOk) GetRecurringId ¶
func (m *PaymentSystemMockOk) GetRecurringId(_ proto.Message) string
func (*PaymentSystemMockOk) IsRecurringCallback ¶
func (m *PaymentSystemMockOk) IsRecurringCallback(_ proto.Message) bool
func (*PaymentSystemMockOk) IsSubscriptionCallback ¶ added in v1.8.0
func (m *PaymentSystemMockOk) IsSubscriptionCallback(_ proto.Message) bool
func (*PaymentSystemMockOk) ProcessPayment ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewBillingService ¶
func NewBillingService( db mongodb.SourceInterface, cfg *config.Config, geo proto.GeoIpService, rep recurringpb.RepositoryService, tax taxpb.TaxService, broker rabbitmq.BrokerInterface, redis redis.Cmdable, cache database.CacheInterface, curService currenciespb.CurrencyRatesService, documentSigner document_signerpb.DocumentSignerService, reporterService reporterpb.ReporterService, formatter paysuper_i18n.Formatter, postmarkBroker rabbitmq.BrokerInterface, casbinService casbinpb.CasbinService, notifier notifierpb.NotifierService, validateUserBroker rabbitmq.BrokerInterface, ) *Service
func (*Service) AcceptInvite ¶
func (s *Service) AcceptInvite( ctx context.Context, req *billingpb.AcceptInviteRequest, res *billingpb.AcceptInviteResponse, ) error
func (*Service) AddMerchantDocument ¶ added in v1.9.0
func (s *Service) AddMerchantDocument( ctx context.Context, req *billingpb.MerchantDocument, res *billingpb.AddMerchantDocumentResponse, ) error
func (*Service) AddOperatingCompany ¶
func (s *Service) AddOperatingCompany( ctx context.Context, req *billingpb.OperatingCompany, res *billingpb.EmptyResponseWithStatus, ) (err error)
func (*Service) AutoAcceptRoyaltyReports ¶
func (s *Service) AutoAcceptRoyaltyReports( ctx context.Context, _ *billingpb.EmptyRequest, _ *billingpb.EmptyResponse, ) error
func (*Service) AutoCreatePayoutDocuments ¶
func (s *Service) AutoCreatePayoutDocuments( ctx context.Context, _ *billingpb.EmptyRequest, _ *billingpb.EmptyResponse, ) error
func (*Service) CalcAnnualTurnovers ¶
func (s *Service) CalcAnnualTurnovers(ctx context.Context, req *billingpb.EmptyRequest, res *billingpb.EmptyResponse) error
func (*Service) CancelRedeemKeyForOrder ¶
func (s *Service) CancelRedeemKeyForOrder( ctx context.Context, req *billingpb.KeyForOrderRequest, res *billingpb.EmptyResponseWithStatus, ) error
func (*Service) ChangeCodeInOrder ¶
func (s *Service) ChangeCodeInOrder(ctx context.Context, req *billingpb.ChangeCodeInOrderRequest, res *billingpb.ChangeCodeInOrderResponse) error
func (*Service) ChangeMerchant ¶
func (s *Service) ChangeMerchant( ctx context.Context, req *billingpb.OnboardingRequest, rsp *billingpb.ChangeMerchantResponse, ) error
func (*Service) ChangeMerchantData ¶
func (s *Service) ChangeMerchantData( ctx context.Context, req *billingpb.ChangeMerchantDataRequest, rsp *billingpb.ChangeMerchantDataResponse, ) error
func (*Service) ChangeMerchantManualPayouts ¶
func (s *Service) ChangeMerchantManualPayouts( ctx context.Context, req *billingpb.ChangeMerchantManualPayoutsRequest, rsp *billingpb.ChangeMerchantManualPayoutsResponse, ) error
func (*Service) ChangeMerchantPaymentMethod ¶
func (s *Service) ChangeMerchantPaymentMethod( ctx context.Context, req *billingpb.MerchantPaymentMethodRequest, rsp *billingpb.MerchantPaymentMethodResponse, ) (err error)
func (*Service) ChangeMerchantStatus ¶
func (s *Service) ChangeMerchantStatus( ctx context.Context, req *billingpb.MerchantChangeStatusRequest, rsp *billingpb.ChangeMerchantStatusResponse, ) error
func (*Service) ChangeProject ¶
func (*Service) ChangeRoleForAdminUser ¶
func (s *Service) ChangeRoleForAdminUser(ctx context.Context, req *billingpb.ChangeRoleForAdminUserRequest, res *billingpb.EmptyResponseWithStatus) error
func (*Service) ChangeRoleForMerchantUser ¶
func (s *Service) ChangeRoleForMerchantUser(ctx context.Context, req *billingpb.ChangeRoleForMerchantUserRequest, res *billingpb.EmptyResponseWithStatus) error
func (*Service) ChangeRoyaltyReport ¶
func (s *Service) ChangeRoyaltyReport( ctx context.Context, req *billingpb.ChangeRoyaltyReportRequest, rsp *billingpb.ResponseError, ) error
func (*Service) CheckInviteToken ¶
func (s *Service) CheckInviteToken( _ context.Context, req *billingpb.CheckInviteTokenRequest, res *billingpb.CheckInviteTokenResponse, ) error
func (*Service) CheckProjectRequestSignature ¶
func (s *Service) CheckProjectRequestSignature( ctx context.Context, req *billingpb.CheckProjectRequestSignatureRequest, rsp *billingpb.CheckProjectRequestSignatureResponse, ) error
func (*Service) CheckSkuAndKeyProject ¶
func (s *Service) CheckSkuAndKeyProject(ctx context.Context, req *billingpb.CheckSkuAndKeyProjectRequest, rsp *billingpb.EmptyResponseWithStatus) error
func (*Service) ConfirmUserEmail ¶
func (s *Service) ConfirmUserEmail( ctx context.Context, req *billingpb.ConfirmUserEmailRequest, rsp *billingpb.ConfirmUserEmailResponse, ) error
func (*Service) CreateAccountingEntry ¶
func (s *Service) CreateAccountingEntry( ctx context.Context, req *billingpb.CreateAccountingEntryRequest, rsp *billingpb.CreateAccountingEntryResponse, ) error
func (*Service) CreateNotification ¶
func (s *Service) CreateNotification( ctx context.Context, req *billingpb.NotificationRequest, rsp *billingpb.CreateNotificationResponse, ) error
func (*Service) CreateOrUpdateKeyProduct ¶
func (s *Service) CreateOrUpdateKeyProduct( ctx context.Context, req *billingpb.CreateOrUpdateKeyProductRequest, res *billingpb.KeyProductResponse, ) error
func (*Service) CreateOrUpdatePaylink ¶
func (s *Service) CreateOrUpdatePaylink( ctx context.Context, req *billingpb.CreatePaylinkRequest, res *billingpb.GetPaylinkResponse, ) (err error)
CreateOrUpdatePaylink create or modify payment link
func (*Service) CreateOrUpdatePaymentMethod ¶
func (s *Service) CreateOrUpdatePaymentMethod( ctx context.Context, req *billingpb.PaymentMethod, rsp *billingpb.ChangePaymentMethodResponse, ) error
func (*Service) CreateOrUpdatePaymentMethodProductionSettings ¶
func (s *Service) CreateOrUpdatePaymentMethodProductionSettings( ctx context.Context, req *billingpb.ChangePaymentMethodParamsRequest, rsp *billingpb.ChangePaymentMethodParamsResponse, ) error
func (*Service) CreateOrUpdatePaymentMethodTestSettings ¶
func (s *Service) CreateOrUpdatePaymentMethodTestSettings( ctx context.Context, req *billingpb.ChangePaymentMethodParamsRequest, rsp *billingpb.ChangePaymentMethodParamsResponse, ) error
func (*Service) CreateOrUpdateProduct ¶
func (*Service) CreateOrUpdateUserProfile ¶
func (s *Service) CreateOrUpdateUserProfile( ctx context.Context, req *billingpb.UserProfile, rsp *billingpb.GetUserProfileResponse, ) error
func (*Service) CreatePageReview ¶
func (s *Service) CreatePageReview( ctx context.Context, req *billingpb.CreatePageReviewRequest, rsp *billingpb.CheckProjectRequestSignatureResponse, ) error
func (*Service) CreatePayoutDocument ¶
func (s *Service) CreatePayoutDocument( ctx context.Context, req *billingpb.CreatePayoutDocumentRequest, res *billingpb.CreatePayoutDocumentResponse, ) error
func (*Service) CreateRefund ¶
func (s *Service) CreateRefund( ctx context.Context, req *billingpb.CreateRefundRequest, rsp *billingpb.CreateRefundResponse, ) error
func (*Service) CreateRoyaltyReport ¶
func (s *Service) CreateRoyaltyReport( ctx context.Context, req *billingpb.CreateRoyaltyReportRequest, rsp *billingpb.CreateRoyaltyReportRequest, ) error
func (*Service) CreateToken ¶
func (s *Service) CreateToken( ctx context.Context, req *billingpb.TokenRequest, rsp *billingpb.TokenResponse, ) error
func (*Service) DeleteAdminUser ¶
func (s *Service) DeleteAdminUser( ctx context.Context, req *billingpb.AdminRoleRequest, res *billingpb.EmptyResponseWithStatus, ) error
func (*Service) DeleteCustomerCard ¶ added in v1.8.0
func (s *Service) DeleteCustomerCard(ctx context.Context, req *billingpb.DeleteCustomerCardRequest, rsp *billingpb.EmptyResponseWithStatus) error
func (*Service) DeleteKeyProduct ¶
func (s *Service) DeleteKeyProduct( ctx context.Context, req *billingpb.RequestKeyProductMerchant, res *billingpb.EmptyResponseWithStatus, ) error
func (*Service) DeleteMerchantUser ¶
func (s *Service) DeleteMerchantUser( ctx context.Context, req *billingpb.MerchantRoleRequest, res *billingpb.EmptyResponseWithStatus, ) error
func (*Service) DeleteMoneyBackCostMerchant ¶
func (s *Service) DeleteMoneyBackCostMerchant( ctx context.Context, req *billingpb.PaymentCostDeleteRequest, res *billingpb.ResponseError, ) error
func (*Service) DeleteMoneyBackCostSystem ¶
func (s *Service) DeleteMoneyBackCostSystem( ctx context.Context, req *billingpb.PaymentCostDeleteRequest, res *billingpb.ResponseError, ) error
func (*Service) DeletePaylink ¶
func (s *Service) DeletePaylink( ctx context.Context, req *billingpb.PaylinkRequest, res *billingpb.EmptyResponseWithStatus, ) error
DeletePaylink deletes payment link
func (*Service) DeletePaymentChannelCostMerchant ¶
func (s *Service) DeletePaymentChannelCostMerchant( ctx context.Context, req *billingpb.PaymentCostDeleteRequest, res *billingpb.ResponseError, ) error
func (*Service) DeletePaymentChannelCostSystem ¶
func (s *Service) DeletePaymentChannelCostSystem( ctx context.Context, req *billingpb.PaymentCostDeleteRequest, res *billingpb.ResponseError, ) error
func (*Service) DeletePaymentMethodProductionSettings ¶
func (s *Service) DeletePaymentMethodProductionSettings( ctx context.Context, req *billingpb.GetPaymentMethodSettingsRequest, rsp *billingpb.ChangePaymentMethodParamsResponse, ) error
func (*Service) DeletePaymentMethodTestSettings ¶
func (s *Service) DeletePaymentMethodTestSettings( ctx context.Context, req *billingpb.GetPaymentMethodSettingsRequest, rsp *billingpb.ChangePaymentMethodParamsResponse, ) error
func (*Service) DeleteProduct ¶
func (s *Service) DeleteProduct(ctx context.Context, req *billingpb.RequestProduct, res *billingpb.EmptyResponse) error
func (*Service) DeleteProject ¶
func (s *Service) DeleteProject( ctx context.Context, req *billingpb.GetProjectRequest, rsp *billingpb.ChangeProjectResponse, ) error
func (*Service) DeleteRecurringSubscription ¶ added in v1.8.0
func (s *Service) DeleteRecurringSubscription( ctx context.Context, req *billingpb.DeleteRecurringSubscriptionRequest, res *billingpb.EmptyResponseWithStatus, ) error
func (*Service) DeleteSavedCard ¶
func (s *Service) DeleteSavedCard( ctx context.Context, req *billingpb.DeleteSavedCardRequest, rsp *billingpb.EmptyResponseWithStatus, ) error
func (*Service) DeserializeCookie ¶ added in v1.8.0
func (s *Service) DeserializeCookie(ctx context.Context, req *billingpb.DeserializeCookieRequest, rsp *billingpb.DeserializeCookieResponse) error
func (*Service) FindAllOrders ¶
func (s *Service) FindAllOrders( ctx context.Context, req *billingpb.ListOrdersRequest, rsp *billingpb.ListOrdersResponse, ) error
func (*Service) FindAllOrdersPrivate ¶
func (s *Service) FindAllOrdersPrivate( ctx context.Context, req *billingpb.ListOrdersRequest, rsp *billingpb.ListOrdersPrivateResponse, ) error
func (*Service) FindAllOrdersPublic ¶
func (s *Service) FindAllOrdersPublic( ctx context.Context, req *billingpb.ListOrdersRequest, rsp *billingpb.ListOrdersPublicResponse, ) error
func (*Service) FindByZipCode ¶
func (s *Service) FindByZipCode( ctx context.Context, req *billingpb.FindByZipCodeRequest, rsp *billingpb.FindByZipCodeResponse, ) error
func (*Service) FindSubscriptions ¶ added in v1.8.0
func (s *Service) FindSubscriptions(ctx context.Context, req *billingpb.FindSubscriptionsRequest, rsp *billingpb.FindSubscriptionsResponse) error
func (*Service) FinishRedeemKeyForOrder ¶
func (s *Service) FinishRedeemKeyForOrder( ctx context.Context, req *billingpb.KeyForOrderRequest, res *billingpb.GetKeyForOrderRequestResponse, ) error
func (*Service) FormatAmount ¶
func (*Service) GetActOfCompletion ¶ added in v1.7.0
func (s *Service) GetActOfCompletion( ctx context.Context, req *billingpb.ActOfCompletionRequest, rsp *billingpb.ActOfCompletionResponse, ) error
func (*Service) GetActsOfCompletionList ¶ added in v1.8.0
func (s *Service) GetActsOfCompletionList( ctx context.Context, req *billingpb.ActsOfCompletionListRequest, rsp *billingpb.ActsOfCompletionListResponse, ) error
func (*Service) GetAdminByUserId ¶ added in v1.3.0
func (s *Service) GetAdminByUserId( ctx context.Context, req *billingpb.CommonUserProfileRequest, rsp *billingpb.UserRoleResponse, ) error
func (*Service) GetAdminUserRole ¶
func (s *Service) GetAdminUserRole( ctx context.Context, req *billingpb.AdminRoleRequest, res *billingpb.UserRoleResponse, ) error
func (*Service) GetAdminUsers ¶
func (s *Service) GetAdminUsers(ctx context.Context, _ *billingpb.EmptyRequest, res *billingpb.GetAdminUsersResponse) error
func (*Service) GetAllMoneyBackCostMerchant ¶
func (s *Service) GetAllMoneyBackCostMerchant( ctx context.Context, req *billingpb.MoneyBackCostMerchantListRequest, res *billingpb.MoneyBackCostMerchantListResponse, ) error
func (*Service) GetAllMoneyBackCostSystem ¶
func (s *Service) GetAllMoneyBackCostSystem( ctx context.Context, req *billingpb.EmptyRequest, res *billingpb.MoneyBackCostSystemListResponse, ) error
func (*Service) GetAllPaymentChannelCostMerchant ¶
func (s *Service) GetAllPaymentChannelCostMerchant( ctx context.Context, req *billingpb.PaymentChannelCostMerchantListRequest, res *billingpb.PaymentChannelCostMerchantListResponse, ) error
func (*Service) GetAllPaymentChannelCostSystem ¶
func (s *Service) GetAllPaymentChannelCostSystem( ctx context.Context, req *billingpb.EmptyRequest, res *billingpb.PaymentChannelCostSystemListResponse, ) error
func (*Service) GetAmountForVirtualCurrency ¶
func (s *Service) GetAmountForVirtualCurrency(virtualAmount float64, group *billingpb.PriceGroup, prices []*billingpb.ProductPrice) (float64, error)
func (*Service) GetAvailableKeysCount ¶
func (s *Service) GetAvailableKeysCount( ctx context.Context, req *billingpb.GetPlatformKeyCountRequest, res *billingpb.GetPlatformKeyCountResponse, ) error
func (*Service) GetB2bVatRate ¶ added in v1.10.10
func (*Service) GetCommonUserProfile ¶
func (s *Service) GetCommonUserProfile( ctx context.Context, req *billingpb.CommonUserProfileRequest, rsp *billingpb.CommonUserProfileResponse, ) error
func (*Service) GetCountriesList ¶
func (s *Service) GetCountriesList( ctx context.Context, req *billingpb.EmptyRequest, res *billingpb.CountriesList, ) error
func (*Service) GetCountriesListForOrder ¶
func (s *Service) GetCountriesListForOrder( ctx context.Context, req *billingpb.GetCountriesListForOrderRequest, res *billingpb.GetCountriesListForOrderResponse, ) error
func (*Service) GetCountry ¶
func (*Service) GetCustomerInfo ¶ added in v1.8.0
func (s *Service) GetCustomerInfo(ctx context.Context, req *billingpb.GetCustomerInfoRequest, rsp *billingpb.GetCustomerInfoResponse) error
func (*Service) GetCustomerList ¶ added in v1.8.0
func (s *Service) GetCustomerList(ctx context.Context, req *billingpb.ListCustomersRequest, rsp *billingpb.ListCustomersResponse) error
func (*Service) GetCustomerShortInfo ¶ added in v1.8.0
func (s *Service) GetCustomerShortInfo(ctx context.Context, req *billingpb.GetCustomerShortInfoRequest, rsp *billingpb.GetCustomerShortInfoResponse) error
func (*Service) GetDashboardBaseReport ¶
func (s *Service) GetDashboardBaseReport( ctx context.Context, req *billingpb.GetDashboardBaseReportRequest, rsp *billingpb.GetDashboardBaseReportResponse, ) error
func (*Service) GetDashboardCustomerArpu ¶ added in v1.8.0
func (s *Service) GetDashboardCustomerArpu(ctx context.Context, req *billingpb.DashboardCustomerReportArpuRequest, rsp *billingpb.DashboardCustomerReportArpuResponse) error
func (*Service) GetDashboardCustomersReport ¶ added in v1.8.0
func (s *Service) GetDashboardCustomersReport(ctx context.Context, req *billingpb.DashboardCustomerReportRequest, rsp *billingpb.GetDashboardCustomerReportResponse) error
func (*Service) GetDashboardMainReport ¶
func (s *Service) GetDashboardMainReport( ctx context.Context, req *billingpb.GetDashboardMainRequest, rsp *billingpb.GetDashboardMainResponse, ) error
func (*Service) GetDashboardRevenueDynamicsReport ¶
func (s *Service) GetDashboardRevenueDynamicsReport( ctx context.Context, req *billingpb.GetDashboardMainRequest, rsp *billingpb.GetDashboardRevenueDynamicsReportResponse, ) error
func (*Service) GetKeyByID ¶
func (s *Service) GetKeyByID( ctx context.Context, req *billingpb.KeyForOrderRequest, res *billingpb.GetKeyForOrderRequestResponse, ) error
func (*Service) GetKeyProduct ¶
func (s *Service) GetKeyProduct( ctx context.Context, req *billingpb.RequestKeyProductMerchant, res *billingpb.KeyProductResponse, ) error
func (*Service) GetKeyProductInfo ¶
func (s *Service) GetKeyProductInfo( ctx context.Context, req *billingpb.GetKeyProductInfoRequest, res *billingpb.GetKeyProductInfoResponse, ) error
func (*Service) GetKeyProducts ¶
func (s *Service) GetKeyProducts( ctx context.Context, req *billingpb.ListKeyProductsRequest, res *billingpb.ListKeyProductsResponse, ) error
func (*Service) GetKeyProductsForOrder ¶
func (s *Service) GetKeyProductsForOrder( ctx context.Context, req *billingpb.GetKeyProductsForOrderRequest, res *billingpb.ListKeyProductsResponse, ) error
func (*Service) GetMerchantBalance ¶
func (s *Service) GetMerchantBalance( ctx context.Context, req *billingpb.GetMerchantBalanceRequest, res *billingpb.GetMerchantBalanceResponse, ) error
func (*Service) GetMerchantBy ¶
func (s *Service) GetMerchantBy( ctx context.Context, req *billingpb.GetMerchantByRequest, rsp *billingpb.GetMerchantResponse, ) error
func (*Service) GetMerchantDocument ¶ added in v1.9.0
func (s *Service) GetMerchantDocument( ctx context.Context, req *billingpb.GetMerchantDocumentRequest, res *billingpb.GetMerchantDocumentResponse, ) error
func (*Service) GetMerchantDocuments ¶ added in v1.9.0
func (s *Service) GetMerchantDocuments( ctx context.Context, req *billingpb.GetMerchantDocumentsRequest, res *billingpb.GetMerchantDocumentsResponse, ) error
func (*Service) GetMerchantOnboardingCompleteData ¶
func (s *Service) GetMerchantOnboardingCompleteData( ctx context.Context, req *billingpb.SetMerchantS3AgreementRequest, rsp *billingpb.GetMerchantOnboardingCompleteDataResponse, ) error
func (*Service) GetMerchantPaymentMethod ¶
func (s *Service) GetMerchantPaymentMethod( ctx context.Context, req *billingpb.GetMerchantPaymentMethodRequest, rsp *billingpb.GetMerchantPaymentMethodResponse, ) error
func (*Service) GetMerchantTariffRates ¶
func (s *Service) GetMerchantTariffRates( ctx context.Context, req *billingpb.GetMerchantTariffRatesRequest, rsp *billingpb.GetMerchantTariffRatesResponse, ) error
func (*Service) GetMerchantUserRole ¶
func (s *Service) GetMerchantUserRole( ctx context.Context, req *billingpb.MerchantRoleRequest, res *billingpb.UserRoleResponse, ) error
func (*Service) GetMerchantUsers ¶
func (s *Service) GetMerchantUsers(ctx context.Context, req *billingpb.GetMerchantUsersRequest, res *billingpb.GetMerchantUsersResponse) error
func (*Service) GetMerchantsForUser ¶
func (s *Service) GetMerchantsForUser(ctx context.Context, req *billingpb.GetMerchantsForUserRequest, res *billingpb.GetMerchantsForUserResponse) error
func (*Service) GetMoneyBackCostMerchant ¶
func (s *Service) GetMoneyBackCostMerchant( ctx context.Context, req *billingpb.MoneyBackCostMerchantRequest, res *billingpb.MoneyBackCostMerchantResponse, ) error
func (*Service) GetMoneyBackCostSystem ¶
func (s *Service) GetMoneyBackCostSystem( ctx context.Context, req *billingpb.MoneyBackCostSystemRequest, res *billingpb.MoneyBackCostSystemResponse, ) error
func (*Service) GetNotification ¶
func (s *Service) GetNotification( ctx context.Context, req *billingpb.GetNotificationRequest, rsp *billingpb.Notification, ) error
func (*Service) GetOperatingCompaniesList ¶
func (s *Service) GetOperatingCompaniesList( ctx context.Context, req *billingpb.EmptyRequest, res *billingpb.GetOperatingCompaniesListResponse, ) (err error)
func (*Service) GetOperatingCompany ¶
func (s *Service) GetOperatingCompany( ctx context.Context, req *billingpb.GetOperatingCompanyRequest, res *billingpb.GetOperatingCompanyResponse, ) (err error)
func (*Service) GetOrderKeyProducts ¶
func (*Service) GetOrderKeyProductsAmount ¶
func (s *Service) GetOrderKeyProductsAmount(products []*billingpb.KeyProduct, group *billingpb.PriceGroup, platformId string) (float64, error)
func (*Service) GetOrderKeyProductsItems ¶
func (s *Service) GetOrderKeyProductsItems(products []*billingpb.KeyProduct, language string, group *billingpb.PriceGroup, platformId string) ([]*billingpb.OrderItem, error)
func (*Service) GetOrderPrivate ¶
func (s *Service) GetOrderPrivate( ctx context.Context, req *billingpb.GetOrderRequest, rsp *billingpb.GetOrderPrivateResponse, ) error
func (*Service) GetOrderProducts ¶
func (*Service) GetOrderProductsAmount ¶
func (*Service) GetOrderProductsItems ¶
func (*Service) GetOrderPublic ¶
func (s *Service) GetOrderPublic( ctx context.Context, req *billingpb.GetOrderRequest, rsp *billingpb.GetOrderPublicResponse, ) error
func (*Service) GetPaylink ¶
func (s *Service) GetPaylink( ctx context.Context, req *billingpb.PaylinkRequest, res *billingpb.GetPaylinkResponse, ) (err error)
GetPaylink returns one payment link
func (*Service) GetPaylinkStatByCountry ¶
func (s *Service) GetPaylinkStatByCountry( ctx context.Context, req *billingpb.GetPaylinkStatCommonRequest, res *billingpb.GetPaylinkStatCommonGroupResponse, ) (err error)
GetPaylinkStatByCountry returns stat groped by country for requested paylink and period
func (*Service) GetPaylinkStatByDate ¶
func (s *Service) GetPaylinkStatByDate( ctx context.Context, req *billingpb.GetPaylinkStatCommonRequest, res *billingpb.GetPaylinkStatCommonGroupResponse, ) (err error)
GetPaylinkStatByDate returns stat groped by date for requested paylink and period
func (*Service) GetPaylinkStatByReferrer ¶
func (s *Service) GetPaylinkStatByReferrer( ctx context.Context, req *billingpb.GetPaylinkStatCommonRequest, res *billingpb.GetPaylinkStatCommonGroupResponse, ) (err error)
GetPaylinkStatByReferrer returns stat grouped by referer hosts for requested paylink and period
func (*Service) GetPaylinkStatByUtm ¶
func (s *Service) GetPaylinkStatByUtm( ctx context.Context, req *billingpb.GetPaylinkStatCommonRequest, res *billingpb.GetPaylinkStatCommonGroupResponse, ) (err error)
GetPaylinkStatByUtm returns stat groped by utm labels for requested paylink and period
func (*Service) GetPaylinkStatTotal ¶
func (s *Service) GetPaylinkStatTotal( ctx context.Context, req *billingpb.GetPaylinkStatCommonRequest, res *billingpb.GetPaylinkStatCommonResponse, ) (err error)
GetPaylinkStatTotal returns total stat for requested paylink and period
func (*Service) GetPaylinkTransactions ¶ added in v1.1.0
func (s *Service) GetPaylinkTransactions( ctx context.Context, req *billingpb.GetPaylinkTransactionsRequest, res *billingpb.TransactionsResponse, ) error
func (*Service) GetPaylinkURL ¶
func (s *Service) GetPaylinkURL( ctx context.Context, req *billingpb.GetPaylinkURLRequest, res *billingpb.GetPaylinkUrlResponse, ) (err error)
GetPaylinkURL returns public url for Paylink
func (*Service) GetPaylinks ¶
func (s *Service) GetPaylinks( ctx context.Context, req *billingpb.GetPaylinksRequest, res *billingpb.GetPaylinksResponse, ) error
GetPaylinks returns list of all payment links
func (*Service) GetPaymentChannelCostMerchant ¶
func (s *Service) GetPaymentChannelCostMerchant( ctx context.Context, req *billingpb.PaymentChannelCostMerchantRequest, res *billingpb.PaymentChannelCostMerchantResponse, ) error
func (*Service) GetPaymentChannelCostSystem ¶
func (s *Service) GetPaymentChannelCostSystem( ctx context.Context, req *billingpb.PaymentChannelCostSystemRequest, res *billingpb.PaymentChannelCostSystemResponse, ) error
func (*Service) GetPaymentMethodProductionSettings ¶
func (s *Service) GetPaymentMethodProductionSettings( ctx context.Context, req *billingpb.GetPaymentMethodSettingsRequest, rsp *billingpb.GetPaymentMethodSettingsResponse, ) error
func (*Service) GetPaymentMethodTestSettings ¶
func (s *Service) GetPaymentMethodTestSettings( ctx context.Context, req *billingpb.GetPaymentMethodSettingsRequest, rsp *billingpb.GetPaymentMethodSettingsResponse, ) error
func (*Service) GetPaymentMinLimitsSystem ¶
func (s *Service) GetPaymentMinLimitsSystem( ctx context.Context, req *billingpb.EmptyRequest, res *billingpb.GetPaymentMinLimitsSystemResponse, ) (err error)
func (*Service) GetPayoutDocument ¶
func (s *Service) GetPayoutDocument( ctx context.Context, req *billingpb.GetPayoutDocumentRequest, res *billingpb.PayoutDocumentResponse, ) (err error)
func (*Service) GetPayoutDocumentRoyaltyReports ¶
func (s *Service) GetPayoutDocumentRoyaltyReports( ctx context.Context, req *billingpb.GetPayoutDocumentRequest, res *billingpb.ListRoyaltyReportsResponse, ) error
func (*Service) GetPayoutDocuments ¶
func (s *Service) GetPayoutDocuments( ctx context.Context, req *billingpb.GetPayoutDocumentsRequest, res *billingpb.GetPayoutDocumentsResponse, ) error
func (*Service) GetPlatforms ¶
func (s *Service) GetPlatforms(ctx context.Context, req *billingpb.ListPlatformsRequest, rsp *billingpb.ListPlatformsResponse) error
func (*Service) GetPriceGroup ¶
func (s *Service) GetPriceGroup( ctx context.Context, req *billingpb.GetPriceGroupRequest, res *billingpb.PriceGroup, ) error
func (*Service) GetPriceGroupByCountry ¶
func (s *Service) GetPriceGroupByCountry( ctx context.Context, req *billingpb.PriceGroupByCountryRequest, res *billingpb.PriceGroup, ) error
func (*Service) GetPriceGroupByRegion ¶
func (s *Service) GetPriceGroupByRegion(ctx context.Context, req *billingpb.GetPriceGroupByRegionRequest, rsp *billingpb.GetPriceGroupByRegionResponse) error
func (*Service) GetPriceGroupCurrencies ¶
func (s *Service) GetPriceGroupCurrencies( ctx context.Context, req *billingpb.EmptyRequest, res *billingpb.PriceGroupCurrenciesResponse, ) error
func (*Service) GetPriceGroupCurrencyByRegion ¶
func (s *Service) GetPriceGroupCurrencyByRegion( ctx context.Context, req *billingpb.PriceGroupByRegionRequest, res *billingpb.PriceGroupCurrenciesResponse, ) error
func (*Service) GetProduct ¶
func (s *Service) GetProduct( ctx context.Context, req *billingpb.RequestProduct, rsp *billingpb.GetProductResponse, ) error
func (*Service) GetProductPrices ¶
func (s *Service) GetProductPrices(ctx context.Context, req *billingpb.RequestProduct, res *billingpb.ProductPricesResponse) error
func (*Service) GetProductsForOrder ¶
func (s *Service) GetProductsForOrder(ctx context.Context, req *billingpb.GetProductsForOrderRequest, res *billingpb.ListProductsResponse) error
func (*Service) GetProject ¶
func (s *Service) GetProject( ctx context.Context, req *billingpb.GetProjectRequest, rsp *billingpb.ChangeProjectResponse, ) error
func (*Service) GetRecommendedPriceByConversion ¶
func (s *Service) GetRecommendedPriceByConversion( ctx context.Context, req *billingpb.RecommendedPriceRequest, res *billingpb.RecommendedPriceResponse, ) error
func (*Service) GetRecommendedPriceByPriceGroup ¶
func (s *Service) GetRecommendedPriceByPriceGroup( ctx context.Context, req *billingpb.RecommendedPriceRequest, res *billingpb.RecommendedPriceResponse, ) error
func (*Service) GetRecommendedPriceTable ¶
func (s *Service) GetRecommendedPriceTable( ctx context.Context, req *billingpb.RecommendedPriceTableRequest, res *billingpb.RecommendedPriceTableResponse, ) error
func (*Service) GetRefund ¶
func (s *Service) GetRefund( ctx context.Context, req *billingpb.GetRefundRequest, rsp *billingpb.CreateRefundResponse, ) error
func (*Service) GetRoleList ¶
func (s *Service) GetRoleList(_ context.Context, req *billingpb.GetRoleListRequest, res *billingpb.GetRoleListResponse) error
func (*Service) GetRoyaltyReport ¶
func (s *Service) GetRoyaltyReport( ctx context.Context, req *billingpb.GetRoyaltyReportRequest, rsp *billingpb.GetRoyaltyReportResponse, ) error
func (*Service) GetSubscription ¶ added in v1.8.0
func (s *Service) GetSubscription( ctx context.Context, req *billingpb.GetSubscriptionRequest, rsp *billingpb.GetSubscriptionResponse, ) error
func (*Service) GetSubscriptionOrders ¶ added in v1.8.0
func (s *Service) GetSubscriptionOrders( ctx context.Context, req *billingpb.GetSubscriptionOrdersRequest, rsp *billingpb.GetSubscriptionOrdersResponse, ) error
func (*Service) GetUserProfile ¶
func (s *Service) GetUserProfile( ctx context.Context, req *billingpb.GetUserProfileRequest, rsp *billingpb.GetUserProfileResponse, ) error
func (*Service) GetVatReport ¶ added in v1.2.0
func (s *Service) GetVatReport( ctx context.Context, req *billingpb.VatReportRequest, res *billingpb.VatReportResponse, ) error
func (*Service) GetVatReportTransactions ¶
func (s *Service) GetVatReportTransactions( ctx context.Context, req *billingpb.VatTransactionsRequest, res *billingpb.PrivateTransactionsResponse, ) error
func (*Service) GetVatReportsDashboard ¶
func (s *Service) GetVatReportsDashboard( ctx context.Context, req *billingpb.EmptyRequest, res *billingpb.VatReportsResponse, ) error
func (*Service) GetVatReportsForCountry ¶
func (s *Service) GetVatReportsForCountry( ctx context.Context, req *billingpb.VatReportsRequest, res *billingpb.VatReportsResponse, ) error
func (*Service) IncrPaylinkVisits ¶
func (s *Service) IncrPaylinkVisits( ctx context.Context, req *billingpb.PaylinkRequestById, _ *billingpb.EmptyResponse, ) error
IncrPaylinkVisits adds a visit hit to stat
func (*Service) InviteUserAdmin ¶
func (s *Service) InviteUserAdmin( ctx context.Context, req *billingpb.InviteUserAdminRequest, res *billingpb.InviteUserAdminResponse, ) error
func (*Service) InviteUserMerchant ¶
func (s *Service) InviteUserMerchant( ctx context.Context, req *billingpb.InviteUserMerchantRequest, res *billingpb.InviteUserMerchantResponse, ) error
func (*Service) IsChangeDataAllow ¶
func (*Service) IsDbNotFoundError ¶
func (*Service) IsOrderCanBePaying ¶
func (s *Service) IsOrderCanBePaying( ctx context.Context, req *billingpb.IsOrderCanBePayingRequest, rsp *billingpb.IsOrderCanBePayingResponse, ) error
func (*Service) KeyDaemonProcess ¶
func (*Service) ListMerchantPaymentMethods ¶
func (s *Service) ListMerchantPaymentMethods( ctx context.Context, req *billingpb.ListMerchantPaymentMethodsRequest, rsp *billingpb.ListingMerchantPaymentMethod, ) error
func (*Service) ListMerchants ¶
func (s *Service) ListMerchants( ctx context.Context, req *billingpb.MerchantListingRequest, rsp *billingpb.MerchantListingResponse, ) error
func (*Service) ListMerchantsForAgreement ¶ added in v1.8.0
func (s *Service) ListMerchantsForAgreement( ctx context.Context, req *billingpb.MerchantListingRequest, rsp *billingpb.ListMerchantsForAgreementResponse, ) error
func (*Service) ListNotifications ¶
func (s *Service) ListNotifications( ctx context.Context, req *billingpb.ListingNotificationRequest, rsp *billingpb.Notifications, ) error
func (*Service) ListProducts ¶
func (s *Service) ListProducts(ctx context.Context, req *billingpb.ListProductsRequest, res *billingpb.ListProductsResponse) error
func (*Service) ListProjects ¶
func (s *Service) ListProjects( ctx context.Context, req *billingpb.ListProjectsRequest, rsp *billingpb.ListProjectsResponse, ) error
func (*Service) ListRefunds ¶
func (s *Service) ListRefunds( ctx context.Context, req *billingpb.ListRefundsRequest, rsp *billingpb.ListRefundsResponse, ) error
func (*Service) ListRoyaltyReportOrders ¶
func (s *Service) ListRoyaltyReportOrders( ctx context.Context, req *billingpb.ListRoyaltyReportOrdersRequest, res *billingpb.TransactionsResponse, ) error
func (*Service) ListRoyaltyReports ¶
func (s *Service) ListRoyaltyReports( ctx context.Context, req *billingpb.ListRoyaltyReportsRequest, rsp *billingpb.ListRoyaltyReportsResponse, ) error
func (*Service) MarkNotificationAsRead ¶
func (s *Service) MarkNotificationAsRead( ctx context.Context, req *billingpb.GetNotificationRequest, rsp *billingpb.Notification, ) error
func (*Service) MerchantReviewRoyaltyReport ¶
func (s *Service) MerchantReviewRoyaltyReport( ctx context.Context, req *billingpb.MerchantReviewRoyaltyReportRequest, rsp *billingpb.ResponseError, ) error
func (*Service) MigrateCustomers ¶ added in v1.6.0
func (*Service) NotifyWebhookTestResults ¶ added in v1.3.0
func (s *Service) NotifyWebhookTestResults( ctx context.Context, req *billingpb.NotifyWebhookTestResultsRequest, res *billingpb.EmptyResponseWithStatus, ) error
func (*Service) OrderCreateByPaylink ¶
func (s *Service) OrderCreateByPaylink( ctx context.Context, req *billingpb.OrderCreateByPaylink, rsp *billingpb.OrderCreateProcessResponse, ) error
func (*Service) OrderCreateProcess ¶
func (s *Service) OrderCreateProcess( ctx context.Context, req *billingpb.OrderCreateRequest, rsp *billingpb.OrderCreateProcessResponse, ) error
func (*Service) OrderReCreateProcess ¶
func (s *Service) OrderReCreateProcess( ctx context.Context, req *billingpb.OrderReCreateProcessRequest, res *billingpb.OrderCreateProcessResponse, ) error
func (*Service) OrderReceipt ¶
func (s *Service) OrderReceipt( ctx context.Context, req *billingpb.OrderReceiptRequest, rsp *billingpb.OrderReceiptResponse, ) error
func (*Service) PaymentCallbackProcess ¶
func (s *Service) PaymentCallbackProcess( ctx context.Context, req *billingpb.PaymentNotifyRequest, rsp *billingpb.PaymentNotifyResponse, ) error
func (*Service) PaymentCreateProcess ¶
func (s *Service) PaymentCreateProcess( ctx context.Context, req *billingpb.PaymentCreateRequest, rsp *billingpb.PaymentCreateResponse, ) error
func (*Service) PaymentFormJsonDataProcess ¶
func (s *Service) PaymentFormJsonDataProcess( ctx context.Context, req *billingpb.PaymentFormJsonDataRequest, rsp *billingpb.PaymentFormJsonDataResponse, ) error
func (*Service) PaymentFormLanguageChanged ¶
func (s *Service) PaymentFormLanguageChanged( ctx context.Context, req *billingpb.PaymentFormUserChangeLangRequest, rsp *billingpb.PaymentFormDataChangeResponse, ) error
func (*Service) PaymentFormPaymentAccountChanged ¶
func (s *Service) PaymentFormPaymentAccountChanged( ctx context.Context, req *billingpb.PaymentFormUserChangePaymentAccountRequest, rsp *billingpb.PaymentFormDataChangeResponse, ) error
func (*Service) PaymentFormPlatformChanged ¶
func (s *Service) PaymentFormPlatformChanged(ctx context.Context, req *billingpb.PaymentFormUserChangePlatformRequest, rsp *billingpb.PaymentFormDataChangeResponse) error
func (*Service) PayoutDocumentPdfUploaded ¶
func (s *Service) PayoutDocumentPdfUploaded( ctx context.Context, req *billingpb.PayoutDocumentPdfUploadedRequest, res *billingpb.PayoutDocumentPdfUploadedResponse, ) error
func (*Service) PayoutFinanceDone ¶ added in v1.3.0
func (s *Service) PayoutFinanceDone( ctx context.Context, req *billingpb.ReportFinanceDoneRequest, res *billingpb.EmptyResponseWithStatus, ) error
func (*Service) ProcessBillingAddress ¶
func (s *Service) ProcessBillingAddress( ctx context.Context, req *billingpb.ProcessBillingAddressRequest, rsp *billingpb.ProcessBillingAddressResponse, ) error
func (*Service) ProcessOrderKeyProducts ¶
func (*Service) ProcessOrderProducts ¶
func (*Service) ProcessOrderVirtualCurrency ¶
func (*Service) ProcessRefundCallback ¶
func (s *Service) ProcessRefundCallback( ctx context.Context, req *billingpb.CallbackRequest, rsp *billingpb.PaymentNotifyResponse, ) error
func (*Service) ProcessVatReports ¶
func (s *Service) ProcessVatReports( ctx context.Context, req *billingpb.ProcessVatReportsRequest, res *billingpb.EmptyResponse, ) error
func (*Service) PublishKeyProduct ¶
func (s *Service) PublishKeyProduct( ctx context.Context, req *billingpb.PublishKeyProductRequest, res *billingpb.KeyProductResponse, ) error
func (*Service) RebuildAccountingEntries ¶ added in v1.8.0
func (*Service) ResendInviteAdmin ¶
func (s *Service) ResendInviteAdmin( ctx context.Context, req *billingpb.ResendInviteAdminRequest, res *billingpb.EmptyResponseWithStatus, ) error
func (*Service) ResendInviteMerchant ¶
func (s *Service) ResendInviteMerchant( ctx context.Context, req *billingpb.ResendInviteMerchantRequest, res *billingpb.EmptyResponseWithStatus, ) error
func (*Service) ReserveKeyForOrder ¶
func (s *Service) ReserveKeyForOrder( ctx context.Context, req *billingpb.PlatformKeyReserveRequest, res *billingpb.PlatformKeyReserveResponse, ) error
func (*Service) RoyaltyReportFinanceDone ¶ added in v1.3.0
func (s *Service) RoyaltyReportFinanceDone( ctx context.Context, req *billingpb.ReportFinanceDoneRequest, res *billingpb.EmptyResponseWithStatus, ) error
func (*Service) RoyaltyReportPdfUploaded ¶
func (s *Service) RoyaltyReportPdfUploaded( ctx context.Context, req *billingpb.RoyaltyReportPdfUploadedRequest, res *billingpb.RoyaltyReportPdfUploadedResponse, ) error
func (*Service) SendWebhookToMerchant ¶ added in v1.3.0
func (s *Service) SendWebhookToMerchant( ctx context.Context, req *billingpb.OrderCreateRequest, res *billingpb.SendWebhookToMerchantResponse, ) error
func (*Service) SetAllPaymentChannelCostMerchant ¶ added in v1.10.6
func (s *Service) SetAllPaymentChannelCostMerchant( ctx context.Context, req *billingpb.SetAllPaymentChannelCostMerchantRequest, res *billingpb.SetAllPaymentChannelCostMerchantResponse, ) error
func (*Service) SetCustomerPaymentActivity ¶ added in v1.7.0
func (s *Service) SetCustomerPaymentActivity( ctx context.Context, req *billingpb.SetCustomerPaymentActivityRequest, rsp *billingpb.EmptyResponseWithStatus, ) error
func (*Service) SetMerchantAcceptedStatus ¶ added in v1.8.0
func (s *Service) SetMerchantAcceptedStatus( ctx context.Context, req *billingpb.SetMerchantAcceptedStatusRequest, rsp *billingpb.SetMerchantAcceptedStatusResponse, ) error
func (*Service) SetMerchantOperatingCompany ¶
func (s *Service) SetMerchantOperatingCompany( ctx context.Context, req *billingpb.SetMerchantOperatingCompanyRequest, rsp *billingpb.SetMerchantOperatingCompanyResponse, ) error
func (*Service) SetMerchantS3Agreement ¶
func (s *Service) SetMerchantS3Agreement( ctx context.Context, req *billingpb.SetMerchantS3AgreementRequest, rsp *billingpb.ChangeMerchantDataResponse, ) error
func (*Service) SetMerchantTariffRates ¶
func (s *Service) SetMerchantTariffRates( ctx context.Context, req *billingpb.SetMerchantTariffRatesRequest, rsp *billingpb.CheckProjectRequestSignatureResponse, ) error
func (*Service) SetMoneyBackCostMerchant ¶
func (s *Service) SetMoneyBackCostMerchant( ctx context.Context, req *billingpb.MoneyBackCostMerchant, res *billingpb.MoneyBackCostMerchantResponse, ) error
func (*Service) SetMoneyBackCostSystem ¶
func (s *Service) SetMoneyBackCostSystem( ctx context.Context, req *billingpb.MoneyBackCostSystem, res *billingpb.MoneyBackCostSystemResponse, ) error
func (*Service) SetPaymentChannelCostMerchant ¶
func (s *Service) SetPaymentChannelCostMerchant( ctx context.Context, req *billingpb.PaymentChannelCostMerchant, res *billingpb.PaymentChannelCostMerchantResponse, ) error
func (*Service) SetPaymentChannelCostSystem ¶
func (s *Service) SetPaymentChannelCostSystem( ctx context.Context, req *billingpb.PaymentChannelCostSystem, res *billingpb.PaymentChannelCostSystemResponse, ) error
func (*Service) SetPaymentMinLimitSystem ¶
func (s *Service) SetPaymentMinLimitSystem( ctx context.Context, req *billingpb.PaymentMinLimitSystem, res *billingpb.EmptyResponseWithStatus, ) (err error)
func (*Service) SetUserNotifyNewRegion ¶
func (s *Service) SetUserNotifyNewRegion( ctx context.Context, req *billingpb.SetUserNotifyRequest, _ *billingpb.EmptyResponse, ) error
func (*Service) SetUserNotifySales ¶
func (s *Service) SetUserNotifySales( ctx context.Context, req *billingpb.SetUserNotifyRequest, _ *billingpb.EmptyResponse, ) error
func (*Service) TaskExtendPayoutsWithVat ¶ added in v1.10.6
func (*Service) TaskExtendRoyaltiesWithVat ¶ added in v1.10.10
func (*Service) TaskFixReportDates ¶ added in v1.8.0
func (*Service) UnPublishKeyProduct ¶
func (s *Service) UnPublishKeyProduct( ctx context.Context, req *billingpb.UnPublishKeyProductRequest, res *billingpb.KeyProductResponse, ) error
func (*Service) UpdateCountry ¶
func (*Service) UpdateCustomersPayments ¶ added in v1.7.0
func (*Service) UpdateFirstPayments ¶ added in v1.7.0
func (*Service) UpdateOrder ¶
func (*Service) UpdatePayoutDocument ¶
func (s *Service) UpdatePayoutDocument( ctx context.Context, req *billingpb.UpdatePayoutDocumentRequest, res *billingpb.PayoutDocumentResponse, ) error
func (*Service) UpdatePriceGroup ¶
func (s *Service) UpdatePriceGroup( ctx context.Context, req *billingpb.PriceGroup, res *billingpb.PriceGroup, ) error
func (*Service) UpdateProductPrices ¶
func (s *Service) UpdateProductPrices(ctx context.Context, req *billingpb.UpdateProductPricesRequest, res *billingpb.ResponseError) error
func (*Service) UpdateVatReportStatus ¶
func (s *Service) UpdateVatReportStatus( ctx context.Context, req *billingpb.UpdateVatReportStatusRequest, res *billingpb.ResponseError, ) error
func (*Service) UploadKeysFile ¶
func (s *Service) UploadKeysFile( ctx context.Context, req *billingpb.PlatformKeysFileRequest, res *billingpb.PlatformKeysFileResponse, ) error
Source Files ¶
- accounting_entry.go
- act_of_completion.go
- bank_card.go
- centrifugo.go
- country.go
- customer.go
- dashboard.go
- entity.go
- key.go
- key_product.go
- merchant.go
- merchant_balance.go
- merchant_document.go
- merchants_tariff_rates.go
- money_back_cost_merchant.go
- money_back_cost_system.go
- onboarding.go
- operating_company.go
- order.go
- order_view.go
- paylink.go
- payment_channel_cost_merchant.go
- payment_channel_cost_system.go
- payment_method.go
- payment_min_limit_system.go
- payment_system.go
- payment_system_mock.go
- payouts.go
- platform.go
- price_groups.go
- price_table.go
- product.go
- project.go
- recurring.go
- refund.go
- report.go
- royalty_report.go
- service.go
- test_helpers.go
- token.go
- turnovers.go
- user_profile.go
- users.go
- vat_reports.go
- webhook.go
- zip_code.go
Click to show internal directories.
Click to hide internal directories.