Documentation
¶
Index ¶
- Constants
- func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error
- func Logger(inner http.Handler, name string) http.Handler
- func NewRouter(routers ...Router) *mux.Router
- func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)
- func ReadFormFilesToTempFiles(r *http.Request, key string) ([]*os.File, error)
- type Account
- type AccountCreditor
- type AccountDebtor
- type AccountsApiController
- func (c *AccountsApiController) GetAccount(w http.ResponseWriter, r *http.Request)
- func (c *AccountsApiController) GetAccountBalances(w http.ResponseWriter, r *http.Request)
- func (c *AccountsApiController) GetAccountDetails(w http.ResponseWriter, r *http.Request)
- func (c *AccountsApiController) GetEntityAccountsList(w http.ResponseWriter, r *http.Request)
- func (c *AccountsApiController) PostEntityAccountsList(w http.ResponseWriter, r *http.Request)
- func (c *AccountsApiController) PutAccount(w http.ResponseWriter, r *http.Request)
- func (c *AccountsApiController) Routes() Routes
- func (c *AccountsApiController) SearchAccounts(w http.ResponseWriter, r *http.Request)
- type AccountsApiRouter
- type AccountsApiService
- func (s *AccountsApiService) GetAccount(ctx context.Context, accountId string, mask bool, enhance bool, ...) (ImplResponse, error)
- func (s *AccountsApiService) GetAccountBalances(ctx context.Context, accountId string, mask bool, xTRACEID string, ...) (ImplResponse, error)
- func (s *AccountsApiService) GetAccountDetails(ctx context.Context, accountId string, mask bool, enhance bool, ...) (ImplResponse, error)
- func (s *AccountsApiService) GetEntityAccountsList(ctx context.Context, entityId string, fields string, limit int32, ...) (ImplResponse, error)
- func (s *AccountsApiService) PostEntityAccountsList(ctx context.Context, limit int32, cursor string, mask bool, enhance bool, ...) (ImplResponse, error)
- func (s *AccountsApiService) PutAccount(ctx context.Context, accountId string, mask bool, enhance bool, ...) (ImplResponse, error)
- func (s *AccountsApiService) SearchAccounts(ctx context.Context, fields string, limit int32, cursor string, mask bool, ...) (ImplResponse, error)
- type AccountsApiServicer
- type AccountsList
- type AccountsListAllOf
- type Address
- type Attribute
- type Balances
- type Bank
- type BaseErrorProperties
- type BaseListProperties
- type BinaryItem
- type BinaryItemList
- type BinaryItemListAllOf
- type CacheApiController
- func (c *CacheApiController) DeleteAllCache(w http.ResponseWriter, r *http.Request)
- func (c *CacheApiController) DeleteCache(w http.ResponseWriter, r *http.Request)
- func (c *CacheApiController) GetCache(w http.ResponseWriter, r *http.Request)
- func (c *CacheApiController) ListAllCache(w http.ResponseWriter, r *http.Request)
- func (c *CacheApiController) RenewCache(w http.ResponseWriter, r *http.Request)
- func (c *CacheApiController) Routes() Routes
- type CacheApiRouter
- type CacheApiService
- func (s *CacheApiService) DeleteAllCache(ctx context.Context, xTRACEID string) (ImplResponse, error)
- func (s *CacheApiService) DeleteCache(ctx context.Context, finiteType FiniteType, xTRACEID string) (ImplResponse, error)
- func (s *CacheApiService) GetCache(ctx context.Context, finiteType FiniteType, xTRACEID string) (ImplResponse, error)
- func (s *CacheApiService) ListAllCache(ctx context.Context, xTRACEID string) (ImplResponse, error)
- func (s *CacheApiService) RenewCache(ctx context.Context, finiteType FiniteType, xTRACEID string, ...) (ImplResponse, error)
- type CacheApiServicer
- type CacheReference
- type CacheStatistics
- type CacheStatisticsList
- type CacheStatisticsListAllOf
- type Card
- type CardsApiController
- type CardsApiRouter
- type CardsApiService
- type CardsApiServicer
- type CardsList
- type CardsListAllOf
- type ContactPoint
- type CreditInformation
- type Creditor
- type Debtor
- type Entity
- type EntityApiController
- func (c *EntityApiController) GetEntity(w http.ResponseWriter, r *http.Request)
- func (c *EntityApiController) GetEntityProfile(w http.ResponseWriter, r *http.Request)
- func (c *EntityApiController) PostEntityProfile(w http.ResponseWriter, r *http.Request)
- func (c *EntityApiController) PutEntityProfile(w http.ResponseWriter, r *http.Request)
- func (c *EntityApiController) Routes() Routes
- func (c *EntityApiController) SearchEntities(w http.ResponseWriter, r *http.Request)
- type EntityApiRouter
- type EntityApiService
- func (s *EntityApiService) GetEntity(ctx context.Context, entityId string, mask bool, enhance bool, xTRACEID string, ...) (ImplResponse, error)
- func (s *EntityApiService) GetEntityProfile(ctx context.Context, entityId string, mask bool, enhance bool, xTRACEID string, ...) (ImplResponse, error)
- func (s *EntityApiService) PostEntityProfile(ctx context.Context, mask bool, enhance bool, xTRACEID string, xTOKEN string, ...) (ImplResponse, error)
- func (s *EntityApiService) PutEntityProfile(ctx context.Context, entityId string, mask bool, enhance bool, xTRACEID string, ...) (ImplResponse, error)
- func (s *EntityApiService) SearchEntities(ctx context.Context, limit int32, cursor string, mask bool, enhance bool, ...) (ImplResponse, error)
- type EntityApiServicer
- type EntityCreditor
- type EntityDebtor
- type EntityList
- type EntityListAllOf
- type EntityProfile
- type ErrorResponse
- type ExchangeApiController
- func (c *ExchangeApiController) DeleteExchangeTransaction(w http.ResponseWriter, r *http.Request)
- func (c *ExchangeApiController) GetExchangeTransaction(w http.ResponseWriter, r *http.Request)
- func (c *ExchangeApiController) ListAccountExchangeTransactions(w http.ResponseWriter, r *http.Request)
- func (c *ExchangeApiController) ListEntityExchangeTransactions(w http.ResponseWriter, r *http.Request)
- func (c *ExchangeApiController) PerformExchangeTransaction(w http.ResponseWriter, r *http.Request)
- func (c *ExchangeApiController) Routes() Routes
- func (c *ExchangeApiController) UpdateExchangeTransaction(w http.ResponseWriter, r *http.Request)
- type ExchangeApiRouter
- type ExchangeApiService
- func (s *ExchangeApiService) DeleteExchangeTransaction(ctx context.Context, exchangeId string, xTRACEID string, xTOKEN string) (ImplResponse, error)
- func (s *ExchangeApiService) GetExchangeTransaction(ctx context.Context, exchangeId string, mask bool, enhance bool, ...) (ImplResponse, error)
- func (s *ExchangeApiService) ListAccountExchangeTransactions(ctx context.Context, accountId string, limit int32, cursor string, mask bool, ...) (ImplResponse, error)
- func (s *ExchangeApiService) ListEntityExchangeTransactions(ctx context.Context, entityId string, limit int32, cursor string, mask bool, ...) (ImplResponse, error)
- func (s *ExchangeApiService) PerformExchangeTransaction(ctx context.Context, xTRACEID string, xTOKEN string, ...) (ImplResponse, error)
- func (s *ExchangeApiService) UpdateExchangeTransaction(ctx context.Context, exchangeId string, xTRACEID string, xTOKEN string, ...) (ImplResponse, error)
- type ExchangeApiServicer
- type ExchangeTransaction
- type ExchangeTransactionResult
- type ExchangeTransactionsList
- type ExchangeTransactionsListAllOf
- type Fee
- type FiniteEvent
- type FiniteType
- type FiniteUri
- type ImplResponse
- type Interest
- type IntermediateInstitution
- type IntermediateInstitutionAllOf
- type Product
- type ProductsApiController
- type ProductsApiRouter
- type ProductsApiService
- type ProductsApiServicer
- type ProductsList
- type ProductsListAllOf
- type Relationship
- type RelationshipAllOf
- type RemittanceInformation
- type Route
- type Router
- func NewAccountsApiController(s AccountsApiServicer) Router
- func NewCacheApiController(s CacheApiServicer) Router
- func NewCardsApiController(s CardsApiServicer) Router
- func NewEntityApiController(s EntityApiServicer) Router
- func NewExchangeApiController(s ExchangeApiServicer) Router
- func NewProductsApiController(s ProductsApiServicer) Router
- func NewStatementApiController(s StatementApiServicer) Router
- func NewStatementsApiController(s StatementsApiServicer) Router
- func NewTransactionsApiController(s TransactionsApiServicer) Router
- type Routes
- type RoutingNumber
- type Schedule
- type SearchFilter
- type SecurityInformation
- type Statement
- type StatementApiController
- func (c *StatementApiController) GetAccountStatementItem(w http.ResponseWriter, r *http.Request)
- func (c *StatementApiController) GetAccountStatementItems(w http.ResponseWriter, r *http.Request)
- func (c *StatementApiController) GetStatementItem(w http.ResponseWriter, r *http.Request)
- func (c *StatementApiController) GetStatementItems(w http.ResponseWriter, r *http.Request)
- func (c *StatementApiController) Routes() Routes
- type StatementApiRouter
- type StatementApiService
- func (s *StatementApiService) GetAccountStatementItem(ctx context.Context, accountId string, statementId string, itemId string, ...) (ImplResponse, error)
- func (s *StatementApiService) GetAccountStatementItems(ctx context.Context, accountId string, statementId string, inline bool, ...) (ImplResponse, error)
- func (s *StatementApiService) GetStatementItem(ctx context.Context, statementId string, itemId string, mask bool, ...) (ImplResponse, error)
- func (s *StatementApiService) GetStatementItems(ctx context.Context, statementId string, inline bool, mask bool, enhance bool, ...) (ImplResponse, error)
- type StatementApiServicer
- type StatementsApiController
- type StatementsApiRouter
- type StatementsApiService
- type StatementsApiServicer
- type StatementsList
- type StatementsListAllOf
- type TaxInformation
- type Transaction
- type TransactionStatus
- type TransactionsApiController
- func (c *TransactionsApiController) GetAccountTransaction(w http.ResponseWriter, r *http.Request)
- func (c *TransactionsApiController) GetAccountTransactionImage(w http.ResponseWriter, r *http.Request)
- func (c *TransactionsApiController) GetAccountTransactionImages(w http.ResponseWriter, r *http.Request)
- func (c *TransactionsApiController) GetAccountTransactions(w http.ResponseWriter, r *http.Request)
- func (c *TransactionsApiController) Routes() Routes
- func (c *TransactionsApiController) SearchTransactions(w http.ResponseWriter, r *http.Request)
- type TransactionsApiRouter
- type TransactionsApiService
- func (s *TransactionsApiService) GetAccountTransaction(ctx context.Context, accountId string, transactionId string, mask bool, ...) (ImplResponse, error)
- func (s *TransactionsApiService) GetAccountTransactionImage(ctx context.Context, accountId string, itemId string, xTRACEID string, ...) (ImplResponse, error)
- func (s *TransactionsApiService) GetAccountTransactionImages(ctx context.Context, accountId string, transactionId string, mask bool, ...) (ImplResponse, error)
- func (s *TransactionsApiService) GetAccountTransactions(ctx context.Context, accountId string, mask bool, startDateTime string, ...) (ImplResponse, error)
- func (s *TransactionsApiService) SearchTransactions(ctx context.Context, limit int32, cursor string, mask bool, enhance bool, ...) (ImplResponse, error)
- type TransactionsApiServicer
- type TransactionsList
- type TransactionsListAllOf
- type Transactor
- type TransactorAllOf
Constants ¶
const ( FCA_SECRET = "123456789" MASK_SYMBOL = "x" API_DATE_LAYOUT = time.RFC3339 INVALID_TOKEN_MSG = "Invalid token" OPERATOR_NOT_IMPLEMENTED = "operator not implemented" )
Variables ¶
This section is empty.
Functions ¶
func EncodeJSONResponse ¶
func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error
EncodeJSONResponse uses the json encoder to write an interface to the http response with an optional status code
func ReadFormFileToTempFile ¶
ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file
Types ¶
type Account ¶
type Account struct {
// Unique composite identifier of the account in the system of record
Id string `json:"id"`
// The type of account as enumerated by the system of record
Type string `json:"type,omitempty"`
// The account number as represented in the system of record (masked if mask=true)
Number string `json:"number,omitempty"`
// Unique identifier of the parent account, in the case of a sub account
ParentId string `json:"parentId,omitempty"`
// List of entities this account is associated with
Entities []Entity `json:"entities,omitempty"`
// The name of the primary account holder
Name string `json:"name,omitempty"`
// The given title of an account
Title string `json:"title,omitempty"`
// The international bank account number
Iban string `json:"iban,omitempty"`
// The routing numbers of this account
Routingnumbers []RoutingNumber `json:"routingnumbers,omitempty"`
Balances Balances `json:"balances,omitempty"`
// ISO 6801 date when the account was created
DateCreated string `json:"dateCreated,omitempty"`
// ISO 6801 date when the account was opened or activated
DateOpened string `json:"dateOpened,omitempty"`
// ISO 6801 date when the account was last updated
DateLastUpdated string `json:"dateLastUpdated,omitempty"`
// ISO 6801 date when the account was closed or deactivated
DateClosed string `json:"dateClosed,omitempty"`
// The currency code of the account
CurrencyCode string `json:"currencyCode,omitempty"`
// The current status of the account
Status string `json:"status,omitempty"`
// The source of the account, where the account is located
Source string `json:"source,omitempty"`
// Indicates if interest is reportable on this account.
InterestReporting bool `json:"interestReporting,omitempty"`
CreditInformation CreditInformation `json:"creditInformation,omitempty"`
LoanInterest Interest `json:"loanInterest,omitempty"`
CreditInterest Interest `json:"creditInterest,omitempty"`
// Unique preferences of the account
Preferences []Attribute `json:"preferences,omitempty"`
Bank Bank `json:"bank,omitempty"`
// List of owners of the account
Owners []Relationship `json:"owners,omitempty"`
Product Product `json:"product,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
Account - Account object
type AccountCreditor ¶
type AccountCreditor struct {
// Unique composite identifier of the account in the system of record
Id string `json:"id"`
// The type of account as enumerated by the system of record
Type string `json:"type,omitempty"`
// The account number as represented in the system of record (masked if mask=true)
Number string `json:"number,omitempty"`
// Unique identifier of the parent account, in the case of a sub account
ParentId string `json:"parentId,omitempty"`
// List of entities this account is associated with
Entities []Entity `json:"entities,omitempty"`
// The name of the primary account holder
Name string `json:"name,omitempty"`
// The given title of an account
Title string `json:"title,omitempty"`
// The international bank account number
Iban string `json:"iban,omitempty"`
// The routing numbers of this account
Routingnumbers []RoutingNumber `json:"routingnumbers,omitempty"`
Balances Balances `json:"balances,omitempty"`
// ISO 6801 date when the account was created
DateCreated string `json:"dateCreated,omitempty"`
// ISO 6801 date when the account was opened or activated
DateOpened string `json:"dateOpened,omitempty"`
// ISO 6801 date when the account was last updated
DateLastUpdated string `json:"dateLastUpdated,omitempty"`
// ISO 6801 date when the account was closed or deactivated
DateClosed string `json:"dateClosed,omitempty"`
// The currency code of the account
CurrencyCode string `json:"currencyCode,omitempty"`
// The current status of the account
Status string `json:"status,omitempty"`
// The source of the account, where the account is located
Source string `json:"source,omitempty"`
// Indicates if interest is reportable on this account.
InterestReporting bool `json:"interestReporting,omitempty"`
CreditInformation CreditInformation `json:"creditInformation,omitempty"`
LoanInterest Interest `json:"loanInterest,omitempty"`
CreditInterest Interest `json:"creditInterest,omitempty"`
// Unique preferences of the account
Preferences []Attribute `json:"preferences,omitempty"`
Bank Bank `json:"bank,omitempty"`
// List of owners of the account
Owners []Relationship `json:"owners,omitempty"`
Product Product `json:"product,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
AccountCreditor - An Account That is Credited
type AccountDebtor ¶
type AccountDebtor struct {
// Unique composite identifier of the account in the system of record
Id string `json:"id"`
// The type of account as enumerated by the system of record
Type string `json:"type,omitempty"`
// The account number as represented in the system of record (masked if mask=true)
Number string `json:"number,omitempty"`
// Unique identifier of the parent account, in the case of a sub account
ParentId string `json:"parentId,omitempty"`
// List of entities this account is associated with
Entities []Entity `json:"entities,omitempty"`
// The name of the primary account holder
Name string `json:"name,omitempty"`
// The given title of an account
Title string `json:"title,omitempty"`
// The international bank account number
Iban string `json:"iban,omitempty"`
// The routing numbers of this account
Routingnumbers []RoutingNumber `json:"routingnumbers,omitempty"`
Balances Balances `json:"balances,omitempty"`
// ISO 6801 date when the account was created
DateCreated string `json:"dateCreated,omitempty"`
// ISO 6801 date when the account was opened or activated
DateOpened string `json:"dateOpened,omitempty"`
// ISO 6801 date when the account was last updated
DateLastUpdated string `json:"dateLastUpdated,omitempty"`
// ISO 6801 date when the account was closed or deactivated
DateClosed string `json:"dateClosed,omitempty"`
// The currency code of the account
CurrencyCode string `json:"currencyCode,omitempty"`
// The current status of the account
Status string `json:"status,omitempty"`
// The source of the account, where the account is located
Source string `json:"source,omitempty"`
// Indicates if interest is reportable on this account.
InterestReporting bool `json:"interestReporting,omitempty"`
CreditInformation CreditInformation `json:"creditInformation,omitempty"`
LoanInterest Interest `json:"loanInterest,omitempty"`
CreditInterest Interest `json:"creditInterest,omitempty"`
// Unique preferences of the account
Preferences []Attribute `json:"preferences,omitempty"`
Bank Bank `json:"bank,omitempty"`
// List of owners of the account
Owners []Relationship `json:"owners,omitempty"`
Product Product `json:"product,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
AccountDebtor - An Account That is Debited
type AccountsApiController ¶
type AccountsApiController struct {
// contains filtered or unexported fields
}
A AccountsApiController binds http requests to an api service and writes the service results to the http response
func (*AccountsApiController) GetAccount ¶
func (c *AccountsApiController) GetAccount(w http.ResponseWriter, r *http.Request)
GetAccount - Return a account
func (*AccountsApiController) GetAccountBalances ¶
func (c *AccountsApiController) GetAccountBalances(w http.ResponseWriter, r *http.Request)
GetAccountBalances - Return a accounts balances
func (*AccountsApiController) GetAccountDetails ¶
func (c *AccountsApiController) GetAccountDetails(w http.ResponseWriter, r *http.Request)
GetAccountDetails - Return a accounts details
func (*AccountsApiController) GetEntityAccountsList ¶
func (c *AccountsApiController) GetEntityAccountsList(w http.ResponseWriter, r *http.Request)
GetEntityAccountsList - Return list a of accounts by entity
func (*AccountsApiController) PostEntityAccountsList ¶
func (c *AccountsApiController) PostEntityAccountsList(w http.ResponseWriter, r *http.Request)
PostEntityAccountsList - Return list a of accounts based on a entity search
func (*AccountsApiController) PutAccount ¶
func (c *AccountsApiController) PutAccount(w http.ResponseWriter, r *http.Request)
PutAccount - Update a account
func (*AccountsApiController) Routes ¶
func (c *AccountsApiController) Routes() Routes
Routes returns all of the api route for the AccountsApiController
func (*AccountsApiController) SearchAccounts ¶
func (c *AccountsApiController) SearchAccounts(w http.ResponseWriter, r *http.Request)
SearchAccounts - Search for accounts
type AccountsApiRouter ¶
type AccountsApiRouter interface {
GetAccount(http.ResponseWriter, *http.Request)
GetAccountBalances(http.ResponseWriter, *http.Request)
GetAccountDetails(http.ResponseWriter, *http.Request)
GetEntityAccountsList(http.ResponseWriter, *http.Request)
PostEntityAccountsList(http.ResponseWriter, *http.Request)
PutAccount(http.ResponseWriter, *http.Request)
SearchAccounts(http.ResponseWriter, *http.Request)
}
AccountsApiRouter defines the required methods for binding the api requests to a responses for the AccountsApi The AccountsApiRouter implementation should parse necessary information from the http request, pass the data to a AccountsApiServicer to perform the required actions, then write the service results to the http response.
type AccountsApiService ¶
type AccountsApiService struct {
}
AccountsApiService is a service that implents the logic for the AccountsApiServicer This service should implement the business logic for every endpoint for the AccountsApi API. Include any external packages or services that will be required by this service.
func (*AccountsApiService) GetAccount ¶
func (s *AccountsApiService) GetAccount(ctx context.Context, accountId string, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetAccount - Return a account
func (*AccountsApiService) GetAccountBalances ¶
func (s *AccountsApiService) GetAccountBalances(ctx context.Context, accountId string, mask bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetAccountBalances - Return a accounts balances
func (*AccountsApiService) GetAccountDetails ¶
func (s *AccountsApiService) GetAccountDetails(ctx context.Context, accountId string, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetAccountDetails - Return a accounts details
func (*AccountsApiService) GetEntityAccountsList ¶
func (s *AccountsApiService) GetEntityAccountsList(ctx context.Context, entityId string, fields string, limit int32, cursor string, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetEntityAccountsList - Return list a of accounts by entity
func (*AccountsApiService) PostEntityAccountsList ¶
func (s *AccountsApiService) PostEntityAccountsList(ctx context.Context, limit int32, cursor string, mask bool, enhance bool, xTRACEID string, xTOKEN string, searchFilter []SearchFilter) (ImplResponse, error)
PostEntityAccountsList - Return list a of accounts based on a entity search
func (*AccountsApiService) PutAccount ¶
func (s *AccountsApiService) PutAccount(ctx context.Context, accountId string, mask bool, enhance bool, xTRACEID string, xTOKEN string, account Account) (ImplResponse, error)
PutAccount - Update a account
func (*AccountsApiService) SearchAccounts ¶
func (s *AccountsApiService) SearchAccounts(ctx context.Context, fields string, limit int32, cursor string, mask bool, enhance bool, xTRACEID string, xTOKEN string, searchFilter []SearchFilter) (ImplResponse, error)
SearchAccounts - Search for accounts
type AccountsApiServicer ¶
type AccountsApiServicer interface {
GetAccount(context.Context, string, bool, bool, string, string) (ImplResponse, error)
GetAccountBalances(context.Context, string, bool, string, string) (ImplResponse, error)
GetAccountDetails(context.Context, string, bool, bool, string, string) (ImplResponse, error)
GetEntityAccountsList(context.Context, string, string, int32, string, bool, bool, string, string) (ImplResponse, error)
PostEntityAccountsList(context.Context, int32, string, bool, bool, string, string, []SearchFilter) (ImplResponse, error)
PutAccount(context.Context, string, bool, bool, string, string, Account) (ImplResponse, error)
SearchAccounts(context.Context, string, int32, string, bool, bool, string, string, []SearchFilter) (ImplResponse, error)
}
AccountsApiServicer defines the api actions for the AccountsApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewAccountsApiService ¶
func NewAccountsApiService(client *ent.Client) AccountsApiServicer
NewAccountsApiService creates a default api service
type AccountsList ¶
type AccountsList struct {
// Indicates whether a operation was successful
Status bool `json:"status,omitempty"`
// Potential information or errror messages
Messages []string `json:"messages,omitempty"`
// The total number of list items that exist for the list or query
TotalItems int32 `json:"totalItems,omitempty"`
// The Base64 encoded value that indicates the next cursor. The cursor will be decoded to use as the starting point to fetch the next set of results.
NextCursor string `json:"nextCursor,omitempty"`
// The list of accounts
Accounts []Account `json:"accounts,omitempty"`
}
type AccountsListAllOf ¶
type AccountsListAllOf struct {
// The list of accounts
Accounts []Account `json:"accounts,omitempty"`
}
type Address ¶
type Address struct {
Type string `json:"type,omitempty"`
// Address line
Line1 string `json:"line1,omitempty"`
// Address line
Line2 string `json:"line2,omitempty"`
// Address line
Line3 string `json:"line3,omitempty"`
// Address City or Town
City string `json:"city,omitempty"`
// State or Region
State string `json:"state,omitempty"`
// Postal code or Zip code
PostalCode string `json:"postalCode,omitempty"`
// Country
Country string `json:"country,omitempty"`
// Primary Address
Primary bool `json:"primary,omitempty"`
}
Address - Address object
type Attribute ¶
type Attribute struct {
// Attribute name
Name string `json:"name,omitempty"`
// Attribute value
Value string `json:"value,omitempty"`
}
Attribute - Name value pair property
type Balances ¶
type Balances struct {
// The available balance is your current balance less any outstanding holds or debits that have not yet posted to your account.
AvailableBalance float32 `json:"availableBalance,omitempty"`
// The current balance is the total amount of funds in your account.
CurrentBalance float32 `json:"currentBalance,omitempty"`
// The amount of money in an account. It is calculated by adding the initial deposit to all subsequent deposits and then subtracting all disbursements.
CashBalance float32 `json:"cashBalance,omitempty"`
// The minimum amount of funds a account may have before indicated as overdrawn.
MinimumBalance float32 `json:"minimumBalance,omitempty"`
// The total amount of the loan including interest/fees. The outstanding balance usually implies that extra interest/fees has been accrued.
OutstandingBalance float32 `json:"outstandingBalance,omitempty"`
// The total loan amount without any added interest/fees
PrincipalBalance float32 `json:"principalBalance,omitempty"`
// The accumulated interest charges that have been recognized in the books of accounts but have yet to be paid
AccruedInterest float32 `json:"accruedInterest,omitempty"`
// The amounts credited to the Investment, less the amounts debited from the Investment and the amounts redeemed by such Investor from time to time
InvestmentBalance float32 `json:"investmentBalance,omitempty"`
// The total amount needed to pay off the loan.
PayOffAmount float32 `json:"payOffAmount,omitempty"`
// A ledger balance is calculated at the end of each business day by a bank and includes all debits and credits.
LedgerBalance float32 `json:"ledgerBalance,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
Balances - Account Balances object
type Bank ¶
type Bank struct {
// Standard format of Business Identifier Codes (bic), unique identification code
Swift string `json:"swift,omitempty"`
// A bank code is a code assigned by a central bank, a bank supervisory body or a Bankers Association in a country to all its licensed member banks or financial institutions.
BankCode string `json:"bankCode,omitempty"`
// The financial institution name
BankName string `json:"bankName,omitempty"`
// The branch code of a bank branch helps in distinguishing one branch from another
BranchCode string `json:"branchCode,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
Bank - Bank object
type BaseErrorProperties ¶
type BaseErrorProperties struct {
// Indicates whether a operation was successful
Status bool `json:"status,omitempty"`
// Potential information or errror messages
Messages []string `json:"messages,omitempty"`
}
BaseErrorProperties - Base properties for all lists object
type BaseListProperties ¶
type BaseListProperties struct {
// Indicates whether a operation was successful
Status bool `json:"status,omitempty"`
// Potential information or errror messages
Messages []string `json:"messages,omitempty"`
// The total number of list items that exist for the list or query
TotalItems int32 `json:"totalItems,omitempty"`
// The Base64 encoded value that indicates the next cursor. The cursor will be decoded to use as the starting point to fetch the next set of results.
NextCursor string `json:"nextCursor,omitempty"`
}
BaseListProperties - Base properties for all lists object
type BinaryItem ¶
type BinaryItem struct {
// The mime type of the binary content.
Format string `json:"format,omitempty"`
// The length of the binary content in bytes.
Length int32 `json:"length,omitempty"`
// List of attributes for a binary item, e.g description, creation time...
Attributes []Attribute `json:"attributes,omitempty"`
// A base64 encoded identifier used by the connectors to locate the binary item
ItemId string `json:"itemId,omitempty"`
// The optionally inlined base64 encoded content of the item.
Content string `json:"content,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
BinaryItem - Binary Item Object
type BinaryItemList ¶
type BinaryItemList struct {
// Indicates whether a operation was successful
Status bool `json:"status,omitempty"`
// Potential information or errror messages
Messages []string `json:"messages,omitempty"`
// The total number of list items that exist for the list or query
TotalItems int32 `json:"totalItems,omitempty"`
// The Base64 encoded value that indicates the next cursor. The cursor will be decoded to use as the starting point to fetch the next set of results.
NextCursor string `json:"nextCursor,omitempty"`
// The list of binary items
Binaries []BinaryItem `json:"binaries,omitempty"`
}
type BinaryItemListAllOf ¶
type BinaryItemListAllOf struct {
// The list of binary items
Binaries []BinaryItem `json:"binaries,omitempty"`
}
type CacheApiController ¶
type CacheApiController struct {
// contains filtered or unexported fields
}
A CacheApiController binds http requests to an api service and writes the service results to the http response
func (*CacheApiController) DeleteAllCache ¶
func (c *CacheApiController) DeleteAllCache(w http.ResponseWriter, r *http.Request)
DeleteAllCache - Clear the cache for all Finite types
func (*CacheApiController) DeleteCache ¶
func (c *CacheApiController) DeleteCache(w http.ResponseWriter, r *http.Request)
DeleteCache - Clear the cache for a given type
func (*CacheApiController) GetCache ¶
func (c *CacheApiController) GetCache(w http.ResponseWriter, r *http.Request)
GetCache - Get the cache statistics for a given type
func (*CacheApiController) ListAllCache ¶
func (c *CacheApiController) ListAllCache(w http.ResponseWriter, r *http.Request)
ListAllCache - List of all cache statistics
func (*CacheApiController) RenewCache ¶
func (c *CacheApiController) RenewCache(w http.ResponseWriter, r *http.Request)
RenewCache - Clear and renew the cache
func (*CacheApiController) Routes ¶
func (c *CacheApiController) Routes() Routes
Routes returns all of the api route for the CacheApiController
type CacheApiRouter ¶
type CacheApiRouter interface {
DeleteAllCache(http.ResponseWriter, *http.Request)
DeleteCache(http.ResponseWriter, *http.Request)
GetCache(http.ResponseWriter, *http.Request)
ListAllCache(http.ResponseWriter, *http.Request)
RenewCache(http.ResponseWriter, *http.Request)
}
CacheApiRouter defines the required methods for binding the api requests to a responses for the CacheApi The CacheApiRouter implementation should parse necessary information from the http request, pass the data to a CacheApiServicer to perform the required actions, then write the service results to the http response.
type CacheApiService ¶
type CacheApiService struct {
}
CacheApiService is a service that implents the logic for the CacheApiServicer This service should implement the business logic for every endpoint for the CacheApi API. Include any external packages or services that will be required by this service.
func (*CacheApiService) DeleteAllCache ¶
func (s *CacheApiService) DeleteAllCache(ctx context.Context, xTRACEID string) (ImplResponse, error)
DeleteAllCache - Clear the cache for all Finite types
func (*CacheApiService) DeleteCache ¶
func (s *CacheApiService) DeleteCache(ctx context.Context, finiteType FiniteType, xTRACEID string) (ImplResponse, error)
DeleteCache - Clear the cache for a given type
func (*CacheApiService) GetCache ¶
func (s *CacheApiService) GetCache(ctx context.Context, finiteType FiniteType, xTRACEID string) (ImplResponse, error)
GetCache - Get the cache statistics for a given type
func (*CacheApiService) ListAllCache ¶
func (s *CacheApiService) ListAllCache(ctx context.Context, xTRACEID string) (ImplResponse, error)
ListAllCache - List of all cache statistics
func (*CacheApiService) RenewCache ¶
func (s *CacheApiService) RenewCache(ctx context.Context, finiteType FiniteType, xTRACEID string, cacheReference CacheReference) (ImplResponse, error)
RenewCache - Clear and renew the cache
type CacheApiServicer ¶
type CacheApiServicer interface {
DeleteAllCache(context.Context, string) (ImplResponse, error)
DeleteCache(context.Context, FiniteType, string) (ImplResponse, error)
GetCache(context.Context, FiniteType, string) (ImplResponse, error)
ListAllCache(context.Context, string) (ImplResponse, error)
RenewCache(context.Context, FiniteType, string, CacheReference) (ImplResponse, error)
}
CacheApiServicer defines the api actions for the CacheApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewCacheApiService ¶
func NewCacheApiService() CacheApiServicer
NewCacheApiService creates a default api service
type CacheReference ¶
type CacheReference struct {
// List of attributes to locate and reference items in cache
Attributes []Attribute `json:"attributes,omitempty"`
}
CacheReference - Reference to items in cache used to refresh/evict/renew the cache
type CacheStatistics ¶
type CacheStatistics struct {
FiniteType FiniteType `json:"finiteType,omitempty"`
// List of attributes identifying the cache referenced
FiniteReference []Attribute `json:"finiteReference,omitempty"`
// The memory usage of the cache, in megabytes
CacheSize float32 `json:"cacheSize,omitempty"`
// The number of items in the cache
CacheCount float32 `json:"cacheCount,omitempty"`
}
CacheStatistics - A summary of the caches for a given finite item type
type CacheStatisticsList ¶
type CacheStatisticsList struct {
// Indicates whether a operation was successful
Status bool `json:"status,omitempty"`
// Potential information or errror messages
Messages []string `json:"messages,omitempty"`
// The total number of list items that exist for the list or query
TotalItems int32 `json:"totalItems,omitempty"`
// The Base64 encoded value that indicates the next cursor. The cursor will be decoded to use as the starting point to fetch the next set of results.
NextCursor string `json:"nextCursor,omitempty"`
// The list of cache statistics
Caches []CacheStatistics `json:"caches,omitempty"`
}
type CacheStatisticsListAllOf ¶
type CacheStatisticsListAllOf struct {
// The list of cache statistics
Caches []CacheStatistics `json:"caches,omitempty"`
}
type Card ¶
type Card struct {
// The type of card
Type string `json:"type,omitempty"`
// Unique card identifier in the system of record
Id string `json:"id,omitempty"`
// Card number (masked if masked=true)
Number string `json:"number,omitempty"`
// ISO 6801 date of when the card is started/activated
StartDate string `json:"startDate,omitempty"`
// ISO 6801 date of when the card expires
ExpiryDate string `json:"expiryDate,omitempty"`
// The name of the cardholder
HolderName string `json:"holderName,omitempty"`
// The card network program
Network string `json:"network,omitempty"`
// The status of the card
Status string `json:"status,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
Card - Card object
type CardsApiController ¶
type CardsApiController struct {
// contains filtered or unexported fields
}
A CardsApiController binds http requests to an api service and writes the service results to the http response
func (*CardsApiController) GetAccountCards ¶
func (c *CardsApiController) GetAccountCards(w http.ResponseWriter, r *http.Request)
GetAccountCards - Return a accounts cards
func (*CardsApiController) Routes ¶
func (c *CardsApiController) Routes() Routes
Routes returns all of the api route for the CardsApiController
type CardsApiRouter ¶
type CardsApiRouter interface {
GetAccountCards(http.ResponseWriter, *http.Request)
}
CardsApiRouter defines the required methods for binding the api requests to a responses for the CardsApi The CardsApiRouter implementation should parse necessary information from the http request, pass the data to a CardsApiServicer to perform the required actions, then write the service results to the http response.
type CardsApiService ¶
type CardsApiService struct {
}
CardsApiService is a service that implents the logic for the CardsApiServicer This service should implement the business logic for every endpoint for the CardsApi API. Include any external packages or services that will be required by this service.
func (*CardsApiService) GetAccountCards ¶
func (s *CardsApiService) GetAccountCards(ctx context.Context, accountId string, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetAccountCards - Return a accounts cards
type CardsApiServicer ¶
type CardsApiServicer interface {
GetAccountCards(context.Context, string, bool, bool, string, string) (ImplResponse, error)
}
CardsApiServicer defines the api actions for the CardsApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewCardsApiService ¶
func NewCardsApiService() CardsApiServicer
NewCardsApiService creates a default api service
type CardsList ¶
type CardsList struct {
// Indicates whether a operation was successful
Status bool `json:"status,omitempty"`
// Potential information or errror messages
Messages []string `json:"messages,omitempty"`
// The total number of list items that exist for the list or query
TotalItems int32 `json:"totalItems,omitempty"`
// The Base64 encoded value that indicates the next cursor. The cursor will be decoded to use as the starting point to fetch the next set of results.
NextCursor string `json:"nextCursor,omitempty"`
// The list of cards
Cards []Card `json:"cards,omitempty"`
}
type CardsListAllOf ¶
type CardsListAllOf struct {
// The list of cards
Cards []Card `json:"cards,omitempty"`
}
type ContactPoint ¶
type ContactPoint struct {
Type string `json:"type,omitempty"`
// Name of the contact point
Name string `json:"name,omitempty"`
// Text preceeding contact point
Prefix string `json:"prefix,omitempty"`
// Contact point value
Value string `json:"value,omitempty"`
// Additional information
Suffix string `json:"suffix,omitempty"`
}
ContactPoint - Contact Point object
type CreditInformation ¶
type CreditInformation struct {
// The maximum credit limit amount
CreditLimit float32 `json:"creditLimit,omitempty"`
// The amount of credit available based on limit
CreditAvailable float32 `json:"creditAvailable,omitempty"`
// ISO 8601 date of when the credit limit expires
CreditLimitExpiryDate string `json:"creditLimitExpiryDate,omitempty"`
// The measure of terms
LoanTermsUnit string `json:"loanTermsUnit,omitempty"`
// The number of terms agreed
LoanTerms int32 `json:"loanTerms,omitempty"`
// The amount of principal within the next due payment
PrincipalDueAmount float32 `json:"principalDueAmount,omitempty"`
// The amount of interest within the next due payment
InterestDueAmount float32 `json:"interestDueAmount,omitempty"`
// The amount of the next due payment
PaymentDueAmount float32 `json:"paymentDueAmount,omitempty"`
// ISO 8601 date of the next due payment
PaymentDueDate string `json:"paymentDueDate,omitempty"`
// Day of the month on which payments are due
PaymentDueDay int32 `json:"paymentDueDay,omitempty"`
// The amount of the last payment
LastPaymentAmount float32 `json:"lastPaymentAmount,omitempty"`
// ISO 8601 date of the last payment
LastPaymentDate string `json:"lastPaymentDate,omitempty"`
// Indicates Revolving Credit Line
IsRevolving bool `json:"isRevolving,omitempty"`
// ISO 8601 formatted maturity date
MaturityDate string `json:"maturityDate,omitempty"`
// The amount due at maturity
MaturityAmount float32 `json:"maturityAmount,omitempty"`
// The original amount of the credit line or loan.
InitialAmount float32 `json:"initialAmount,omitempty"`
// The amount of earning interest, Year To Date.
InterestEarnedYTD float32 `json:"interestEarnedYTD,omitempty"`
// The amount of interest paid, Year To Date.
InterestPaidYTD float32 `json:"interestPaidYTD,omitempty"`
// The amount of earning interest, Calendar To Date.
InterestEarnedCTD float32 `json:"interestEarnedCTD,omitempty"`
// The amount of interest paid, Calendar To Date.
InterestPaidCTD float32 `json:"interestPaidCTD,omitempty"`
// The amount of earning interest, Prior Year.
InterestEarnedPriorYear float32 `json:"interestEarnedPriorYear,omitempty"`
// The amount of interest paid, Prior Year.
InterestPaidPriorYear float32 `json:"interestPaidPriorYear,omitempty"`
}
CreditInformation - Account Credit object
type Creditor ¶
type Creditor struct {
CreditorType string `json:"creditorType"`
// When crediting a loan-style account, where to target incoming funds.
Target string `json:"target,omitempty"`
}
Creditor - Account or Entity that receives an exchange
type Debtor ¶
type Debtor struct {
DebtorType string `json:"debtorType"`
}
Debtor - Account or Entity that originates an exchange
type Entity ¶
type Entity struct {
// The type of profile
Type string `json:"type,omitempty"`
// Unique identifier of the entity
Id string `json:"id"`
// Name of the entity
Name string `json:"name,omitempty"`
// Entity tax information
TaxInformation []TaxInformation `json:"taxInformation,omitempty"`
// Indicates whether entity is active
Active bool `json:"active,omitempty"`
// ISO 8601 Date entity got created
DateCreated string `json:"dateCreated,omitempty"`
SecurityInformation SecurityInformation `json:"securityInformation,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
Entity - Entity Object
type EntityApiController ¶
type EntityApiController struct {
// contains filtered or unexported fields
}
A EntityApiController binds http requests to an api service and writes the service results to the http response
func (*EntityApiController) GetEntity ¶
func (c *EntityApiController) GetEntity(w http.ResponseWriter, r *http.Request)
GetEntity - Return entity by entityId
func (*EntityApiController) GetEntityProfile ¶
func (c *EntityApiController) GetEntityProfile(w http.ResponseWriter, r *http.Request)
GetEntityProfile - Return entity profile
func (*EntityApiController) PostEntityProfile ¶
func (c *EntityApiController) PostEntityProfile(w http.ResponseWriter, r *http.Request)
PostEntityProfile - Create entity
func (*EntityApiController) PutEntityProfile ¶
func (c *EntityApiController) PutEntityProfile(w http.ResponseWriter, r *http.Request)
PutEntityProfile - Update entity profile
func (*EntityApiController) Routes ¶
func (c *EntityApiController) Routes() Routes
Routes returns all of the api route for the EntityApiController
func (*EntityApiController) SearchEntities ¶
func (c *EntityApiController) SearchEntities(w http.ResponseWriter, r *http.Request)
SearchEntities - Search for entities
type EntityApiRouter ¶
type EntityApiRouter interface {
GetEntity(http.ResponseWriter, *http.Request)
GetEntityProfile(http.ResponseWriter, *http.Request)
PostEntityProfile(http.ResponseWriter, *http.Request)
PutEntityProfile(http.ResponseWriter, *http.Request)
SearchEntities(http.ResponseWriter, *http.Request)
}
EntityApiRouter defines the required methods for binding the api requests to a responses for the EntityApi The EntityApiRouter implementation should parse necessary information from the http request, pass the data to a EntityApiServicer to perform the required actions, then write the service results to the http response.
type EntityApiService ¶
type EntityApiService struct {
}
EntityApiService is a service that implents the logic for the EntityApiServicer This service should implement the business logic for every endpoint for the EntityApi API. Include any external packages or services that will be required by this service.
func (*EntityApiService) GetEntity ¶
func (s *EntityApiService) GetEntity(ctx context.Context, entityId string, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetEntity - Return entity by entityId
func (*EntityApiService) GetEntityProfile ¶
func (s *EntityApiService) GetEntityProfile(ctx context.Context, entityId string, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetEntityProfile - Return entity profile
func (*EntityApiService) PostEntityProfile ¶
func (s *EntityApiService) PostEntityProfile(ctx context.Context, mask bool, enhance bool, xTRACEID string, xTOKEN string, entityProfile EntityProfile) (ImplResponse, error)
PostEntityProfile - Create entity
func (*EntityApiService) PutEntityProfile ¶
func (s *EntityApiService) PutEntityProfile(ctx context.Context, entityId string, mask bool, enhance bool, xTRACEID string, xTOKEN string, entityProfile EntityProfile) (ImplResponse, error)
PutEntityProfile - Update entity profile
func (*EntityApiService) SearchEntities ¶
func (s *EntityApiService) SearchEntities(ctx context.Context, limit int32, cursor string, mask bool, enhance bool, xTRACEID string, xTOKEN string, searchFilter []SearchFilter) (ImplResponse, error)
SearchEntities - Search for entities
type EntityApiServicer ¶
type EntityApiServicer interface {
GetEntity(context.Context, string, bool, bool, string, string) (ImplResponse, error)
GetEntityProfile(context.Context, string, bool, bool, string, string) (ImplResponse, error)
PostEntityProfile(context.Context, bool, bool, string, string, EntityProfile) (ImplResponse, error)
PutEntityProfile(context.Context, string, bool, bool, string, string, EntityProfile) (ImplResponse, error)
SearchEntities(context.Context, int32, string, bool, bool, string, string, []SearchFilter) (ImplResponse, error)
}
EntityApiServicer defines the api actions for the EntityApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewEntityApiService ¶
func NewEntityApiService() EntityApiServicer
NewEntityApiService creates a default api service
type EntityCreditor ¶
type EntityCreditor struct {
// The type of profile
Type string `json:"type,omitempty"`
// Unique identifier of the entity
Id string `json:"id"`
// Name of the entity
Name string `json:"name,omitempty"`
// Entity tax information
TaxInformation []TaxInformation `json:"taxInformation,omitempty"`
// Indicates whether entity is active
Active bool `json:"active,omitempty"`
// ISO 8601 Date entity got created
DateCreated string `json:"dateCreated,omitempty"`
SecurityInformation SecurityInformation `json:"securityInformation,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
EntityCreditor - An Entity That is Credited
type EntityDebtor ¶
type EntityDebtor struct {
// The type of profile
Type string `json:"type,omitempty"`
// Unique identifier of the entity
Id string `json:"id"`
// Name of the entity
Name string `json:"name,omitempty"`
// Entity tax information
TaxInformation []TaxInformation `json:"taxInformation,omitempty"`
// Indicates whether entity is active
Active bool `json:"active,omitempty"`
// ISO 8601 Date entity got created
DateCreated string `json:"dateCreated,omitempty"`
SecurityInformation SecurityInformation `json:"securityInformation,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
EntityDebtor - An Entity That is Debited
type EntityList ¶
type EntityList struct {
// Indicates whether a operation was successful
Status bool `json:"status,omitempty"`
// Potential information or errror messages
Messages []string `json:"messages,omitempty"`
// The total number of list items that exist for the list or query
TotalItems int32 `json:"totalItems,omitempty"`
// The Base64 encoded value that indicates the next cursor. The cursor will be decoded to use as the starting point to fetch the next set of results.
NextCursor string `json:"nextCursor,omitempty"`
// The list of entities
Entities []Entity `json:"entities,omitempty"`
}
type EntityListAllOf ¶
type EntityListAllOf struct {
// The list of entities
Entities []Entity `json:"entities,omitempty"`
}
type EntityProfile ¶
type EntityProfile struct {
// The type of profile
Type string `json:"type,omitempty"`
// Unique identifier of the entity
Id string `json:"id"`
// The fullname of a the entity
Fullname string `json:"fullname,omitempty"`
// The legal firstname of the person
Firstname string `json:"firstname,omitempty"`
// The legal lastname/surname of the person
Lastname string `json:"lastname,omitempty"`
// ISO 8601 Date of Birth
DateOfBirth string `json:"dateOfBirth,omitempty"`
// Entity addresses
Addresses []Address `json:"addresses,omitempty"`
// Entity contact points
ContactPoints []ContactPoint `json:"contactPoints,omitempty"`
// Entity preferences
Preferences []Attribute `json:"preferences,omitempty"`
// Entity tax information
TaxInformation []TaxInformation `json:"taxInformation,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
EntityProfile - Entity Profile Information
type ErrorResponse ¶
type ExchangeApiController ¶
type ExchangeApiController struct {
// contains filtered or unexported fields
}
A ExchangeApiController binds http requests to an api service and writes the service results to the http response
func (*ExchangeApiController) DeleteExchangeTransaction ¶
func (c *ExchangeApiController) DeleteExchangeTransaction(w http.ResponseWriter, r *http.Request)
DeleteExchangeTransaction - Perform exchange delete, for money movement
func (*ExchangeApiController) GetExchangeTransaction ¶
func (c *ExchangeApiController) GetExchangeTransaction(w http.ResponseWriter, r *http.Request)
GetExchangeTransaction - Return a given exchange transaction
func (*ExchangeApiController) ListAccountExchangeTransactions ¶
func (c *ExchangeApiController) ListAccountExchangeTransactions(w http.ResponseWriter, r *http.Request)
ListAccountExchangeTransactions - List of scheduled and past exchange transaction for a given account
func (*ExchangeApiController) ListEntityExchangeTransactions ¶
func (c *ExchangeApiController) ListEntityExchangeTransactions(w http.ResponseWriter, r *http.Request)
ListEntityExchangeTransactions - List of scheduled and past exchange transaction for a given entity
func (*ExchangeApiController) PerformExchangeTransaction ¶
func (c *ExchangeApiController) PerformExchangeTransaction(w http.ResponseWriter, r *http.Request)
PerformExchangeTransaction - Perform exchange, for money movement
func (*ExchangeApiController) Routes ¶
func (c *ExchangeApiController) Routes() Routes
Routes returns all of the api route for the ExchangeApiController
func (*ExchangeApiController) UpdateExchangeTransaction ¶
func (c *ExchangeApiController) UpdateExchangeTransaction(w http.ResponseWriter, r *http.Request)
UpdateExchangeTransaction - Perform exchange update, for money movement
type ExchangeApiRouter ¶
type ExchangeApiRouter interface {
DeleteExchangeTransaction(http.ResponseWriter, *http.Request)
GetExchangeTransaction(http.ResponseWriter, *http.Request)
ListAccountExchangeTransactions(http.ResponseWriter, *http.Request)
ListEntityExchangeTransactions(http.ResponseWriter, *http.Request)
PerformExchangeTransaction(http.ResponseWriter, *http.Request)
UpdateExchangeTransaction(http.ResponseWriter, *http.Request)
}
ExchangeApiRouter defines the required methods for binding the api requests to a responses for the ExchangeApi The ExchangeApiRouter implementation should parse necessary information from the http request, pass the data to a ExchangeApiServicer to perform the required actions, then write the service results to the http response.
type ExchangeApiService ¶
type ExchangeApiService struct {
}
ExchangeApiService is a service that implents the logic for the ExchangeApiServicer This service should implement the business logic for every endpoint for the ExchangeApi API. Include any external packages or services that will be required by this service.
func (*ExchangeApiService) DeleteExchangeTransaction ¶
func (s *ExchangeApiService) DeleteExchangeTransaction(ctx context.Context, exchangeId string, xTRACEID string, xTOKEN string) (ImplResponse, error)
DeleteExchangeTransaction - Perform exchange delete, for money movement
func (*ExchangeApiService) GetExchangeTransaction ¶
func (s *ExchangeApiService) GetExchangeTransaction(ctx context.Context, exchangeId string, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetExchangeTransaction - Return a given exchange transaction
func (*ExchangeApiService) ListAccountExchangeTransactions ¶
func (s *ExchangeApiService) ListAccountExchangeTransactions(ctx context.Context, accountId string, limit int32, cursor string, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
ListAccountExchangeTransactions - List of scheduled and past exchange transaction for a given account
func (*ExchangeApiService) ListEntityExchangeTransactions ¶
func (s *ExchangeApiService) ListEntityExchangeTransactions(ctx context.Context, entityId string, limit int32, cursor string, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
ListEntityExchangeTransactions - List of scheduled and past exchange transaction for a given entity
func (*ExchangeApiService) PerformExchangeTransaction ¶
func (s *ExchangeApiService) PerformExchangeTransaction(ctx context.Context, xTRACEID string, xTOKEN string, exchangeTransaction ExchangeTransaction) (ImplResponse, error)
PerformExchangeTransaction - Perform exchange, for money movement
func (*ExchangeApiService) UpdateExchangeTransaction ¶
func (s *ExchangeApiService) UpdateExchangeTransaction(ctx context.Context, exchangeId string, xTRACEID string, xTOKEN string, exchangeTransaction ExchangeTransaction) (ImplResponse, error)
UpdateExchangeTransaction - Perform exchange update, for money movement
type ExchangeApiServicer ¶
type ExchangeApiServicer interface {
DeleteExchangeTransaction(context.Context, string, string, string) (ImplResponse, error)
GetExchangeTransaction(context.Context, string, bool, bool, string, string) (ImplResponse, error)
ListAccountExchangeTransactions(context.Context, string, int32, string, bool, bool, string, string) (ImplResponse, error)
ListEntityExchangeTransactions(context.Context, string, int32, string, bool, bool, string, string) (ImplResponse, error)
PerformExchangeTransaction(context.Context, string, string, ExchangeTransaction) (ImplResponse, error)
UpdateExchangeTransaction(context.Context, string, string, string, ExchangeTransaction) (ImplResponse, error)
}
ExchangeApiServicer defines the api actions for the ExchangeApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewExchangeApiService ¶
func NewExchangeApiService() ExchangeApiServicer
NewExchangeApiService creates a default api service
type ExchangeTransaction ¶
type ExchangeTransaction struct {
// Unique identifier for this exchange transaction
Id string `json:"id,omitempty"`
// The type of exchange or money movement
Type string `json:"type,omitempty"`
Debtor Debtor `json:"debtor,omitempty"`
Creditor Creditor `json:"creditor,omitempty"`
IntermediateInstitutions []IntermediateInstitution `json:"intermediateInstitutions,omitempty"`
RemittanceInformation RemittanceInformation `json:"remittanceInformation,omitempty"`
// Indicate if this transaction is part of a batch
IsBatch bool `json:"isBatch,omitempty"`
// Indicates the priority of this transaction
Priority string `json:"priority,omitempty"`
// ISO 8601 date of execution
ExecutionDate string `json:"executionDate,omitempty"`
// Indicates if this is a recurring transaction
IsRecurring bool `json:"isRecurring,omitempty"`
RecurringSchedule Schedule `json:"recurringSchedule,omitempty"`
// The amount of the transaction
Amount float32 `json:"amount,omitempty"`
Fee Fee `json:"fee,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
ExchangeTransaction - Exchange Transaction
type ExchangeTransactionResult ¶
type ExchangeTransactionResult struct {
// The status of the attempt
Status string `json:"status,omitempty"`
// A readable reason for the status provided.
Reason string `json:"reason,omitempty"`
// The newly created exchange transaction identifier
ExchangeTransactionId string `json:"exchangeTransactionId,omitempty"`
}
ExchangeTransactionResult - The resulting information from attempting to perform an Exchange Transaction
type ExchangeTransactionsList ¶
type ExchangeTransactionsList struct {
// Indicates whether a operation was successful
Status bool `json:"status,omitempty"`
// Potential information or errror messages
Messages []string `json:"messages,omitempty"`
// The total number of list items that exist for the list or query
TotalItems int32 `json:"totalItems,omitempty"`
// The Base64 encoded value that indicates the next cursor. The cursor will be decoded to use as the starting point to fetch the next set of results.
NextCursor string `json:"nextCursor,omitempty"`
// The list of exchange transactions
Exchanges []ExchangeTransaction `json:"exchanges,omitempty"`
}
type ExchangeTransactionsListAllOf ¶
type ExchangeTransactionsListAllOf struct {
// The list of exchange transactions
Exchanges []ExchangeTransaction `json:"exchanges,omitempty"`
}
type Fee ¶
type Fee struct {
// Fee amount
Amount float32 `json:"amount,omitempty"`
// Fee currency code
CurrencyCode string `json:"currencyCode,omitempty"`
// Indicates who is responsible for the fee
Owernship string `json:"owernship,omitempty"`
}
Fee - Fee object
type FiniteEvent ¶
type FiniteEvent string
FiniteEvent : Type of events supported by Finite
const ( CACHE_DELETE FiniteEvent = "CacheDelete" CACHE_UPDATE FiniteEvent = "CacheUpdate" CACHE_READ FiniteEvent = "CacheRead" ITEM_UPDATE FiniteEvent = "ItemUpdate" ITEM_READ FiniteEvent = "ItemRead" ITEM_DELETE FiniteEvent = "ItemDelete" LIST_READ FiniteEvent = "ListRead" )
List of FiniteEvent
type FiniteType ¶
type FiniteType string
FiniteType : Type of schemas supported by Finite
const ( ACCOUNT FiniteType = "ACCOUNT" BALANCE FiniteType = "BALANCE" BANK FiniteType = "BANK" CARD FiniteType = "CARD" ENTITY FiniteType = "ENTITY" EXCHANGE FiniteType = "EXCHANGE" FILE FiniteType = "FILE" PRODUCT FiniteType = "PRODUCT" STATEMENT FiniteType = "STATEMENT" TRANSACTION FiniteType = "TRANSACTION" )
List of FiniteType
type FiniteUri ¶
type FiniteUri struct {
// The URL to the URI
URL string `json:"URL,omitempty"`
}
FiniteUri - Unique Resource Identifier in the API
type ImplResponse ¶
type ImplResponse struct {
Code int
Body interface{}
}
Implementation response defines an error code with the associated body
func Response ¶
func Response(code int, body interface{}) ImplResponse
Response return a ImplResponse struct filled
type Interest ¶
type Interest struct {
// The effective interest rate % of a loan or saving account
Rate float32 `json:"rate,omitempty"`
// The measure of terms
TermsUnit string `json:"termsUnit,omitempty"`
// The number of terms agreed
Terms int32 `json:"terms,omitempty"`
}
Interest - Interest object
type IntermediateInstitution ¶
type IntermediateInstitution struct {
// Standard format of Business Identifier Codes (bic), unique identification code
Swift string `json:"swift,omitempty"`
// A bank code is a code assigned by a central bank, a bank supervisory body or a Bankers Association in a country to all its licensed member banks or financial institutions.
BankCode string `json:"bankCode,omitempty"`
// The financial institution name
BankName string `json:"bankName,omitempty"`
// The branch code of a bank branch helps in distinguishing one branch from another
BranchCode string `json:"branchCode,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
// Message to the intermediate institution
Message string `json:"message,omitempty"`
}
IntermediateInstitution - Intermediate institution for ACH or Wire exchanges
type IntermediateInstitutionAllOf ¶
type IntermediateInstitutionAllOf struct {
// Message to the intermediate institution
Message string `json:"message,omitempty"`
}
type Product ¶
type Product struct {
// Unique identifier of the product
Id string `json:"id,omitempty"`
// Number used to identify the product
Number string `json:"number,omitempty"`
// Product type
Type string `json:"type,omitempty"`
// Product type friendly name
TypeName string `json:"typeName,omitempty"`
// Product sub type
SubType string `json:"subType,omitempty"`
// Product sub type friendly name
SubTypeName string `json:"subTypeName,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
Product - Product Object
type ProductsApiController ¶
type ProductsApiController struct {
// contains filtered or unexported fields
}
A ProductsApiController binds http requests to an api service and writes the service results to the http response
func (*ProductsApiController) GetProducts ¶
func (c *ProductsApiController) GetProducts(w http.ResponseWriter, r *http.Request)
GetProducts - Return a list of products
func (*ProductsApiController) Routes ¶
func (c *ProductsApiController) Routes() Routes
Routes returns all of the api route for the ProductsApiController
type ProductsApiRouter ¶
type ProductsApiRouter interface {
GetProducts(http.ResponseWriter, *http.Request)
}
ProductsApiRouter defines the required methods for binding the api requests to a responses for the ProductsApi The ProductsApiRouter implementation should parse necessary information from the http request, pass the data to a ProductsApiServicer to perform the required actions, then write the service results to the http response.
type ProductsApiService ¶
type ProductsApiService struct {
}
ProductsApiService is a service that implents the logic for the ProductsApiServicer This service should implement the business logic for every endpoint for the ProductsApi API. Include any external packages or services that will be required by this service.
func (*ProductsApiService) GetProducts ¶
func (s *ProductsApiService) GetProducts(ctx context.Context, productType string, limit int32, cursor string, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetProducts - Return a list of products
type ProductsApiServicer ¶
type ProductsApiServicer interface {
GetProducts(context.Context, string, int32, string, bool, string, string) (ImplResponse, error)
}
ProductsApiServicer defines the api actions for the ProductsApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewProductsApiService ¶
func NewProductsApiService() ProductsApiServicer
NewProductsApiService creates a default api service
type ProductsList ¶
type ProductsList struct {
// Indicates whether a operation was successful
Status bool `json:"status,omitempty"`
// Potential information or errror messages
Messages []string `json:"messages,omitempty"`
// The total number of list items that exist for the list or query
TotalItems int32 `json:"totalItems,omitempty"`
// The Base64 encoded value that indicates the next cursor. The cursor will be decoded to use as the starting point to fetch the next set of results.
NextCursor string `json:"nextCursor,omitempty"`
// The list of products
Products []Product `json:"products,omitempty"`
}
type ProductsListAllOf ¶
type ProductsListAllOf struct {
// The list of products
Products []Product `json:"products,omitempty"`
}
type Relationship ¶
type Relationship struct {
// The type of profile
Type string `json:"type,omitempty"`
// Unique identifier of the entity
Id string `json:"id"`
// The fullname of a the entity
Fullname string `json:"fullname,omitempty"`
// The legal firstname of the person
Firstname string `json:"firstname,omitempty"`
// The legal lastname/surname of the person
Lastname string `json:"lastname,omitempty"`
// ISO 8601 Date of Birth
DateOfBirth string `json:"dateOfBirth,omitempty"`
// Entity addresses
Addresses []Address `json:"addresses,omitempty"`
// Entity contact points
ContactPoints []ContactPoint `json:"contactPoints,omitempty"`
// Entity preferences
Preferences []Attribute `json:"preferences,omitempty"`
// Entity tax information
TaxInformation []TaxInformation `json:"taxInformation,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
// The type of relationship between entities
Relation string `json:"relation,omitempty"`
}
Relationship - Relationship object
type RelationshipAllOf ¶
type RelationshipAllOf struct {
// The type of relationship between entities
Relation string `json:"relation,omitempty"`
}
type RemittanceInformation ¶
type RemittanceInformation struct {
// Type of remittance information
Type string `json:"type,omitempty"`
// Issuer information
Issuer string `json:"issuer,omitempty"`
// Reference information/content
Reference string `json:"reference,omitempty"`
}
RemittanceInformation - Remittance Information
type Route ¶
type Route struct {
Name string
Method string
Pattern string
HandlerFunc http.HandlerFunc
}
A Route defines the parameters for an api endpoint
type Router ¶
type Router interface {
Routes() Routes
}
Router defines the required methods for retrieving api routes
func NewAccountsApiController ¶
func NewAccountsApiController(s AccountsApiServicer) Router
NewAccountsApiController creates a default api controller
func NewCacheApiController ¶
func NewCacheApiController(s CacheApiServicer) Router
NewCacheApiController creates a default api controller
func NewCardsApiController ¶
func NewCardsApiController(s CardsApiServicer) Router
NewCardsApiController creates a default api controller
func NewEntityApiController ¶
func NewEntityApiController(s EntityApiServicer) Router
NewEntityApiController creates a default api controller
func NewExchangeApiController ¶
func NewExchangeApiController(s ExchangeApiServicer) Router
NewExchangeApiController creates a default api controller
func NewProductsApiController ¶
func NewProductsApiController(s ProductsApiServicer) Router
NewProductsApiController creates a default api controller
func NewStatementApiController ¶
func NewStatementApiController(s StatementApiServicer) Router
NewStatementApiController creates a default api controller
func NewStatementsApiController ¶
func NewStatementsApiController(s StatementsApiServicer) Router
NewStatementsApiController creates a default api controller
func NewTransactionsApiController ¶
func NewTransactionsApiController(s TransactionsApiServicer) Router
NewTransactionsApiController creates a default api controller
type RoutingNumber ¶
type RoutingNumber struct {
// The type of routing number
Type string `json:"type,omitempty"`
// The routing number value
Number string `json:"number,omitempty"`
}
RoutingNumber - Routing Number object
type Schedule ¶
type Schedule struct {
// The execution strategy of the schedule
Strategy string `json:"strategy,omitempty"`
// Indicates how frequencly this schedule should execute
Frequency string `json:"frequency,omitempty"`
// The day of the month on which a execution should take
DayOn string `json:"dayOn,omitempty"`
// ISO 6801 formatted date for the schedule to start
StartDateTime string `json:"startDateTime,omitempty"`
// ISO 6801 formatted date for the schedule to complete
EndDateTime string `json:"endDateTime,omitempty"`
// ISO 6801 formatted date for the next scheduled execution
NextDateTime string `json:"nextDateTime,omitempty"`
// The number of times this schedule should execute
RepeatCount int32 `json:"repeatCount,omitempty"`
// Indicates if the execution is even or odd
IsEveryTime bool `json:"isEveryTime,omitempty"`
}
Schedule - Schedule object
type SearchFilter ¶
type SearchFilter struct {
// The name of the field of element to query
Field string `json:"field,omitempty"`
// The value to query for
Query string `json:"query,omitempty"`
Operator string `json:"operator,omitempty"`
}
SearchFilter - Search filter entry
type SecurityInformation ¶
type SecurityInformation struct {
// Unique username
Username string `json:"username,omitempty"`
// Unique token to identify entity for subsequent requests. E.g. OAuth access_token
Token string `json:"token,omitempty"`
// ISO 8601 date the entity last logged in
LastLoginDate string `json:"lastLoginDate,omitempty"`
}
SecurityInformation - Security Information
type Statement ¶
type Statement struct {
// The ID of this Statement.
Id string `json:"id,omitempty"`
// The ID of the Account for this Statement.
AccountId string `json:"accountId,omitempty"`
// The name of the document for this Statement.
Name string `json:"name,omitempty"`
// List of attributes for a binary item, e.g description, creation time...
Attributes []Attribute `json:"attributes,omitempty"`
// ISO 8601 date of creation
DateCreated string `json:"dateCreated,omitempty"`
// ISO 8601 date of revision
DateRevised string `json:"dateRevised,omitempty"`
Items BinaryItemList `json:"items,omitempty"`
}
Statement - Account Statement
type StatementApiController ¶
type StatementApiController struct {
// contains filtered or unexported fields
}
A StatementApiController binds http requests to an api service and writes the service results to the http response
func (*StatementApiController) GetAccountStatementItem ¶
func (c *StatementApiController) GetAccountStatementItem(w http.ResponseWriter, r *http.Request)
GetAccountStatementItem - Return a binary item for a statement
func (*StatementApiController) GetAccountStatementItems ¶
func (c *StatementApiController) GetAccountStatementItems(w http.ResponseWriter, r *http.Request)
GetAccountStatementItems - Return the list of content items associated with a statement
func (*StatementApiController) GetStatementItem ¶
func (c *StatementApiController) GetStatementItem(w http.ResponseWriter, r *http.Request)
GetStatementItem - Return a binary item for a statement
func (*StatementApiController) GetStatementItems ¶
func (c *StatementApiController) GetStatementItems(w http.ResponseWriter, r *http.Request)
GetStatementItems - Return the list of content items associated with a statement
func (*StatementApiController) Routes ¶
func (c *StatementApiController) Routes() Routes
Routes returns all of the api route for the StatementApiController
type StatementApiRouter ¶
type StatementApiRouter interface {
GetAccountStatementItem(http.ResponseWriter, *http.Request)
GetAccountStatementItems(http.ResponseWriter, *http.Request)
GetStatementItem(http.ResponseWriter, *http.Request)
GetStatementItems(http.ResponseWriter, *http.Request)
}
StatementApiRouter defines the required methods for binding the api requests to a responses for the StatementApi The StatementApiRouter implementation should parse necessary information from the http request, pass the data to a StatementApiServicer to perform the required actions, then write the service results to the http response.
type StatementApiService ¶
type StatementApiService struct {
}
StatementApiService is a service that implents the logic for the StatementApiServicer This service should implement the business logic for every endpoint for the StatementApi API. Include any external packages or services that will be required by this service.
func (*StatementApiService) GetAccountStatementItem ¶
func (s *StatementApiService) GetAccountStatementItem(ctx context.Context, accountId string, statementId string, itemId string, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetAccountStatementItem - Return a binary item for a statement
func (*StatementApiService) GetAccountStatementItems ¶
func (s *StatementApiService) GetAccountStatementItems(ctx context.Context, accountId string, statementId string, inline bool, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetAccountStatementItems - Return the list of content items associated with a statement
func (*StatementApiService) GetStatementItem ¶
func (s *StatementApiService) GetStatementItem(ctx context.Context, statementId string, itemId string, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetStatementItem - Return a binary item for a statement
func (*StatementApiService) GetStatementItems ¶
func (s *StatementApiService) GetStatementItems(ctx context.Context, statementId string, inline bool, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetStatementItems - Return the list of content items associated with a statement
type StatementApiServicer ¶
type StatementApiServicer interface {
GetAccountStatementItem(context.Context, string, string, string, bool, bool, string, string) (ImplResponse, error)
GetAccountStatementItems(context.Context, string, string, bool, bool, bool, string, string) (ImplResponse, error)
GetStatementItem(context.Context, string, string, bool, bool, string, string) (ImplResponse, error)
GetStatementItems(context.Context, string, bool, bool, bool, string, string) (ImplResponse, error)
}
StatementApiServicer defines the api actions for the StatementApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewStatementApiService ¶
func NewStatementApiService() StatementApiServicer
NewStatementApiService creates a default api service
type StatementsApiController ¶
type StatementsApiController struct {
// contains filtered or unexported fields
}
A StatementsApiController binds http requests to an api service and writes the service results to the http response
func (*StatementsApiController) GetAccountStatements ¶
func (c *StatementsApiController) GetAccountStatements(w http.ResponseWriter, r *http.Request)
GetAccountStatements - Return a list of statements for a given account
func (*StatementsApiController) Routes ¶
func (c *StatementsApiController) Routes() Routes
Routes returns all of the api route for the StatementsApiController
type StatementsApiRouter ¶
type StatementsApiRouter interface {
GetAccountStatements(http.ResponseWriter, *http.Request)
}
StatementsApiRouter defines the required methods for binding the api requests to a responses for the StatementsApi The StatementsApiRouter implementation should parse necessary information from the http request, pass the data to a StatementsApiServicer to perform the required actions, then write the service results to the http response.
type StatementsApiService ¶
type StatementsApiService struct {
}
StatementsApiService is a service that implents the logic for the StatementsApiServicer This service should implement the business logic for every endpoint for the StatementsApi API. Include any external packages or services that will be required by this service.
func (*StatementsApiService) GetAccountStatements ¶
func (s *StatementsApiService) GetAccountStatements(ctx context.Context, accountId string, mask bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetAccountStatements - Return a list of statements for a given account
type StatementsApiServicer ¶
type StatementsApiServicer interface {
GetAccountStatements(context.Context, string, bool, bool, string, string) (ImplResponse, error)
}
StatementsApiServicer defines the api actions for the StatementsApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewStatementsApiService ¶
func NewStatementsApiService() StatementsApiServicer
NewStatementsApiService creates a default api service
type StatementsList ¶
type StatementsList struct {
// Indicates whether a operation was successful
Status bool `json:"status,omitempty"`
// Potential information or errror messages
Messages []string `json:"messages,omitempty"`
// The total number of list items that exist for the list or query
TotalItems int32 `json:"totalItems,omitempty"`
// The Base64 encoded value that indicates the next cursor. The cursor will be decoded to use as the starting point to fetch the next set of results.
NextCursor string `json:"nextCursor,omitempty"`
// The list of statements
Statements []Statement `json:"statements,omitempty"`
}
type StatementsListAllOf ¶
type StatementsListAllOf struct {
// The list of statements
Statements []Statement `json:"statements,omitempty"`
}
type TaxInformation ¶
type TaxInformation struct {
Type string `json:"type,omitempty"`
// Tax identification value
TaxId string `json:"taxId,omitempty"`
}
TaxInformation - Tax information
type Transaction ¶
type Transaction struct {
// Unique identifier of the entity
EntityId string `json:"entityId,omitempty"`
// Unique identifier of the account in the system of record
AccountId string `json:"accountId,omitempty"`
// Unique identifier of the transaction in the system of record
Id string `json:"id,omitempty"`
// An integer sequence that can be used for ordering transactions within one day.
SequenceInDay int32 `json:"sequenceInDay,omitempty"`
Status TransactionStatus `json:"status,omitempty"`
// The amount of the transaction when it was executed and booked to the account.
ExecutedAmount float32 `json:"executedAmount,omitempty"`
// The currency code of the executed amount
ExecutedCurrencyCode string `json:"executedCurrencyCode,omitempty"`
// The exchange rate used to convert the originating amount to the executing amount
ExchangeRate float32 `json:"exchangeRate,omitempty"`
// The originating amount of the transaction when it was originally submitted to the account.
OriginatingAmount float32 `json:"originatingAmount,omitempty"`
// The currency code of the originating transaction amount
OriginatingCurrencyCode string `json:"originatingCurrencyCode,omitempty"`
Direction string `json:"direction,omitempty"`
// The balance of the account at the moment this transaction was executed
RunningBalance float32 `json:"runningBalance,omitempty"`
// ISO 6801 date of when the transaction was created in the system of record
CreatedDate string `json:"createdDate,omitempty"`
// ISO 6801 date of when the transaction was posted to the account
PostedDate string `json:"postedDate,omitempty"`
// ISO 6801 date of when the transaction was executed and booked to the account
ExecutedDate string `json:"executedDate,omitempty"`
// ISO 6801 date of when the transaction was updated on the account
UpdatedDate string `json:"updatedDate,omitempty"`
// Unique identifier of the transaction in the system of record
Description string `json:"description,omitempty"`
// Additional information about the transaction
Memo string `json:"memo,omitempty"`
// The grouping of this transaction in the system of record
Group string `json:"group,omitempty"`
// The type of this transaction in the system of record
Type string `json:"type,omitempty"`
// The main category of the transaction
MainCategory string `json:"mainCategory,omitempty"`
// The sub category of the transaction
SubCategory string `json:"subCategory,omitempty"`
// The check number associated with the transaction in case it was a check
CheckNumber string `json:"checkNumber,omitempty"`
Images BinaryItemList `json:"images,omitempty"`
// The latitude coordinate where the transaction took place
Latitude string `json:"latitude,omitempty"`
// The longitude coordinate where the transaction took place
Longitude string `json:"longitude,omitempty"`
// The code used to identify the merchant for the transaction
MerchantCode string `json:"merchantCode,omitempty"`
// true if this transaction is a reversal, false otherwise.
Reversal bool `json:"reversal,omitempty"`
// The transaction identifier this transaction is reversing
ReversalFor string `json:"reversalFor,omitempty"`
// true if this transaction has been reversed, false otherwise.
Reversed bool `json:"reversed,omitempty"`
// The transaction identifier this transaction was reversed by
ReversedBy string `json:"reversedBy,omitempty"`
Transactor Transactor `json:"transactor,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}
Transaction - Transaction object
type TransactionStatus ¶
type TransactionStatus string
TransactionStatus : The status of the transaction
const ( PENDING TransactionStatus = "PENDING" POSTED TransactionStatus = "POSTED" )
List of TransactionStatus
type TransactionsApiController ¶
type TransactionsApiController struct {
// contains filtered or unexported fields
}
A TransactionsApiController binds http requests to an api service and writes the service results to the http response
func (*TransactionsApiController) GetAccountTransaction ¶
func (c *TransactionsApiController) GetAccountTransaction(w http.ResponseWriter, r *http.Request)
GetAccountTransaction - Return a given accounts transaction
func (*TransactionsApiController) GetAccountTransactionImage ¶
func (c *TransactionsApiController) GetAccountTransactionImage(w http.ResponseWriter, r *http.Request)
GetAccountTransactionImage - Return a given image
func (*TransactionsApiController) GetAccountTransactionImages ¶
func (c *TransactionsApiController) GetAccountTransactionImages(w http.ResponseWriter, r *http.Request)
GetAccountTransactionImages - Return the binary images for a given transaction
func (*TransactionsApiController) GetAccountTransactions ¶
func (c *TransactionsApiController) GetAccountTransactions(w http.ResponseWriter, r *http.Request)
GetAccountTransactions - Return a accounts transactions
func (*TransactionsApiController) Routes ¶
func (c *TransactionsApiController) Routes() Routes
Routes returns all of the api route for the TransactionsApiController
func (*TransactionsApiController) SearchTransactions ¶
func (c *TransactionsApiController) SearchTransactions(w http.ResponseWriter, r *http.Request)
SearchTransactions - Search for transactions
type TransactionsApiRouter ¶
type TransactionsApiRouter interface {
GetAccountTransaction(http.ResponseWriter, *http.Request)
GetAccountTransactionImage(http.ResponseWriter, *http.Request)
GetAccountTransactionImages(http.ResponseWriter, *http.Request)
GetAccountTransactions(http.ResponseWriter, *http.Request)
SearchTransactions(http.ResponseWriter, *http.Request)
}
TransactionsApiRouter defines the required methods for binding the api requests to a responses for the TransactionsApi The TransactionsApiRouter implementation should parse necessary information from the http request, pass the data to a TransactionsApiServicer to perform the required actions, then write the service results to the http response.
type TransactionsApiService ¶
type TransactionsApiService struct {
}
TransactionsApiService is a service that implents the logic for the TransactionsApiServicer This service should implement the business logic for every endpoint for the TransactionsApi API. Include any external packages or services that will be required by this service.
func (*TransactionsApiService) GetAccountTransaction ¶
func (s *TransactionsApiService) GetAccountTransaction(ctx context.Context, accountId string, transactionId string, mask bool, inline bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetAccountTransaction - Return a given accounts transaction
func (*TransactionsApiService) GetAccountTransactionImage ¶
func (s *TransactionsApiService) GetAccountTransactionImage(ctx context.Context, accountId string, itemId string, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetAccountTransactionImage - Return a given image
func (*TransactionsApiService) GetAccountTransactionImages ¶
func (s *TransactionsApiService) GetAccountTransactionImages(ctx context.Context, accountId string, transactionId string, mask bool, inline bool, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetAccountTransactionImages - Return the binary images for a given transaction
func (*TransactionsApiService) GetAccountTransactions ¶
func (s *TransactionsApiService) GetAccountTransactions(ctx context.Context, accountId string, mask bool, startDateTime string, endDateTime string, reversedInRunning bool, limit int32, cursor string, status TransactionStatus, enhance bool, xTRACEID string, xTOKEN string) (ImplResponse, error)
GetAccountTransactions - Return a accounts transactions
func (*TransactionsApiService) SearchTransactions ¶
func (s *TransactionsApiService) SearchTransactions(ctx context.Context, limit int32, cursor string, mask bool, enhance bool, xTRACEID string, xTOKEN string, searchFilter []SearchFilter) (ImplResponse, error)
SearchTransactions - Search for transactions
type TransactionsApiServicer ¶
type TransactionsApiServicer interface {
GetAccountTransaction(context.Context, string, string, bool, bool, bool, string, string) (ImplResponse, error)
GetAccountTransactionImage(context.Context, string, string, string, string) (ImplResponse, error)
GetAccountTransactionImages(context.Context, string, string, bool, bool, bool, string, string) (ImplResponse, error)
GetAccountTransactions(context.Context, string, bool, string, string, bool, int32, string, TransactionStatus, bool, string, string) (ImplResponse, error)
SearchTransactions(context.Context, int32, string, bool, bool, string, string, []SearchFilter) (ImplResponse, error)
}
TransactionsApiServicer defines the api actions for the TransactionsApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewTransactionsApiService ¶
func NewTransactionsApiService() TransactionsApiServicer
NewTransactionsApiService creates a default api service
type TransactionsList ¶
type TransactionsList struct {
// Indicates whether a operation was successful
Status bool `json:"status,omitempty"`
// Potential information or errror messages
Messages []string `json:"messages,omitempty"`
// The total number of list items that exist for the list or query
TotalItems int32 `json:"totalItems,omitempty"`
// The Base64 encoded value that indicates the next cursor. The cursor will be decoded to use as the starting point to fetch the next set of results.
NextCursor string `json:"nextCursor,omitempty"`
// The list of transactions
Transactions []Transaction `json:"transactions,omitempty"`
}
type TransactionsListAllOf ¶
type TransactionsListAllOf struct {
// The list of transactions
Transactions []Transaction `json:"transactions,omitempty"`
}
type Transactor ¶
type Transactor struct {
// The type of profile
Type string `json:"type,omitempty"`
// Unique identifier of the entity
Id string `json:"id"`
// The fullname of a the entity
Fullname string `json:"fullname,omitempty"`
// The legal firstname of the person
Firstname string `json:"firstname,omitempty"`
// The legal lastname/surname of the person
Lastname string `json:"lastname,omitempty"`
// ISO 8601 Date of Birth
DateOfBirth string `json:"dateOfBirth,omitempty"`
// Entity addresses
Addresses []Address `json:"addresses,omitempty"`
// Entity contact points
ContactPoints []ContactPoint `json:"contactPoints,omitempty"`
// Entity preferences
Preferences []Attribute `json:"preferences,omitempty"`
// Entity tax information
TaxInformation []TaxInformation `json:"taxInformation,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
// Standard format of Business Identifier Codes (bic), unique identification code
Swift string `json:"swift,omitempty"`
// A bank code is a code assigned by a central bank, a bank supervisory body or a Bankers Association in a country to all its licensed member banks or financial institutions.
BankCode string `json:"bankCode,omitempty"`
// The financial institution name
BankName string `json:"bankName,omitempty"`
// The branch code of a bank branch helps in distinguishing one branch from another
BranchCode string `json:"branchCode,omitempty"`
// The account number of the transactor performing the transaction
AccountNumber string `json:"accountNumber,omitempty"`
}
Transactor - Person or Entity that performed a transaction
type TransactorAllOf ¶
type TransactorAllOf struct {
// The account number of the transactor performing the transaction
AccountNumber string `json:"accountNumber,omitempty"`
}
Source Files
¶
- api.go
- api_accounts.go
- api_accounts_service.go
- api_cache.go
- api_cache_service.go
- api_cards.go
- api_cards_service.go
- api_entity.go
- api_entity_service.go
- api_exchange.go
- api_exchange_service.go
- api_products.go
- api_products_service.go
- api_statement.go
- api_statement_service.go
- api_statements.go
- api_statements_service.go
- api_transactions.go
- api_transactions_service.go
- helpers.go
- impl.go
- logger.go
- model_account.go
- model_account_creditor.go
- model_account_debtor.go
- model_accounts_list.go
- model_accounts_list_all_of.go
- model_address.go
- model_attribute.go
- model_balances.go
- model_bank.go
- model_base_error_properties.go
- model_base_list_properties.go
- model_binary_item.go
- model_binary_item_list.go
- model_binary_item_list_all_of.go
- model_cache_reference.go
- model_cache_statistics.go
- model_cache_statistics_list.go
- model_cache_statistics_list_all_of.go
- model_card.go
- model_cards_list.go
- model_cards_list_all_of.go
- model_contact_point.go
- model_credit_information.go
- model_creditor.go
- model_debtor.go
- model_entity.go
- model_entity_creditor.go
- model_entity_debtor.go
- model_entity_list.go
- model_entity_list_all_of.go
- model_entity_profile.go
- model_error_response.go
- model_exchange_transaction.go
- model_exchange_transaction_result.go
- model_exchange_transactions_list.go
- model_exchange_transactions_list_all_of.go
- model_fee.go
- model_finite_event.go
- model_finite_type.go
- model_finite_uri.go
- model_interest.go
- model_intermediate_institution.go
- model_intermediate_institution_all_of.go
- model_product.go
- model_products_list.go
- model_products_list_all_of.go
- model_relationship.go
- model_relationship_all_of.go
- model_remittance_information.go
- model_routing_number.go
- model_schedule.go
- model_search_filter.go
- model_security_information.go
- model_statement.go
- model_statements_list.go
- model_statements_list_all_of.go
- model_tax_information.go
- model_transaction.go
- model_transaction_status.go
- model_transactions_list.go
- model_transactions_list_all_of.go
- model_transactor.go
- model_transactor_all_of.go
- routers.go