Skip to content

Commit d97787b

Browse files
author
Alexander Geist
committed
finapi adapter
1 parent 170917a commit d97787b

File tree

333 files changed

+42882
-29
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+42882
-29
lines changed

finapi-adapter/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*.class
2+
3+
# Mobile Tools for Java (J2ME)
4+
.mtj.tmp/
5+
6+
# Package Files #
7+
*.jar
8+
*.war
9+
*.ear
10+
11+
# exclude jar for gradle wrapper
12+
!gradle/wrapper/*.jar
13+
14+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
15+
hs_err_pid*
16+
17+
# build files
18+
**/target
19+
target
20+
.gradle
21+
build
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

finapi-adapter/.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
3+
#
4+
language: java
5+
jdk:
6+
- oraclejdk8
7+
- oraclejdk7
8+
before_install:
9+
# ensure gradlew has proper permission
10+
- chmod a+x ./gradlew
11+
script:
12+
# test using maven
13+
- mvn test
14+
# uncomment below to test using gradle
15+
# - gradle test
16+
# uncomment below to test using sbt
17+
# - sbt test

finapi-adapter/README.md

Lines changed: 327 additions & 0 deletions
Large diffs are not rendered by default.

finapi-adapter/assembly.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!-- Descriptor to bring dependents modules to this project. -->
2+
<assembly>
3+
<id>module</id>
4+
<formats>
5+
<format>dir</format>
6+
</formats>
7+
8+
<includeBaseDirectory>false</includeBaseDirectory>
9+
10+
<dependencySets>
11+
<dependencySet>
12+
<scope>compile</scope>
13+
<unpack>false</unpack>
14+
<useProjectArtifact>true</useProjectArtifact>
15+
<useTransitiveDependencies>true</useTransitiveDependencies>
16+
<outputFileNameMapping>${artifact.artifactId}-${artifact.version}.${artifact.extension}</outputFileNameMapping>
17+
</dependencySet>
18+
</dependencySets>
19+
20+
</assembly>

finapi-adapter/docs/AccessToken.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# AccessToken
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**scope** | **String** | Requested scopes (it&#39;s always &#39;all&#39;) |
8+
**accessToken** | **String** | Access token |
9+
**refreshToken** | **String** | Refresh token. Only set in case of grant_type&#x3D;&#39;password&#39;. | [optional]
10+
**tokenType** | **String** | Token type (it&#39;s always &#39;bearer&#39;) |
11+
**expiresIn** | **Integer** | Expiration time in seconds. A value of 0 means that the token never expires (unless it is explicitly invalidated, e.g. by revocation, or when a user gets locked). |
12+
13+
14+

finapi-adapter/docs/Account.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
# Account
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**id** | **Long** | Account identifier |
8+
**bankConnectionId** | **Long** | Identifier of the bank connection that this account belongs to |
9+
**accountName** | **String** | Account name | [optional]
10+
**accountNumber** | **String** | (National) account number. Note that this value might change whenever the account is updated (for example, leading zeros might be added or removed). |
11+
**subAccountNumber** | **String** | Account&#39;s sub-account-number. Note that this field can change from &#39;null&#39; to a value - or vice versa - any time when the account is being updated. This is subject to changes within the bank&#39;s internal account management. | [optional]
12+
**iban** | **String** | Account&#39;s IBAN. Note that this field can change from &#39;null&#39; to a value - or vice versa - any time when the account is being updated. This is subject to changes within the bank&#39;s internal account management. | [optional]
13+
**accountHolderName** | **String** | Name of the account holder | [optional]
14+
**accountHolderId** | **String** | Bank&#39;s internal identification of the account holder | [optional]
15+
**accountCurrency** | **String** | Account&#39;s currency | [optional]
16+
**accountTypeId** | **Long** | Identifier of the account&#39;s type. Note that, in general, the type of an account can change any time when the account is being updated. This is subject to changes within the bank&#39;s internal account management. However, if the account&#39;s type has previously been changed explicitly (via the PATCH method), then the explicitly set type will NOT be automatically changed anymore, even if the type has changed on the bank side. &lt;br/&gt;1 &#x3D; Checking,&lt;br/&gt;2 &#x3D; Savings,&lt;br/&gt;3 &#x3D; CreditCard,&lt;br/&gt;4 &#x3D; Security,&lt;br/&gt;5 &#x3D; Loan,&lt;br/&gt;6 &#x3D; Pocket (DEPRECATED; will not be returned for any account unless this type has explicitly been set via PATCH),&lt;br/&gt;7 &#x3D; Membership&lt;br/&gt; |
17+
**accountTypeName** | **String** | Name of the account&#39;s type |
18+
**balance** | [**BigDecimal**](BigDecimal.md) | Current account balance | [optional]
19+
**overdraft** | [**BigDecimal**](BigDecimal.md) | Current overdraft | [optional]
20+
**overdraftLimit** | [**BigDecimal**](BigDecimal.md) | Overdraft limit | [optional]
21+
**availableFunds** | [**BigDecimal**](BigDecimal.md) | Current available funds. Note that this field is only set if finAPI can make a definite statement about the current available funds. This might not always be the case, for example if there is not enough information available about the overdraft limit and current overdraft. | [optional]
22+
**lastSuccessfulUpdate** | **String** | Timestamp of when the account was last successfully updated (or initially imported); more precisely: time when the account data (balance and positions) has been stored into the finAPI databases. The value is returned in the format &#39;yyyy-MM-dd HH:mm:ss.SSS&#39; (german time). | [optional]
23+
**lastUpdateAttempt** | **String** | Timestamp of when the account was last tried to be updated (or initially imported); more precisely: time when the update (or initial import) was triggered. The value is returned in the format &#39;yyyy-MM-dd HH:mm:ss.SSS&#39; (german time). | [optional]
24+
**isNew** | **Boolean** | Indicating whether this account is &#39;new&#39; or not. Any newly imported account will have this flag initially set to true, and remain so until you set it to false (see PATCH /accounts/&lt;id&gt;). How you use this field is up to your interpretation, however it is recommended to set the flag to false for all accounts right after the initial import of the bank connection. This way, you will be able recognize accounts that get newly imported during a later update of the bank connection, by checking for any accounts with the flag set to true right after an update. |
25+
**status** | [**StatusEnum**](#StatusEnum) | The current status of the account. Possible values are:&lt;br/&gt;&amp;bull; &lt;code&gt;UPDATED&lt;/code&gt; means that the account is up to date from finAPI&#39;s point of view. This means that no current import/update is running, and the previous import/update could successfully update the account&#39;s data (e.g. transactions and securities), and the bank given balance matched the transaction&#39;s calculated sum, meaning that no &#39;Zwischensaldo&#39; was inserted.&lt;br/&gt;&amp;bull; &lt;code&gt;UPDATED_FIXED&lt;/code&gt; means that the account is up to date from finAPI&#39;s point of view (no current import/update is running, and the previous import/update could successfully update the account&#39;s data), BUT there was a deviation in the bank given balance which was fixed by a &#39;Zwischensaldo&#39; transaction.&lt;br/&gt;&amp;bull; &lt;code&gt;DOWNLOAD_IN_PROGRESS&lt;/code&gt; means that the account&#39;s data is currently being imported/updated.&lt;br/&gt;&amp;bull; &lt;code&gt;DOWNLOAD_FAILED&lt;/code&gt; means that the account data could not get successfully imported or updated. Possible reasons: finAPI could not get the account&#39;s balance, or it could not parse all transactions/securities, or some internal error has occurred. Also, it could mean that finAPI could not even get to the point of receiving the account data from the bank server, for example because of incorrect login credentials or a network problem. Note however that when we get a balance and just an empty list of transactions or securities, then this is regarded as valid and successful download. The reason for this is that for some accounts that have little activity, we may actually get no recent transactions but only a balance.&lt;br/&gt;&amp;bull; &lt;code&gt;DEPRECATED&lt;/code&gt; means that the account could no longer get matched with any account from the bank server. This can mean either that the account was terminated by the user and is no longer sent by the bank server, or that finAPI could no longer match it because the account&#39;s data (name, type, iban, account number, etc.) has been changed by the bank. |
26+
27+
28+
<a name="StatusEnum"></a>
29+
## Enum: StatusEnum
30+
Name | Value
31+
---- | -----
32+
UPDATED | &quot;UPDATED&quot;
33+
UPDATED_FIXED | &quot;UPDATED_FIXED&quot;
34+
DOWNLOAD_IN_PROGRESS | &quot;DOWNLOAD_IN_PROGRESS&quot;
35+
DOWNLOAD_FAILED | &quot;DOWNLOAD_FAILED&quot;
36+
DEPRECATED | &quot;DEPRECATED&quot;
37+
38+
39+

finapi-adapter/docs/AccountList.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# AccountList
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**accounts** | [**List&lt;InlineResponse200Accounts&gt;**](InlineResponse200Accounts.md) | List of bank accounts | [optional]
8+
9+
10+

finapi-adapter/docs/AccountParams.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# AccountParams
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**accountName** | **String** | Account name. Maximum length is 512. | [optional]
8+
**accountTypeId** | **Long** | Identifier of account type.&lt;br/&gt;&lt;br/&gt;1 &#x3D; Checking,&lt;br/&gt;2 &#x3D; Savings,&lt;br/&gt;3 &#x3D; CreditCard,&lt;br/&gt;4 &#x3D; Security,&lt;br/&gt;5 &#x3D; Loan,&lt;br/&gt;6 &#x3D; Pocket (DEPRECATED; will not be returned for any account unless this type has explicitly been set via PATCH),&lt;br/&gt;7 &#x3D; Membership&lt;br/&gt;&lt;br/&gt; | [optional]
9+
**isNew** | **Boolean** | Whether this account should be flagged as &#39;new&#39; or not. Any newly imported account will have this flag initially set to true, and remain so until you set it to false (see PATCH /accounts/&lt;id&gt;). How you use this field is up to your interpretation, however it is recommended to set the flag to false for all accounts right after the initial import of the bank connection. This way, you will be able recognize accounts that get newly imported during a later update of the bank connection, by checking for any accounts with the flag set to true after every update of the bank connection. | [optional]
10+
11+
12+

0 commit comments

Comments
 (0)