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 Dec 6, 2023
1 parent 1f48a89 commit 8d92c0d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 25 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ require 'moneykit'

# Setup authorization
MoneyKit.configure do |config|
# Defaults to MoneyKit-Version: 2023-02-18
# Configure Bearer authorization
config.host = ENV['MONEYKIT_URL'] || 'https://api.moneykit.com'
end
Expand Down
16 changes: 8 additions & 8 deletions docs/TransactionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ 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.
size: 56, # Integer | The number of items to return per page.
start_date: 'start_date_example', # String | The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`.
end_date: 'end_date_example', # String | The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
start_date: Date.parse('2013-10-20'), # Date | The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`.
end_date: Date.parse('2013-10-20'), # Date | The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
moneykit_version: 'moneykit_version_example' # String |
}

Expand Down Expand Up @@ -74,8 +74,8 @@ end
| **account_ids** | [**Array&lt;String&gt;**](String.md) | An optional list of account IDs to filter the results. | [optional] |
| **page** | **Integer** | The page number to return. | [optional][default to 1] |
| **size** | **Integer** | The number of items to return per page. | [optional][default to 50] |
| **start_date** | **String** | The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;. | [optional] |
| **end_date** | **String** | The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today. | [optional] |
| **start_date** | **Date** | The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;. | [optional] |
| **end_date** | **Date** | The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today. | [optional] |
| **moneykit_version** | **String** | | [optional][default to &#39;2023-02-18&#39;] |

### Return type
Expand Down Expand Up @@ -197,8 +197,8 @@ opts = {
institution_id: ['inner_example'], # Array<String> | If present, filters results to transactions at institutions matching the given IDs.
page: 56, # Integer | The page number to return.
size: 56, # Integer | The number of items to return per page.
start_date: 'start_date_example', # String | The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`.
end_date: 'end_date_example', # String | The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
start_date: Date.parse('2013-10-20'), # Date | The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`.
end_date: Date.parse('2013-10-20'), # Date | The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
moneykit_version: 'moneykit_version_example' # String |
}

Expand Down Expand Up @@ -240,8 +240,8 @@ end
| **institution_id** | [**Array&lt;String&gt;**](String.md) | If present, filters results to transactions at institutions matching the given IDs. | [optional] |
| **page** | **Integer** | The page number to return. | [optional][default to 1] |
| **size** | **Integer** | The number of items to return per page. | [optional][default to 50] |
| **start_date** | **String** | The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;. | [optional] |
| **end_date** | **String** | The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today. | [optional] |
| **start_date** | **Date** | The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;. | [optional] |
| **end_date** | **Date** | The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today. | [optional] |
| **moneykit_version** | **String** | | [optional][default to &#39;2023-02-18&#39;] |

### Return type
Expand Down
8 changes: 4 additions & 4 deletions docs/UsersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ opts = {
institution_id: ['inner_example'], # Array<String> | If present, filters results to transactions at institutions matching the given IDs.
page: 56, # Integer | The page number to return.
size: 56, # Integer | The number of items to return per page.
start_date: 'start_date_example', # String | The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`.
end_date: 'end_date_example', # String | The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
start_date: Date.parse('2013-10-20'), # Date | The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`.
end_date: Date.parse('2013-10-20'), # Date | The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
moneykit_version: 'moneykit_version_example' # String |
}

Expand Down Expand Up @@ -230,8 +230,8 @@ end
| **institution_id** | [**Array&lt;String&gt;**](String.md) | If present, filters results to transactions at institutions matching the given IDs. | [optional] |
| **page** | **Integer** | The page number to return. | [optional][default to 1] |
| **size** | **Integer** | The number of items to return per page. | [optional][default to 50] |
| **start_date** | **String** | The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;. | [optional] |
| **end_date** | **String** | The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today. | [optional] |
| **start_date** | **Date** | The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;. | [optional] |
| **end_date** | **Date** | The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today. | [optional] |
| **moneykit_version** | **String** | | [optional][default to &#39;2023-02-18&#39;] |

### Return type
Expand Down
16 changes: 8 additions & 8 deletions lib/moneykit/api/transactions_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def initialize(api_client = ApiClient.default)
# @option opts [Array<String>] :account_ids An optional list of account IDs to filter the results.
# @option opts [Integer] :page The page number to return. (default to 1)
# @option opts [Integer] :size The number of items to return per page. (default to 50)
# @option opts [String] :start_date The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;.
# @option opts [String] :end_date The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
# @option opts [Date] :start_date The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;.
# @option opts [Date] :end_date The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
# @option opts [String] :moneykit_version (default to '2023-02-18')
# @return [GetTransactionsResponse]
def get_transactions(id, opts = {})
Expand All @@ -42,8 +42,8 @@ def get_transactions(id, opts = {})
# @option opts [Array<String>] :account_ids An optional list of account IDs to filter the results.
# @option opts [Integer] :page The page number to return. (default to 1)
# @option opts [Integer] :size The number of items to return per page. (default to 50)
# @option opts [String] :start_date The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;.
# @option opts [String] :end_date The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
# @option opts [Date] :start_date The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;.
# @option opts [Date] :end_date The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
# @option opts [String] :moneykit_version (default to '2023-02-18')
# @return [Array<(GetTransactionsResponse, Integer, Hash)>] GetTransactionsResponse data, response status code and response headers
def get_transactions_with_http_info(id, opts = {})
Expand Down Expand Up @@ -202,8 +202,8 @@ def get_transactions_diff_with_http_info(id, opts = {})
# @option opts [Array<String>] :institution_id If present, filters results to transactions at institutions matching the given IDs.
# @option opts [Integer] :page The page number to return. (default to 1)
# @option opts [Integer] :size The number of items to return per page. (default to 50)
# @option opts [String] :start_date The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;.
# @option opts [String] :end_date The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
# @option opts [Date] :start_date The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;.
# @option opts [Date] :end_date The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
# @option opts [String] :moneykit_version (default to '2023-02-18')
# @return [GetUserTransactionsResponse]
def get_user_transactions(id, opts = {})
Expand All @@ -221,8 +221,8 @@ def get_user_transactions(id, opts = {})
# @option opts [Array<String>] :institution_id If present, filters results to transactions at institutions matching the given IDs.
# @option opts [Integer] :page The page number to return. (default to 1)
# @option opts [Integer] :size The number of items to return per page. (default to 50)
# @option opts [String] :start_date The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;.
# @option opts [String] :end_date The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
# @option opts [Date] :start_date The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;.
# @option opts [Date] :end_date The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
# @option opts [String] :moneykit_version (default to '2023-02-18')
# @return [Array<(GetUserTransactionsResponse, Integer, Hash)>] GetUserTransactionsResponse data, response status code and response headers
def get_user_transactions_with_http_info(id, opts = {})
Expand Down
8 changes: 4 additions & 4 deletions lib/moneykit/api/users_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ def get_user_links_with_http_info(id, opts = {})
# @option opts [Array<String>] :institution_id If present, filters results to transactions at institutions matching the given IDs.
# @option opts [Integer] :page The page number to return. (default to 1)
# @option opts [Integer] :size The number of items to return per page. (default to 50)
# @option opts [String] :start_date The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;.
# @option opts [String] :end_date The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
# @option opts [Date] :start_date The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;.
# @option opts [Date] :end_date The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
# @option opts [String] :moneykit_version (default to '2023-02-18')
# @return [GetUserTransactionsResponse]
def get_user_transactions(id, opts = {})
Expand All @@ -186,8 +186,8 @@ def get_user_transactions(id, opts = {})
# @option opts [Array<String>] :institution_id If present, filters results to transactions at institutions matching the given IDs.
# @option opts [Integer] :page The page number to return. (default to 1)
# @option opts [Integer] :size The number of items to return per page. (default to 50)
# @option opts [String] :start_date The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;.
# @option opts [String] :end_date The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
# @option opts [Date] :start_date The earliest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to 90 days before the &#x60;end_date&#x60;. &lt;p&gt;If you want to retrieve **all** transactions, use &#x60;1900-01-01&#x60;.
# @option opts [Date] :end_date The latest date for which data should be returned, formatted as YYYY-MM-DD. Defaults to today.
# @option opts [String] :moneykit_version (default to '2023-02-18')
# @return [Array<(GetUserTransactionsResponse, Integer, Hash)>] GetUserTransactionsResponse data, response status code and response headers
def get_user_transactions_with_http_info(id, opts = {})
Expand Down
3 changes: 2 additions & 1 deletion lib/moneykit/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def initialize(config = Configuration.default)
@user_agent = "OpenAPI-Generator/#{VERSION}/ruby"
@default_headers = {
'Content-Type' => 'application/json',
'User-Agent' => @user_agent
'User-Agent' => @user_agent,
'MoneyKit-Version' => '2023-02-18',
}
end

Expand Down

0 comments on commit 8d92c0d

Please sign in to comment.