Files
f619e1e3e0 Remove dead self-serve purchase code (#39528)
* Remove dead self-serve purchase code

Remove the unused ChangeSubscription, GetSelfHostedProducts and
InvalidateCaches methods from CloudInterface, the always-501
/api/v4/hosted_customer/signup_available endpoint, the unused
NotifySelfHostedSignupProgress app method, the hosted purchase screening
job, and Client4.GetSelfHostedProducts. Deprecate the related public
model types and constants.

Co-authored-by: Nick Misasi <nick13misasi@gmail.com>

* Remove hosted_customer/signup_available from the API reference

Co-authored-by: Nick Misasi <nick13misasi@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-10-30 18:40:48 -04:00

35 lines
1.1 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)
GetCloudLimits(userID string) (*model.ProductLimits, error)
GetCloudCustomer(userID string) (*model.CloudCustomer, error)
GetSubscription(userID string) (*model.Subscription, error)
ValidateBusinessEmail(userID, email string) 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
}