2020-09-28 12:18:47 -04:00
|
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
|
|
|
// See LICENSE.txt for license information.
|
|
|
|
|
|
|
|
|
|
package einterfaces
|
|
|
|
|
|
|
|
|
|
import (
|
2025-04-16 09:34:18 -04:00
|
|
|
"mime/multipart"
|
|
|
|
|
|
2023-06-11 01:24:35 -04:00
|
|
|
"github.com/mattermost/mattermost/server/public/model"
|
2020-09-28 12:18:47 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type CloudInterface interface {
|
2022-11-29 11:47:51 -05:00
|
|
|
GetCloudProduct(userID string, productID string) (*model.Product, error)
|
2021-10-07 12:48:56 -04:00
|
|
|
GetCloudProducts(userID string, includeLegacyProducts bool) ([]*model.Product, error)
|
2022-11-30 06:26:30 -05:00
|
|
|
GetSelfHostedProducts(userID string) ([]*model.Product, error)
|
2022-04-22 15:23:19 -04:00
|
|
|
GetCloudLimits(userID string) (*model.ProductLimits, error)
|
2020-09-28 12:18:47 -04:00
|
|
|
|
2021-03-05 03:23:39 -05:00
|
|
|
GetCloudCustomer(userID string) (*model.CloudCustomer, error)
|
|
|
|
|
UpdateCloudCustomer(userID string, customerInfo *model.CloudCustomerInfo) (*model.CloudCustomer, error)
|
|
|
|
|
UpdateCloudCustomerAddress(userID string, address *model.Address) (*model.CloudCustomer, error)
|
2020-10-05 08:46:52 -04:00
|
|
|
|
2021-03-05 03:23:39 -05:00
|
|
|
GetSubscription(userID string) (*model.Subscription, error)
|
|
|
|
|
GetInvoicesForSubscription(userID string) ([]*model.Invoice, error)
|
|
|
|
|
GetInvoicePDF(userID, invoiceID string) ([]byte, string, error)
|
2021-05-27 09:12:47 -04:00
|
|
|
|
|
|
|
|
ChangeSubscription(userID, subscriptionID string, subscriptionChange *model.SubscriptionChange) (*model.Subscription, error)
|
2021-12-21 01:46:02 -05:00
|
|
|
|
2022-06-01 17:36:03 -04:00
|
|
|
ValidateBusinessEmail(userID, email string) error
|
2022-05-18 04:19:38 -04:00
|
|
|
|
2022-03-21 10:42:09 -04:00
|
|
|
InvalidateCaches() error
|
2022-11-29 11:47:51 -05:00
|
|
|
|
|
|
|
|
CreateOrUpdateSubscriptionHistoryEvent(userID string, userCount int) (*model.SubscriptionHistory, error)
|
2022-11-22 13:22:45 -05:00
|
|
|
HandleLicenseChange() error
|
2022-12-29 14:58:05 -05:00
|
|
|
|
2022-12-29 15:07:06 -05:00
|
|
|
CheckCWSConnection(userId string) error
|
2023-02-21 09:36:44 -05:00
|
|
|
|
2023-04-04 06:57:32 -04:00
|
|
|
SubscribeToNewsletter(userID string, req *model.SubscribeNewsletterRequest) error
|
2023-04-11 12:52:54 -04:00
|
|
|
|
2023-11-14 09:12:04 -05:00
|
|
|
ApplyIPFilters(userID string, ranges *model.AllowedIPRanges) (*model.AllowedIPRanges, error)
|
|
|
|
|
GetIPFilters(userID string) (*model.AllowedIPRanges, error)
|
2023-11-28 09:09:50 -05:00
|
|
|
GetInstallation(userID string) (*model.Installation, error)
|
2025-04-16 09:34:18 -04:00
|
|
|
|
|
|
|
|
RemoveAuditLoggingCert(userID string) error
|
|
|
|
|
CreateAuditLoggingCert(userID string, fileData *multipart.FileHeader) error
|
2020-09-28 12:18:47 -04:00
|
|
|
}
|