mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
* remove newsletter signup and replace with terms/privacy agreement * removed subscribeToSecurityNewsletter, made checkbox required * update signup test to remove newsletter and ensure the terms checkbox is required * update unit test and e2e test to reflect changes * fix e2e test * Removed susbcribe-newsletter endpoint in server * Update signup.test.tsx * remove unused css * remove unused css * fixed broken tests * fixed linter issues * Remove redundant IntlProvider and comments * Remove usage of test IDs from Signup tests * Remove usage of fireEvent * Remove usage of mountWithIntl from Signup tests * update e2e tests * fix playwright test * Fix Lint in signup.ts --------- Co-authored-by: maria.nunez <maria.nunez@mattermost.com> Co-authored-by: Mattermost Build <build@mattermost.com> Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com> Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
43 lines
1.7 KiB
Go
43 lines
1.7 KiB
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package einterfaces
|
|
|
|
import (
|
|
"mime/multipart"
|
|
|
|
"github.com/mattermost/mattermost/server/public/model"
|
|
)
|
|
|
|
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)
|
|
|
|
GetCloudCustomer(userID string) (*model.CloudCustomer, error)
|
|
UpdateCloudCustomer(userID string, customerInfo *model.CloudCustomerInfo) (*model.CloudCustomer, error)
|
|
UpdateCloudCustomerAddress(userID string, address *model.Address) (*model.CloudCustomer, error)
|
|
|
|
GetSubscription(userID string) (*model.Subscription, error)
|
|
GetInvoicesForSubscription(userID string) ([]*model.Invoice, error)
|
|
GetInvoicePDF(userID, invoiceID string) ([]byte, string, error)
|
|
|
|
ChangeSubscription(userID, subscriptionID string, subscriptionChange *model.SubscriptionChange) (*model.Subscription, error)
|
|
|
|
ValidateBusinessEmail(userID, email string) error
|
|
|
|
InvalidateCaches() error
|
|
|
|
CreateOrUpdateSubscriptionHistoryEvent(userID string, userCount int) (*model.SubscriptionHistory, error)
|
|
HandleLicenseChange() error
|
|
|
|
CheckCWSConnection(userId string) error
|
|
|
|
ApplyIPFilters(userID string, ranges *model.AllowedIPRanges) (*model.AllowedIPRanges, error)
|
|
GetIPFilters(userID string) (*model.AllowedIPRanges, error)
|
|
GetInstallation(userID string) (*model.Installation, error)
|
|
|
|
RemoveAuditLoggingCert(userID string) error
|
|
CreateAuditLoggingCert(userID string, fileData *multipart.FileHeader) error
|
|
}
|