Files
mattermost/einterfaces/cloud.go
Devin Binnie ebd3e6aa49 [MM-28217] Server API to serve up cloud customer information (#15656)
* [MM-28217] Server API to serve up cloud customer information

* Added missing client4 method

* merge'd

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-10-05 08:46:52 -04:00

20 lines
554 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)
GetSubscription() (*model.Subscription, *model.AppError)
}