mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
24 lines
879 B
Go
24 lines
879 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
|
|
|
|
GetCloudCustomer() (*model.CloudCustomer, *model.AppError)
|
|
UpdateCloudCustomer(customerInfo *model.CloudCustomerInfo) (*model.CloudCustomer, *model.AppError)
|
|
UpdateCloudCustomerAddress(address *model.Address) (*model.CloudCustomer, *model.AppError)
|
|
|
|
GetSubscription() (*model.Subscription, *model.AppError)
|
|
GetInvoicesForSubscription() ([]*model.Invoice, *model.AppError)
|
|
GetInvoicePDF(invoiceID string) ([]byte, string, *model.AppError)
|
|
}
|