github.com/haalcala/mattermost-server-change-repo@v0.0.0-20210713015153-16753fbeee5f/einterfaces/cloud.go (about)

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See LICENSE.txt for license information.
     3  
     4  package einterfaces
     5  
     6  import (
     7  	"github.com/mattermost/mattermost-server/v5/model"
     8  )
     9  
    10  type CloudInterface interface {
    11  	GetCloudProducts() ([]*model.Product, *model.AppError)
    12  
    13  	CreateCustomerPayment() (*model.StripeSetupIntent, *model.AppError)
    14  	ConfirmCustomerPayment(*model.ConfirmPaymentMethodRequest) *model.AppError
    15  
    16  	GetCloudCustomer() (*model.CloudCustomer, *model.AppError)
    17  	UpdateCloudCustomer(customerInfo *model.CloudCustomerInfo) (*model.CloudCustomer, *model.AppError)
    18  	UpdateCloudCustomerAddress(address *model.Address) (*model.CloudCustomer, *model.AppError)
    19  
    20  	GetSubscription() (*model.Subscription, *model.AppError)
    21  	GetInvoicesForSubscription() ([]*model.Invoice, *model.AppError)
    22  	GetInvoicePDF(invoiceID string) ([]byte, string, *model.AppError)
    23  }