gocardless_bankaccounts

package module
v0.0.0-...-8c09086 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 11 Imported by: 0

README

GoCardless Bank Accounts Data API Go

A Go client library for the GoCardless Bank Accounts Data API.

Installation

go get github.com/maxint-app/gocardless-bankaccounts-data-api-go

Usage

package main

import (
	"context"
	"encoding/json"
	"fmt"
	"net/http"
	"os"

	gb "github.com/maxint-app/gocardless-bankaccounts-data-api-go"
)

func Ptr[T any](v T) *T {
	return &v
}

func main() {
	client, err := gb.NewClient("https://bankaccountdata.gocardless.com")
	if err != nil {
		panic(err)
	}

	tokenPairsResponse, err := client.ObtainNewAccessrefreshTokenPair(context.Background(), gb.JWTObtainPairRequest{
		SecretId:  os.Getenv("GC_SECRET_ID"),
		SecretKey: os.Getenv("GC_SECRET_KEY"),
	})
	if err != nil {
		panic(err)
	}

	tokenPairs, err := gb.ParseObtainNewAccessrefreshTokenPairResponse(tokenPairsResponse)
	if err != nil {
		panic(err)
	}

	accessToken := tokenPairs.JSON200.Access
	if accessToken == nil {
		panic("expected access token to be non-nil")
	}

	client, err = gb.NewClient("https://bankaccountdata.gocardless.com", gb.WithRequestEditorFn(func(ctx context.Context, req *http.Request) error {
		req.Header.Set("Authorization", fmt.Sprintf("Bearer %v", *accessToken))
		return nil
	}))
	if err != nil {
		panic(err)
	}

	institutions, err := client.RetrieveAllSupportedInstitutionsInAGivenCountry(context.Background(), &gb.RetrieveAllSupportedInstitutionsInAGivenCountryParams{
		Country: Ptr("GB"),
	})
	if err != nil {
		panic(err)
	}

	parsedInstitutions, err := gb.ParseRetrieveAllSupportedInstitutionsInAGivenCountryResponse(institutions)
	if err != nil {
		panic(err)
	}

	if parsedInstitutions.JSON200 == nil {
		fmt.Printf("HTTP Status code: %+v\n", parsedInstitutions.HTTPResponse.StatusCode)
		panic("expected JSON200 to be non-nil")
	}

	for _, institution := range *parsedInstitutions.JSON200 {
		jsonData, err := json.MarshalIndent(institution, "", "  ")
		if err != nil {
			panic(err)
		}
		println(string(jsonData))
	}
}

Features

  • Bank account data retrieval
  • Account validation
  • Transaction history
  • Error handling

Documentation

For more information, visit the GoCardless API documentation.

License

MIT

Documentation

Overview

Package gocardless_bankaccounts provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Index

Constants

View Source
const (
	JwtAuthScopes = "jwtAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewAcceptEUARequest

func NewAcceptEUARequest(server string, id openapi_types.UUID, body AcceptEUAJSONRequestBody) (*http.Request, error)

NewAcceptEUARequest calls the generic AcceptEUA builder with application/json body

func NewAcceptEUARequestWithBody

func NewAcceptEUARequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewAcceptEUARequestWithBody generates requests for AcceptEUA with any type of body

func NewAcceptEUARequestWithFormdataBody

func NewAcceptEUARequestWithFormdataBody(server string, id openapi_types.UUID, body AcceptEUAFormdataRequestBody) (*http.Request, error)

NewAcceptEUARequestWithFormdataBody calls the generic AcceptEUA builder with application/x-www-form-urlencoded body

func NewCreateEUAReconfirmationRequest

func NewCreateEUAReconfirmationRequest(server string, id openapi_types.UUID, body CreateEUAReconfirmationJSONRequestBody) (*http.Request, error)

NewCreateEUAReconfirmationRequest calls the generic CreateEUAReconfirmation builder with application/json body

func NewCreateEUAReconfirmationRequestWithBody

func NewCreateEUAReconfirmationRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewCreateEUAReconfirmationRequestWithBody generates requests for CreateEUAReconfirmation with any type of body

func NewCreateEUAReconfirmationRequestWithFormdataBody

func NewCreateEUAReconfirmationRequestWithFormdataBody(server string, id openapi_types.UUID, body CreateEUAReconfirmationFormdataRequestBody) (*http.Request, error)

NewCreateEUAReconfirmationRequestWithFormdataBody calls the generic CreateEUAReconfirmation builder with application/x-www-form-urlencoded body

func NewCreateEUARequest

func NewCreateEUARequest(server string, body CreateEUAJSONRequestBody) (*http.Request, error)

NewCreateEUARequest calls the generic CreateEUA builder with application/json body

func NewCreateEUARequestWithBody

func NewCreateEUARequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateEUARequestWithBody generates requests for CreateEUA with any type of body

func NewCreateEUARequestWithFormdataBody

func NewCreateEUARequestWithFormdataBody(server string, body CreateEUAFormdataRequestBody) (*http.Request, error)

NewCreateEUARequestWithFormdataBody calls the generic CreateEUA builder with application/x-www-form-urlencoded body

func NewCreateRequisitionRequest

func NewCreateRequisitionRequest(server string, body CreateRequisitionJSONRequestBody) (*http.Request, error)

NewCreateRequisitionRequest calls the generic CreateRequisition builder with application/json body

func NewCreateRequisitionRequestWithBody

func NewCreateRequisitionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateRequisitionRequestWithBody generates requests for CreateRequisition with any type of body

func NewCreateRequisitionRequestWithFormdataBody

func NewCreateRequisitionRequestWithFormdataBody(server string, body CreateRequisitionFormdataRequestBody) (*http.Request, error)

NewCreateRequisitionRequestWithFormdataBody calls the generic CreateRequisition builder with application/x-www-form-urlencoded body

func NewDeleteEUAByIdRequest

func NewDeleteEUAByIdRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewDeleteEUAByIdRequest generates requests for DeleteEUAById

func NewDeleteRequisitionByIdRequest

func NewDeleteRequisitionByIdRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewDeleteRequisitionByIdRequest generates requests for DeleteRequisitionById

func NewGetANewAccessTokenRequest

func NewGetANewAccessTokenRequest(server string, body GetANewAccessTokenJSONRequestBody) (*http.Request, error)

NewGetANewAccessTokenRequest calls the generic GetANewAccessToken builder with application/json body

func NewGetANewAccessTokenRequestWithBody

func NewGetANewAccessTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetANewAccessTokenRequestWithBody generates requests for GetANewAccessToken with any type of body

func NewGetANewAccessTokenRequestWithFormdataBody

func NewGetANewAccessTokenRequestWithFormdataBody(server string, body GetANewAccessTokenFormdataRequestBody) (*http.Request, error)

NewGetANewAccessTokenRequestWithFormdataBody calls the generic GetANewAccessToken builder with application/x-www-form-urlencoded body

func NewObtainNewAccessrefreshTokenPairRequest

func NewObtainNewAccessrefreshTokenPairRequest(server string, body ObtainNewAccessrefreshTokenPairJSONRequestBody) (*http.Request, error)

NewObtainNewAccessrefreshTokenPairRequest calls the generic ObtainNewAccessrefreshTokenPair builder with application/json body

func NewObtainNewAccessrefreshTokenPairRequestWithBody

func NewObtainNewAccessrefreshTokenPairRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewObtainNewAccessrefreshTokenPairRequestWithBody generates requests for ObtainNewAccessrefreshTokenPair with any type of body

func NewObtainNewAccessrefreshTokenPairRequestWithFormdataBody

func NewObtainNewAccessrefreshTokenPairRequestWithFormdataBody(server string, body ObtainNewAccessrefreshTokenPairFormdataRequestBody) (*http.Request, error)

NewObtainNewAccessrefreshTokenPairRequestWithFormdataBody calls the generic ObtainNewAccessrefreshTokenPair builder with application/x-www-form-urlencoded body

func NewRequisitionByIdRequest

func NewRequisitionByIdRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewRequisitionByIdRequest generates requests for RequisitionById

func NewRetrieveAccountBalancesRequest

func NewRetrieveAccountBalancesRequest(server string, id string) (*http.Request, error)

NewRetrieveAccountBalancesRequest generates requests for RetrieveAccountBalances

func NewRetrieveAccountDetailsRequest

func NewRetrieveAccountDetailsRequest(server string, id string) (*http.Request, error)

NewRetrieveAccountDetailsRequest generates requests for RetrieveAccountDetails

func NewRetrieveAccountMetadataRequest

func NewRetrieveAccountMetadataRequest(server string, id string) (*http.Request, error)

NewRetrieveAccountMetadataRequest generates requests for RetrieveAccountMetadata

func NewRetrieveAccountTransactionsRequest

func NewRetrieveAccountTransactionsRequest(server string, id string, params *RetrieveAccountTransactionsParams) (*http.Request, error)

NewRetrieveAccountTransactionsRequest generates requests for RetrieveAccountTransactions

func NewRetrieveAllAgreementsRequest

func NewRetrieveAllAgreementsRequest(server string, params *RetrieveAllAgreementsParams) (*http.Request, error)

NewRetrieveAllAgreementsRequest generates requests for RetrieveAllAgreements

func NewRetrieveAllRequisitionsRequest

func NewRetrieveAllRequisitionsRequest(server string, params *RetrieveAllRequisitionsParams) (*http.Request, error)

NewRetrieveAllRequisitionsRequest generates requests for RetrieveAllRequisitions

func NewRetrieveAllSupportedInstitutionsInAGivenCountryRequest

func NewRetrieveAllSupportedInstitutionsInAGivenCountryRequest(server string, params *RetrieveAllSupportedInstitutionsInAGivenCountryParams) (*http.Request, error)

NewRetrieveAllSupportedInstitutionsInAGivenCountryRequest generates requests for RetrieveAllSupportedInstitutionsInAGivenCountry

func NewRetrieveEUAByIdRequest

func NewRetrieveEUAByIdRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewRetrieveEUAByIdRequest generates requests for RetrieveEUAById

func NewRetrieveEUAReconfirmationRequest

func NewRetrieveEUAReconfirmationRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewRetrieveEUAReconfirmationRequest generates requests for RetrieveEUAReconfirmation

func NewRetrieveInstitutionRequest

func NewRetrieveInstitutionRequest(server string, id string) (*http.Request, error)

NewRetrieveInstitutionRequest generates requests for RetrieveInstitution

Types

type AcceptEUAFormdataRequestBody

type AcceptEUAFormdataRequestBody = EnduserAcceptanceDetailsRequest

AcceptEUAFormdataRequestBody defines body for AcceptEUA for application/x-www-form-urlencoded ContentType.

type AcceptEUAJSONRequestBody

type AcceptEUAJSONRequestBody = EnduserAcceptanceDetailsRequest

AcceptEUAJSONRequestBody defines body for AcceptEUA for application/json ContentType.

type AcceptEUAMultipartRequestBody

type AcceptEUAMultipartRequestBody = EnduserAcceptanceDetailsRequest

AcceptEUAMultipartRequestBody defines body for AcceptEUA for multipart/form-data ContentType.

type AcceptEUAResponse

type AcceptEUAResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *EndUserAgreement
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON405      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseAcceptEUAResponse

func ParseAcceptEUAResponse(rsp *http.Response) (*AcceptEUAResponse, error)

ParseAcceptEUAResponse parses an HTTP response from a AcceptEUAWithResponse call

func (AcceptEUAResponse) Status

func (r AcceptEUAResponse) Status() string

Status returns HTTPResponse.Status

func (AcceptEUAResponse) StatusCode

func (r AcceptEUAResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Account

type Account struct {
	// Bban The Account BBAN
	Bban *string `json:"bban,omitempty"`

	// Created The date & time at which the account object was created.
	Created *time.Time `json:"created,omitempty"`

	// Iban The Account IBAN
	Iban *string `json:"iban,omitempty"`

	// Id The ID of this Account, used to refer to this account in other API calls.
	Id *openapi_types.UUID `json:"id,omitempty"`

	// InstitutionId The ASPSP associated with this account.
	InstitutionId *string `json:"institution_id,omitempty"`

	// LastAccessed The date & time at which the account object was last accessed.
	LastAccessed *time.Time `json:"last_accessed,omitempty"`

	// Name The name of account.
	Name *string `json:"name,omitempty"`

	// OwnerName The name of the account owner.
	OwnerName *string `json:"owner_name,omitempty"`

	// Status The processing status of this account.
	Status *string `json:"status,omitempty"`
}

Account AccountSerializer.

type AccountBalance

type AccountBalance struct {
	Balances *[]BalanceSchema `json:"balances,omitempty"`
}

AccountBalance AccountBalanceSerializer.

type AccountDetail

type AccountDetail struct {
	// Account account
	Account DetailSchema `json:"account"`
}

AccountDetail AccountDetailSerializer.

type AccountSchema

type AccountSchema struct {
	// Bban bban
	Bban *string `json:"bban,omitempty"`

	// Currency currency
	Currency *string `json:"currency,omitempty"`

	// Iban iban
	Iban *string `json:"iban,omitempty"`

	// MaskedPan maskedPan
	MaskedPan *string `json:"maskedPan,omitempty"`

	// Msisdn msisdn
	Msisdn *string `json:"msisdn,omitempty"`

	// Pan pan
	Pan *string `json:"pan,omitempty"`
}

AccountSchema AccountSchema.

type AccountTransactions

type AccountTransactions struct {
	// LastUpdated The last time the account transactions were updated
	LastUpdated *time.Time `json:"last_updated,omitempty"`

	// Transactions transactions
	Transactions BankTransaction `json:"transactions"`
}

AccountTransactions AccountTransactionsSerializer.

type AdditionalAccountDataSchema

type AdditionalAccountDataSchema struct {
	// SecondaryIdentification secondaryIdentification
	SecondaryIdentification *string `json:"secondaryIdentification,omitempty"`
}

AdditionalAccountDataSchema AdditionalAccountDataSchema.

type BalanceAfterTransactionSchema

type BalanceAfterTransactionSchema struct {
	// BalanceAmount balanceAmount
	BalanceAmount TransactionAmountSchema `json:"balanceAmount"`

	// BalanceType balanceType
	BalanceType string `json:"balanceType"`
}

BalanceAfterTransactionSchema BalanceAfterTransactionSchema.

type BalanceAmountSchema

type BalanceAmountSchema struct {
	// Amount amount
	Amount string `json:"amount"`

	// Currency currency
	Currency string `json:"currency"`
}

BalanceAmountSchema BalanceAmountSchema.

type BalanceSchema

type BalanceSchema struct {
	// BalanceAmount balanceAmount
	BalanceAmount BalanceAmountSchema `json:"balanceAmount"`

	// BalanceType balanceType
	BalanceType string `json:"balanceType"`

	// CreditLimitIncluded creditLimitIncluded
	CreditLimitIncluded *bool `json:"creditLimitIncluded,omitempty"`

	// LastChangeDateTime lastChangeDateTime
	LastChangeDateTime *string `json:"lastChangeDateTime,omitempty"`

	// LastCommittedTransaction lastCommittedTransaction
	LastCommittedTransaction *string `json:"lastCommittedTransaction,omitempty"`

	// ReferenceDate referenceDate
	ReferenceDate *string `json:"referenceDate,omitempty"`
}

BalanceSchema BalanceSchema.

type BankTransaction

type BankTransaction struct {
	Booked  []TransactionSchema  `json:"booked"`
	Pending *[]TransactionSchema `json:"pending,omitempty"`
}

BankTransaction BankTransactionSerializer.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AcceptEUA

func (c *Client) AcceptEUA(ctx context.Context, id openapi_types.UUID, body AcceptEUAJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AcceptEUAWithBody

func (c *Client) AcceptEUAWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AcceptEUAWithFormdataBody

func (c *Client) AcceptEUAWithFormdataBody(ctx context.Context, id openapi_types.UUID, body AcceptEUAFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateEUA

func (c *Client) CreateEUA(ctx context.Context, body CreateEUAJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateEUAReconfirmation

func (c *Client) CreateEUAReconfirmation(ctx context.Context, id openapi_types.UUID, body CreateEUAReconfirmationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateEUAReconfirmationWithBody

func (c *Client) CreateEUAReconfirmationWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateEUAReconfirmationWithFormdataBody

func (c *Client) CreateEUAReconfirmationWithFormdataBody(ctx context.Context, id openapi_types.UUID, body CreateEUAReconfirmationFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateEUAWithBody

func (c *Client) CreateEUAWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateEUAWithFormdataBody

func (c *Client) CreateEUAWithFormdataBody(ctx context.Context, body CreateEUAFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateRequisition

func (c *Client) CreateRequisition(ctx context.Context, body CreateRequisitionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateRequisitionWithBody

func (c *Client) CreateRequisitionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateRequisitionWithFormdataBody

func (c *Client) CreateRequisitionWithFormdataBody(ctx context.Context, body CreateRequisitionFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteEUAById

func (c *Client) DeleteEUAById(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteRequisitionById

func (c *Client) DeleteRequisitionById(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetANewAccessToken

func (c *Client) GetANewAccessToken(ctx context.Context, body GetANewAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetANewAccessTokenWithBody

func (c *Client) GetANewAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetANewAccessTokenWithFormdataBody

func (c *Client) GetANewAccessTokenWithFormdataBody(ctx context.Context, body GetANewAccessTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ObtainNewAccessrefreshTokenPair

func (c *Client) ObtainNewAccessrefreshTokenPair(ctx context.Context, body ObtainNewAccessrefreshTokenPairJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ObtainNewAccessrefreshTokenPairWithBody

func (c *Client) ObtainNewAccessrefreshTokenPairWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ObtainNewAccessrefreshTokenPairWithFormdataBody

func (c *Client) ObtainNewAccessrefreshTokenPairWithFormdataBody(ctx context.Context, body ObtainNewAccessrefreshTokenPairFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RequisitionById

func (c *Client) RequisitionById(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetrieveAccountBalances

func (c *Client) RetrieveAccountBalances(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetrieveAccountDetails

func (c *Client) RetrieveAccountDetails(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetrieveAccountMetadata

func (c *Client) RetrieveAccountMetadata(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetrieveAccountTransactions

func (c *Client) RetrieveAccountTransactions(ctx context.Context, id string, params *RetrieveAccountTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetrieveAllAgreements

func (c *Client) RetrieveAllAgreements(ctx context.Context, params *RetrieveAllAgreementsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetrieveAllRequisitions

func (c *Client) RetrieveAllRequisitions(ctx context.Context, params *RetrieveAllRequisitionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetrieveAllSupportedInstitutionsInAGivenCountry

func (c *Client) RetrieveAllSupportedInstitutionsInAGivenCountry(ctx context.Context, params *RetrieveAllSupportedInstitutionsInAGivenCountryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetrieveEUAById

func (c *Client) RetrieveEUAById(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetrieveEUAReconfirmation

func (c *Client) RetrieveEUAReconfirmation(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetrieveInstitution

func (c *Client) RetrieveInstitution(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// RetrieveAccountMetadata request
	RetrieveAccountMetadata(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveAccountBalances request
	RetrieveAccountBalances(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveAccountDetails request
	RetrieveAccountDetails(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveAccountTransactions request
	RetrieveAccountTransactions(ctx context.Context, id string, params *RetrieveAccountTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveAllAgreements request
	RetrieveAllAgreements(ctx context.Context, params *RetrieveAllAgreementsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateEUAWithBody request with any body
	CreateEUAWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateEUA(ctx context.Context, body CreateEUAJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateEUAWithFormdataBody(ctx context.Context, body CreateEUAFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteEUAById request
	DeleteEUAById(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveEUAById request
	RetrieveEUAById(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AcceptEUAWithBody request with any body
	AcceptEUAWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AcceptEUA(ctx context.Context, id openapi_types.UUID, body AcceptEUAJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	AcceptEUAWithFormdataBody(ctx context.Context, id openapi_types.UUID, body AcceptEUAFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveEUAReconfirmation request
	RetrieveEUAReconfirmation(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateEUAReconfirmationWithBody request with any body
	CreateEUAReconfirmationWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateEUAReconfirmation(ctx context.Context, id openapi_types.UUID, body CreateEUAReconfirmationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateEUAReconfirmationWithFormdataBody(ctx context.Context, id openapi_types.UUID, body CreateEUAReconfirmationFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveAllSupportedInstitutionsInAGivenCountry request
	RetrieveAllSupportedInstitutionsInAGivenCountry(ctx context.Context, params *RetrieveAllSupportedInstitutionsInAGivenCountryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveInstitution request
	RetrieveInstitution(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveAllRequisitions request
	RetrieveAllRequisitions(ctx context.Context, params *RetrieveAllRequisitionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateRequisitionWithBody request with any body
	CreateRequisitionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateRequisition(ctx context.Context, body CreateRequisitionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateRequisitionWithFormdataBody(ctx context.Context, body CreateRequisitionFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteRequisitionById request
	DeleteRequisitionById(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RequisitionById request
	RequisitionById(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ObtainNewAccessrefreshTokenPairWithBody request with any body
	ObtainNewAccessrefreshTokenPairWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ObtainNewAccessrefreshTokenPair(ctx context.Context, body ObtainNewAccessrefreshTokenPairJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	ObtainNewAccessrefreshTokenPairWithFormdataBody(ctx context.Context, body ObtainNewAccessrefreshTokenPairFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetANewAccessTokenWithBody request with any body
	GetANewAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetANewAccessToken(ctx context.Context, body GetANewAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetANewAccessTokenWithFormdataBody(ctx context.Context, body GetANewAccessTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AcceptEUAWithBodyWithResponse

func (c *ClientWithResponses) AcceptEUAWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcceptEUAResponse, error)

AcceptEUAWithBodyWithResponse request with arbitrary body returning *AcceptEUAResponse

func (*ClientWithResponses) AcceptEUAWithFormdataBodyWithResponse

func (c *ClientWithResponses) AcceptEUAWithFormdataBodyWithResponse(ctx context.Context, id openapi_types.UUID, body AcceptEUAFormdataRequestBody, reqEditors ...RequestEditorFn) (*AcceptEUAResponse, error)

func (*ClientWithResponses) AcceptEUAWithResponse

func (c *ClientWithResponses) AcceptEUAWithResponse(ctx context.Context, id openapi_types.UUID, body AcceptEUAJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptEUAResponse, error)

func (*ClientWithResponses) CreateEUAReconfirmationWithBodyWithResponse

func (c *ClientWithResponses) CreateEUAReconfirmationWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEUAReconfirmationResponse, error)

CreateEUAReconfirmationWithBodyWithResponse request with arbitrary body returning *CreateEUAReconfirmationResponse

func (*ClientWithResponses) CreateEUAReconfirmationWithFormdataBodyWithResponse

func (c *ClientWithResponses) CreateEUAReconfirmationWithFormdataBodyWithResponse(ctx context.Context, id openapi_types.UUID, body CreateEUAReconfirmationFormdataRequestBody, reqEditors ...RequestEditorFn) (*CreateEUAReconfirmationResponse, error)

func (*ClientWithResponses) CreateEUAReconfirmationWithResponse

func (*ClientWithResponses) CreateEUAWithBodyWithResponse

func (c *ClientWithResponses) CreateEUAWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEUAResponse, error)

CreateEUAWithBodyWithResponse request with arbitrary body returning *CreateEUAResponse

func (*ClientWithResponses) CreateEUAWithFormdataBodyWithResponse

func (c *ClientWithResponses) CreateEUAWithFormdataBodyWithResponse(ctx context.Context, body CreateEUAFormdataRequestBody, reqEditors ...RequestEditorFn) (*CreateEUAResponse, error)

func (*ClientWithResponses) CreateEUAWithResponse

func (c *ClientWithResponses) CreateEUAWithResponse(ctx context.Context, body CreateEUAJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEUAResponse, error)

func (*ClientWithResponses) CreateRequisitionWithBodyWithResponse

func (c *ClientWithResponses) CreateRequisitionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRequisitionResponse, error)

CreateRequisitionWithBodyWithResponse request with arbitrary body returning *CreateRequisitionResponse

func (*ClientWithResponses) CreateRequisitionWithFormdataBodyWithResponse

func (c *ClientWithResponses) CreateRequisitionWithFormdataBodyWithResponse(ctx context.Context, body CreateRequisitionFormdataRequestBody, reqEditors ...RequestEditorFn) (*CreateRequisitionResponse, error)

func (*ClientWithResponses) CreateRequisitionWithResponse

func (c *ClientWithResponses) CreateRequisitionWithResponse(ctx context.Context, body CreateRequisitionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRequisitionResponse, error)

func (*ClientWithResponses) DeleteEUAByIdWithResponse

func (c *ClientWithResponses) DeleteEUAByIdWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteEUAByIdResponse, error)

DeleteEUAByIdWithResponse request returning *DeleteEUAByIdResponse

func (*ClientWithResponses) DeleteRequisitionByIdWithResponse

func (c *ClientWithResponses) DeleteRequisitionByIdWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteRequisitionByIdResponse, error)

DeleteRequisitionByIdWithResponse request returning *DeleteRequisitionByIdResponse

func (*ClientWithResponses) GetANewAccessTokenWithBodyWithResponse

func (c *ClientWithResponses) GetANewAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetANewAccessTokenResponse, error)

GetANewAccessTokenWithBodyWithResponse request with arbitrary body returning *GetANewAccessTokenResponse

func (*ClientWithResponses) GetANewAccessTokenWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetANewAccessTokenWithFormdataBodyWithResponse(ctx context.Context, body GetANewAccessTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetANewAccessTokenResponse, error)

func (*ClientWithResponses) GetANewAccessTokenWithResponse

func (c *ClientWithResponses) GetANewAccessTokenWithResponse(ctx context.Context, body GetANewAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*GetANewAccessTokenResponse, error)

func (*ClientWithResponses) ObtainNewAccessrefreshTokenPairWithBodyWithResponse

func (c *ClientWithResponses) ObtainNewAccessrefreshTokenPairWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ObtainNewAccessrefreshTokenPairResponse, error)

ObtainNewAccessrefreshTokenPairWithBodyWithResponse request with arbitrary body returning *ObtainNewAccessrefreshTokenPairResponse

func (*ClientWithResponses) ObtainNewAccessrefreshTokenPairWithFormdataBodyWithResponse

func (c *ClientWithResponses) ObtainNewAccessrefreshTokenPairWithFormdataBodyWithResponse(ctx context.Context, body ObtainNewAccessrefreshTokenPairFormdataRequestBody, reqEditors ...RequestEditorFn) (*ObtainNewAccessrefreshTokenPairResponse, error)

func (*ClientWithResponses) ObtainNewAccessrefreshTokenPairWithResponse

func (c *ClientWithResponses) ObtainNewAccessrefreshTokenPairWithResponse(ctx context.Context, body ObtainNewAccessrefreshTokenPairJSONRequestBody, reqEditors ...RequestEditorFn) (*ObtainNewAccessrefreshTokenPairResponse, error)

func (*ClientWithResponses) RequisitionByIdWithResponse

func (c *ClientWithResponses) RequisitionByIdWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RequisitionByIdResponse, error)

RequisitionByIdWithResponse request returning *RequisitionByIdResponse

func (*ClientWithResponses) RetrieveAccountBalancesWithResponse

func (c *ClientWithResponses) RetrieveAccountBalancesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveAccountBalancesResponse, error)

RetrieveAccountBalancesWithResponse request returning *RetrieveAccountBalancesResponse

func (*ClientWithResponses) RetrieveAccountDetailsWithResponse

func (c *ClientWithResponses) RetrieveAccountDetailsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveAccountDetailsResponse, error)

RetrieveAccountDetailsWithResponse request returning *RetrieveAccountDetailsResponse

func (*ClientWithResponses) RetrieveAccountMetadataWithResponse

func (c *ClientWithResponses) RetrieveAccountMetadataWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveAccountMetadataResponse, error)

RetrieveAccountMetadataWithResponse request returning *RetrieveAccountMetadataResponse

func (*ClientWithResponses) RetrieveAccountTransactionsWithResponse

func (c *ClientWithResponses) RetrieveAccountTransactionsWithResponse(ctx context.Context, id string, params *RetrieveAccountTransactionsParams, reqEditors ...RequestEditorFn) (*RetrieveAccountTransactionsResponse, error)

RetrieveAccountTransactionsWithResponse request returning *RetrieveAccountTransactionsResponse

func (*ClientWithResponses) RetrieveAllAgreementsWithResponse

func (c *ClientWithResponses) RetrieveAllAgreementsWithResponse(ctx context.Context, params *RetrieveAllAgreementsParams, reqEditors ...RequestEditorFn) (*RetrieveAllAgreementsResponse, error)

RetrieveAllAgreementsWithResponse request returning *RetrieveAllAgreementsResponse

func (*ClientWithResponses) RetrieveAllRequisitionsWithResponse

func (c *ClientWithResponses) RetrieveAllRequisitionsWithResponse(ctx context.Context, params *RetrieveAllRequisitionsParams, reqEditors ...RequestEditorFn) (*RetrieveAllRequisitionsResponse, error)

RetrieveAllRequisitionsWithResponse request returning *RetrieveAllRequisitionsResponse

func (*ClientWithResponses) RetrieveAllSupportedInstitutionsInAGivenCountryWithResponse

func (c *ClientWithResponses) RetrieveAllSupportedInstitutionsInAGivenCountryWithResponse(ctx context.Context, params *RetrieveAllSupportedInstitutionsInAGivenCountryParams, reqEditors ...RequestEditorFn) (*RetrieveAllSupportedInstitutionsInAGivenCountryResponse, error)

RetrieveAllSupportedInstitutionsInAGivenCountryWithResponse request returning *RetrieveAllSupportedInstitutionsInAGivenCountryResponse

func (*ClientWithResponses) RetrieveEUAByIdWithResponse

func (c *ClientWithResponses) RetrieveEUAByIdWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RetrieveEUAByIdResponse, error)

RetrieveEUAByIdWithResponse request returning *RetrieveEUAByIdResponse

func (*ClientWithResponses) RetrieveEUAReconfirmationWithResponse

func (c *ClientWithResponses) RetrieveEUAReconfirmationWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RetrieveEUAReconfirmationResponse, error)

RetrieveEUAReconfirmationWithResponse request returning *RetrieveEUAReconfirmationResponse

func (*ClientWithResponses) RetrieveInstitutionWithResponse

func (c *ClientWithResponses) RetrieveInstitutionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveInstitutionResponse, error)

RetrieveInstitutionWithResponse request returning *RetrieveInstitutionResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// RetrieveAccountMetadataWithResponse request
	RetrieveAccountMetadataWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveAccountMetadataResponse, error)

	// RetrieveAccountBalancesWithResponse request
	RetrieveAccountBalancesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveAccountBalancesResponse, error)

	// RetrieveAccountDetailsWithResponse request
	RetrieveAccountDetailsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveAccountDetailsResponse, error)

	// RetrieveAccountTransactionsWithResponse request
	RetrieveAccountTransactionsWithResponse(ctx context.Context, id string, params *RetrieveAccountTransactionsParams, reqEditors ...RequestEditorFn) (*RetrieveAccountTransactionsResponse, error)

	// RetrieveAllAgreementsWithResponse request
	RetrieveAllAgreementsWithResponse(ctx context.Context, params *RetrieveAllAgreementsParams, reqEditors ...RequestEditorFn) (*RetrieveAllAgreementsResponse, error)

	// CreateEUAWithBodyWithResponse request with any body
	CreateEUAWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEUAResponse, error)

	CreateEUAWithResponse(ctx context.Context, body CreateEUAJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEUAResponse, error)

	CreateEUAWithFormdataBodyWithResponse(ctx context.Context, body CreateEUAFormdataRequestBody, reqEditors ...RequestEditorFn) (*CreateEUAResponse, error)

	// DeleteEUAByIdWithResponse request
	DeleteEUAByIdWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteEUAByIdResponse, error)

	// RetrieveEUAByIdWithResponse request
	RetrieveEUAByIdWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RetrieveEUAByIdResponse, error)

	// AcceptEUAWithBodyWithResponse request with any body
	AcceptEUAWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcceptEUAResponse, error)

	AcceptEUAWithResponse(ctx context.Context, id openapi_types.UUID, body AcceptEUAJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptEUAResponse, error)

	AcceptEUAWithFormdataBodyWithResponse(ctx context.Context, id openapi_types.UUID, body AcceptEUAFormdataRequestBody, reqEditors ...RequestEditorFn) (*AcceptEUAResponse, error)

	// RetrieveEUAReconfirmationWithResponse request
	RetrieveEUAReconfirmationWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RetrieveEUAReconfirmationResponse, error)

	// CreateEUAReconfirmationWithBodyWithResponse request with any body
	CreateEUAReconfirmationWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEUAReconfirmationResponse, error)

	CreateEUAReconfirmationWithResponse(ctx context.Context, id openapi_types.UUID, body CreateEUAReconfirmationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEUAReconfirmationResponse, error)

	CreateEUAReconfirmationWithFormdataBodyWithResponse(ctx context.Context, id openapi_types.UUID, body CreateEUAReconfirmationFormdataRequestBody, reqEditors ...RequestEditorFn) (*CreateEUAReconfirmationResponse, error)

	// RetrieveAllSupportedInstitutionsInAGivenCountryWithResponse request
	RetrieveAllSupportedInstitutionsInAGivenCountryWithResponse(ctx context.Context, params *RetrieveAllSupportedInstitutionsInAGivenCountryParams, reqEditors ...RequestEditorFn) (*RetrieveAllSupportedInstitutionsInAGivenCountryResponse, error)

	// RetrieveInstitutionWithResponse request
	RetrieveInstitutionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveInstitutionResponse, error)

	// RetrieveAllRequisitionsWithResponse request
	RetrieveAllRequisitionsWithResponse(ctx context.Context, params *RetrieveAllRequisitionsParams, reqEditors ...RequestEditorFn) (*RetrieveAllRequisitionsResponse, error)

	// CreateRequisitionWithBodyWithResponse request with any body
	CreateRequisitionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRequisitionResponse, error)

	CreateRequisitionWithResponse(ctx context.Context, body CreateRequisitionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRequisitionResponse, error)

	CreateRequisitionWithFormdataBodyWithResponse(ctx context.Context, body CreateRequisitionFormdataRequestBody, reqEditors ...RequestEditorFn) (*CreateRequisitionResponse, error)

	// DeleteRequisitionByIdWithResponse request
	DeleteRequisitionByIdWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteRequisitionByIdResponse, error)

	// RequisitionByIdWithResponse request
	RequisitionByIdWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RequisitionByIdResponse, error)

	// ObtainNewAccessrefreshTokenPairWithBodyWithResponse request with any body
	ObtainNewAccessrefreshTokenPairWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ObtainNewAccessrefreshTokenPairResponse, error)

	ObtainNewAccessrefreshTokenPairWithResponse(ctx context.Context, body ObtainNewAccessrefreshTokenPairJSONRequestBody, reqEditors ...RequestEditorFn) (*ObtainNewAccessrefreshTokenPairResponse, error)

	ObtainNewAccessrefreshTokenPairWithFormdataBodyWithResponse(ctx context.Context, body ObtainNewAccessrefreshTokenPairFormdataRequestBody, reqEditors ...RequestEditorFn) (*ObtainNewAccessrefreshTokenPairResponse, error)

	// GetANewAccessTokenWithBodyWithResponse request with any body
	GetANewAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetANewAccessTokenResponse, error)

	GetANewAccessTokenWithResponse(ctx context.Context, body GetANewAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*GetANewAccessTokenResponse, error)

	GetANewAccessTokenWithFormdataBodyWithResponse(ctx context.Context, body GetANewAccessTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetANewAccessTokenResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateEUAFormdataRequestBody

type CreateEUAFormdataRequestBody = EndUserAgreementRequest

CreateEUAFormdataRequestBody defines body for CreateEUA for application/x-www-form-urlencoded ContentType.

type CreateEUAJSONRequestBody

type CreateEUAJSONRequestBody = EndUserAgreementRequest

CreateEUAJSONRequestBody defines body for CreateEUA for application/json ContentType.

type CreateEUAMultipartRequestBody

type CreateEUAMultipartRequestBody = EndUserAgreementRequest

CreateEUAMultipartRequestBody defines body for CreateEUA for multipart/form-data ContentType.

type CreateEUAReconfirmationFormdataRequestBody

type CreateEUAReconfirmationFormdataRequestBody = ReconfirmationRetrieveRequest

CreateEUAReconfirmationFormdataRequestBody defines body for CreateEUAReconfirmation for application/x-www-form-urlencoded ContentType.

type CreateEUAReconfirmationJSONRequestBody

type CreateEUAReconfirmationJSONRequestBody = ReconfirmationRetrieveRequest

CreateEUAReconfirmationJSONRequestBody defines body for CreateEUAReconfirmation for application/json ContentType.

type CreateEUAReconfirmationMultipartRequestBody

type CreateEUAReconfirmationMultipartRequestBody = ReconfirmationRetrieveRequest

CreateEUAReconfirmationMultipartRequestBody defines body for CreateEUAReconfirmation for multipart/form-data ContentType.

type CreateEUAReconfirmationResponse

type CreateEUAReconfirmationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ReconfirmationRetrieve
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseCreateEUAReconfirmationResponse

func ParseCreateEUAReconfirmationResponse(rsp *http.Response) (*CreateEUAReconfirmationResponse, error)

ParseCreateEUAReconfirmationResponse parses an HTTP response from a CreateEUAReconfirmationWithResponse call

func (CreateEUAReconfirmationResponse) Status

Status returns HTTPResponse.Status

func (CreateEUAReconfirmationResponse) StatusCode

func (r CreateEUAReconfirmationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateEUAResponse

type CreateEUAResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *EndUserAgreement
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON402      *ErrorResponse
	JSON403      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseCreateEUAResponse

func ParseCreateEUAResponse(rsp *http.Response) (*CreateEUAResponse, error)

ParseCreateEUAResponse parses an HTTP response from a CreateEUAWithResponse call

func (CreateEUAResponse) Status

func (r CreateEUAResponse) Status() string

Status returns HTTPResponse.Status

func (CreateEUAResponse) StatusCode

func (r CreateEUAResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateRequisitionFormdataRequestBody

type CreateRequisitionFormdataRequestBody = RequisitionRequest

CreateRequisitionFormdataRequestBody defines body for CreateRequisition for application/x-www-form-urlencoded ContentType.

type CreateRequisitionJSONRequestBody

type CreateRequisitionJSONRequestBody = RequisitionRequest

CreateRequisitionJSONRequestBody defines body for CreateRequisition for application/json ContentType.

type CreateRequisitionMultipartRequestBody

type CreateRequisitionMultipartRequestBody = RequisitionRequest

CreateRequisitionMultipartRequestBody defines body for CreateRequisition for multipart/form-data ContentType.

type CreateRequisitionResponse

type CreateRequisitionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SpectacularRequisition
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON402      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseCreateRequisitionResponse

func ParseCreateRequisitionResponse(rsp *http.Response) (*CreateRequisitionResponse, error)

ParseCreateRequisitionResponse parses an HTTP response from a CreateRequisitionWithResponse call

func (CreateRequisitionResponse) Status

func (r CreateRequisitionResponse) Status() string

Status returns HTTPResponse.Status

func (CreateRequisitionResponse) StatusCode

func (r CreateRequisitionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CurrencyExchangeSchema

type CurrencyExchangeSchema struct {
	// ContractIdentification contractIdentification
	ContractIdentification *string `json:"contractIdentification,omitempty"`

	// ExchangeRate exchangeRate
	ExchangeRate *string `json:"exchangeRate,omitempty"`

	// QuotationDate quotationDate
	QuotationDate *string `json:"quotationDate,omitempty"`

	// SourceCurrency sourceCurrency
	SourceCurrency *string `json:"sourceCurrency,omitempty"`

	// TargetCurrency targetCurrency
	TargetCurrency *string `json:"targetCurrency,omitempty"`

	// UnitCurrency unitCurrency
	UnitCurrency *string `json:"unitCurrency,omitempty"`
}

CurrencyExchangeSchema CurrencyExchangeSchema.

type DeleteEUAByIdResponse

type DeleteEUAByIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessfulDeleteResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseDeleteEUAByIdResponse

func ParseDeleteEUAByIdResponse(rsp *http.Response) (*DeleteEUAByIdResponse, error)

ParseDeleteEUAByIdResponse parses an HTTP response from a DeleteEUAByIdWithResponse call

func (DeleteEUAByIdResponse) Status

func (r DeleteEUAByIdResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteEUAByIdResponse) StatusCode

func (r DeleteEUAByIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteRequisitionByIdResponse

type DeleteRequisitionByIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessfulDeleteResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseDeleteRequisitionByIdResponse

func ParseDeleteRequisitionByIdResponse(rsp *http.Response) (*DeleteRequisitionByIdResponse, error)

ParseDeleteRequisitionByIdResponse parses an HTTP response from a DeleteRequisitionByIdWithResponse call

func (DeleteRequisitionByIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteRequisitionByIdResponse) StatusCode

func (r DeleteRequisitionByIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DetailSchema

type DetailSchema struct {
	// AdditionalAccountData additionalAccountData used for information that is outside of Berlin Group specification, such as bank or country-specific fields
	AdditionalAccountData *AdditionalAccountDataSchema `json:"additionalAccountData,omitempty"`

	// Bban bban
	Bban *string `json:"bban,omitempty"`

	// Bic bic
	Bic *string `json:"bic,omitempty"`

	// CashAccountType cashAccountType
	CashAccountType *string `json:"cashAccountType,omitempty"`

	// Currency currency
	Currency *string `json:"currency,omitempty"`

	// Details details
	Details *string `json:"details,omitempty"`

	// DisplayName displayName
	DisplayName *string `json:"displayName,omitempty"`

	// Iban iban
	Iban *string `json:"iban,omitempty"`

	// LinkedAccounts linkedAccounts
	LinkedAccounts *string `json:"linkedAccounts,omitempty"`

	// MaskedPan maskedPan
	MaskedPan *string `json:"maskedPan,omitempty"`

	// Msisdn msisdn
	Msisdn *string `json:"msisdn,omitempty"`

	// Name name
	Name *string `json:"name,omitempty"`

	// OwnerAddressStructured ownerAddressStructured
	OwnerAddressStructured *OwnerAddressStructuredSchema `json:"ownerAddressStructured,omitempty"`

	// OwnerAddressUnstructured ownerAddressUnstructured
	OwnerAddressUnstructured *[]string `json:"ownerAddressUnstructured,omitempty"`

	// OwnerName ownerName
	OwnerName *string `json:"ownerName,omitempty"`

	// Product product
	Product *string `json:"product,omitempty"`

	// ResourceId resourceId
	ResourceId *string `json:"resourceId,omitempty"`

	// Scan SortCodeAccountNumber returned by some UK banks (6 digit Sort Code and 8 digit Account Number)
	Scan *string `json:"scan,omitempty"`

	// Status status
	Status *string `json:"status,omitempty"`

	// Usage usage
	Usage *string `json:"usage,omitempty"`
}

DetailSchema DetailSchema.

type EndUserAgreement

type EndUserAgreement struct {
	// Accepted The date & time at which the end user accepted the agreement.
	Accepted *time.Time `json:"accepted"`

	// AccessScope Array containing one or several values of ['balances', 'details', 'transactions']
	AccessScope *[]interface{} `json:"access_scope,omitempty"`

	// AccessValidForDays Number of days from acceptance that the access can be used.
	AccessValidForDays *int `json:"access_valid_for_days,omitempty"`

	// Created The date & time at which the end user agreement was created.
	Created *time.Time `json:"created,omitempty"`

	// Id The ID of this End User Agreement, used to refer to this end user agreement in other API calls.
	Id *openapi_types.UUID `json:"id,omitempty"`

	// InstitutionId an Institution ID for this EUA
	InstitutionId string `json:"institution_id"`

	// MaxHistoricalDays Maximum number of days of transaction data to retrieve.
	MaxHistoricalDays *int `json:"max_historical_days,omitempty"`

	// Reconfirmation if this agreement can be extended. Supported by GB banks only.
	Reconfirmation *bool `json:"reconfirmation,omitempty"`
}

EndUserAgreement Represents an end-user agreement.

type EndUserAgreementRequest

type EndUserAgreementRequest struct {
	// AccessScope Array containing one or several values of ['balances', 'details', 'transactions']
	AccessScope *[]interface{} `json:"access_scope,omitempty"`

	// AccessValidForDays Number of days from acceptance that the access can be used.
	AccessValidForDays *int `json:"access_valid_for_days,omitempty"`

	// InstitutionId an Institution ID for this EUA
	InstitutionId string `json:"institution_id"`

	// MaxHistoricalDays Maximum number of days of transaction data to retrieve.
	MaxHistoricalDays *int `json:"max_historical_days,omitempty"`

	// Reconfirmation if this agreement can be extended. Supported by GB banks only.
	Reconfirmation *bool `json:"reconfirmation,omitempty"`
}

EndUserAgreementRequest Represents an end-user agreement.

type EnduserAcceptanceDetailsRequest

type EnduserAcceptanceDetailsRequest struct {
	IpAddress string `json:"ip_address"`
	UserAgent string `json:"user_agent"`
}

EnduserAcceptanceDetailsRequest Represents end-user details.

type ErrorResponse

type ErrorResponse struct {
	Detail     string  `json:"detail"`
	StatusCode int     `json:"status_code"`
	Summary    string  `json:"summary"`
	Type       *string `json:"type,omitempty"`
}

ErrorResponse defines model for ErrorResponse.

type GetANewAccessTokenFormdataRequestBody

type GetANewAccessTokenFormdataRequestBody = JWTRefreshRequest

GetANewAccessTokenFormdataRequestBody defines body for GetANewAccessToken for application/x-www-form-urlencoded ContentType.

type GetANewAccessTokenJSONRequestBody

type GetANewAccessTokenJSONRequestBody = JWTRefreshRequest

GetANewAccessTokenJSONRequestBody defines body for GetANewAccessToken for application/json ContentType.

type GetANewAccessTokenMultipartRequestBody

type GetANewAccessTokenMultipartRequestBody = JWTRefreshRequest

GetANewAccessTokenMultipartRequestBody defines body for GetANewAccessToken for multipart/form-data ContentType.

type GetANewAccessTokenResponse

type GetANewAccessTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SpectacularJWTRefresh
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseGetANewAccessTokenResponse

func ParseGetANewAccessTokenResponse(rsp *http.Response) (*GetANewAccessTokenResponse, error)

ParseGetANewAccessTokenResponse parses an HTTP response from a GetANewAccessTokenWithResponse call

func (GetANewAccessTokenResponse) Status

Status returns HTTPResponse.Status

func (GetANewAccessTokenResponse) StatusCode

func (r GetANewAccessTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Integration

type Integration struct {
	Bic                                 *string  `json:"bic,omitempty"`
	Countries                           []string `json:"countries"`
	Id                                  string   `json:"id"`
	MaxAccessValidForDays               *string  `json:"max_access_valid_for_days,omitempty"`
	MaxAccessValidForDaysReconfirmation *string  `json:"max_access_valid_for_days_reconfirmation,omitempty"`
	Name                                string   `json:"name"`
	TransactionTotalDays                *string  `json:"transaction_total_days,omitempty"`
}

Integration Represents an Integration.

type IntegrationRetrieve

type IntegrationRetrieve struct {
	Bic                                 *string       `json:"bic,omitempty"`
	Countries                           []string      `json:"countries"`
	Id                                  string        `json:"id"`
	IdentificationCodes                 []interface{} `json:"identification_codes"`
	MaxAccessValidForDays               *string       `json:"max_access_valid_for_days,omitempty"`
	MaxAccessValidForDaysReconfirmation *string       `json:"max_access_valid_for_days_reconfirmation,omitempty"`
	Name                                string        `json:"name"`
	SupportedFeatures                   []interface{} `json:"supported_features"`
	TransactionTotalDays                *string       `json:"transaction_total_days,omitempty"`
}

IntegrationRetrieve IntegrationSerializer for Retrieve endpoint.

type JWTObtainPairRequest

type JWTObtainPairRequest struct {
	// SecretId Secret id from /user-secrets/
	SecretId string `json:"secret_id"`

	// SecretKey Secret key from /user-secrets/
	SecretKey string `json:"secret_key"`
}

JWTObtainPairRequest Obtain JWT pair.

type JWTRefreshRequest

type JWTRefreshRequest struct {
	Refresh string `json:"refresh"`
}

JWTRefreshRequest Refresh access token.

type ObtainNewAccessrefreshTokenPairFormdataRequestBody

type ObtainNewAccessrefreshTokenPairFormdataRequestBody = JWTObtainPairRequest

ObtainNewAccessrefreshTokenPairFormdataRequestBody defines body for ObtainNewAccessrefreshTokenPair for application/x-www-form-urlencoded ContentType.

type ObtainNewAccessrefreshTokenPairJSONRequestBody

type ObtainNewAccessrefreshTokenPairJSONRequestBody = JWTObtainPairRequest

ObtainNewAccessrefreshTokenPairJSONRequestBody defines body for ObtainNewAccessrefreshTokenPair for application/json ContentType.

type ObtainNewAccessrefreshTokenPairMultipartRequestBody

type ObtainNewAccessrefreshTokenPairMultipartRequestBody = JWTObtainPairRequest

ObtainNewAccessrefreshTokenPairMultipartRequestBody defines body for ObtainNewAccessrefreshTokenPair for multipart/form-data ContentType.

type ObtainNewAccessrefreshTokenPairResponse

type ObtainNewAccessrefreshTokenPairResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SpectacularJWTObtain
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseObtainNewAccessrefreshTokenPairResponse

func ParseObtainNewAccessrefreshTokenPairResponse(rsp *http.Response) (*ObtainNewAccessrefreshTokenPairResponse, error)

ParseObtainNewAccessrefreshTokenPairResponse parses an HTTP response from a ObtainNewAccessrefreshTokenPairWithResponse call

func (ObtainNewAccessrefreshTokenPairResponse) Status

Status returns HTTPResponse.Status

func (ObtainNewAccessrefreshTokenPairResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type OwnerAddressStructuredSchema

type OwnerAddressStructuredSchema struct {
	// BuildingNumber buildingNumber
	BuildingNumber *string `json:"buildingNumber,omitempty"`

	// Country country
	Country *string `json:"country,omitempty"`

	// PostCode postCode
	PostCode *string `json:"postCode,omitempty"`

	// StreetName streetName
	StreetName *string `json:"streetName,omitempty"`

	// TownName townName
	TownName *string `json:"townName,omitempty"`
}

OwnerAddressStructuredSchema OwnerAddressStructuredSchema.

type PaginatedEndUserAgreementList

type PaginatedEndUserAgreementList struct {
	Count    int                `json:"count"`
	Next     *string            `json:"next"`
	Previous *string            `json:"previous"`
	Results  []EndUserAgreement `json:"results"`
}

PaginatedEndUserAgreementList defines model for PaginatedEndUserAgreementList.

type PaginatedRequisitionList

type PaginatedRequisitionList struct {
	Count    int           `json:"count"`
	Next     *string       `json:"next"`
	Previous *string       `json:"previous"`
	Results  []Requisition `json:"results"`
}

PaginatedRequisitionList defines model for PaginatedRequisitionList.

type ReconfirmationRetrieve

type ReconfirmationRetrieve struct {
	// Accounts Dictionary of accounts and their reconfirm and reject timestamps
	Accounts *map[string]interface{} `json:"accounts,omitempty"`

	// Created Reconfirmation creation time
	Created *time.Time `json:"created,omitempty"`

	// LastAccessed Last time when reconfirmation was accessed (this does not mean that it was accessed by PSU).
	LastAccessed *time.Time `json:"last_accessed"`

	// LastSubmitted Last time reconfirmation was submitted (it can be submitted multiple times).
	LastSubmitted *time.Time `json:"last_submitted"`

	// ReconfirmationUrl Reconfirmation URL to be provided to PSU.
	ReconfirmationUrl *string `json:"reconfirmation_url,omitempty"`

	// Redirect Optional redirect URL for reconfirmation to override requisition's redirect.
	Redirect *string `json:"redirect"`

	// UrlValidFrom Datetime from when PSU will be able to access reconfirmation URL.
	UrlValidFrom *time.Time `json:"url_valid_from,omitempty"`

	// UrlValidTo Datetime until when PSU will be able to access reconfirmation URL.
	UrlValidTo *time.Time `json:"url_valid_to,omitempty"`
}

ReconfirmationRetrieve EUA reconfirmation.

type ReconfirmationRetrieveRequest

type ReconfirmationRetrieveRequest struct {
	// Redirect Optional redirect URL for reconfirmation to override requisition's redirect.
	Redirect *string `json:"redirect"`
}

ReconfirmationRetrieveRequest EUA reconfirmation.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type Requisition

type Requisition struct {
	// AccountSelection option to enable account selection view for the end user
	AccountSelection *bool `json:"account_selection,omitempty"`

	// Accounts array of account IDs retrieved within a scope of this requisition
	Accounts *[]openapi_types.UUID `json:"accounts,omitempty"`

	// Agreement EUA associated with this requisition
	Agreement *openapi_types.UUID `json:"agreement,omitempty"`

	// Created The date & time at which the requisition was created.
	Created *time.Time          `json:"created"`
	Id      *openapi_types.UUID `json:"id,omitempty"`

	// InstitutionId an Institution ID for this Requisition
	InstitutionId string `json:"institution_id"`

	// Link link to initiate authorization with Institution
	Link *string `json:"link,omitempty"`

	// Redirect redirect URL to your application after end-user authorization with ASPSP
	Redirect *string `json:"redirect"`

	// RedirectImmediate enable redirect back to the client after account list received
	RedirectImmediate *bool `json:"redirect_immediate,omitempty"`

	// Reference additional ID to identify the end user
	Reference *string `json:"reference,omitempty"`

	// Ssn optional SSN field to verify ownership of the account
	Ssn *string `json:"ssn,omitempty"`

	// Status status of this requisition
	Status *StatusEnum `json:"status,omitempty"`

	// UserLanguage A two-letter country code (ISO 639-1)
	UserLanguage *string `json:"user_language,omitempty"`
}

Requisition RequisitionSerializer.

type RequisitionByIdResponse

type RequisitionByIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Requisition
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseRequisitionByIdResponse

func ParseRequisitionByIdResponse(rsp *http.Response) (*RequisitionByIdResponse, error)

ParseRequisitionByIdResponse parses an HTTP response from a RequisitionByIdWithResponse call

func (RequisitionByIdResponse) Status

func (r RequisitionByIdResponse) Status() string

Status returns HTTPResponse.Status

func (RequisitionByIdResponse) StatusCode

func (r RequisitionByIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequisitionRequest

type RequisitionRequest struct {
	// AccountSelection option to enable account selection view for the end user
	AccountSelection *bool `json:"account_selection,omitempty"`

	// Agreement EUA associated with this requisition
	Agreement *openapi_types.UUID `json:"agreement,omitempty"`

	// InstitutionId an Institution ID for this Requisition
	InstitutionId string `json:"institution_id"`

	// Redirect redirect URL to your application after end-user authorization with ASPSP
	Redirect *string `json:"redirect"`

	// RedirectImmediate enable redirect back to the client after account list received
	RedirectImmediate *bool `json:"redirect_immediate,omitempty"`

	// Reference additional ID to identify the end user
	Reference *string `json:"reference,omitempty"`

	// Ssn optional SSN field to verify ownership of the account
	Ssn *string `json:"ssn,omitempty"`

	// UserLanguage A two-letter country code (ISO 639-1)
	UserLanguage *string `json:"user_language,omitempty"`
}

RequisitionRequest RequisitionSerializer.

type RetrieveAccountBalancesResponse

type RetrieveAccountBalancesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AccountBalance
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
	JSON503      *ErrorResponse
}

func ParseRetrieveAccountBalancesResponse

func ParseRetrieveAccountBalancesResponse(rsp *http.Response) (*RetrieveAccountBalancesResponse, error)

ParseRetrieveAccountBalancesResponse parses an HTTP response from a RetrieveAccountBalancesWithResponse call

func (RetrieveAccountBalancesResponse) Status

Status returns HTTPResponse.Status

func (RetrieveAccountBalancesResponse) StatusCode

func (r RetrieveAccountBalancesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetrieveAccountDetailsResponse

type RetrieveAccountDetailsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AccountDetail
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
	JSON503      *ErrorResponse
}

func ParseRetrieveAccountDetailsResponse

func ParseRetrieveAccountDetailsResponse(rsp *http.Response) (*RetrieveAccountDetailsResponse, error)

ParseRetrieveAccountDetailsResponse parses an HTTP response from a RetrieveAccountDetailsWithResponse call

func (RetrieveAccountDetailsResponse) Status

Status returns HTTPResponse.Status

func (RetrieveAccountDetailsResponse) StatusCode

func (r RetrieveAccountDetailsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetrieveAccountMetadataResponse

type RetrieveAccountMetadataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Account
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseRetrieveAccountMetadataResponse

func ParseRetrieveAccountMetadataResponse(rsp *http.Response) (*RetrieveAccountMetadataResponse, error)

ParseRetrieveAccountMetadataResponse parses an HTTP response from a RetrieveAccountMetadataWithResponse call

func (RetrieveAccountMetadataResponse) Status

Status returns HTTPResponse.Status

func (RetrieveAccountMetadataResponse) StatusCode

func (r RetrieveAccountMetadataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetrieveAccountTransactionsParams

type RetrieveAccountTransactionsParams struct {
	DateFrom *openapi_types.Date `form:"date_from,omitempty" json:"date_from,omitempty"`
	DateTo   *openapi_types.Date `form:"date_to,omitempty" json:"date_to,omitempty"`
}

RetrieveAccountTransactionsParams defines parameters for RetrieveAccountTransactions.

type RetrieveAccountTransactionsResponse

type RetrieveAccountTransactionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AccountTransactions
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
	JSON503      *ErrorResponse
}

func ParseRetrieveAccountTransactionsResponse

func ParseRetrieveAccountTransactionsResponse(rsp *http.Response) (*RetrieveAccountTransactionsResponse, error)

ParseRetrieveAccountTransactionsResponse parses an HTTP response from a RetrieveAccountTransactionsWithResponse call

func (RetrieveAccountTransactionsResponse) Status

Status returns HTTPResponse.Status

func (RetrieveAccountTransactionsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RetrieveAllAgreementsParams

type RetrieveAllAgreementsParams struct {
	// Limit Number of results to return per page.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Offset The initial zero-based index from which to return the results.
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}

RetrieveAllAgreementsParams defines parameters for RetrieveAllAgreements.

type RetrieveAllAgreementsResponse

type RetrieveAllAgreementsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedEndUserAgreementList
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseRetrieveAllAgreementsResponse

func ParseRetrieveAllAgreementsResponse(rsp *http.Response) (*RetrieveAllAgreementsResponse, error)

ParseRetrieveAllAgreementsResponse parses an HTTP response from a RetrieveAllAgreementsWithResponse call

func (RetrieveAllAgreementsResponse) Status

Status returns HTTPResponse.Status

func (RetrieveAllAgreementsResponse) StatusCode

func (r RetrieveAllAgreementsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetrieveAllRequisitionsParams

type RetrieveAllRequisitionsParams struct {
	// Limit Number of results to return per page.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Offset The initial zero-based index from which to return the results.
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}

RetrieveAllRequisitionsParams defines parameters for RetrieveAllRequisitions.

type RetrieveAllRequisitionsResponse

type RetrieveAllRequisitionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedRequisitionList
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseRetrieveAllRequisitionsResponse

func ParseRetrieveAllRequisitionsResponse(rsp *http.Response) (*RetrieveAllRequisitionsResponse, error)

ParseRetrieveAllRequisitionsResponse parses an HTTP response from a RetrieveAllRequisitionsWithResponse call

func (RetrieveAllRequisitionsResponse) Status

Status returns HTTPResponse.Status

func (RetrieveAllRequisitionsResponse) StatusCode

func (r RetrieveAllRequisitionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetrieveAllSupportedInstitutionsInAGivenCountryParams

type RetrieveAllSupportedInstitutionsInAGivenCountryParams struct {
	// AccessScopesSupported Boolean value, indicating if access scopes are supported
	AccessScopesSupported *string `form:"access_scopes_supported,omitempty" json:"access_scopes_supported,omitempty"`

	// AccountSelectionSupported Boolean value, indicating if account selection is supported
	AccountSelectionSupported *string `form:"account_selection_supported,omitempty" json:"account_selection_supported,omitempty"`

	// BusinessAccountsSupported Boolean value, indicating if business accounts are supported
	BusinessAccountsSupported *string `form:"business_accounts_supported,omitempty" json:"business_accounts_supported,omitempty"`

	// CardAccountsSupported Boolean value, indicating if card accounts are supported
	CardAccountsSupported *string `form:"card_accounts_supported,omitempty" json:"card_accounts_supported,omitempty"`

	// CorporateAccountsSupported Boolean value, indicating if corporate accounts are supported
	CorporateAccountsSupported *string `form:"corporate_accounts_supported,omitempty" json:"corporate_accounts_supported,omitempty"`

	// Country ISO 3166 two-character country code
	Country *string `form:"country,omitempty" json:"country,omitempty"`

	// PendingTransactionsSupported Boolean value, indicating if pending transactions are supported
	PendingTransactionsSupported *string `form:"pending_transactions_supported,omitempty" json:"pending_transactions_supported,omitempty"`

	// PrivateAccountsSupported Boolean value, indicating if private accounts are supported
	PrivateAccountsSupported *string `form:"private_accounts_supported,omitempty" json:"private_accounts_supported,omitempty"`

	// ReadDebtorAccountSupported Boolean value, indicating if debtor account can be read before submitting payment
	ReadDebtorAccountSupported *string `form:"read_debtor_account_supported,omitempty" json:"read_debtor_account_supported,omitempty"`

	// ReadRefundAccountSupported Boolean value, indicating if read refund account is supported
	ReadRefundAccountSupported *string `form:"read_refund_account_supported,omitempty" json:"read_refund_account_supported,omitempty"`

	// SeparateContinuousHistoryConsentSupported Boolean value, indicating if separate consent for continuous history is supported
	SeparateContinuousHistoryConsentSupported *string `form:"separate_continuous_history_consent_supported,omitempty" json:"separate_continuous_history_consent_supported,omitempty"`

	// SsnVerificationSupported Boolean value, indicating if ssn verification is supported
	SsnVerificationSupported *string `form:"ssn_verification_supported,omitempty" json:"ssn_verification_supported,omitempty"`
}

RetrieveAllSupportedInstitutionsInAGivenCountryParams defines parameters for RetrieveAllSupportedInstitutionsInAGivenCountry.

type RetrieveAllSupportedInstitutionsInAGivenCountryResponse

type RetrieveAllSupportedInstitutionsInAGivenCountryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Integration
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseRetrieveAllSupportedInstitutionsInAGivenCountryResponse

func ParseRetrieveAllSupportedInstitutionsInAGivenCountryResponse(rsp *http.Response) (*RetrieveAllSupportedInstitutionsInAGivenCountryResponse, error)

ParseRetrieveAllSupportedInstitutionsInAGivenCountryResponse parses an HTTP response from a RetrieveAllSupportedInstitutionsInAGivenCountryWithResponse call

func (RetrieveAllSupportedInstitutionsInAGivenCountryResponse) Status

Status returns HTTPResponse.Status

func (RetrieveAllSupportedInstitutionsInAGivenCountryResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RetrieveEUAByIdResponse

type RetrieveEUAByIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *EndUserAgreement
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseRetrieveEUAByIdResponse

func ParseRetrieveEUAByIdResponse(rsp *http.Response) (*RetrieveEUAByIdResponse, error)

ParseRetrieveEUAByIdResponse parses an HTTP response from a RetrieveEUAByIdWithResponse call

func (RetrieveEUAByIdResponse) Status

func (r RetrieveEUAByIdResponse) Status() string

Status returns HTTPResponse.Status

func (RetrieveEUAByIdResponse) StatusCode

func (r RetrieveEUAByIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetrieveEUAReconfirmationResponse

type RetrieveEUAReconfirmationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ReconfirmationRetrieve
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseRetrieveEUAReconfirmationResponse

func ParseRetrieveEUAReconfirmationResponse(rsp *http.Response) (*RetrieveEUAReconfirmationResponse, error)

ParseRetrieveEUAReconfirmationResponse parses an HTTP response from a RetrieveEUAReconfirmationWithResponse call

func (RetrieveEUAReconfirmationResponse) Status

Status returns HTTPResponse.Status

func (RetrieveEUAReconfirmationResponse) StatusCode

func (r RetrieveEUAReconfirmationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetrieveInstitutionResponse

type RetrieveInstitutionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *IntegrationRetrieve
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseRetrieveInstitutionResponse

func ParseRetrieveInstitutionResponse(rsp *http.Response) (*RetrieveInstitutionResponse, error)

ParseRetrieveInstitutionResponse parses an HTTP response from a RetrieveInstitutionWithResponse call

func (RetrieveInstitutionResponse) Status

Status returns HTTPResponse.Status

func (RetrieveInstitutionResponse) StatusCode

func (r RetrieveInstitutionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SpectacularJWTObtain

type SpectacularJWTObtain struct {
	// Access Your access token
	Access *string `json:"access,omitempty"`

	// AccessExpires Access token expires in seconds
	AccessExpires *int `json:"access_expires,omitempty"`

	// Refresh Your refresh token
	Refresh *string `json:"refresh,omitempty"`

	// RefreshExpires Refresh token expires in seconds
	RefreshExpires *int `json:"refresh_expires,omitempty"`
}

SpectacularJWTObtain Obtain new JWT pair.

type SpectacularJWTRefresh

type SpectacularJWTRefresh struct {
	// Access Your access token
	Access *string `json:"access,omitempty"`

	// AccessExpires Access token expires in seconds
	AccessExpires *int `json:"access_expires,omitempty"`
}

SpectacularJWTRefresh Refresh Access token.

type SpectacularRequisition

type SpectacularRequisition struct {
	// AccountSelection option to enable account selection view for the end user
	AccountSelection *bool `json:"account_selection,omitempty"`

	// Accounts array of account IDs retrieved within a scope of this requisition
	Accounts *[]interface{} `json:"accounts,omitempty"`

	// Agreement EUA associated with this requisition
	Agreement *openapi_types.UUID `json:"agreement,omitempty"`

	// Created The date & time at which the requisition was created.
	Created *time.Time          `json:"created"`
	Id      *openapi_types.UUID `json:"id,omitempty"`

	// InstitutionId an Institution ID for this Requisition
	InstitutionId string `json:"institution_id"`

	// Link link to initiate authorization with Institution
	Link *string `json:"link,omitempty"`

	// Redirect redirect URL to your application after end-user authorization with ASPSP
	Redirect *string `json:"redirect"`

	// RedirectImmediate enable redirect back to the client after account list received
	RedirectImmediate *bool `json:"redirect_immediate,omitempty"`

	// Reference additional ID to identify the end user
	Reference *string `json:"reference,omitempty"`

	// Ssn optional SSN field to verify ownership of the account
	Ssn *string `json:"ssn,omitempty"`

	// Status status of this requisition
	Status *StatusEnum `json:"status,omitempty"`

	// UserLanguage A two-letter country code (ISO 639-1)
	UserLanguage *string `json:"user_language,omitempty"`
}

SpectacularRequisition Create requisition.

type StatusEnum

type StatusEnum string

StatusEnum defines model for StatusEnum.

const (
	CR StatusEnum = "CR"
	ER StatusEnum = "ER"
	EX StatusEnum = "EX"
	GA StatusEnum = "GA"
	GC StatusEnum = "GC"
	ID StatusEnum = "ID"
	LN StatusEnum = "LN"
	RJ StatusEnum = "RJ"
	SA StatusEnum = "SA"
	SU StatusEnum = "SU"
	UA StatusEnum = "UA"
)

Defines values for StatusEnum.

type SuccessfulDeleteResponse

type SuccessfulDeleteResponse struct {
	Detail  string `json:"detail"`
	Summary string `json:"summary"`
}

SuccessfulDeleteResponse defines model for SuccessfulDeleteResponse.

type TransactionAmountSchema

type TransactionAmountSchema struct {
	// Amount amount
	Amount string `json:"amount"`

	// Currency currency
	Currency string `json:"currency"`
}

TransactionAmountSchema TransactionAmountSchema.

type TransactionSchema

type TransactionSchema struct {
	// AdditionalInformation additionalInformation
	AdditionalInformation *string `json:"additionalInformation,omitempty"`

	// BalanceAfterTransaction balanceAfterTransaction
	BalanceAfterTransaction *BalanceAfterTransactionSchema `json:"balanceAfterTransaction,omitempty"`

	// BankTransactionCode bankTransactionCode
	BankTransactionCode *string `json:"bankTransactionCode,omitempty"`

	// BookingDate bookingDate
	BookingDate *string `json:"bookingDate,omitempty"`

	// BookingDateTime bookingDateTime
	BookingDateTime *string `json:"bookingDateTime,omitempty"`

	// CheckId checkId
	CheckId *string `json:"checkId,omitempty"`

	// CreditorAccount creditorAccount
	CreditorAccount *AccountSchema `json:"creditorAccount,omitempty"`

	// CreditorId creditorId
	CreditorId *string `json:"creditorId,omitempty"`

	// CreditorName creditorName
	CreditorName     *string                   `json:"creditorName,omitempty"`
	CurrencyExchange *[]CurrencyExchangeSchema `json:"currencyExchange,omitempty"`

	// DebtorAccount debtorAccount
	DebtorAccount *AccountSchema `json:"debtorAccount,omitempty"`

	// DebtorName debtorName
	DebtorName *string `json:"debtorName,omitempty"`

	// EndToEndId endToEndId
	EndToEndId *string `json:"endToEndId,omitempty"`

	// EntryReference entryReference
	EntryReference *string `json:"entryReference,omitempty"`

	// InternalTransactionId internalTransactionId
	InternalTransactionId *string `json:"internalTransactionId,omitempty"`

	// MandateId mandateId
	MandateId *string `json:"mandateId,omitempty"`

	// ProprietaryBankTransactionCode proprietaryBankTransactionCode
	ProprietaryBankTransactionCode *string `json:"proprietaryBankTransactionCode,omitempty"`

	// PurposeCode purposeCode
	PurposeCode *string `json:"purposeCode,omitempty"`

	// RemittanceInformationStructured remittanceInformationStructured
	RemittanceInformationStructured *string `json:"remittanceInformationStructured,omitempty"`

	// RemittanceInformationStructuredArray remittanceInformationStructuredArray
	RemittanceInformationStructuredArray *[]string `json:"remittanceInformationStructuredArray,omitempty"`

	// RemittanceInformationUnstructured remittanceInformationUnstructured
	RemittanceInformationUnstructured *string `json:"remittanceInformationUnstructured,omitempty"`

	// RemittanceInformationUnstructuredArray remittanceInformationUnstructuredArray
	RemittanceInformationUnstructuredArray *[]string `json:"remittanceInformationUnstructuredArray,omitempty"`

	// TransactionAmount transactionAmount
	TransactionAmount TransactionAmountSchema `json:"transactionAmount"`

	// TransactionId transactionId
	TransactionId *string `json:"transactionId,omitempty"`

	// UltimateCreditor ultimateCreditor
	UltimateCreditor *string `json:"ultimateCreditor,omitempty"`

	// UltimateDebtor ultimateDebtor
	UltimateDebtor *string `json:"ultimateDebtor,omitempty"`

	// ValueDate valueDate
	ValueDate *string `json:"valueDate,omitempty"`

	// ValueDateTime valueDateTime
	ValueDateTime *string `json:"valueDateTime,omitempty"`
}

TransactionSchema TransactionSchema.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL