ynab 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +2 -2
  4. data/Rakefile +9 -0
  5. data/config.json +2 -2
  6. data/docs/Account.md +1 -1
  7. data/docs/AccountResponse.md +1 -1
  8. data/docs/AccountWrapper.md +1 -1
  9. data/docs/AccountsApi.md +1 -1
  10. data/docs/AccountsResponse.md +1 -1
  11. data/docs/AccountsWrapper.md +1 -1
  12. data/docs/BudgetDetail.md +1 -1
  13. data/docs/BudgetDetailResponse.md +1 -1
  14. data/docs/BudgetDetailWrapper.md +1 -1
  15. data/docs/BudgetSettings.md +9 -0
  16. data/docs/BudgetSettingsResponse.md +8 -0
  17. data/docs/BudgetSettingsWrapper.md +8 -0
  18. data/docs/BudgetSummary.md +1 -1
  19. data/docs/BudgetSummaryResponse.md +1 -1
  20. data/docs/BudgetSummaryWrapper.md +1 -1
  21. data/docs/BudgetsApi.md +19 -1
  22. data/docs/BulkIdWrapper.md +1 -1
  23. data/docs/BulkIds.md +1 -1
  24. data/docs/BulkResponse.md +1 -1
  25. data/docs/BulkTransactionCreateResponse.md +2 -2
  26. data/docs/BulkTransactionIds.md +2 -2
  27. data/docs/BulkTransactions.md +1 -1
  28. data/docs/CategoriesApi.md +1 -1
  29. data/docs/CategoriesResponse.md +1 -1
  30. data/docs/Category.md +2 -1
  31. data/docs/CategoryGroup.md +1 -1
  32. data/docs/CategoryGroupWithCategories.md +1 -1
  33. data/docs/CategoryGroupsWrapper.md +1 -1
  34. data/docs/CategoryResponse.md +1 -1
  35. data/docs/CategoryWrapper.md +1 -1
  36. data/docs/CurrencyFormat.md +1 -1
  37. data/docs/DateFormat.md +1 -1
  38. data/docs/ErrorDetail.md +1 -1
  39. data/docs/ErrorResponse.md +1 -1
  40. data/docs/HybridTransaction.md +1 -1
  41. data/docs/HybridTransactionsResponse.md +1 -1
  42. data/docs/HybridTransactionsWrapper.md +1 -1
  43. data/docs/MonthDetail.md +1 -1
  44. data/docs/MonthDetailResponse.md +1 -1
  45. data/docs/MonthDetailWrapper.md +1 -1
  46. data/docs/MonthSummariesResponse.md +1 -1
  47. data/docs/MonthSummariesWrapper.md +1 -1
  48. data/docs/MonthSummary.md +1 -1
  49. data/docs/MonthsApi.md +1 -1
  50. data/docs/Payee.md +1 -1
  51. data/docs/PayeeLocation.md +1 -1
  52. data/docs/PayeeLocationResponse.md +1 -1
  53. data/docs/PayeeLocationWrapper.md +1 -1
  54. data/docs/PayeeLocationsApi.md +1 -1
  55. data/docs/PayeeLocationsResponse.md +1 -1
  56. data/docs/PayeeLocationsWrapper.md +1 -1
  57. data/docs/PayeeResponse.md +1 -1
  58. data/docs/PayeeWrapper.md +1 -1
  59. data/docs/PayeesApi.md +1 -1
  60. data/docs/PayeesResponse.md +1 -1
  61. data/docs/PayeesWrapper.md +1 -1
  62. data/docs/SaveTransaction.md +2 -2
  63. data/docs/SaveTransactionWrapper.md +1 -1
  64. data/docs/ScheduledSubTransaction.md +1 -1
  65. data/docs/ScheduledTransactionDetail.md +1 -1
  66. data/docs/ScheduledTransactionResponse.md +1 -1
  67. data/docs/ScheduledTransactionSummary.md +1 -1
  68. data/docs/ScheduledTransactionWrapper.md +1 -1
  69. data/docs/ScheduledTransactionsApi.md +1 -1
  70. data/docs/ScheduledTransactionsResponse.md +1 -1
  71. data/docs/ScheduledTransactionsWrapper.md +1 -1
  72. data/docs/SubTransaction.md +1 -1
  73. data/docs/TransactionDetail.md +1 -1
  74. data/docs/TransactionResponse.md +1 -1
  75. data/docs/TransactionSummary.md +1 -1
  76. data/docs/TransactionWrapper.md +1 -1
  77. data/docs/TransactionsApi.md +5 -2
  78. data/docs/TransactionsResponse.md +1 -1
  79. data/docs/TransactionsWrapper.md +1 -1
  80. data/docs/User.md +1 -1
  81. data/docs/UserApi.md +1 -1
  82. data/docs/UserResponse.md +1 -1
  83. data/docs/UserWrapper.md +1 -1
  84. data/examples/budget-list.rb +1 -1
  85. data/examples/budget-month.rb +1 -1
  86. data/examples/category-balance.rb +1 -1
  87. data/lib/ynab.rb +27 -15
  88. data/lib/ynab/api/accounts_api.rb +1 -1
  89. data/lib/ynab/api/budgets_api.rb +53 -1
  90. data/lib/ynab/api/categories_api.rb +1 -1
  91. data/lib/ynab/api/months_api.rb +1 -1
  92. data/lib/ynab/api/payee_locations_api.rb +1 -1
  93. data/lib/ynab/api/payees_api.rb +1 -1
  94. data/lib/ynab/api/scheduled_transactions_api.rb +1 -1
  95. data/lib/ynab/api/transactions_api.rb +21 -3
  96. data/lib/ynab/api/user_api.rb +1 -1
  97. data/lib/ynab/api_client.rb +2 -2
  98. data/lib/ynab/api_error.rb +1 -1
  99. data/lib/ynab/configuration.rb +1 -1
  100. data/lib/ynab/models/account.rb +2 -2
  101. data/lib/ynab/models/account_response.rb +2 -2
  102. data/lib/ynab/models/account_wrapper.rb +2 -2
  103. data/lib/ynab/models/accounts_response.rb +2 -2
  104. data/lib/ynab/models/accounts_wrapper.rb +2 -2
  105. data/lib/ynab/models/budget_detail.rb +2 -2
  106. data/lib/ynab/models/budget_detail_response.rb +2 -2
  107. data/lib/ynab/models/budget_detail_wrapper.rb +2 -2
  108. data/lib/ynab/models/budget_settings.rb +202 -0
  109. data/lib/ynab/models/budget_settings_response.rb +188 -0
  110. data/lib/ynab/models/budget_settings_wrapper.rb +188 -0
  111. data/lib/ynab/models/budget_summary.rb +2 -2
  112. data/lib/ynab/models/budget_summary_response.rb +2 -2
  113. data/lib/ynab/models/budget_summary_wrapper.rb +2 -2
  114. data/lib/ynab/models/bulk_id_wrapper.rb +2 -2
  115. data/lib/ynab/models/bulk_ids.rb +2 -2
  116. data/lib/ynab/models/bulk_response.rb +2 -2
  117. data/lib/ynab/models/bulk_transaction_create_response.rb +2 -2
  118. data/lib/ynab/models/bulk_transaction_ids.rb +2 -2
  119. data/lib/ynab/models/bulk_transactions.rb +2 -2
  120. data/lib/ynab/models/categories_response.rb +2 -2
  121. data/lib/ynab/models/category.rb +13 -3
  122. data/lib/ynab/models/category_group.rb +2 -2
  123. data/lib/ynab/models/category_group_with_categories.rb +2 -2
  124. data/lib/ynab/models/category_groups_wrapper.rb +2 -2
  125. data/lib/ynab/models/category_response.rb +2 -2
  126. data/lib/ynab/models/category_wrapper.rb +2 -2
  127. data/lib/ynab/models/currency_format.rb +2 -2
  128. data/lib/ynab/models/date_format.rb +2 -2
  129. data/lib/ynab/models/error_detail.rb +2 -2
  130. data/lib/ynab/models/error_response.rb +2 -2
  131. data/lib/ynab/models/hybrid_transaction.rb +2 -2
  132. data/lib/ynab/models/hybrid_transactions_response.rb +2 -2
  133. data/lib/ynab/models/hybrid_transactions_wrapper.rb +2 -2
  134. data/lib/ynab/models/month_detail.rb +2 -2
  135. data/lib/ynab/models/month_detail_response.rb +2 -2
  136. data/lib/ynab/models/month_detail_wrapper.rb +2 -2
  137. data/lib/ynab/models/month_summaries_response.rb +2 -2
  138. data/lib/ynab/models/month_summaries_wrapper.rb +2 -2
  139. data/lib/ynab/models/month_summary.rb +2 -2
  140. data/lib/ynab/models/payee.rb +2 -2
  141. data/lib/ynab/models/payee_location.rb +2 -2
  142. data/lib/ynab/models/payee_location_response.rb +2 -2
  143. data/lib/ynab/models/payee_location_wrapper.rb +2 -2
  144. data/lib/ynab/models/payee_locations_response.rb +2 -2
  145. data/lib/ynab/models/payee_locations_wrapper.rb +2 -2
  146. data/lib/ynab/models/payee_response.rb +2 -2
  147. data/lib/ynab/models/payee_wrapper.rb +2 -2
  148. data/lib/ynab/models/payees_response.rb +2 -2
  149. data/lib/ynab/models/payees_wrapper.rb +2 -2
  150. data/lib/ynab/models/save_transaction.rb +3 -3
  151. data/lib/ynab/models/save_transaction_wrapper.rb +2 -2
  152. data/lib/ynab/models/scheduled_sub_transaction.rb +2 -2
  153. data/lib/ynab/models/scheduled_transaction_detail.rb +2 -2
  154. data/lib/ynab/models/scheduled_transaction_response.rb +2 -2
  155. data/lib/ynab/models/scheduled_transaction_summary.rb +2 -2
  156. data/lib/ynab/models/scheduled_transaction_wrapper.rb +2 -2
  157. data/lib/ynab/models/scheduled_transactions_response.rb +2 -2
  158. data/lib/ynab/models/scheduled_transactions_wrapper.rb +2 -2
  159. data/lib/ynab/models/sub_transaction.rb +2 -2
  160. data/lib/ynab/models/transaction_detail.rb +2 -2
  161. data/lib/ynab/models/transaction_response.rb +2 -2
  162. data/lib/ynab/models/transaction_summary.rb +2 -2
  163. data/lib/ynab/models/transaction_wrapper.rb +2 -2
  164. data/lib/ynab/models/transactions_response.rb +2 -2
  165. data/lib/ynab/models/transactions_wrapper.rb +2 -2
  166. data/lib/ynab/models/user.rb +2 -2
  167. data/lib/ynab/models/user_response.rb +2 -2
  168. data/lib/ynab/models/user_wrapper.rb +2 -2
  169. data/lib/ynab/version.rb +2 -2
  170. data/pkg/ynab-1.0.0.gem +0 -0
  171. data/pkg/ynab-1.1.0.gem +0 -0
  172. data/spec-v1-swagger.json +105 -3
  173. data/spec/api/accounts_spec.rb +13 -4
  174. data/spec/api/budgets_spec.rb +4 -4
  175. data/spec/api/categories_spec.rb +4 -4
  176. data/spec/api/months_spec.rb +4 -4
  177. data/spec/api/payee_locations_spec.rb +4 -4
  178. data/spec/api/payees_spec.rb +4 -4
  179. data/spec/api/scheduled_transactions_spec.rb +4 -4
  180. data/spec/api/transactions_spec.rb +4 -4
  181. data/swagger-templates/gem.mustache +83 -0
  182. data/ynab.gemspec +1 -1
  183. metadata +11 -2
@@ -1,4 +1,4 @@
1
- # YnabApi::PayeeLocationResponse
1
+ # YNAB::PayeeLocationResponse
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::PayeeLocationWrapper
1
+ # YNAB::PayeeLocationWrapper
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::PayeeLocationsApi
1
+ # YNAB::PayeeLocationsApi
2
2
 
3
3
  All URIs are relative to *https://api.youneedabudget.com/v1*
4
4
 
@@ -1,4 +1,4 @@
1
- # YnabApi::PayeeLocationsResponse
1
+ # YNAB::PayeeLocationsResponse
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::PayeeLocationsWrapper
1
+ # YNAB::PayeeLocationsWrapper
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::PayeeResponse
1
+ # YNAB::PayeeResponse
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::PayeeWrapper
1
+ # YNAB::PayeeWrapper
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::PayeesApi
1
+ # YNAB::PayeesApi
2
2
 
3
3
  All URIs are relative to *https://api.youneedabudget.com/v1*
4
4
 
@@ -1,4 +1,4 @@
1
- # YnabApi::PayeesResponse
1
+ # YNAB::PayeesResponse
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::PayeesWrapper
1
+ # YNAB::PayeesWrapper
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::SaveTransaction
1
+ # YNAB::SaveTransaction
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **date** | **Date** | |
8
8
  **amount** | **Float** | The transaction amount in milliunits format |
9
9
  **payee_id** | **String** | The payee for the transaction. Transfer payees are not permitted and will be ignored if supplied. | [optional]
10
- **payee_name** | **String** | The payee name. If a payee_name value is provided and payee_id is not included or has a null value, payee_name will be used to create or use an existing payee. | [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
11
  **category_id** | **String** | The category for the transaction. Split and Credit Card Payment categories are not permitted and will be ignored if supplied. | [optional]
12
12
  **memo** | **String** | | [optional]
13
13
  **cleared** | **String** | The cleared status of the transaction | [optional]
@@ -1,4 +1,4 @@
1
- # YnabApi::SaveTransactionWrapper
1
+ # YNAB::SaveTransactionWrapper
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::ScheduledSubTransaction
1
+ # YNAB::ScheduledSubTransaction
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::ScheduledTransactionDetail
1
+ # YNAB::ScheduledTransactionDetail
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::ScheduledTransactionResponse
1
+ # YNAB::ScheduledTransactionResponse
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::ScheduledTransactionSummary
1
+ # YNAB::ScheduledTransactionSummary
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::ScheduledTransactionWrapper
1
+ # YNAB::ScheduledTransactionWrapper
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::ScheduledTransactionsApi
1
+ # YNAB::ScheduledTransactionsApi
2
2
 
3
3
  All URIs are relative to *https://api.youneedabudget.com/v1*
4
4
 
@@ -1,4 +1,4 @@
1
- # YnabApi::ScheduledTransactionsResponse
1
+ # YNAB::ScheduledTransactionsResponse
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::ScheduledTransactionsWrapper
1
+ # YNAB::ScheduledTransactionsWrapper
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::SubTransaction
1
+ # YNAB::SubTransaction
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::TransactionDetail
1
+ # YNAB::TransactionDetail
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::TransactionResponse
1
+ # YNAB::TransactionResponse
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::TransactionSummary
1
+ # YNAB::TransactionSummary
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::TransactionWrapper
1
+ # YNAB::TransactionWrapper
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::TransactionsApi
1
+ # YNAB::TransactionsApi
2
2
 
3
3
  All URIs are relative to *https://api.youneedabudget.com/v1*
4
4
 
@@ -63,7 +63,7 @@ Name | Type | Description | Notes
63
63
  ------------- | ------------- | ------------- | -------------
64
64
  **budget_id** | [**String**](.md)| The ID of the Budget. |
65
65
  **since_date** | **Date**| Only return transactions on or after this date. | [optional]
66
- **type** | **String**| Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') | [optional]
66
+ **type** | **String**| Only return transactions of a certain type ('uncategorized' and 'unapproved' are currently supported) | [optional]
67
67
 
68
68
  ### Return type
69
69
 
@@ -83,6 +83,7 @@ Name | Type | Description | Notes
83
83
  **budget_id** | [**String**](.md)| The ID of the Budget. |
84
84
  **account_id** | [**String**](.md)| The ID of the Account. |
85
85
  **since_date** | **Date**| Only return transactions on or after this date. | [optional]
86
+ **type** | **String**| Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') | [optional]
86
87
 
87
88
  ### Return type
88
89
 
@@ -102,6 +103,7 @@ Name | Type | Description | Notes
102
103
  **budget_id** | [**String**](.md)| The ID of the Budget. |
103
104
  **category_id** | [**String**](.md)| The ID of the Category. |
104
105
  **since_date** | **Date**| Only return transactions on or after this date. | [optional]
106
+ **type** | **String**| Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') | [optional]
105
107
 
106
108
  ### Return type
107
109
 
@@ -139,6 +141,7 @@ Name | Type | Description | Notes
139
141
  **budget_id** | [**String**](.md)| The ID of the Budget. |
140
142
  **payee_id** | [**String**](.md)| The ID of the Payee. |
141
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]
142
145
 
143
146
  ### Return type
144
147
 
@@ -1,4 +1,4 @@
1
- # YnabApi::TransactionsResponse
1
+ # YNAB::TransactionsResponse
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::TransactionsWrapper
1
+ # YNAB::TransactionsWrapper
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::User
1
+ # YNAB::User
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::UserApi
1
+ # YNAB::UserApi
2
2
 
3
3
  All URIs are relative to *https://api.youneedabudget.com/v1*
4
4
 
@@ -1,4 +1,4 @@
1
- # YnabApi::UserResponse
1
+ # YNAB::UserResponse
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -1,4 +1,4 @@
1
- # YnabApi::UserWrapper
1
+ # YNAB::UserWrapper
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -3,7 +3,7 @@ require 'ynab'
3
3
 
4
4
  def print_budget_list
5
5
  access_token = 'bf0cbb14b4330-not-real-3de12e66a389eaafe2'
6
- ynab = YnabApi::Client.new(access_token)
6
+ ynab = YNAB::API.new(access_token)
7
7
 
8
8
  puts "Fetching budgets..."
9
9
  begin
@@ -4,7 +4,7 @@ require 'date'
4
4
 
5
5
  def print_budget_month
6
6
  access_token = 'bf0cbb14b4330-not-real-3de12e66a389eaafe2'
7
- ynab = YnabApi::Client.new(access_token)
7
+ ynab = YNAB::API.new(access_token)
8
8
 
9
9
  budget_id = "f968197b-2863-not-real-c2406dbe7f0d"
10
10
  first_day_of_month_iso = Date.new(Date.today.year, Date.today.month, 1).iso8601
@@ -3,7 +3,7 @@ require 'ynab'
3
3
 
4
4
  def print_category_info
5
5
  access_token = 'bf0cbb14b4330-not-real-3de12e66a389eaafe2'
6
- ynab = YnabApi::Client.new(access_token)
6
+ ynab = YNAB::API.new(access_token)
7
7
 
8
8
  budget_id = "f968197b-2863-not-real-c2406dbe7f0d"
9
9
  category_id = "a191ac84-de09-not-real-6c5ed8cfdabe"
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -17,7 +17,6 @@ require 'ynab/version'
17
17
  require 'ynab/configuration'
18
18
 
19
19
  # Models
20
- require 'ynab/models/user'
21
20
  require 'ynab/models/account'
22
21
  require 'ynab/models/account_response'
23
22
  require 'ynab/models/account_wrapper'
@@ -25,9 +24,16 @@ require 'ynab/models/accounts_response'
25
24
  require 'ynab/models/accounts_wrapper'
26
25
  require 'ynab/models/budget_detail_response'
27
26
  require 'ynab/models/budget_detail_wrapper'
27
+ require 'ynab/models/budget_settings'
28
+ require 'ynab/models/budget_settings_response'
29
+ require 'ynab/models/budget_settings_wrapper'
28
30
  require 'ynab/models/budget_summary'
29
31
  require 'ynab/models/budget_summary_response'
30
32
  require 'ynab/models/budget_summary_wrapper'
33
+ require 'ynab/models/bulk_id_wrapper'
34
+ require 'ynab/models/bulk_ids'
35
+ require 'ynab/models/bulk_response'
36
+ require 'ynab/models/bulk_transactions'
31
37
  require 'ynab/models/categories_response'
32
38
  require 'ynab/models/category'
33
39
  require 'ynab/models/category_group'
@@ -38,6 +44,8 @@ require 'ynab/models/currency_format'
38
44
  require 'ynab/models/date_format'
39
45
  require 'ynab/models/error_detail'
40
46
  require 'ynab/models/error_response'
47
+ require 'ynab/models/hybrid_transactions_response'
48
+ require 'ynab/models/hybrid_transactions_wrapper'
41
49
  require 'ynab/models/month_detail_response'
42
50
  require 'ynab/models/month_detail_wrapper'
43
51
  require 'ynab/models/month_summaries_response'
@@ -53,34 +61,31 @@ require 'ynab/models/payee_response'
53
61
  require 'ynab/models/payee_wrapper'
54
62
  require 'ynab/models/payees_response'
55
63
  require 'ynab/models/payees_wrapper'
64
+ require 'ynab/models/save_transaction'
65
+ require 'ynab/models/save_transaction_wrapper'
56
66
  require 'ynab/models/scheduled_sub_transaction'
57
67
  require 'ynab/models/scheduled_transaction_response'
68
+ require 'ynab/models/scheduled_transaction_summary'
58
69
  require 'ynab/models/scheduled_transaction_wrapper'
59
70
  require 'ynab/models/scheduled_transactions_response'
60
71
  require 'ynab/models/scheduled_transactions_wrapper'
61
- require 'ynab/models/scheduled_transaction_summary'
62
72
  require 'ynab/models/sub_transaction'
63
73
  require 'ynab/models/transaction_response'
74
+ require 'ynab/models/transaction_summary'
64
75
  require 'ynab/models/transaction_wrapper'
65
76
  require 'ynab/models/transactions_response'
66
77
  require 'ynab/models/transactions_wrapper'
67
- require 'ynab/models/transaction_summary'
78
+ require 'ynab/models/user'
79
+ require 'ynab/models/user_response'
80
+ require 'ynab/models/user_wrapper'
68
81
  require 'ynab/models/budget_detail'
69
82
  require 'ynab/models/category_group_with_categories'
83
+ require 'ynab/models/hybrid_transaction'
70
84
  require 'ynab/models/month_detail'
71
85
  require 'ynab/models/scheduled_transaction_detail'
72
86
  require 'ynab/models/transaction_detail'
73
- require 'ynab/models/transaction_detail'
74
- require 'ynab/models/bulk_id_wrapper'
75
- require 'ynab/models/bulk_ids'
76
- require 'ynab/models/bulk_response'
77
- require 'ynab/models/hybrid_transactions_response'
78
- require 'ynab/models/hybrid_transactions_wrapper'
79
- require 'ynab/models/hybrid_transaction'
80
-
81
87
 
82
88
  # APIs
83
- require 'ynab/api/user_api'
84
89
  require 'ynab/api/accounts_api'
85
90
  require 'ynab/api/budgets_api'
86
91
  require 'ynab/api/categories_api'
@@ -89,9 +94,10 @@ require 'ynab/api/payee_locations_api'
89
94
  require 'ynab/api/payees_api'
90
95
  require 'ynab/api/scheduled_transactions_api'
91
96
  require 'ynab/api/transactions_api'
97
+ require 'ynab/api/user_api'
92
98
 
93
- module YnabApi
94
- class Client
99
+ module YNAB
100
+ class API
95
101
  def initialize(access_token, host = 'api.youneedabudget.com', useHttps = true)
96
102
  config = Configuration.default
97
103
  config.api_key['Authorization'] = access_token
@@ -144,3 +150,9 @@ module YnabApi
144
150
  end
145
151
  end
146
152
  end
153
+
154
+ # Support old interface: YnabApi::Client
155
+ module YnabApi
156
+ class Client < YNAB::API
157
+ end
158
+ end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'uri'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class AccountsApi
17
17
  attr_accessor :api_client
18
18
 
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'uri'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class BudgetsApi
17
17
  attr_accessor :api_client
18
18
 
@@ -74,6 +74,58 @@ module YnabApi
74
74
  end
75
75
  return data, status_code, headers
76
76
  end
77
+ # Budget Settings
78
+ # Returns settings for a budget.
79
+ # @param budget_id The ID of the Budget.
80
+ # @param [Hash] opts the optional parameters
81
+ # @return [BudgetSettingsResponse]
82
+ def get_budget_settings_by_id(budget_id, opts = {})
83
+ data, _status_code, _headers = get_budget_settings_by_id_with_http_info(budget_id, opts)
84
+ data
85
+ end
86
+
87
+ # Budget Settings
88
+ # Returns settings for a budget.
89
+ # @param budget_id The ID of the Budget.
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [Array<(BudgetSettingsResponse, Fixnum, Hash)>] BudgetSettingsResponse data, response status code and response headers
92
+ def get_budget_settings_by_id_with_http_info(budget_id, opts = {})
93
+ if @api_client.config.debugging
94
+ @api_client.config.logger.debug 'Calling API: BudgetsApi.get_budget_settings_by_id ...'
95
+ end
96
+ # verify the required parameter 'budget_id' is set
97
+ if @api_client.config.client_side_validation && budget_id.nil?
98
+ fail ArgumentError, "Missing the required parameter 'budget_id' when calling BudgetsApi.get_budget_settings_by_id"
99
+ end
100
+ # resource path
101
+ local_var_path = '/budgets/{budget_id}/settings'.sub('{' + 'budget_id' + '}', budget_id.to_s)
102
+
103
+ # query parameters
104
+ query_params = {}
105
+
106
+ # header parameters
107
+ header_params = {}
108
+ # HTTP header 'Accept' (if needed)
109
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
110
+
111
+ # form parameters
112
+ form_params = {}
113
+
114
+ # http body (model)
115
+ post_body = nil
116
+ auth_names = ['bearer']
117
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
118
+ :header_params => header_params,
119
+ :query_params => query_params,
120
+ :form_params => form_params,
121
+ :body => post_body,
122
+ :auth_names => auth_names,
123
+ :return_type => 'BudgetSettingsResponse')
124
+ if @api_client.config.debugging
125
+ @api_client.config.logger.debug "API called: BudgetsApi#get_budget_settings_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
126
+ end
127
+ return data, status_code, headers
128
+ end
77
129
  # List budgets
78
130
  # Returns budgets list with summary information.
79
131
  # @param [Hash] opts the optional parameters