func (a *PlaidApiService) ApplicationGet(ctx _context.Context) ApiApplicationGetRequest {
	return ApiApplicationGetRequest{
		ApiService: a,
		ctx: ctx,
	}
}
/*
ApplicationGet Retrieve information about a Plaid application
Allows financial institutions to retrieve information about Plaid clients for the purpose of building control-tower experiences
@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApplicationGetRequest
package plaid
import (
	"bytes"
	_context "context"
	_ioutil "io/ioutil"
	_nethttp "net/http"
	_neturl "net/url"
	"os"
)
var (
	_ _context.Context
)
type PlaidApiService service
type ApiAccountsBalanceGetRequest struct {
	ctx _context.Context
	ApiService *PlaidApiService
	accountsBalanceGetRequest *AccountsBalanceGetRequest
}
func (r ApiAccountsBalanceGetRequest) AccountsBalanceGetRequest(accountsBalanceGetRequest AccountsBalanceGetRequest) ApiAccountsBalanceGetRequest {
	r.accountsBalanceGetRequest = &accountsBalanceGetRequest
	return r
}
func (r ApiAccountsBalanceGetRequest) Execute() (AccountsGetResponse, *_nethttp.Response, error) {
	return r.ApiService.AccountsBalanceGetExecute(r)
}
func (a *PlaidApiService) AccountsBalanceGet(ctx _context.Context) ApiAccountsBalanceGetRequest {
	return ApiAccountsBalanceGetRequest{
		ApiService: a,
		ctx: ctx,
	}
}
func (a *PlaidApiService) AccountsBalanceGetExecute(r ApiAccountsBalanceGetRequest) (AccountsGetResponse, *_nethttp.Response, error) {
	var (
		localVarHTTPMethod   = _nethttp.MethodPost
		localVarPostBody     interface{}
		localVarFormFileName string
		localVarFileName     string
		localVarFileBytes    []byte
		localVarReturnValue  AccountsGetResponse
	)
	localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PlaidApiService.AccountsBalanceGet")
	if err != nil {
		return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
	}
	localVarPath := localBasePath + "/accounts/balance/get"
	localVarHeaderParams := make(map[string]string)
	localVarQueryParams := _neturl.Values{}
	localVarFormParams := _neturl.Values{}
	if r.accountsBalanceGetRequest == nil {
		return localVarReturnValue, nil, reportError("accountsBalanceGetRequest is required and must be specified")
	}
	localVarHTTPContentTypes := []string{"application/json"}
	localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
	if localVarHTTPContentType != "" {
		localVarHeaderParams["Content-Type"] = localVarHTTPContentType
	}
	localVarHTTPHeaderAccepts := []string{"application/json"}
	localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
	if localVarHTTPHeaderAccept != "" {
		localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
	}
	localVarPostBody = r.accountsBalanceGetRequest
	if r.ctx != nil {
		if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
			if apiKey, ok := auth["clientId"]; ok {
				var key string
				if apiKey.Prefix != "" {
					key = apiKey.Prefix + " " + apiKey.Key
				} else {
					key = apiKey.Key
				}
				localVarHeaderParams["PLAID-CLIENT-ID"] = key
			}
		}
	}
	if r.ctx != nil {
		if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
			if apiKey, ok := auth["plaidVersion"]; ok {
				var key string
				if apiKey.Prefix != "" {
					key = apiKey.Prefix + " " + apiKey.Key
				} else {
					key = apiKey.Key
				}
				localVarHeaderParams["Plaid-Version"] = key
			}
		}
	}
	if r.ctx != nil {
		if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
			if apiKey, ok := auth["secret"]; ok {
				var key string
				if apiKey.Prefix != "" {
					key = apiKey.Prefix + " " + apiKey.Key
				} else {
					key = apiKey.Key
				}
				localVarHeaderParams["PLAID-SECRET"] = key
			}
		}
	}
	req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
	if err != nil {
		return localVarReturnValue, nil, err
	}
	localVarHTTPResponse, err := a.client.callAPI(req)
	if err != nil || localVarHTTPResponse == nil {
		return localVarReturnValue, localVarHTTPResponse, err
	}
	localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body)
	localVarHTTPResponse.Body.Close()
	localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody))
	if err != nil {
		return localVarReturnValue, localVarHTTPResponse, err
	}
	if localVarHTTPResponse.StatusCode >= 300 {
		newErr := GenericOpenAPIError{
			body:  localVarBody,
			error: localVarHTTPResponse.Status,
		}
		return localVarReturnValue, localVarHTTPResponse, newErr
	}
	err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
	if err != nil {
		newErr := GenericOpenAPIError{
			body:  localVarBody,
			error: err.Error(),
		}
		return localVarReturnValue, localVarHTTPResponse, newErr
	}
	return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiAccountsGetRequest struct {
	ctx _context.Context
	ApiService *PlaidApiService
	accountsGetRequest *AccountsGetRequest
}
func (r ApiAccountsGetRequest) AccountsGetRequest(accountsGetRequest AccountsGetRequest) ApiAccountsGetRequest {
	r.accountsGetRequest = &accountsGetRequest
	return r
}
func (r ApiAccountsGetRequest) Execute() (AccountsGetResponse, *_nethttp.Response, error) {
	return r.ApiService.AccountsGetExecute(r)
}
func (a *PlaidApiService) AccountsGet(ctx _context.Context) ApiAccountsGetRequest {
	return ApiAccountsGetRequest{
		ApiService: a,
		ctx: ctx,
	}
}
func (a *PlaidApiService) AccountsGetExecute(r ApiAccountsGetRequest) (AccountsGetResponse, *_nethttp.Response, error) {
	var (
		localVarHTTPMethod   = _nethttp.MethodPost
		localVarPostBody     interface{}
		localVarFormFileName string
		localVarFileName     string
		localVarFileBytes    []byte
		localVarReturnValue  AccountsGetResponse
	)
	localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PlaidApiService.AccountsGet")
	if err != nil {
		return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
	}
	localVarPath := localBasePath + "/accounts/get"
	localVarHeaderParams := make(map[string]string)
	localVarQueryParams := _neturl.Values{}
	localVarFormParams := _neturl.Values{}
	if r.accountsGetRequest == nil {
		return localVarReturnValue, nil, reportError("accountsGetRequest is required and must be specified")
	}
	localVarHTTPContentTypes := []string{"application/json"}
	localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
	if localVarHTTPContentType != "" {
		localVarHeaderParams["Content-Type"] = localVarHTTPContentType
	}
	localVarHTTPHeaderAccepts := []string{"application/json"}
	localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
	if localVarHTTPHeaderAccept != "" {
		localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
	}
	localVarPostBody = r.accountsGetRequest
	if r.ctx != nil {
		if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
			if apiKey, ok := auth["clientId"]; ok {
				var key string
				if apiKey.Prefix != "" {
					key = apiKey.Prefix + " " + apiKey.Key
				} else {
					key = apiKey.Key
				}
				localVarHeaderParams["PLAID-CLIENT-ID"] = key
			}
		}
	}
	if r.ctx != nil {
		if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
			if apiKey, ok := auth["plaidVersion"]; ok {
				var key string
				if apiKey.Prefix != "" {
					key = apiKey.Prefix + " " + apiKey.Key
				} else {
					key = apiKey.Key
				}
				localVarHeaderParams["Plaid-Version"] = key
			}
		}
	}
	if r.ctx != nil {
		if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
			if apiKey, ok := auth["secret"]; ok {
				var key string
				if apiKey.Prefix != "" {
					key = apiKey.Prefix + " " + apiKey.Key
				} else {
					key = apiKey.Key
				}
				localVarHeaderParams["PLAID-SECRET"] = key
			}
		}
	}
	req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
	if err != nil {
		return localVarReturnValue, nil, err
	}
	localVarHTTPResponse, err := a.client.callAPI(req)
	if err != nil || localVarHTTPResponse == nil {
		return localVarReturnValue, localVarHTTPResponse, err
	}
	localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body)
	localVarHTTPResponse.Body.Close()
	localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody))
	if err != nil {
		return localVarReturnValue, localVarHTTPResponse, err
	}
	if localVarHTTPResponse.StatusCode >= 300 {
		newErr := GenericOpenAPIError{
			body:  localVarBody,
			error: localVarHTTPResponse.Status,
		}
			var v Error
			err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
			if err != nil {
				newErr.error = err.Error()
				return localVarReturnValue, localVarHTTPResponse, newErr
			}
			newErr.model = v
		return localVarReturnValue, localVarHTTPResponse, newErr
	}
	err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
	if err != nil {
		newErr := GenericOpenAPIError{
			body:  localVarBody,
			error: err.Error(),
		}
		return localVarReturnValue, localVarHTTPResponse, newErr
	}
	return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiApplicationGetRequest struct {
	ctx _context.Context
	ApiService *PlaidApiService
	applicationGetRequest *ApplicationGetRequest
}
func (r ApiApplicationGetRequest) ApplicationGetRequest(applicationGetRequest ApplicationGetRequest) ApiApplicationGetRequest {
	r.applicationGetRequest = &applicationGetRequest
	return r
}
func (r ApiApplicationGetRequest) Execute() (ApplicationGetResponse, *_nethttp.Response, error) {
	return r.ApiService.ApplicationGetExecute(r)
}