ynab 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -30
  3. data/lib/ynab.rb +4 -1
  4. data/lib/ynab/api/categories_api.rb +10 -10
  5. data/lib/ynab/api/deprecated_api.rb +81 -0
  6. data/lib/ynab/api/months_api.rb +2 -2
  7. data/lib/ynab/api/payee_locations_api.rb +2 -2
  8. data/lib/ynab/api/transactions_api.rb +12 -58
  9. data/lib/ynab/models/bulk_ids.rb +1 -1
  10. data/lib/ynab/models/category.rb +3 -3
  11. data/lib/ynab/models/category_group_with_categories.rb +1 -1
  12. data/lib/ynab/models/month_detail.rb +1 -1
  13. data/lib/ynab/models/transactions_wrapper.rb +19 -4
  14. data/lib/ynab/overrides/transactions_api.rb +44 -0
  15. data/lib/ynab/version.rb +1 -1
  16. data/spec/api/transactions_spec.rb +23 -1
  17. data/spec/fixtures/vcr_cassettes/create_transactions.yml +46 -0
  18. metadata +6 -105
  19. data/Gemfile +0 -7
  20. data/Gemfile.lock +0 -44
  21. data/Rakefile +0 -34
  22. data/config.json +0 -10
  23. data/docs/Account.md +0 -18
  24. data/docs/AccountResponse.md +0 -8
  25. data/docs/AccountWrapper.md +0 -8
  26. data/docs/AccountsApi.md +0 -45
  27. data/docs/AccountsResponse.md +0 -8
  28. data/docs/AccountsWrapper.md +0 -8
  29. data/docs/BudgetDetail.md +0 -22
  30. data/docs/BudgetDetailResponse.md +0 -8
  31. data/docs/BudgetDetailWrapper.md +0 -9
  32. data/docs/BudgetSettings.md +0 -9
  33. data/docs/BudgetSettingsResponse.md +0 -8
  34. data/docs/BudgetSettingsWrapper.md +0 -8
  35. data/docs/BudgetSummary.md +0 -12
  36. data/docs/BudgetSummaryResponse.md +0 -8
  37. data/docs/BudgetSummaryWrapper.md +0 -8
  38. data/docs/BudgetsApi.md +0 -60
  39. data/docs/BulkIdWrapper.md +0 -8
  40. data/docs/BulkIds.md +0 -9
  41. data/docs/BulkResponse.md +0 -8
  42. data/docs/BulkTransactionCreateResponse.md +0 -8
  43. data/docs/BulkTransactionIds.md +0 -8
  44. data/docs/BulkTransactions.md +0 -8
  45. data/docs/CategoriesApi.md +0 -86
  46. data/docs/CategoriesResponse.md +0 -8
  47. data/docs/Category.md +0 -22
  48. data/docs/CategoryGroup.md +0 -11
  49. data/docs/CategoryGroupWithCategories.md +0 -12
  50. data/docs/CategoryGroupsWrapper.md +0 -8
  51. data/docs/CategoryResponse.md +0 -8
  52. data/docs/CategoryWrapper.md +0 -8
  53. data/docs/CurrencyFormat.md +0 -15
  54. data/docs/DateFormat.md +0 -8
  55. data/docs/ErrorDetail.md +0 -10
  56. data/docs/ErrorResponse.md +0 -8
  57. data/docs/HybridTransaction.md +0 -26
  58. data/docs/HybridTransactionsResponse.md +0 -8
  59. data/docs/HybridTransactionsWrapper.md +0 -8
  60. data/docs/MonthDetail.md +0 -15
  61. data/docs/MonthDetailResponse.md +0 -8
  62. data/docs/MonthDetailWrapper.md +0 -8
  63. data/docs/MonthSummariesResponse.md +0 -8
  64. data/docs/MonthSummariesWrapper.md +0 -8
  65. data/docs/MonthSummary.md +0 -14
  66. data/docs/MonthsApi.md +0 -45
  67. data/docs/Payee.md +0 -11
  68. data/docs/PayeeLocation.md +0 -12
  69. data/docs/PayeeLocationResponse.md +0 -8
  70. data/docs/PayeeLocationWrapper.md +0 -8
  71. data/docs/PayeeLocationsApi.md +0 -64
  72. data/docs/PayeeLocationsResponse.md +0 -8
  73. data/docs/PayeeLocationsWrapper.md +0 -8
  74. data/docs/PayeeResponse.md +0 -8
  75. data/docs/PayeeWrapper.md +0 -8
  76. data/docs/PayeesApi.md +0 -45
  77. data/docs/PayeesResponse.md +0 -8
  78. data/docs/PayeesWrapper.md +0 -8
  79. data/docs/SaveMonthCategory.md +0 -8
  80. data/docs/SaveMonthCategoryWrapper.md +0 -8
  81. data/docs/SaveTransaction.md +0 -18
  82. data/docs/SaveTransactionWrapper.md +0 -8
  83. data/docs/SaveTransactionsResponse.md +0 -8
  84. data/docs/SaveTransactionsResponseData.md +0 -11
  85. data/docs/SaveTransactionsWrapper.md +0 -9
  86. data/docs/ScheduledSubTransaction.md +0 -15
  87. data/docs/ScheduledTransactionDetail.md +0 -23
  88. data/docs/ScheduledTransactionResponse.md +0 -8
  89. data/docs/ScheduledTransactionSummary.md +0 -19
  90. data/docs/ScheduledTransactionWrapper.md +0 -8
  91. data/docs/ScheduledTransactionsApi.md +0 -45
  92. data/docs/ScheduledTransactionsResponse.md +0 -8
  93. data/docs/ScheduledTransactionsWrapper.md +0 -8
  94. data/docs/SubTransaction.md +0 -15
  95. data/docs/TransactionDetail.md +0 -25
  96. data/docs/TransactionResponse.md +0 -8
  97. data/docs/TransactionSummary.md +0 -21
  98. data/docs/TransactionWrapper.md +0 -8
  99. data/docs/TransactionsApi.md +0 -168
  100. data/docs/TransactionsResponse.md +0 -8
  101. data/docs/TransactionsWrapper.md +0 -8
  102. data/docs/User.md +0 -8
  103. data/docs/UserApi.md +0 -23
  104. data/docs/UserResponse.md +0 -8
  105. data/docs/UserWrapper.md +0 -8
  106. data/examples/budget-list.rb +0 -24
  107. data/examples/budget-month.rb +0 -35
  108. data/examples/category-balance.rb +0 -26
  109. data/examples/create-multiple-transactions.rb +0 -44
  110. data/examples/create-transaction.rb +0 -31
  111. data/examples/update-category-budgeted.rb +0 -23
  112. data/pkg/ynab-1.0.0.gem +0 -0
  113. data/pkg/ynab-1.1.0.gem +0 -0
  114. data/pkg/ynab-1.3.0.gem +0 -0
  115. data/pkg/ynab-1.4.0.gem +0 -0
  116. data/spec-v1-swagger.json +0 -2729
  117. data/swagger-templates/api_client.mustache +0 -386
  118. data/swagger-templates/api_doc.mustache +0 -32
  119. data/swagger-templates/gem.mustache +0 -83
  120. data/swagger-templates/gemspec.mustache +0 -37
  121. data/ynab.gemspec +0 -40
@@ -1,45 +0,0 @@
1
- # YNAB::PayeesApi
2
-
3
- All URIs are relative to *https://api.youneedabudget.com/v1*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**get_payee_by_id**](PayeesApi.md#get_payee_by_id) | **GET** /budgets/{budget_id}/payees/{payee_id} | Single payee
8
- [**get_payees**](PayeesApi.md#get_payees) | **GET** /budgets/{budget_id}/payees | List payees
9
-
10
-
11
- # **get_payee_by_id**
12
- > PayeeResponse get_payee_by_id(budget_id, payee_id)
13
-
14
- Single payee
15
-
16
- Returns single payee
17
-
18
- ### Parameters
19
-
20
- Name | Type | Description | Notes
21
- ------------- | ------------- | ------------- | -------------
22
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
23
- **payee_id** | [**String**](.md)| The id of the payee |
24
-
25
- ### Return type
26
-
27
- [**PayeeResponse**](PayeeResponse.md)
28
-
29
- # **get_payees**
30
- > PayeesResponse get_payees(budget_id)
31
-
32
- List payees
33
-
34
- Returns all payees
35
-
36
- ### Parameters
37
-
38
- Name | Type | Description | Notes
39
- ------------- | ------------- | ------------- | -------------
40
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
41
-
42
- ### Return type
43
-
44
- [**PayeesResponse**](PayeesResponse.md)
45
-
@@ -1,8 +0,0 @@
1
- # YNAB::PayeesResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **data** | [**PayeesWrapper**](PayeesWrapper.md) | |
7
-
8
-
@@ -1,8 +0,0 @@
1
- # YNAB::PayeesWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **payees** | [**Array<Payee>**](Payee.md) | |
7
-
8
-
@@ -1,8 +0,0 @@
1
- # YNAB::SaveMonthCategory
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **budgeted** | **Integer** | Budgeted amount in milliunits format |
7
-
8
-
@@ -1,8 +0,0 @@
1
- # YNAB::SaveMonthCategoryWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **month_category** | [**SaveMonthCategory**](SaveMonthCategory.md) | |
7
-
8
-
@@ -1,18 +0,0 @@
1
- # YNAB::SaveTransaction
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **account_id** | **String** | |
7
- **date** | **Date** | |
8
- **amount** | **Integer** | The transaction amount in milliunits format |
9
- **payee_id** | **String** | The payee for the transaction | [optional]
10
- **payee_name** | **String** | The payee name. If a payee_name value is provided and payee_id has a null value, the payee_name value will be used to resolve the payee by either (1) a matching payee rename rule (only if import_id is also specified) or (2) a payee with the same name or (3) creation of a new payee. | [optional]
11
- **category_id** | **String** | The category for the transaction. Split and Credit Card Payment categories are not permitted and will be ignored if supplied. If an existing transaction has a Split category it cannot be changed. | [optional]
12
- **memo** | **String** | | [optional]
13
- **cleared** | **String** | The cleared status of the transaction | [optional]
14
- **approved** | **BOOLEAN** | Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default. | [optional]
15
- **flag_color** | **String** | The transaction flag | [optional]
16
- **import_id** | **String** | If specified for a new transaction, the transaction will be treated as Imported and assigned this import_id. If another transaction on the same account with this same import_id is later attempted to be created, it will be skipped to prevent duplication. Transactions imported through File Based Import or Direct Import and not through the API, are assigned an import_id in the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. Using a consistent format will prevent duplicates through Direct Import and File Based Import. If import_id is specified as null, the transaction will be treated as a user entered transaction. | [optional]
17
-
18
-
@@ -1,8 +0,0 @@
1
- # YNAB::SaveTransactionWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **transaction** | [**SaveTransaction**](SaveTransaction.md) | |
7
-
8
-
@@ -1,8 +0,0 @@
1
- # YNAB::SaveTransactionsResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **data** | [**SaveTransactionsResponseData**](SaveTransactionsResponseData.md) | |
7
-
8
-
@@ -1,11 +0,0 @@
1
- # YNAB::SaveTransactionsResponseData
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **transaction_ids** | **Array<String>** | The transaction ids that were saved |
7
- **transaction** | [**TransactionDetail**](TransactionDetail.md) | If a single transaction was specified, the transaction that was saved | [optional]
8
- **transactions** | [**Array<TransactionDetail>**](TransactionDetail.md) | If multiple transactions were specified, the transactions that were saved | [optional]
9
- **duplicate_import_ids** | **Array<String>** | If multiple transactions were specified, a list of import_ids that were not were created because of an existing import_id found on the same account | [optional]
10
-
11
-
@@ -1,9 +0,0 @@
1
- # YNAB::SaveTransactionsWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **transaction** | [**SaveTransaction**](SaveTransaction.md) | | [optional]
7
- **transactions** | [**Array<SaveTransaction>**](SaveTransaction.md) | | [optional]
8
-
9
-
@@ -1,15 +0,0 @@
1
- # YNAB::ScheduledSubTransaction
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | |
7
- **scheduled_transaction_id** | **String** | |
8
- **amount** | **Integer** | The scheduled subtransaction amount in milliunits format |
9
- **memo** | **String** | |
10
- **payee_id** | **String** | |
11
- **category_id** | **String** | |
12
- **transfer_account_id** | **String** | If a transfer, the account_id which the scheduled subtransaction transfers to |
13
- **deleted** | **BOOLEAN** | Whether or not the scheduled subtransaction has been deleted. Deleted scheduled subtransactions will only be included in delta requests. |
14
-
15
-
@@ -1,23 +0,0 @@
1
- # YNAB::ScheduledTransactionDetail
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | |
7
- **date_first** | **Date** | The first date for which the Scheduled Transaction was scheduled. |
8
- **date_next** | **Date** | The next date for which the Scheduled Transaction is scheduled. |
9
- **frequency** | **String** | |
10
- **amount** | **Integer** | The scheduled transaction amount in milliunits format |
11
- **memo** | **String** | |
12
- **flag_color** | **String** | The scheduled transaction flag |
13
- **account_id** | **String** | |
14
- **payee_id** | **String** | |
15
- **category_id** | **String** | |
16
- **transfer_account_id** | **String** | If a transfer, the account_id which the scheduled transaction transfers to |
17
- **deleted** | **BOOLEAN** | Whether or not the scheduled transaction has been deleted. Deleted scheduled transactions will only be included in delta requests. |
18
- **account_name** | **String** | |
19
- **payee_name** | **String** | |
20
- **category_name** | **String** | |
21
- **subtransactions** | [**Array<ScheduledSubTransaction>**](ScheduledSubTransaction.md) | If a split scheduled transaction, the subtransactions. |
22
-
23
-
@@ -1,8 +0,0 @@
1
- # YNAB::ScheduledTransactionResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **data** | [**ScheduledTransactionWrapper**](ScheduledTransactionWrapper.md) | |
7
-
8
-
@@ -1,19 +0,0 @@
1
- # YNAB::ScheduledTransactionSummary
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | |
7
- **date_first** | **Date** | The first date for which the Scheduled Transaction was scheduled. |
8
- **date_next** | **Date** | The next date for which the Scheduled Transaction is scheduled. |
9
- **frequency** | **String** | |
10
- **amount** | **Integer** | The scheduled transaction amount in milliunits format |
11
- **memo** | **String** | |
12
- **flag_color** | **String** | The scheduled transaction flag |
13
- **account_id** | **String** | |
14
- **payee_id** | **String** | |
15
- **category_id** | **String** | |
16
- **transfer_account_id** | **String** | If a transfer, the account_id which the scheduled transaction transfers to |
17
- **deleted** | **BOOLEAN** | Whether or not the scheduled transaction has been deleted. Deleted scheduled transactions will only be included in delta requests. |
18
-
19
-
@@ -1,8 +0,0 @@
1
- # YNAB::ScheduledTransactionWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **scheduled_transaction** | [**ScheduledTransactionDetail**](ScheduledTransactionDetail.md) | |
7
-
8
-
@@ -1,45 +0,0 @@
1
- # YNAB::ScheduledTransactionsApi
2
-
3
- All URIs are relative to *https://api.youneedabudget.com/v1*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**get_scheduled_transaction_by_id**](ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | **GET** /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} | Single scheduled transaction
8
- [**get_scheduled_transactions**](ScheduledTransactionsApi.md#get_scheduled_transactions) | **GET** /budgets/{budget_id}/scheduled_transactions | List scheduled transactions
9
-
10
-
11
- # **get_scheduled_transaction_by_id**
12
- > ScheduledTransactionResponse get_scheduled_transaction_by_id(budget_id, scheduled_transaction_id)
13
-
14
- Single scheduled transaction
15
-
16
- Returns a single scheduled transaction
17
-
18
- ### Parameters
19
-
20
- Name | Type | Description | Notes
21
- ------------- | ------------- | ------------- | -------------
22
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
23
- **scheduled_transaction_id** | [**String**](.md)| The id of the scheduled transaction |
24
-
25
- ### Return type
26
-
27
- [**ScheduledTransactionResponse**](ScheduledTransactionResponse.md)
28
-
29
- # **get_scheduled_transactions**
30
- > ScheduledTransactionsResponse get_scheduled_transactions(budget_id)
31
-
32
- List scheduled transactions
33
-
34
- Returns all scheduled transactions
35
-
36
- ### Parameters
37
-
38
- Name | Type | Description | Notes
39
- ------------- | ------------- | ------------- | -------------
40
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
41
-
42
- ### Return type
43
-
44
- [**ScheduledTransactionsResponse**](ScheduledTransactionsResponse.md)
45
-
@@ -1,8 +0,0 @@
1
- # YNAB::ScheduledTransactionsResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **data** | [**ScheduledTransactionsWrapper**](ScheduledTransactionsWrapper.md) | |
7
-
8
-
@@ -1,8 +0,0 @@
1
- # YNAB::ScheduledTransactionsWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **scheduled_transactions** | [**Array<ScheduledTransactionDetail>**](ScheduledTransactionDetail.md) | |
7
-
8
-
@@ -1,15 +0,0 @@
1
- # YNAB::SubTransaction
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | |
7
- **transaction_id** | **String** | |
8
- **amount** | **Integer** | The subtransaction amount in milliunits format |
9
- **memo** | **String** | |
10
- **payee_id** | **String** | |
11
- **category_id** | **String** | |
12
- **transfer_account_id** | **String** | If a transfer, the account_id which the subtransaction transfers to |
13
- **deleted** | **BOOLEAN** | Whether or not the subtransaction has been deleted. Deleted subtransactions will only be included in delta requests. |
14
-
15
-
@@ -1,25 +0,0 @@
1
- # YNAB::TransactionDetail
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | |
7
- **date** | **Date** | |
8
- **amount** | **Integer** | The transaction amount in milliunits format |
9
- **memo** | **String** | |
10
- **cleared** | **String** | The cleared status of the transaction |
11
- **approved** | **BOOLEAN** | Whether or not the transaction is approved |
12
- **flag_color** | **String** | The transaction flag |
13
- **account_id** | **String** | |
14
- **payee_id** | **String** | |
15
- **category_id** | **String** | |
16
- **transfer_account_id** | **String** | If a transfer transaction, the account to which it transfers |
17
- **transfer_transaction_id** | **String** | If a transfer transaction, the id of transaction on the other side of the transfer |
18
- **import_id** | **String** | If the Transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. |
19
- **deleted** | **BOOLEAN** | Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. |
20
- **account_name** | **String** | |
21
- **payee_name** | **String** | |
22
- **category_name** | **String** | |
23
- **subtransactions** | [**Array<SubTransaction>**](SubTransaction.md) | If a split transaction, the subtransactions. |
24
-
25
-
@@ -1,8 +0,0 @@
1
- # YNAB::TransactionResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **data** | [**TransactionWrapper**](TransactionWrapper.md) | |
7
-
8
-
@@ -1,21 +0,0 @@
1
- # YNAB::TransactionSummary
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | |
7
- **date** | **Date** | |
8
- **amount** | **Integer** | The transaction amount in milliunits format |
9
- **memo** | **String** | |
10
- **cleared** | **String** | The cleared status of the transaction |
11
- **approved** | **BOOLEAN** | Whether or not the transaction is approved |
12
- **flag_color** | **String** | The transaction flag |
13
- **account_id** | **String** | |
14
- **payee_id** | **String** | |
15
- **category_id** | **String** | |
16
- **transfer_account_id** | **String** | If a transfer transaction, the account to which it transfers |
17
- **transfer_transaction_id** | **String** | If a transfer transaction, the id of transaction on the other side of the transfer |
18
- **import_id** | **String** | If the Transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. |
19
- **deleted** | **BOOLEAN** | Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. |
20
-
21
-
@@ -1,8 +0,0 @@
1
- # YNAB::TransactionWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **transaction** | [**TransactionDetail**](TransactionDetail.md) | |
7
-
8
-
@@ -1,168 +0,0 @@
1
- # YNAB::TransactionsApi
2
-
3
- All URIs are relative to *https://api.youneedabudget.com/v1*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**bulk_create_transactions**](TransactionsApi.md#bulk_create_transactions) | **POST** /budgets/{budget_id}/transactions/bulk | Bulk create transactions
8
- [**create_transaction**](TransactionsApi.md#create_transaction) | **POST** /budgets/{budget_id}/transactions | Create a single transaction or multiple transactions
9
- [**get_transaction_by_id**](TransactionsApi.md#get_transaction_by_id) | **GET** /budgets/{budget_id}/transactions/{transaction_id} | Single transaction
10
- [**get_transactions**](TransactionsApi.md#get_transactions) | **GET** /budgets/{budget_id}/transactions | List transactions
11
- [**get_transactions_by_account**](TransactionsApi.md#get_transactions_by_account) | **GET** /budgets/{budget_id}/accounts/{account_id}/transactions | List account transactions
12
- [**get_transactions_by_category**](TransactionsApi.md#get_transactions_by_category) | **GET** /budgets/{budget_id}/categories/{category_id}/transactions | List category transactions
13
- [**get_transactions_by_payee**](TransactionsApi.md#get_transactions_by_payee) | **GET** /budgets/{budget_id}/payees/{payee_id}/transactions | List payee transactions
14
- [**update_transaction**](TransactionsApi.md#update_transaction) | **PUT** /budgets/{budget_id}/transactions/{transaction_id} | Updates an existing transaction
15
-
16
-
17
- # **bulk_create_transactions**
18
- > BulkResponse bulk_create_transactions(budget_id, transactions)
19
-
20
- Bulk create transactions
21
-
22
- Creates multiple transactions
23
-
24
- ### Parameters
25
-
26
- Name | Type | Description | Notes
27
- ------------- | ------------- | ------------- | -------------
28
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
29
- **transactions** | [**BulkTransactions**](BulkTransactions.md)| The list of transactions to create |
30
-
31
- ### Return type
32
-
33
- [**BulkResponse**](BulkResponse.md)
34
-
35
- # **create_transaction**
36
- > SaveTransactionsResponse create_transaction(budget_id, save_transactions)
37
-
38
- Create a single transaction or multiple transactions
39
-
40
- Creates a single transaction or multiple transactions. If you provide a body containing a 'transaction' object, a single transaction will be created and if you provide a body containing a 'transactions' array, multiple transactions will be created.
41
-
42
- ### Parameters
43
-
44
- Name | Type | Description | Notes
45
- ------------- | ------------- | ------------- | -------------
46
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
47
- **save_transactions** | [**SaveTransactionsWrapper**](SaveTransactionsWrapper.md)| The transaction or transactions to create |
48
-
49
- ### Return type
50
-
51
- [**SaveTransactionsResponse**](SaveTransactionsResponse.md)
52
-
53
- # **get_transaction_by_id**
54
- > TransactionResponse get_transaction_by_id(budget_id, transaction_id)
55
-
56
- Single transaction
57
-
58
- Returns a single transaction
59
-
60
- ### Parameters
61
-
62
- Name | Type | Description | Notes
63
- ------------- | ------------- | ------------- | -------------
64
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
65
- **transaction_id** | [**String**](.md)| The id of the transaction |
66
-
67
- ### Return type
68
-
69
- [**TransactionResponse**](TransactionResponse.md)
70
-
71
- # **get_transactions**
72
- > TransactionsResponse get_transactions(budget_id, opts)
73
-
74
- List transactions
75
-
76
- Returns budget transactions
77
-
78
- ### Parameters
79
-
80
- Name | Type | Description | Notes
81
- ------------- | ------------- | ------------- | -------------
82
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
83
- **since_date** | **Date**| Only return transactions on or after this date | [optional]
84
- **type** | **String**| Only return transactions of a certain type ('uncategorized' and 'unapproved' are currently supported) | [optional]
85
-
86
- ### Return type
87
-
88
- [**TransactionsResponse**](TransactionsResponse.md)
89
-
90
- # **get_transactions_by_account**
91
- > TransactionsResponse get_transactions_by_account(budget_id, account_id, opts)
92
-
93
- List account transactions
94
-
95
- Returns all transactions for a specified account
96
-
97
- ### Parameters
98
-
99
- Name | Type | Description | Notes
100
- ------------- | ------------- | ------------- | -------------
101
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
102
- **account_id** | [**String**](.md)| The id of the account |
103
- **since_date** | **Date**| Only return transactions on or after this date | [optional]
104
- **type** | **String**| Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') | [optional]
105
-
106
- ### Return type
107
-
108
- [**TransactionsResponse**](TransactionsResponse.md)
109
-
110
- # **get_transactions_by_category**
111
- > HybridTransactionsResponse get_transactions_by_category(budget_id, category_id, opts)
112
-
113
- List category transactions
114
-
115
- Returns all transactions for a specified category
116
-
117
- ### Parameters
118
-
119
- Name | Type | Description | Notes
120
- ------------- | ------------- | ------------- | -------------
121
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
122
- **category_id** | [**String**](.md)| The id of the category |
123
- **since_date** | **Date**| Only return transactions on or after this date | [optional]
124
- **type** | **String**| Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') | [optional]
125
-
126
- ### Return type
127
-
128
- [**HybridTransactionsResponse**](HybridTransactionsResponse.md)
129
-
130
- # **get_transactions_by_payee**
131
- > HybridTransactionsResponse get_transactions_by_payee(budget_id, payee_id, opts)
132
-
133
- List payee transactions
134
-
135
- Returns all transactions for a specified payee
136
-
137
- ### Parameters
138
-
139
- Name | Type | Description | Notes
140
- ------------- | ------------- | ------------- | -------------
141
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
142
- **payee_id** | [**String**](.md)| The id of the payee |
143
- **since_date** | **Date**| Only return transactions on or after this date | [optional]
144
- **type** | **String**| Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') | [optional]
145
-
146
- ### Return type
147
-
148
- [**HybridTransactionsResponse**](HybridTransactionsResponse.md)
149
-
150
- # **update_transaction**
151
- > TransactionResponse update_transaction(budget_id, transaction_id, transaction)
152
-
153
- Updates an existing transaction
154
-
155
- Updates a transaction
156
-
157
- ### Parameters
158
-
159
- Name | Type | Description | Notes
160
- ------------- | ------------- | ------------- | -------------
161
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
162
- **transaction_id** | [**String**](.md)| The id of the transaction |
163
- **transaction** | [**SaveTransactionWrapper**](SaveTransactionWrapper.md)| The transaction to update |
164
-
165
- ### Return type
166
-
167
- [**TransactionResponse**](TransactionResponse.md)
168
-