MM-47420 - Add endpoint to fetch selfhosted products (#21678)

* created selfhosted endpoint

* make autogenerated mocks

* add test

* add user id

* remove user id requirement

* add tests

* send user id with request

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Allan Guwatudde
2022-11-30 14:26:30 +03:00
коммит произвёл GitHub
родитель ed3f3fec46
Коммит 966456567d
5 изменённых файлов: 180 добавлений и 0 удалений

Просмотреть файл

@@ -10,6 +10,7 @@ import (
type CloudInterface interface {
GetCloudProduct(userID string, productID string) (*model.Product, error)
GetCloudProducts(userID string, includeLegacyProducts bool) ([]*model.Product, error)
GetSelfHostedProducts(userID string) ([]*model.Product, error)
GetCloudLimits(userID string) (*model.ProductLimits, error)
CreateCustomerPayment(userID string) (*model.StripeSetupIntent, error)