Files
mostlymatter/einterfaces/cloud.go
Mario de Frutos Dieguez b68f171162 [MM-29157] Cloud invoices logic (#16056)
* Cloud invoices logic

This commit includes all the code needed to get and print invoices
from CWS
2020-10-26 18:17:55 +01:00

24 строки
871 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, *model.AppError)
}