// 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) }