Skip to content

Commit

Permalink
Update with latest OpenAPI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
moneykitt committed Apr 30, 2024
1 parent dcf1e4d commit b73b39a
Show file tree
Hide file tree
Showing 31 changed files with 1,280 additions and 103 deletions.
24 changes: 12 additions & 12 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ docs/Account.md
docs/AccountBalances.md
docs/AccountGroup.md
docs/AccountIdentity.md
docs/AccountNumbers.md
docs/AccountNumbersApi.md
docs/AccountWithAccountNumbers.md
docs/AccountNumbersLegacy20230218.md
docs/AccountWithAccountNumbersLegacy20230218.md
docs/AccountsApi.md
docs/AchNumber.md
docs/Address.md
Expand All @@ -33,7 +33,7 @@ docs/Email.md
docs/ExchangeTokenRequest.md
docs/ExchangeTokenResponse.md
docs/GenerateAccessTokenResponse.md
docs/GetAccountNumbersResponse.md
docs/GetAccountNumbersResponseLegacy20230218.md
docs/GetAccountResponse.md
docs/GetAccountsResponse.md
docs/GetHoldingsResponse.md
Expand Down Expand Up @@ -93,7 +93,7 @@ docs/RequestedLinkPermission.md
docs/Response401DisconnectLinksIdDelete.md
docs/Response401ExchangeTokenLinkSessionExchangeTokenPost.md
docs/Response401GetAccountLinksIdAccountsAccountIdGet.md
docs/Response401GetAccountNumbersLinksIdAccountsNumbersGet.md
docs/Response401GetAccountNumbersLegacy20230218LinksIdAccountsNumbersGet.md
docs/Response401GetAccountsLinksIdAccountsGet.md
docs/Response401GetHoldingsLinksIdInvestmentsHoldingsGet.md
docs/Response401GetIdentitiesLinksIdIdentityGet.md
Expand Down Expand Up @@ -151,8 +151,8 @@ lib/moneykit/models/account.rb
lib/moneykit/models/account_balances.rb
lib/moneykit/models/account_group.rb
lib/moneykit/models/account_identity.rb
lib/moneykit/models/account_numbers.rb
lib/moneykit/models/account_with_account_numbers.rb
lib/moneykit/models/account_numbers_legacy20230218.rb
lib/moneykit/models/account_with_account_numbers_legacy20230218.rb
lib/moneykit/models/ach_number.rb
lib/moneykit/models/address.rb
lib/moneykit/models/api_error_auth_expired_access_token_response.rb
Expand All @@ -173,7 +173,7 @@ lib/moneykit/models/email.rb
lib/moneykit/models/exchange_token_request.rb
lib/moneykit/models/exchange_token_response.rb
lib/moneykit/models/generate_access_token_response.rb
lib/moneykit/models/get_account_numbers_response.rb
lib/moneykit/models/get_account_numbers_response_legacy20230218.rb
lib/moneykit/models/get_account_response.rb
lib/moneykit/models/get_accounts_response.rb
lib/moneykit/models/get_holdings_response.rb
Expand Down Expand Up @@ -227,7 +227,7 @@ lib/moneykit/models/requested_link_permission.rb
lib/moneykit/models/response401_disconnect_links_id_delete.rb
lib/moneykit/models/response401_exchange_token_link_session_exchange_token_post.rb
lib/moneykit/models/response401_get_account_links_id_accounts_account_id_get.rb
lib/moneykit/models/response401_get_account_numbers_links_id_accounts_numbers_get.rb
lib/moneykit/models/response401_get_account_numbers_legacy20230218_links_id_accounts_numbers_get.rb
lib/moneykit/models/response401_get_accounts_links_id_accounts_get.rb
lib/moneykit/models/response401_get_holdings_links_id_investments_holdings_get.rb
lib/moneykit/models/response401_get_identities_links_id_identity_get.rb
Expand Down Expand Up @@ -266,8 +266,8 @@ lib/moneykit/version.rb
moneykit.gemspec
spec/api_client_spec.rb
spec/configuration_spec.rb
spec/models/app_client_response_spec.rb
spec/models/app_response_spec.rb
spec/models/link_product_spec.rb
spec/models/product_settings_spec.rb
spec/models/account_numbers_legacy20230218_spec.rb
spec/models/account_with_account_numbers_legacy20230218_spec.rb
spec/models/get_account_numbers_response_legacy20230218_spec.rb
spec/models/response401_get_account_numbers_legacy20230218_links_id_accounts_numbers_get_spec.rb
spec/spec_helper.rb
24 changes: 12 additions & 12 deletions docs/AccountNumbersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ All URIs are relative to *https://api.moneykit.com*

| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**get_account_numbers**](AccountNumbersApi.md#get_account_numbers) | **GET** /links/{id}/accounts/numbers | /links/{id}/accounts/numbers |
| [**get_account_numbers_legacy20230218**](AccountNumbersApi.md#get_account_numbers_legacy20230218) | **GET** /links/{id}/accounts/numbers | /links/{id}/accounts/numbers |


## get_account_numbers
## get_account_numbers_legacy20230218

> <GetAccountNumbersResponse> get_account_numbers(id)
> <GetAccountNumbersResponseLegacy20230218> get_account_numbers_legacy20230218(id)
/links/{id}/accounts/numbers

Expand All @@ -27,32 +27,32 @@ MoneyKit.configure do |config|
end

api_instance = MoneyKit::AccountNumbersApi.new
id = 'mk_eqkWN34UEoa2NxyALG8pcV' # String | The unique ID for this link.
id = 'id_example' # String | The unique ID for this link.

begin
# /links/{id}/accounts/numbers
result = api_instance.get_account_numbers(id)
result = api_instance.get_account_numbers_legacy20230218(id)
p result
rescue MoneyKit::ApiError => e
puts "Error when calling AccountNumbersApi->get_account_numbers: #{e}"
puts "Error when calling AccountNumbersApi->get_account_numbers_legacy20230218: #{e}"
end
```

#### Using the get_account_numbers_with_http_info variant
#### Using the get_account_numbers_legacy20230218_with_http_info variant

This returns an Array which contains the response data, status code and headers.

> <Array(<GetAccountNumbersResponse>, Integer, Hash)> get_account_numbers_with_http_info(id)
> <Array(<GetAccountNumbersResponseLegacy20230218>, Integer, Hash)> get_account_numbers_legacy20230218_with_http_info(id)
```ruby
begin
# /links/{id}/accounts/numbers
data, status_code, headers = api_instance.get_account_numbers_with_http_info(id)
data, status_code, headers = api_instance.get_account_numbers_legacy20230218_with_http_info(id)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetAccountNumbersResponse>
p data # => <GetAccountNumbersResponseLegacy20230218>
rescue MoneyKit::ApiError => e
puts "Error when calling AccountNumbersApi->get_account_numbers_with_http_info: #{e}"
puts "Error when calling AccountNumbersApi->get_account_numbers_legacy20230218_with_http_info: #{e}"
end
```

Expand All @@ -64,7 +64,7 @@ end

### Return type

[**GetAccountNumbersResponse**](GetAccountNumbersResponse.md)
[**GetAccountNumbersResponseLegacy20230218**](GetAccountNumbersResponseLegacy20230218.md)

### Authorization

Expand Down
24 changes: 24 additions & 0 deletions docs/AccountNumbersLegacy20230218.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# MoneyKit::AccountNumbersLegacy20230218

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **ach** | [**Array&lt;AchNumber&gt;**](AchNumber.md) | | |
| **bacs** | [**Array&lt;BacsNumber&gt;**](BacsNumber.md) | | |
| **eft** | [**Array&lt;EftNumber&gt;**](EftNumber.md) | | |
| **international** | [**Array&lt;InternationalNumber&gt;**](InternationalNumber.md) | | |

## Example

```ruby
require 'moneykit'

instance = MoneyKit::AccountNumbersLegacy20230218.new(
ach: null,
bacs: null,
eft: null,
international: null
)
```

28 changes: 28 additions & 0 deletions docs/AccountWithAccountNumbersLegacy20230218.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# MoneyKit::AccountWithAccountNumbersLegacy20230218

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **account_id** | **String** | MoneyKit&#39;s unique ID for the account. &lt;p&gt;The &#x60;account_id&#x60; is distinct from the institution&#39;s account number. For accounts that may change account numbers from time to time, such as credit cards, MoneyKit attempts to keep the &#x60;account_id&#x60; constant. However, if MoneyKit can&#39;t reconcile the new account data with the old data, the &#x60;account_id&#x60; may change. | |
| **account_type** | **String** | See &lt;a href&#x3D;/pages/account_types&gt;Account Types&lt;/a&gt; for an explanation of account types. Account types are dot-prefixed with one of &#x60;depository&#x60;, &#x60;investment&#x60;, &#x60;liability&#x60;, or &#x60;other&#x60;; or the value is &#x60;unknown&#x60;. &lt;p&gt;**Balances for &#x60;liability&#x60; accounts are reversed:** negative balances (the amount owed) are reported as positive values. For all other types of accounts, a negative balance indicates the amount owed. | |
| **name** | **String** | The account name, according to the institution. Note that some institutions allow the end user to nickname the account; in such cases this field may be the name assigned by the user. | |
| **account_mask** | **String** | The last four characters (usually digits) of the account number. Note that this mask may be non-unique between accounts. | [optional] |
| **balances** | [**AccountBalances**](AccountBalances.md) | | |
| **numbers** | [**AccountNumbersLegacy20230218**](AccountNumbersLegacy20230218.md) | | |

## Example

```ruby
require 'moneykit'

instance = MoneyKit::AccountWithAccountNumbersLegacy20230218.new(
account_id: acc_6Tef269B6ZArSVpYrxtjBV,
account_type: depository.checking,
name: Premier Checking,
account_mask: 3748,
balances: null,
numbers: null
)
```

32 changes: 16 additions & 16 deletions docs/AccountsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All URIs are relative to *https://api.moneykit.com*
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**get_account**](AccountsApi.md#get_account) | **GET** /links/{id}/accounts/{account_id} | /links/{id}/accounts/{account_id} |
| [**get_account_numbers**](AccountsApi.md#get_account_numbers) | **GET** /links/{id}/accounts/numbers | /links/{id}/accounts/numbers |
| [**get_account_numbers_legacy20230218**](AccountsApi.md#get_account_numbers_legacy20230218) | **GET** /links/{id}/accounts/numbers | /links/{id}/accounts/numbers |
| [**get_accounts**](AccountsApi.md#get_accounts) | **GET** /links/{id}/accounts | /links/{id}/accounts |
| [**get_user_accounts**](AccountsApi.md#get_user_accounts) | **GET** /users/{id}/accounts | /users/{id}/accounts |

Expand All @@ -30,8 +30,8 @@ MoneyKit.configure do |config|
end

api_instance = MoneyKit::AccountsApi.new
id = 'mk_eqkWN34UEoa2NxyALG8pcV' # String | The unique ID for this link.
account_id = 'acc_6Tef269B6ZArSVpYrxtjBV' # String | The account ID to fetch.
id = 'id_example' # String | The unique ID for this link.
account_id = 'account_id_example' # String | The account ID to fetch.

begin
# /links/{id}/accounts/{account_id}
Expand Down Expand Up @@ -81,9 +81,9 @@ end
- **Accept**: application/json


## get_account_numbers
## get_account_numbers_legacy20230218

> <GetAccountNumbersResponse> get_account_numbers(id)
> <GetAccountNumbersResponseLegacy20230218> get_account_numbers_legacy20230218(id)
/links/{id}/accounts/numbers

Expand All @@ -101,32 +101,32 @@ MoneyKit.configure do |config|
end

api_instance = MoneyKit::AccountsApi.new
id = 'mk_eqkWN34UEoa2NxyALG8pcV' # String | The unique ID for this link.
id = 'id_example' # String | The unique ID for this link.

begin
# /links/{id}/accounts/numbers
result = api_instance.get_account_numbers(id)
result = api_instance.get_account_numbers_legacy20230218(id)
p result
rescue MoneyKit::ApiError => e
puts "Error when calling AccountsApi->get_account_numbers: #{e}"
puts "Error when calling AccountsApi->get_account_numbers_legacy20230218: #{e}"
end
```

#### Using the get_account_numbers_with_http_info variant
#### Using the get_account_numbers_legacy20230218_with_http_info variant

This returns an Array which contains the response data, status code and headers.

> <Array(<GetAccountNumbersResponse>, Integer, Hash)> get_account_numbers_with_http_info(id)
> <Array(<GetAccountNumbersResponseLegacy20230218>, Integer, Hash)> get_account_numbers_legacy20230218_with_http_info(id)
```ruby
begin
# /links/{id}/accounts/numbers
data, status_code, headers = api_instance.get_account_numbers_with_http_info(id)
data, status_code, headers = api_instance.get_account_numbers_legacy20230218_with_http_info(id)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetAccountNumbersResponse>
p data # => <GetAccountNumbersResponseLegacy20230218>
rescue MoneyKit::ApiError => e
puts "Error when calling AccountsApi->get_account_numbers_with_http_info: #{e}"
puts "Error when calling AccountsApi->get_account_numbers_legacy20230218_with_http_info: #{e}"
end
```

Expand All @@ -138,7 +138,7 @@ end

### Return type

[**GetAccountNumbersResponse**](GetAccountNumbersResponse.md)
[**GetAccountNumbersResponseLegacy20230218**](GetAccountNumbersResponseLegacy20230218.md)

### Authorization

Expand Down Expand Up @@ -170,7 +170,7 @@ MoneyKit.configure do |config|
end

api_instance = MoneyKit::AccountsApi.new
id = 'mk_eqkWN34UEoa2NxyALG8pcV' # String | The unique ID for this link.
id = 'id_example' # String | The unique ID for this link.
opts = {
account_ids: ['inner_example'] # Array<String> | An optional list of account IDs to filter the results.
}
Expand Down Expand Up @@ -243,7 +243,7 @@ MoneyKit.configure do |config|
end

api_instance = MoneyKit::AccountsApi.new
id = 'MyUser1234' # String | The unique ID for this user. This is the same ID provided in the call to <a href=#operation/create_link_session>/link-session</a> to create any link for this user.
id = 'id_example' # String | The unique ID for this user. This is the same ID provided in the call to <a href=#operation/create_link_session>/link-session</a> to create any link for this user.
opts = {
account_ids: ['inner_example'], # Array<String> | If present, filters results to accounts matching the given IDs.
institution_ids: ['inner_example'] # Array<String> | If present, filters results to accounts at institutions matching the given IDs.
Expand Down
20 changes: 20 additions & 0 deletions docs/GetAccountNumbersResponseLegacy20230218.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# MoneyKit::GetAccountNumbersResponseLegacy20230218

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **accounts** | [**Array&lt;AccountWithAccountNumbersLegacy20230218&gt;**](AccountWithAccountNumbersLegacy20230218.md) | | |
| **link** | [**LinkCommon**](LinkCommon.md) | | |

## Example

```ruby
require 'moneykit'

instance = MoneyKit::GetAccountNumbersResponseLegacy20230218.new(
accounts: null,
link: null
)
```

2 changes: 1 addition & 1 deletion docs/IdentityApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MoneyKit.configure do |config|
end

api_instance = MoneyKit::IdentityApi.new
id = 'mk_eqkWN34UEoa2NxyALG8pcV' # String | The unique ID for this link.
id = 'id_example' # String | The unique ID for this link.
opts = {
account_ids: ['inner_example'] # Array<String> | An optional list of account IDs to filter the results.
}
Expand Down
4 changes: 2 additions & 2 deletions docs/InstitutionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ MoneyKit.configure do |config|
end

api_instance = MoneyKit::InstitutionsApi.new
institution_id = 'chase' # String | The institution ID to fetch.
institution_id = 'institution_id_example' # String | The institution ID to fetch.

begin
# /institutions/{institution_id}
Expand Down Expand Up @@ -98,7 +98,7 @@ end

api_instance = MoneyKit::InstitutionsApi.new
opts = {
name: 'Chase', # String | If provided, returns only institutions containing this name (wholly or as a prefix).
name: 'name_example', # String | If provided, returns only institutions containing this name (wholly or as a prefix).
featured: true, # Boolean | If true, returns only featured institutions.
cursor: 'cursor_example', # String | Cursor to fetch the next set of institutions. (You get this value from the previous call to `/institutions`.)
limit: 56 # Integer | A limit on the number of institutions to be returned.
Expand Down
4 changes: 2 additions & 2 deletions docs/InvestmentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ MoneyKit.configure do |config|
end

api_instance = MoneyKit::InvestmentsApi.new
id = 'mk_eqkWN34UEoa2NxyALG8pcV' # String | The unique ID for this link.
id = 'id_example' # String | The unique ID for this link.
opts = {
account_ids: ['inner_example'] # Array<String> | An optional list of account IDs to filter the results.
}
Expand Down Expand Up @@ -101,7 +101,7 @@ MoneyKit.configure do |config|
end

api_instance = MoneyKit::InvestmentsApi.new
id = 'mk_eqkWN34UEoa2NxyALG8pcV' # String | The unique ID for this link.
id = 'id_example' # String | The unique ID for this link.
opts = {
account_ids: ['inner_example'], # Array<String> | An optional list of account IDs to filter the results.
page: 56, # Integer | The page number to return.
Expand Down
Loading

0 comments on commit b73b39a

Please sign in to comment.