diff --git a/README.md b/README.md index 208a7a8..4716ef4 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docs/TransactionsApi.md b/docs/TransactionsApi.md index e773976..5c2aa6c 100644 --- a/docs/TransactionsApi.md +++ b/docs/TransactionsApi.md @@ -34,8 +34,8 @@ opts = { account_ids: ['inner_example'], # Array | 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`.

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`.

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 | } @@ -74,8 +74,8 @@ end | **account_ids** | [**Array<String>**](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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. | [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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. | [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 '2023-02-18'] | ### Return type @@ -197,8 +197,8 @@ opts = { institution_id: ['inner_example'], # Array | 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`.

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`.

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 | } @@ -240,8 +240,8 @@ end | **institution_id** | [**Array<String>**](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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. | [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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. | [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 '2023-02-18'] | ### Return type diff --git a/docs/UsersApi.md b/docs/UsersApi.md index 542c6fc..18e3421 100644 --- a/docs/UsersApi.md +++ b/docs/UsersApi.md @@ -187,8 +187,8 @@ opts = { institution_id: ['inner_example'], # Array | 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`.

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`.

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 | } @@ -230,8 +230,8 @@ end | **institution_id** | [**Array<String>**](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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. | [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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. | [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 '2023-02-18'] | ### Return type diff --git a/lib/moneykit/api/transactions_api.rb b/lib/moneykit/api/transactions_api.rb index 65c0e57..1976006 100644 --- a/lib/moneykit/api/transactions_api.rb +++ b/lib/moneykit/api/transactions_api.rb @@ -26,8 +26,8 @@ def initialize(api_client = ApiClient.default) # @option opts [Array] :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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. - # @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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. + # @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 = {}) @@ -42,8 +42,8 @@ def get_transactions(id, opts = {}) # @option opts [Array] :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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. - # @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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. + # @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 = {}) @@ -202,8 +202,8 @@ def get_transactions_diff_with_http_info(id, opts = {}) # @option opts [Array] :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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. - # @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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. + # @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 = {}) @@ -221,8 +221,8 @@ def get_user_transactions(id, opts = {}) # @option opts [Array] :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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. - # @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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. + # @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 = {}) diff --git a/lib/moneykit/api/users_api.rb b/lib/moneykit/api/users_api.rb index 1bd4968..26c8137 100644 --- a/lib/moneykit/api/users_api.rb +++ b/lib/moneykit/api/users_api.rb @@ -167,8 +167,8 @@ def get_user_links_with_http_info(id, opts = {}) # @option opts [Array] :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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. - # @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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. + # @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 = {}) @@ -186,8 +186,8 @@ def get_user_transactions(id, opts = {}) # @option opts [Array] :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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. - # @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 `end_date`. <p>If you want to retrieve **all** transactions, use `1900-01-01`. + # @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 = {}) diff --git a/lib/moneykit/api_client.rb b/lib/moneykit/api_client.rb index f003d06..ad26cf0 100644 --- a/lib/moneykit/api_client.rb +++ b/lib/moneykit/api_client.rb @@ -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