Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # v1.301.0
with:
ruby-version: 3.4.8
- name: Install gems
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
git config user.name $GITHUB_ACTOR
git config user.email gh-actions-${GITHUB_ACTOR}@github.com
- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # v1.301.0
with:
ruby-version: 3.4.8
- name: Upgrade RubyGems version
Expand Down
24 changes: 24 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.gitignore
.rspec
docs/Account.md
docs/AccountBase.md
docs/AccountResponse.md
docs/AccountResponseData.md
docs/AccountType.md
Expand All @@ -15,6 +16,7 @@ docs/CategoriesApi.md
docs/CategoriesResponse.md
docs/CategoriesResponseData.md
docs/Category.md
docs/CategoryBase.md
docs/CategoryGroup.md
docs/CategoryGroupWithCategories.md
docs/CategoryResponse.md
Expand All @@ -29,18 +31,21 @@ docs/HybridTransaction.md
docs/HybridTransactionsResponse.md
docs/HybridTransactionsResponseData.md
docs/MoneyMovement.md
docs/MoneyMovementBase.md
docs/MoneyMovementGroup.md
docs/MoneyMovementGroupsResponse.md
docs/MoneyMovementGroupsResponseData.md
docs/MoneyMovementsApi.md
docs/MoneyMovementsResponse.md
docs/MoneyMovementsResponseData.md
docs/MonthDetail.md
docs/MonthDetailBase.md
docs/MonthDetailResponse.md
docs/MonthDetailResponseData.md
docs/MonthSummariesResponse.md
docs/MonthSummariesResponseData.md
docs/MonthSummary.md
docs/MonthSummaryBase.md
docs/MonthsApi.md
docs/NewCategory.md
docs/NewTransaction.md
Expand Down Expand Up @@ -74,11 +79,14 @@ docs/PlansApi.md
docs/PostAccountWrapper.md
docs/PostCategoryGroupWrapper.md
docs/PostCategoryWrapper.md
docs/PostPayee.md
docs/PostPayeeWrapper.md
docs/PostScheduledTransactionWrapper.md
docs/PostTransactionsWrapper.md
docs/PutScheduledTransactionWrapper.md
docs/PutTransactionWrapper.md
docs/SaveAccount.md
docs/SaveAccountType.md
docs/SaveCategory.md
docs/SaveCategoryGroup.md
docs/SaveCategoryGroupResponse.md
Expand All @@ -96,21 +104,25 @@ docs/SaveTransactionWithOptionalFields.md
docs/SaveTransactionsResponse.md
docs/SaveTransactionsResponseData.md
docs/ScheduledSubTransaction.md
docs/ScheduledSubTransactionBase.md
docs/ScheduledTransactionDetail.md
docs/ScheduledTransactionFrequency.md
docs/ScheduledTransactionResponse.md
docs/ScheduledTransactionResponseData.md
docs/ScheduledTransactionSummary.md
docs/ScheduledTransactionSummaryBase.md
docs/ScheduledTransactionsApi.md
docs/ScheduledTransactionsResponse.md
docs/ScheduledTransactionsResponseData.md
docs/SubTransaction.md
docs/SubTransactionBase.md
docs/TransactionClearedStatus.md
docs/TransactionDetail.md
docs/TransactionFlagColor.md
docs/TransactionResponse.md
docs/TransactionResponseData.md
docs/TransactionSummary.md
docs/TransactionSummaryBase.md
docs/TransactionsApi.md
docs/TransactionsImportResponse.md
docs/TransactionsImportResponseData.md
Expand All @@ -135,6 +147,7 @@ lib/ynab/api_client.rb
lib/ynab/api_model_base.rb
lib/ynab/configuration.rb
lib/ynab/models/account.rb
lib/ynab/models/account_base.rb
lib/ynab/models/account_response.rb
lib/ynab/models/account_response_data.rb
lib/ynab/models/account_type.rb
Expand All @@ -147,6 +160,7 @@ lib/ynab/models/bulk_transactions.rb
lib/ynab/models/categories_response.rb
lib/ynab/models/categories_response_data.rb
lib/ynab/models/category.rb
lib/ynab/models/category_base.rb
lib/ynab/models/category_group.rb
lib/ynab/models/category_group_with_categories.rb
lib/ynab/models/category_response.rb
Expand All @@ -161,17 +175,20 @@ lib/ynab/models/hybrid_transaction.rb
lib/ynab/models/hybrid_transactions_response.rb
lib/ynab/models/hybrid_transactions_response_data.rb
lib/ynab/models/money_movement.rb
lib/ynab/models/money_movement_base.rb
lib/ynab/models/money_movement_group.rb
lib/ynab/models/money_movement_groups_response.rb
lib/ynab/models/money_movement_groups_response_data.rb
lib/ynab/models/money_movements_response.rb
lib/ynab/models/money_movements_response_data.rb
lib/ynab/models/month_detail.rb
lib/ynab/models/month_detail_base.rb
lib/ynab/models/month_detail_response.rb
lib/ynab/models/month_detail_response_data.rb
lib/ynab/models/month_summaries_response.rb
lib/ynab/models/month_summaries_response_data.rb
lib/ynab/models/month_summary.rb
lib/ynab/models/month_summary_base.rb
lib/ynab/models/new_category.rb
lib/ynab/models/new_transaction.rb
lib/ynab/models/patch_category_group_wrapper.rb
Expand Down Expand Up @@ -201,11 +218,14 @@ lib/ynab/models/plan_summary_response_data.rb
lib/ynab/models/post_account_wrapper.rb
lib/ynab/models/post_category_group_wrapper.rb
lib/ynab/models/post_category_wrapper.rb
lib/ynab/models/post_payee.rb
lib/ynab/models/post_payee_wrapper.rb
lib/ynab/models/post_scheduled_transaction_wrapper.rb
lib/ynab/models/post_transactions_wrapper.rb
lib/ynab/models/put_scheduled_transaction_wrapper.rb
lib/ynab/models/put_transaction_wrapper.rb
lib/ynab/models/save_account.rb
lib/ynab/models/save_account_type.rb
lib/ynab/models/save_category.rb
lib/ynab/models/save_category_group.rb
lib/ynab/models/save_category_group_response.rb
Expand All @@ -223,20 +243,24 @@ lib/ynab/models/save_transaction_with_optional_fields.rb
lib/ynab/models/save_transactions_response.rb
lib/ynab/models/save_transactions_response_data.rb
lib/ynab/models/scheduled_sub_transaction.rb
lib/ynab/models/scheduled_sub_transaction_base.rb
lib/ynab/models/scheduled_transaction_detail.rb
lib/ynab/models/scheduled_transaction_frequency.rb
lib/ynab/models/scheduled_transaction_response.rb
lib/ynab/models/scheduled_transaction_response_data.rb
lib/ynab/models/scheduled_transaction_summary.rb
lib/ynab/models/scheduled_transaction_summary_base.rb
lib/ynab/models/scheduled_transactions_response.rb
lib/ynab/models/scheduled_transactions_response_data.rb
lib/ynab/models/sub_transaction.rb
lib/ynab/models/sub_transaction_base.rb
lib/ynab/models/transaction_cleared_status.rb
lib/ynab/models/transaction_detail.rb
lib/ynab/models/transaction_flag_color.rb
lib/ynab/models/transaction_response.rb
lib/ynab/models/transaction_response_data.rb
lib/ynab/models/transaction_summary.rb
lib/ynab/models/transaction_summary_base.rb
lib/ynab/models/transactions_import_response.rb
lib/ynab/models/transactions_import_response_data.rb
lib/ynab/models/transactions_response.rb
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.20.0
7.21.0
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ynab (4.9.0)
ynab (5.0.0)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
6 changes: 6 additions & 0 deletions docs/Account.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@
| **debt_minimum_payments** | **Hash<String, Integer>** | | [optional] |
| **debt_escrow_amounts** | **Hash<String, Integer>** | | [optional] |
| **deleted** | **Boolean** | Whether or not the account has been deleted. Deleted accounts will only be included in delta requests. | |
| **balance_formatted** | **String** | The current available balance of the account formatted in the plan's currency format | [optional] |
| **balance_currency** | **Float** | The current available balance of the account as a decimal currency amount | [optional] |
| **cleared_balance_formatted** | **String** | The current cleared balance of the account formatted in the plan's currency format | [optional] |
| **cleared_balance_currency** | **Float** | The current cleared balance of the account as a decimal currency amount | [optional] |
| **uncleared_balance_formatted** | **String** | The current uncleared balance of the account formatted in the plan's currency format | [optional] |
| **uncleared_balance_currency** | **Float** | The current uncleared balance of the account as a decimal currency amount | [optional] |

25 changes: 25 additions & 0 deletions docs/AccountBase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# YNAB::AccountBase

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **id** | **String** | | |
| **name** | **String** | | |
| **type** | [**AccountType**](AccountType.md) | | |
| **on_budget** | **Boolean** | Whether this account is \"on budget\" or not | |
| **closed** | **Boolean** | Whether this account is closed or not | |
| **note** | **String** | | [optional] |
| **balance** | **Integer** | The current available balance of the account in milliunits format | |
| **cleared_balance** | **Integer** | The current cleared balance of the account in milliunits format | |
| **uncleared_balance** | **Integer** | The current uncleared balance of the account in milliunits format | |
| **transfer_payee_id** | **String** | The payee id which should be used when transferring to this account | |
| **direct_import_linked** | **Boolean** | Whether or not the account is linked to a financial institution for automatic transaction import. | [optional] |
| **direct_import_in_error** | **Boolean** | If an account linked to a financial institution (direct_import_linked=true) and the linked connection is not in a healthy state, this will be true. | [optional] |
| **last_reconciled_at** | **Time** | A date/time specifying when the account was last reconciled. | [optional] |
| **debt_original_balance** | **Integer** | This field is deprecated and will always be null. | [optional] |
| **debt_interest_rates** | **Hash<String, Integer>** | | [optional] |
| **debt_minimum_payments** | **Hash<String, Integer>** | | [optional] |
| **debt_escrow_amounts** | **Hash<String, Integer>** | | [optional] |
| **deleted** | **Boolean** | Whether or not the account has been deleted. Deleted accounts will only be included in delta requests. | |

14 changes: 14 additions & 0 deletions docs/Category.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,18 @@
| **goal_overall_left** | **Integer** | The amount of funding still needed to complete the goal within the current goal period. | [optional] |
| **goal_snoozed_at** | **Time** | The date/time the goal was snoozed. If the goal is not snoozed, this will be null. | [optional] |
| **deleted** | **Boolean** | Whether or not the category has been deleted. Deleted categories will only be included in delta requests. | |
| **balance_formatted** | **String** | Available balance of the category formatted in the plan's currency format | [optional] |
| **balance_currency** | **Float** | Available balance of the category as a decimal currency amount | [optional] |
| **activity_formatted** | **String** | Activity of the category formatted in the plan's currency format | [optional] |
| **activity_currency** | **Float** | Activity of the category as a decimal currency amount | [optional] |
| **budgeted_formatted** | **String** | Assigned (budgeted) amount of the category formatted in the plan's currency format | [optional] |
| **budgeted_currency** | **Float** | Assigned (budgeted) amount of the category as a decimal currency amount | [optional] |
| **goal_target_formatted** | **String** | The goal target amount formatted in the plan's currency format | [optional] |
| **goal_target_currency** | **Float** | The goal target amount as a decimal currency amount | [optional] |
| **goal_under_funded_formatted** | **String** | The goal underfunded amount formatted in the plan's currency format | [optional] |
| **goal_under_funded_currency** | **Float** | The goal underfunded amount as a decimal currency amount | [optional] |
| **goal_overall_funded_formatted** | **String** | The total amount funded towards the goal formatted in the plan's currency format | [optional] |
| **goal_overall_funded_currency** | **Float** | The total amount funded towards the goal as a decimal currency amount | [optional] |
| **goal_overall_left_formatted** | **String** | The amount of funding still needed to complete the goal formatted in the plan's currency format | [optional] |
| **goal_overall_left_currency** | **Float** | The amount of funding still needed to complete the goal as a decimal currency amount | [optional] |

33 changes: 33 additions & 0 deletions docs/CategoryBase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# YNAB::CategoryBase

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **id** | **String** | | |
| **category_group_id** | **String** | | |
| **category_group_name** | **String** | | [optional] |
| **name** | **String** | | |
| **hidden** | **Boolean** | Whether or not the category is hidden | |
| **original_category_group_id** | **String** | DEPRECATED: No longer used. Value will always be null. | [optional] |
| **note** | **String** | | [optional] |
| **budgeted** | **Integer** | Assigned (budgeted) amount in milliunits format | |
| **activity** | **Integer** | Activity amount in milliunits format | |
| **balance** | **Integer** | Available balance in milliunits format | |
| **goal_type** | **String** | The type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending') | [optional] |
| **goal_needs_whole_amount** | **Boolean** | Indicates the monthly rollover behavior for \"NEED\"-type goals. When \"true\", the goal will always ask for the target amount in the new month (\"Set Aside\"). When \"false\", previous month category funding is used (\"Refill\"). For other goal types, this field will be null. | [optional] |
| **goal_day** | **Integer** | A day offset modifier for the goal's due date. When goal_cadence is 2 (Weekly), this value specifies which day of the week the goal is due (0 = Sunday, 6 = Saturday). Otherwise, this value specifies which day of the month the goal is due (1 = 1st, 31 = 31st, null = Last day of Month). | [optional] |
| **goal_cadence** | **Integer** | The goal cadence. Value in range 0-14. There are two subsets of these values which behave differently. For values 0, 1, 2, and 13, the goal's due date repeats every goal_cadence * goal_cadence_frequency, where 0 = None, 1 = Monthly, 2 = Weekly, and 13 = Yearly. For example, goal_cadence 1 with goal_cadence_frequency 2 means the goal is due every other month. For values 3-12 and 14, goal_cadence_frequency is ignored and the goal's due date repeats every goal_cadence, where 3 = Every 2 Months, 4 = Every 3 Months, ..., 12 = Every 11 Months, and 14 = Every 2 Years. | [optional] |
| **goal_cadence_frequency** | **Integer** | The goal cadence frequency. When goal_cadence is 0, 1, 2, or 13, a goal's due date repeats every goal_cadence * goal_cadence_frequency. For example, goal_cadence 1 with goal_cadence_frequency 2 means the goal is due every other month. When goal_cadence is 3-12 or 14, goal_cadence_frequency is ignored. | [optional] |
| **goal_creation_month** | **Date** | The month a goal was created | [optional] |
| **goal_target** | **Integer** | The goal target amount in milliunits | [optional] |
| **goal_target_month** | **Date** | DEPRECATED: No longer used. Use `goal_target_date` instead. | [optional] |
| **goal_target_date** | **Date** | The target date for the goal to be completed. Only some goal types specify this date. | [optional] |
| **goal_percentage_complete** | **Integer** | The percentage completion of the goal | [optional] |
| **goal_months_to_budget** | **Integer** | The number of months, including the current month, left in the current goal period. | [optional] |
| **goal_under_funded** | **Integer** | The amount of funding still needed in the current month to stay on track towards completing the goal within the current goal period. This amount will generally correspond to the 'Underfunded' amount in the web and mobile clients except when viewing a category with a Needed for Spending Goal in a future month. The web and mobile clients will ignore any funding from a prior goal period when viewing category with a Needed for Spending Goal in a future month. | [optional] |
| **goal_overall_funded** | **Integer** | The total amount funded towards the goal within the current goal period. | [optional] |
| **goal_overall_left** | **Integer** | The amount of funding still needed to complete the goal within the current goal period. | [optional] |
| **goal_snoozed_at** | **Time** | The date/time the goal was snoozed. If the goal is not snoozed, this will be null. | [optional] |
| **deleted** | **Boolean** | Whether or not the category has been deleted. Deleted categories will only be included in delta requests. | |

3 changes: 2 additions & 1 deletion docs/ExistingCategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
| **name** | **String** | | [optional] |
| **note** | **String** | | [optional] |
| **category_group_id** | **String** | | [optional] |
| **goal_target** | **Integer** | The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly 'Needed for Spending' goal will be created for the category with this target amount. | [optional] |
| **goal_target** | **Integer** | The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly goal will be created for the category with this target amount. If goal_type is not specified, it will default to 'NEED' or 'MF' for Credit Card Payment categories. | [optional] |
| **goal_target_date** | **Date** | The goal target date in ISO format (e.g. 2016-12-01). | [optional] |
| **goal_needs_whole_amount** | **Boolean** | Whether the goal requires the full target amount each period. Only supported for 'NEED' goals. When true, the goal is configured as 'Set aside another...'. When false, the goal is configured as 'Refill up to...'. | [optional] |

2 changes: 2 additions & 0 deletions docs/HybridTransaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
| **import_payee_name_original** | **String** | If the transaction was imported, the original payee name as it appeared on the statement | [optional] |
| **debt_transaction_type** | **String** | If the transaction is a debt/loan account transaction, the type of transaction | [optional] |
| **deleted** | **Boolean** | Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. | |
| **amount_formatted** | **String** | The transaction amount formatted in the plan's currency format | [optional] |
| **amount_currency** | **Float** | The transaction amount as a decimal currency amount | [optional] |
| **type** | **String** | Whether the hybrid transaction represents a regular transaction or a subtransaction | |
| **parent_transaction_id** | **String** | For subtransaction types, this is the id of the parent transaction. For transaction types, this id will be always be null. | [optional] |
| **account_name** | **String** | | |
Expand Down
2 changes: 2 additions & 0 deletions docs/MoneyMovement.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
| **from_category_id** | **String** | The id of the category the money was moved from | [optional] |
| **to_category_id** | **String** | The id of the category the money was moved to | [optional] |
| **amount** | **Integer** | The amount of the money movement in milliunits format | |
| **amount_formatted** | **String** | The money movement amount formatted in the plan's currency format | [optional] |
| **amount_currency** | **Float** | The money movement amount as a decimal currency amount | [optional] |

16 changes: 16 additions & 0 deletions docs/MoneyMovementBase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# YNAB::MoneyMovementBase

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **id** | **String** | | |
| **month** | **Date** | The month of the money movement in ISO format (e.g. 2024-01-01) | [optional] |
| **moved_at** | **Time** | The date/time the money movement was processed on the server in ISO format (e.g. 2024-01-01T12:00:00Z) | [optional] |
| **note** | **String** | | [optional] |
| **money_movement_group_id** | **String** | The id of the money movement group this movement belongs to | [optional] |
| **performed_by_user_id** | **String** | The id of the user who performed the money movement | [optional] |
| **from_category_id** | **String** | The id of the category the money was moved from | [optional] |
| **to_category_id** | **String** | The id of the category the money was moved to | [optional] |
| **amount** | **Integer** | The amount of the money movement in milliunits format | |

Loading