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 (
|
|
|
|
|
"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
|
2020-10-01 13:14:48 -04:00
|
|
|
|
2020-10-05 08:46:52 -04:00
|
|
|
GetCloudCustomer() (*model.CloudCustomer, *model.AppError)
|
2020-10-20 05:46:58 -04:00
|
|
|
UpdateCloudCustomer(customerInfo *model.CloudCustomerInfo) (*model.CloudCustomer, *model.AppError)
|
|
|
|
|
UpdateCloudCustomerAddress(address *model.Address) (*model.CloudCustomer, *model.AppError)
|
2020-10-05 08:46:52 -04:00
|
|
|
|
2020-10-01 13:14:48 -04:00
|
|
|
GetSubscription() (*model.Subscription, *model.AppError)
|
2020-10-26 18:17:55 +01:00
|
|
|
GetInvoicesForSubscription() ([]*model.Invoice, *model.AppError)
|
2020-11-03 13:11:18 -05:00
|
|
|
GetInvoicePDF(invoiceID string) ([]byte, string, *model.AppError)
|
2020-09-28 12:18:47 -04:00
|
|
|
}
|