mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* Add a controller for changing subscription * Changes for PR * Another change * Fix pipeline Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
26 lines
1.0 KiB
Go
26 lines
1.0 KiB
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(userID string) ([]*model.Product, error)
|
|
|
|
CreateCustomerPayment(userID string) (*model.StripeSetupIntent, error)
|
|
ConfirmCustomerPayment(userID string, confirmRequest *model.ConfirmPaymentMethodRequest) 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)
|
|
}
|