ynab 1.19.0 → 1.22.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 (108) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/ynab/api/accounts_api.rb +63 -5
  4. data/lib/ynab/api/budgets_api.rb +5 -5
  5. data/lib/ynab/api/categories_api.rb +9 -9
  6. data/lib/ynab/api/deprecated_api.rb +3 -3
  7. data/lib/ynab/api/months_api.rb +5 -5
  8. data/lib/ynab/api/payee_locations_api.rb +9 -9
  9. data/lib/ynab/api/payees_api.rb +7 -7
  10. data/lib/ynab/api/scheduled_transactions_api.rb +5 -5
  11. data/lib/ynab/api/transactions_api.rb +23 -23
  12. data/lib/ynab/api/user_api.rb +1 -1
  13. data/lib/ynab/api_client.rb +1 -1
  14. data/lib/ynab/configuration.rb +1 -1
  15. data/lib/ynab/models/account.rb +23 -34
  16. data/lib/ynab/models/account_response.rb +1 -1
  17. data/lib/ynab/models/account_response_data.rb +1 -1
  18. data/lib/ynab/models/account_type.rb +41 -0
  19. data/lib/ynab/models/accounts_response.rb +1 -1
  20. data/lib/ynab/models/accounts_response_data.rb +1 -1
  21. data/lib/ynab/models/budget_detail.rb +1 -1
  22. data/lib/ynab/models/budget_detail_response.rb +1 -1
  23. data/lib/ynab/models/budget_detail_response_data.rb +1 -1
  24. data/lib/ynab/models/budget_settings.rb +1 -1
  25. data/lib/ynab/models/budget_settings_response.rb +1 -1
  26. data/lib/ynab/models/budget_settings_response_data.rb +1 -1
  27. data/lib/ynab/models/budget_summary.rb +1 -1
  28. data/lib/ynab/models/budget_summary_response.rb +1 -1
  29. data/lib/ynab/models/budget_summary_response_data.rb +1 -1
  30. data/lib/ynab/models/bulk_response.rb +1 -1
  31. data/lib/ynab/models/bulk_response_data.rb +1 -1
  32. data/lib/ynab/models/bulk_response_data_bulk.rb +1 -1
  33. data/lib/ynab/models/bulk_transactions.rb +1 -1
  34. data/lib/ynab/models/categories_response.rb +1 -1
  35. data/lib/ynab/models/categories_response_data.rb +1 -1
  36. data/lib/ynab/models/category.rb +44 -4
  37. data/lib/ynab/models/category_group.rb +1 -1
  38. data/lib/ynab/models/category_group_with_categories.rb +1 -1
  39. data/lib/ynab/models/category_response.rb +1 -1
  40. data/lib/ynab/models/category_response_data.rb +1 -1
  41. data/lib/ynab/models/currency_format.rb +1 -1
  42. data/lib/ynab/models/date_format.rb +1 -1
  43. data/lib/ynab/models/error_detail.rb +1 -1
  44. data/lib/ynab/models/error_response.rb +1 -1
  45. data/lib/ynab/models/hybrid_transaction.rb +1 -1
  46. data/lib/ynab/models/hybrid_transactions_response.rb +1 -1
  47. data/lib/ynab/models/hybrid_transactions_response_data.rb +1 -1
  48. data/lib/ynab/models/month_detail.rb +4 -4
  49. data/lib/ynab/models/month_detail_response.rb +1 -1
  50. data/lib/ynab/models/month_detail_response_data.rb +1 -1
  51. data/lib/ynab/models/month_summaries_response.rb +1 -1
  52. data/lib/ynab/models/month_summaries_response_data.rb +1 -1
  53. data/lib/ynab/models/month_summary.rb +4 -4
  54. data/lib/ynab/models/payee.rb +1 -1
  55. data/lib/ynab/models/payee_location.rb +1 -1
  56. data/lib/ynab/models/payee_location_response.rb +1 -1
  57. data/lib/ynab/models/payee_location_response_data.rb +1 -1
  58. data/lib/ynab/models/payee_locations_response.rb +1 -1
  59. data/lib/ynab/models/payee_locations_response_data.rb +1 -1
  60. data/lib/ynab/models/payee_response.rb +1 -1
  61. data/lib/ynab/models/payee_response_data.rb +1 -1
  62. data/lib/ynab/models/payees_response.rb +1 -1
  63. data/lib/ynab/models/payees_response_data.rb +1 -1
  64. data/lib/ynab/models/save_account.rb +219 -0
  65. data/lib/ynab/models/save_account_wrapper.rb +189 -0
  66. data/lib/ynab/models/save_category_response.rb +1 -1
  67. data/lib/ynab/models/save_category_response_data.rb +1 -1
  68. data/lib/ynab/models/save_month_category.rb +1 -1
  69. data/lib/ynab/models/save_month_category_wrapper.rb +1 -1
  70. data/lib/ynab/models/save_sub_transaction.rb +1 -1
  71. data/lib/ynab/models/save_transaction.rb +1 -1
  72. data/lib/ynab/models/save_transaction_wrapper.rb +1 -1
  73. data/lib/ynab/models/save_transactions_response.rb +1 -1
  74. data/lib/ynab/models/save_transactions_response_data.rb +1 -1
  75. data/lib/ynab/models/save_transactions_wrapper.rb +1 -1
  76. data/lib/ynab/models/scheduled_sub_transaction.rb +1 -1
  77. data/lib/ynab/models/scheduled_transaction_detail.rb +1 -1
  78. data/lib/ynab/models/scheduled_transaction_response.rb +1 -1
  79. data/lib/ynab/models/scheduled_transaction_response_data.rb +1 -1
  80. data/lib/ynab/models/scheduled_transaction_summary.rb +1 -1
  81. data/lib/ynab/models/scheduled_transactions_response.rb +1 -1
  82. data/lib/ynab/models/scheduled_transactions_response_data.rb +1 -1
  83. data/lib/ynab/models/sub_transaction.rb +1 -1
  84. data/lib/ynab/models/transaction_detail.rb +1 -1
  85. data/lib/ynab/models/transaction_response.rb +1 -1
  86. data/lib/ynab/models/transaction_response_data.rb +1 -1
  87. data/lib/ynab/models/transaction_summary.rb +1 -1
  88. data/lib/ynab/models/transactions_import_response.rb +1 -1
  89. data/lib/ynab/models/transactions_import_response_data.rb +1 -1
  90. data/lib/ynab/models/transactions_response.rb +1 -1
  91. data/lib/ynab/models/transactions_response_data.rb +1 -1
  92. data/lib/ynab/models/update_transaction.rb +19 -5
  93. data/lib/ynab/models/update_transactions_wrapper.rb +1 -1
  94. data/lib/ynab/models/user.rb +1 -1
  95. data/lib/ynab/models/user_response.rb +1 -1
  96. data/lib/ynab/models/user_response_data.rb +1 -1
  97. data/lib/ynab/version.rb +1 -1
  98. data/lib/ynab.rb +11 -8
  99. data/spec/api/accounts_spec.rb +19 -10
  100. data/spec/api/budgets_spec.rb +4 -4
  101. data/spec/api/categories_spec.rb +5 -5
  102. data/spec/api/months_spec.rb +4 -4
  103. data/spec/api/payee_locations_spec.rb +4 -4
  104. data/spec/api/payees_spec.rb +4 -4
  105. data/spec/api/scheduled_transactions_spec.rb +4 -4
  106. data/spec/api/transactions_spec.rb +13 -14
  107. data/spec/fixtures/vcr_cassettes/create_account.yml +51 -0
  108. metadata +8 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35449c67dfda4654fc34d34788605b3bf86d6e4bcbf46886669fcfd3c2e0388d
4
- data.tar.gz: 985b6590906244ec3a54086ccfb8f708c3e012500c05e50d26644bc455f4e84a
3
+ metadata.gz: 585279e8e48808663d79a26e141548a96997dae0a279a7920ffae89c5897c0bb
4
+ data.tar.gz: 6b00ac6af6f6e50e61990772e01e1e59fd0216d58142f18eed3fdd2e5b57aa43
5
5
  SHA512:
6
- metadata.gz: 859803774748aaf17a35f76469b1d492660e414d3690e7fccffa6df97378bebb8d197607b3222f082e6aacfbabbb0aea1f85f8702746a78eca0ff0443c39c95c
7
- data.tar.gz: b118379b5530965699fd5c38ff0cdc4f553647ea9a15fb7c957f1c19731bee2062247a9fb7a4f03dd051baf1b3746b7a63b47d5e6325af875cd6bec6a753db2d
6
+ metadata.gz: '090f48a478f00c25deb2255ce0425aa79139970ddb8742d6bfc6eea39ee00386b7f724f8e142a6db93eb94edb70378e115bf43c9939a7d743adb136e816ae7c1'
7
+ data.tar.gz: 62642efb9686af3297094407318fde6fc0daa5de20b1ca0f995fac84b245e6c444895621202a8047ad2f416abafef0829e14a0daaf80361ebd5a38f22da2a30a
data/README.md CHANGED
@@ -19,7 +19,7 @@ gem install ynab
19
19
  ## Usage
20
20
  To use this client you must
21
21
  [obtain an access token](https://api.youneedabudget.com/#authentication-overview) from
22
- your [My Account](https://app.youneedabudget.com/settings) page of the YNAB web
22
+ your [Account Settings](https://app.youneedabudget.com/settings) page of the YNAB web
23
23
  app.
24
24
 
25
25
  ```ruby
@@ -77,6 +77,6 @@ The following methods are available in this library.
77
77
 
78
78
  ## License
79
79
 
80
- Copyright (c) 2018 You Need A Budget, LLC
80
+ Copyright (c) 2022 You Need A Budget, LLC
81
81
 
82
82
  Licensed under the Apache-2.0 license
@@ -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.4.15
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -19,9 +19,67 @@ module YNAB
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Create a new account
23
+ # Creates a new account
24
+ # @param budget_id The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
25
+ # @param data The account to create.
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [AccountResponse]
28
+ def create_account(budget_id, data, opts = {})
29
+ data, _status_code, _headers = create_account_with_http_info(budget_id, data, opts)
30
+ data
31
+ end
32
+
33
+ # Create a new account
34
+ # Creates a new account
35
+ # @param budget_id The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
36
+ # @param data The account to create.
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(AccountResponse, Fixnum, Hash)>] AccountResponse data, response status code and response headers
39
+ def create_account_with_http_info(budget_id, data, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: AccountsApi.create_account ...'
42
+ end
43
+ # verify the required parameter 'budget_id' is set
44
+ if @api_client.config.client_side_validation && budget_id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'budget_id' when calling AccountsApi.create_account"
46
+ end
47
+ # verify the required parameter 'data' is set
48
+ if @api_client.config.client_side_validation && data.nil?
49
+ fail ArgumentError, "Missing the required parameter 'data' when calling AccountsApi.create_account"
50
+ end
51
+ # resource path
52
+ local_var_path = '/budgets/{budget_id}/accounts'.sub('{' + 'budget_id' + '}', budget_id.to_s)
53
+
54
+ # query parameters
55
+ query_params = {}
56
+
57
+ # header parameters
58
+ header_params = {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+
62
+ # form parameters
63
+ form_params = {}
64
+
65
+ # http body (model)
66
+ post_body = @api_client.object_to_http_body(data)
67
+ auth_names = ['bearer']
68
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => 'AccountResponse')
75
+ if @api_client.config.debugging
76
+ @api_client.config.logger.debug "API called: AccountsApi#create_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
+ end
78
+ return data, status_code, headers
79
+ end
22
80
  # Single account
23
81
  # Returns a single account
24
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
82
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
25
83
  # @param account_id The id of the account
26
84
  # @param [Hash] opts the optional parameters
27
85
  # @return [AccountResponse]
@@ -32,7 +90,7 @@ module YNAB
32
90
 
33
91
  # Single account
34
92
  # Returns a single account
35
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
93
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
36
94
  # @param account_id The id of the account
37
95
  # @param [Hash] opts the optional parameters
38
96
  # @return [Array<(AccountResponse, Fixnum, Hash)>] AccountResponse data, response status code and response headers
@@ -79,7 +137,7 @@ module YNAB
79
137
  end
80
138
  # Account list
81
139
  # Returns all accounts
82
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
140
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
83
141
  # @param [Hash] opts the optional parameters
84
142
  # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
85
143
  # @return [AccountsResponse]
@@ -90,7 +148,7 @@ module YNAB
90
148
 
91
149
  # Account list
92
150
  # Returns all accounts
93
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
151
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
94
152
  # @param [Hash] opts the optional parameters
95
153
  # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
96
154
  # @return [Array<(AccountsResponse, Fixnum, Hash)>] AccountsResponse data, response status code and response headers
@@ -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.4.15
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,7 @@ module YNAB
21
21
  end
22
22
  # Single budget
23
23
  # Returns a single budget with all related entities. This resource is effectively a full budget export.
24
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
24
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
27
27
  # @return [BudgetDetailResponse]
@@ -32,7 +32,7 @@ module YNAB
32
32
 
33
33
  # Single budget
34
34
  # Returns a single budget with all related entities. This resource is effectively a full budget export.
35
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
35
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
38
38
  # @return [Array<(BudgetDetailResponse, Fixnum, Hash)>] BudgetDetailResponse data, response status code and response headers
@@ -76,7 +76,7 @@ module YNAB
76
76
  end
77
77
  # Budget Settings
78
78
  # Returns settings for a budget
79
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
79
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
80
80
  # @param [Hash] opts the optional parameters
81
81
  # @return [BudgetSettingsResponse]
82
82
  def get_budget_settings_by_id(budget_id, opts = {})
@@ -86,7 +86,7 @@ module YNAB
86
86
 
87
87
  # Budget Settings
88
88
  # Returns settings for a budget
89
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
89
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
90
90
  # @param [Hash] opts the optional parameters
91
91
  # @return [Array<(BudgetSettingsResponse, Fixnum, Hash)>] BudgetSettingsResponse data, response status code and response headers
92
92
  def get_budget_settings_by_id_with_http_info(budget_id, opts = {})
@@ -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.4.15
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,7 @@ module YNAB
21
21
  end
22
22
  # List categories
23
23
  # Returns all categories grouped by category group. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
24
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
24
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
27
27
  # @return [CategoriesResponse]
@@ -32,7 +32,7 @@ module YNAB
32
32
 
33
33
  # List categories
34
34
  # Returns all categories grouped by category group. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
35
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
35
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
38
38
  # @return [Array<(CategoriesResponse, Fixnum, Hash)>] CategoriesResponse data, response status code and response headers
@@ -76,7 +76,7 @@ module YNAB
76
76
  end
77
77
  # Single category
78
78
  # Returns a single category. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
79
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
79
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
80
80
  # @param category_id The id of the category
81
81
  # @param [Hash] opts the optional parameters
82
82
  # @return [CategoryResponse]
@@ -87,7 +87,7 @@ module YNAB
87
87
 
88
88
  # Single category
89
89
  # Returns a single category. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
90
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
90
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
91
91
  # @param category_id The id of the category
92
92
  # @param [Hash] opts the optional parameters
93
93
  # @return [Array<(CategoryResponse, Fixnum, Hash)>] CategoryResponse data, response status code and response headers
@@ -134,7 +134,7 @@ module YNAB
134
134
  end
135
135
  # Single category for a specific budget month
136
136
  # Returns a single category for a specific budget month. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
137
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
137
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
138
138
  # @param month The budget month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
139
139
  # @param category_id The id of the category
140
140
  # @param [Hash] opts the optional parameters
@@ -146,7 +146,7 @@ module YNAB
146
146
 
147
147
  # Single category for a specific budget month
148
148
  # Returns a single category for a specific budget month. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
149
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
149
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
150
150
  # @param month The budget month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
151
151
  # @param category_id The id of the category
152
152
  # @param [Hash] opts the optional parameters
@@ -198,7 +198,7 @@ module YNAB
198
198
  end
199
199
  # Update a category for a specific month
200
200
  # Update a category for a specific month. Only `budgeted` amount can be updated.
201
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
201
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
202
202
  # @param month The budget month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
203
203
  # @param category_id The id of the category
204
204
  # @param data The category to update. Only &#x60;budgeted&#x60; amount can be updated and any other fields specified will be ignored.
@@ -211,7 +211,7 @@ module YNAB
211
211
 
212
212
  # Update a category for a specific month
213
213
  # Update a category for a specific month. Only &#x60;budgeted&#x60; amount can be updated.
214
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
214
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
215
215
  # @param month The budget month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
216
216
  # @param category_id The id of the category
217
217
  # @param data The category to update. Only &#x60;budgeted&#x60; amount can be updated and any other fields specified will be ignored.
@@ -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.4.15
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,7 @@ module YNAB
21
21
  end
22
22
  # Bulk create transactions
23
23
  # Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /budgets/{budget_id}/transactions' to create multiple transactions.
24
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
24
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
25
25
  # @param transactions The list of transactions to create
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [BulkResponse]
@@ -32,7 +32,7 @@ module YNAB
32
32
 
33
33
  # Bulk create transactions
34
34
  # Creates multiple transactions. Although this endpoint is still supported, it is recommended to use &#39;POST /budgets/{budget_id}/transactions&#39; to create multiple transactions.
35
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
35
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
36
36
  # @param transactions The list of transactions to create
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(BulkResponse, Fixnum, Hash)>] BulkResponse data, response status code and response headers
@@ -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.4.15
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,7 @@ module YNAB
21
21
  end
22
22
  # Single budget month
23
23
  # Returns a single budget month
24
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
24
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
25
25
  # @param month The budget month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [MonthDetailResponse]
@@ -32,7 +32,7 @@ module YNAB
32
32
 
33
33
  # Single budget month
34
34
  # Returns a single budget month
35
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
35
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
36
36
  # @param month The budget month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(MonthDetailResponse, Fixnum, Hash)>] MonthDetailResponse data, response status code and response headers
@@ -79,7 +79,7 @@ module YNAB
79
79
  end
80
80
  # List budget months
81
81
  # Returns all budget months
82
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
82
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
83
83
  # @param [Hash] opts the optional parameters
84
84
  # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
85
85
  # @return [MonthSummariesResponse]
@@ -90,7 +90,7 @@ module YNAB
90
90
 
91
91
  # List budget months
92
92
  # Returns all budget months
93
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
93
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
94
94
  # @param [Hash] opts the optional parameters
95
95
  # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
96
96
  # @return [Array<(MonthSummariesResponse, Fixnum, Hash)>] MonthSummariesResponse data, response status code and response headers
@@ -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.4.15
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,7 @@ module YNAB
21
21
  end
22
22
  # Single payee location
23
23
  # Returns a single payee location
24
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
24
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
25
25
  # @param payee_location_id id of payee location
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [PayeeLocationResponse]
@@ -32,7 +32,7 @@ module YNAB
32
32
 
33
33
  # Single payee location
34
34
  # Returns a single payee location
35
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
35
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
36
36
  # @param payee_location_id id of payee location
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(PayeeLocationResponse, Fixnum, Hash)>] PayeeLocationResponse data, response status code and response headers
@@ -79,7 +79,7 @@ module YNAB
79
79
  end
80
80
  # List payee locations
81
81
  # Returns all payee locations
82
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
82
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
83
83
  # @param [Hash] opts the optional parameters
84
84
  # @return [PayeeLocationsResponse]
85
85
  def get_payee_locations(budget_id, opts = {})
@@ -89,7 +89,7 @@ module YNAB
89
89
 
90
90
  # List payee locations
91
91
  # Returns all payee locations
92
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
92
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
93
93
  # @param [Hash] opts the optional parameters
94
94
  # @return [Array<(PayeeLocationsResponse, Fixnum, Hash)>] PayeeLocationsResponse data, response status code and response headers
95
95
  def get_payee_locations_with_http_info(budget_id, opts = {})
@@ -130,8 +130,8 @@ module YNAB
130
130
  return data, status_code, headers
131
131
  end
132
132
  # List locations for a payee
133
- # Returns all payee locations for the specified payee
134
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
133
+ # Returns all payee locations for a specified payee
134
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
135
135
  # @param payee_id id of payee
136
136
  # @param [Hash] opts the optional parameters
137
137
  # @return [PayeeLocationsResponse]
@@ -141,8 +141,8 @@ module YNAB
141
141
  end
142
142
 
143
143
  # List locations for a payee
144
- # Returns all payee locations for the specified payee
145
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
144
+ # Returns all payee locations for a specified payee
145
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
146
146
  # @param payee_id id of payee
147
147
  # @param [Hash] opts the optional parameters
148
148
  # @return [Array<(PayeeLocationsResponse, Fixnum, Hash)>] PayeeLocationsResponse data, response status code and response headers
@@ -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.4.15
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -20,8 +20,8 @@ module YNAB
20
20
  @api_client = api_client
21
21
  end
22
22
  # Single payee
23
- # Returns single payee
24
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
23
+ # Returns a single payee
24
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
25
25
  # @param payee_id The id of the payee
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [PayeeResponse]
@@ -31,8 +31,8 @@ module YNAB
31
31
  end
32
32
 
33
33
  # Single payee
34
- # Returns single payee
35
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
34
+ # Returns a single payee
35
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
36
36
  # @param payee_id The id of the payee
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(PayeeResponse, Fixnum, Hash)>] PayeeResponse data, response status code and response headers
@@ -79,7 +79,7 @@ module YNAB
79
79
  end
80
80
  # List payees
81
81
  # Returns all payees
82
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
82
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
83
83
  # @param [Hash] opts the optional parameters
84
84
  # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
85
85
  # @return [PayeesResponse]
@@ -90,7 +90,7 @@ module YNAB
90
90
 
91
91
  # List payees
92
92
  # Returns all payees
93
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
93
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
94
94
  # @param [Hash] opts the optional parameters
95
95
  # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
96
96
  # @return [Array<(PayeesResponse, Fixnum, Hash)>] PayeesResponse data, response status code and response headers
@@ -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.4.15
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,7 @@ module YNAB
21
21
  end
22
22
  # Single scheduled transaction
23
23
  # Returns a single scheduled transaction
24
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
24
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
25
25
  # @param scheduled_transaction_id The id of the scheduled transaction
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [ScheduledTransactionResponse]
@@ -32,7 +32,7 @@ module YNAB
32
32
 
33
33
  # Single scheduled transaction
34
34
  # Returns a single scheduled transaction
35
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
35
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
36
36
  # @param scheduled_transaction_id The id of the scheduled transaction
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(ScheduledTransactionResponse, Fixnum, Hash)>] ScheduledTransactionResponse data, response status code and response headers
@@ -79,7 +79,7 @@ module YNAB
79
79
  end
80
80
  # List scheduled transactions
81
81
  # Returns all scheduled transactions
82
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
82
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
83
83
  # @param [Hash] opts the optional parameters
84
84
  # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
85
85
  # @return [ScheduledTransactionsResponse]
@@ -90,7 +90,7 @@ module YNAB
90
90
 
91
91
  # List scheduled transactions
92
92
  # Returns all scheduled transactions
93
- # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
93
+ # @param budget_id The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget).
94
94
  # @param [Hash] opts the optional parameters
95
95
  # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
96
96
  # @return [Array<(ScheduledTransactionsResponse, Fixnum, Hash)>] ScheduledTransactionsResponse data, response status code and response headers