* API pass-thru to the CWS for getting subscription * Remove use of parameter in favour of env var * Remove unnecessary param * Removed unnecessary fields and added client4 method * Some cleanup * Translation fix Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
18 строки
493 B
Go
18 строки
493 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package einterfaces
|
|
|
|
import (
|
|
"github.com/mattermost/mattermost-server/v5/model"
|
|
)
|
|
|
|
type CloudInterface interface {
|
|
GetCloudProducts() ([]*model.Product, *model.AppError)
|
|
|
|
CreateCustomerPayment() (*model.StripeSetupIntent, *model.AppError)
|
|
ConfirmCustomerPayment(*model.ConfirmPaymentMethodRequest) *model.AppError
|
|
|
|
GetSubscription() (*model.Subscription, *model.AppError)
|
|
}
|