ynab 3.8.0 → 4.9.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 (197) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -0
  3. data/Gemfile.lock +3 -1
  4. data/README.md +48 -40
  5. data/Rakefile +1 -1
  6. data/docs/Account.md +3 -3
  7. data/docs/AccountsApi.md +12 -12
  8. data/docs/CategoriesApi.md +89 -25
  9. data/docs/Category.md +5 -3
  10. data/docs/CategoryGroupWithCategories.md +1 -1
  11. data/docs/ExistingCategory.md +12 -0
  12. data/docs/MoneyMovement.md +16 -0
  13. data/docs/MoneyMovementGroup.md +12 -0
  14. data/docs/MoneyMovementGroupsResponse.md +8 -0
  15. data/docs/MoneyMovementGroupsResponseData.md +9 -0
  16. data/docs/MoneyMovementsApi.md +89 -0
  17. data/docs/{BudgetSettingsResponse.md → MoneyMovementsResponse.md} +2 -2
  18. data/docs/MoneyMovementsResponseData.md +9 -0
  19. data/docs/MonthDetail.md +2 -2
  20. data/docs/MonthSummary.md +1 -1
  21. data/docs/MonthsApi.md +13 -13
  22. data/docs/NewCategory.md +12 -0
  23. data/docs/PatchCategoryGroupWrapper.md +8 -0
  24. data/docs/PatchCategoryWrapper.md +1 -1
  25. data/docs/PayeeLocationsApi.md +12 -12
  26. data/docs/PayeesApi.md +11 -11
  27. data/docs/{BudgetDetail.md → PlanDetail.md} +4 -4
  28. data/docs/PlanDetailResponse.md +8 -0
  29. data/docs/{BudgetDetailResponseData.md → PlanDetailResponseData.md} +2 -2
  30. data/docs/{BudgetSettings.md → PlanSettings.md} +1 -1
  31. data/docs/{BudgetDetailResponse.md → PlanSettingsResponse.md} +2 -2
  32. data/docs/PlanSettingsResponseData.md +8 -0
  33. data/docs/PlanSummary.md +15 -0
  34. data/docs/PlanSummaryResponse.md +8 -0
  35. data/docs/PlanSummaryResponseData.md +9 -0
  36. data/docs/PlansApi.md +68 -0
  37. data/docs/PostCategoryGroupWrapper.md +8 -0
  38. data/docs/PostCategoryWrapper.md +8 -0
  39. data/docs/SaveCategory.md +2 -1
  40. data/docs/SaveCategoryGroup.md +8 -0
  41. data/docs/SaveCategoryGroupResponse.md +8 -0
  42. data/docs/SaveCategoryGroupResponseData.md +9 -0
  43. data/docs/SaveMonthCategory.md +1 -1
  44. data/docs/ScheduledTransactionsApi.md +20 -20
  45. data/docs/TransactionResponseData.md +1 -0
  46. data/docs/TransactionsApi.md +48 -48
  47. data/docs/UserApi.md +2 -2
  48. data/examples/category-balance.rb +2 -2
  49. data/examples/create-multiple-transactions.rb +2 -2
  50. data/examples/create-transaction.rb +2 -2
  51. data/examples/{budget-list.rb → plan-list.rb} +6 -6
  52. data/examples/{budget-month.rb → plan-month.rb} +9 -10
  53. data/examples/update-category-budgeted.rb +2 -2
  54. data/examples/update-multiple-transactions.rb +3 -3
  55. data/lib/ynab/api/accounts_api.rb +33 -34
  56. data/lib/ynab/api/categories_api.rb +293 -66
  57. data/lib/ynab/api/deprecated_api.rb +11 -11
  58. data/lib/ynab/api/money_movements_api.rb +282 -0
  59. data/lib/ynab/api/months_api.rb +35 -36
  60. data/lib/ynab/api/payee_locations_api.rb +33 -34
  61. data/lib/ynab/api/payees_api.rb +31 -32
  62. data/lib/ynab/api/{budgets_api.rb → plans_api.rb} +54 -55
  63. data/lib/ynab/api/scheduled_transactions_api.rb +55 -56
  64. data/lib/ynab/api/transactions_api.rb +130 -131
  65. data/lib/ynab/api/user_api.rb +2 -3
  66. data/lib/ynab/api_client.rb +0 -2
  67. data/lib/ynab/api_model_base.rb +85 -0
  68. data/lib/ynab/models/account.rb +4 -81
  69. data/lib/ynab/models/account_response.rb +1 -75
  70. data/lib/ynab/models/account_response_data.rb +1 -75
  71. data/lib/ynab/models/accounts_response.rb +1 -75
  72. data/lib/ynab/models/accounts_response_data.rb +1 -75
  73. data/lib/ynab/models/bulk_response.rb +1 -75
  74. data/lib/ynab/models/bulk_response_data.rb +1 -75
  75. data/lib/ynab/models/bulk_response_data_bulk.rb +1 -75
  76. data/lib/ynab/models/bulk_transactions.rb +1 -75
  77. data/lib/ynab/models/categories_response.rb +1 -75
  78. data/lib/ynab/models/categories_response_data.rb +1 -75
  79. data/lib/ynab/models/category.rb +27 -79
  80. data/lib/ynab/models/category_group.rb +1 -75
  81. data/lib/ynab/models/category_group_with_categories.rb +2 -76
  82. data/lib/ynab/models/category_response.rb +1 -75
  83. data/lib/ynab/models/category_response_data.rb +1 -75
  84. data/lib/ynab/models/currency_format.rb +2 -76
  85. data/lib/ynab/models/date_format.rb +2 -76
  86. data/lib/ynab/models/error_detail.rb +1 -75
  87. data/lib/ynab/models/error_response.rb +1 -75
  88. data/lib/ynab/models/existing_category.rb +180 -0
  89. data/lib/ynab/models/existing_transaction.rb +1 -79
  90. data/lib/ynab/models/hybrid_transaction.rb +1 -85
  91. data/lib/ynab/models/hybrid_transactions_response.rb +1 -75
  92. data/lib/ynab/models/hybrid_transactions_response_data.rb +1 -75
  93. data/lib/ynab/models/money_movement.rb +223 -0
  94. data/lib/ynab/models/money_movement_group.rb +179 -0
  95. data/lib/ynab/models/{budget_summary_response.rb → money_movement_groups_response.rb} +4 -78
  96. data/lib/ynab/models/money_movement_groups_response_data.rb +149 -0
  97. data/lib/ynab/models/{budget_settings_response.rb → money_movements_response.rb} +4 -78
  98. data/lib/ynab/models/money_movements_response_data.rb +149 -0
  99. data/lib/ynab/models/month_detail.rb +3 -79
  100. data/lib/ynab/models/month_detail_response.rb +1 -75
  101. data/lib/ynab/models/month_detail_response_data.rb +1 -75
  102. data/lib/ynab/models/month_summaries_response.rb +1 -75
  103. data/lib/ynab/models/month_summaries_response_data.rb +1 -75
  104. data/lib/ynab/models/month_summary.rb +2 -76
  105. data/lib/ynab/models/new_category.rb +180 -0
  106. data/lib/ynab/models/new_transaction.rb +1 -79
  107. data/lib/ynab/models/patch_category_group_wrapper.rb +136 -0
  108. data/lib/ynab/models/patch_category_wrapper.rb +2 -76
  109. data/lib/ynab/models/patch_month_category_wrapper.rb +1 -75
  110. data/lib/ynab/models/patch_payee_wrapper.rb +1 -75
  111. data/lib/ynab/models/patch_transactions_wrapper.rb +1 -75
  112. data/lib/ynab/models/payee.rb +1 -75
  113. data/lib/ynab/models/payee_location.rb +1 -75
  114. data/lib/ynab/models/payee_location_response.rb +1 -75
  115. data/lib/ynab/models/payee_location_response_data.rb +1 -75
  116. data/lib/ynab/models/payee_locations_response.rb +1 -75
  117. data/lib/ynab/models/payee_locations_response_data.rb +1 -75
  118. data/lib/ynab/models/payee_response.rb +1 -75
  119. data/lib/ynab/models/payee_response_data.rb +1 -75
  120. data/lib/ynab/models/payees_response.rb +1 -75
  121. data/lib/ynab/models/payees_response_data.rb +1 -75
  122. data/lib/ynab/models/{budget_detail.rb → plan_detail.rb} +7 -83
  123. data/lib/ynab/models/plan_detail_response.rb +136 -0
  124. data/lib/ynab/models/{budget_detail_response_data.rb → plan_detail_response_data.rb} +4 -78
  125. data/lib/ynab/models/{budget_settings.rb → plan_settings.rb} +5 -79
  126. data/lib/ynab/models/{budget_detail_response.rb → plan_settings_response.rb} +4 -78
  127. data/lib/ynab/models/{budget_settings_response_data.rb → plan_settings_response_data.rb} +4 -78
  128. data/lib/ynab/models/{budget_summary.rb → plan_summary.rb} +7 -83
  129. data/lib/ynab/models/plan_summary_response.rb +136 -0
  130. data/lib/ynab/models/{budget_summary_response_data.rb → plan_summary_response_data.rb} +5 -79
  131. data/lib/ynab/models/post_account_wrapper.rb +1 -75
  132. data/lib/ynab/models/post_category_group_wrapper.rb +136 -0
  133. data/lib/ynab/models/post_category_wrapper.rb +136 -0
  134. data/lib/ynab/models/post_scheduled_transaction_wrapper.rb +1 -75
  135. data/lib/ynab/models/post_transactions_wrapper.rb +1 -75
  136. data/lib/ynab/models/put_scheduled_transaction_wrapper.rb +1 -75
  137. data/lib/ynab/models/put_transaction_wrapper.rb +1 -75
  138. data/lib/ynab/models/save_account.rb +1 -75
  139. data/lib/ynab/models/save_category.rb +18 -81
  140. data/lib/ynab/models/save_category_group.rb +148 -0
  141. data/lib/ynab/models/save_category_group_response.rb +136 -0
  142. data/lib/ynab/models/save_category_group_response_data.rb +147 -0
  143. data/lib/ynab/models/save_category_response.rb +1 -75
  144. data/lib/ynab/models/save_category_response_data.rb +1 -75
  145. data/lib/ynab/models/save_month_category.rb +2 -76
  146. data/lib/ynab/models/save_payee.rb +1 -75
  147. data/lib/ynab/models/save_payee_response.rb +1 -75
  148. data/lib/ynab/models/save_payee_response_data.rb +1 -75
  149. data/lib/ynab/models/save_scheduled_transaction.rb +1 -75
  150. data/lib/ynab/models/save_sub_transaction.rb +1 -75
  151. data/lib/ynab/models/save_transaction_with_id_or_import_id.rb +1 -79
  152. data/lib/ynab/models/save_transaction_with_optional_fields.rb +1 -75
  153. data/lib/ynab/models/save_transactions_response.rb +1 -75
  154. data/lib/ynab/models/save_transactions_response_data.rb +1 -75
  155. data/lib/ynab/models/scheduled_sub_transaction.rb +1 -75
  156. data/lib/ynab/models/scheduled_transaction_detail.rb +1 -80
  157. data/lib/ynab/models/scheduled_transaction_response.rb +1 -75
  158. data/lib/ynab/models/scheduled_transaction_response_data.rb +1 -75
  159. data/lib/ynab/models/scheduled_transaction_summary.rb +1 -75
  160. data/lib/ynab/models/scheduled_transactions_response.rb +1 -75
  161. data/lib/ynab/models/scheduled_transactions_response_data.rb +1 -75
  162. data/lib/ynab/models/sub_transaction.rb +1 -75
  163. data/lib/ynab/models/transaction_detail.rb +1 -85
  164. data/lib/ynab/models/transaction_flag_color.rb +2 -1
  165. data/lib/ynab/models/transaction_response.rb +1 -75
  166. data/lib/ynab/models/transaction_response_data.rb +16 -79
  167. data/lib/ynab/models/transaction_summary.rb +1 -75
  168. data/lib/ynab/models/transactions_import_response.rb +1 -75
  169. data/lib/ynab/models/transactions_import_response_data.rb +1 -75
  170. data/lib/ynab/models/transactions_response.rb +1 -75
  171. data/lib/ynab/models/transactions_response_data.rb +1 -75
  172. data/lib/ynab/models/user.rb +1 -75
  173. data/lib/ynab/models/user_response.rb +1 -75
  174. data/lib/ynab/models/user_response_data.rb +1 -75
  175. data/lib/ynab/overrides/transactions_api.rb +6 -6
  176. data/lib/ynab/version.rb +1 -1
  177. data/lib/ynab.rb +28 -13
  178. data/open_api_spec.yaml +1163 -905
  179. data/spec/api/accounts_spec.rb +9 -9
  180. data/spec/api/categories_spec.rb +9 -9
  181. data/spec/api/months_spec.rb +7 -7
  182. data/spec/api/payee_locations_spec.rb +7 -7
  183. data/spec/api/payees_spec.rb +7 -7
  184. data/spec/api/{budgets_spec.rb → plans_spec.rb} +12 -12
  185. data/spec/api/scheduled_transactions_spec.rb +9 -9
  186. data/spec/api/transactions_spec.rb +28 -28
  187. data/spec/fixtures/vcr_cassettes/plans.yml +49 -0
  188. data/spec/fixtures/vcr_cassettes/plans_unauthorized.yml +49 -0
  189. data/templates/gem.mustache +3 -2
  190. data/templates/partial_model_generic.mustache +1 -1
  191. data/ynab.gemspec +1 -2
  192. metadata +94 -59
  193. data/docs/BudgetSettingsResponseData.md +0 -8
  194. data/docs/BudgetSummary.md +0 -15
  195. data/docs/BudgetSummaryResponse.md +0 -8
  196. data/docs/BudgetSummaryResponseData.md +0 -9
  197. data/docs/BudgetsApi.md +0 -68
@@ -0,0 +1,282 @@
1
+ =begin
2
+ #YNAB API Endpoints
3
+
4
+ #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
5
+
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
7
+ =end
8
+
9
+ require 'cgi'
10
+
11
+ module YNAB
12
+ class MoneyMovementsApi
13
+ attr_accessor :api_client
14
+
15
+ def initialize(api_client = ApiClient.default)
16
+ @api_client = api_client
17
+ end
18
+ # Get all money movement groups
19
+ # Returns all money movement groups
20
+ # @param plan_id [String] The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
21
+ # @param [Hash] opts the optional parameters
22
+ # @return [MoneyMovementGroupsResponse]
23
+ def get_money_movement_groups(plan_id, opts = {})
24
+ data, _status_code, _headers = get_money_movement_groups_with_http_info(plan_id, opts)
25
+ data
26
+ end
27
+
28
+ # Get all money movement groups
29
+ # Returns all money movement groups
30
+ # @param plan_id [String] The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(MoneyMovementGroupsResponse, Integer, Hash)>] MoneyMovementGroupsResponse data, response status code and response headers
33
+ def get_money_movement_groups_with_http_info(plan_id, opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: MoneyMovementsApi.get_money_movement_groups ...'
36
+ end
37
+ # verify the required parameter 'plan_id' is set
38
+ if @api_client.config.client_side_validation && plan_id.nil?
39
+ fail ArgumentError, "Missing the required parameter 'plan_id' when calling MoneyMovementsApi.get_money_movement_groups"
40
+ end
41
+ # resource path
42
+ local_var_path = '/budgets/{plan_id}/money_movement_groups'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
43
+
44
+ # query parameters
45
+ query_params = opts[:query_params] || {}
46
+
47
+ # header parameters
48
+ header_params = opts[:header_params] || {}
49
+ # HTTP header 'Accept' (if needed)
50
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
51
+
52
+ # form parameters
53
+ form_params = opts[:form_params] || {}
54
+
55
+ # http body (model)
56
+ post_body = opts[:debug_body]
57
+
58
+ # return_type
59
+ return_type = opts[:debug_return_type] || 'MoneyMovementGroupsResponse'
60
+
61
+ # auth_names
62
+ auth_names = opts[:debug_auth_names] || ['bearer']
63
+
64
+ new_options = opts.merge(
65
+ :operation => :"MoneyMovementsApi.get_money_movement_groups",
66
+ :header_params => header_params,
67
+ :query_params => query_params,
68
+ :form_params => form_params,
69
+ :body => post_body,
70
+ :auth_names => auth_names,
71
+ :return_type => return_type
72
+ )
73
+
74
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
75
+ if @api_client.config.debugging
76
+ @api_client.config.logger.debug "API called: MoneyMovementsApi#get_money_movement_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
+ end
78
+ return data, status_code, headers
79
+ end
80
+
81
+ # Get money movement groups for a plan month
82
+ # Returns all money movement groups for a specific month
83
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
84
+ # @param month [Date] The plan month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
85
+ # @param [Hash] opts the optional parameters
86
+ # @return [MoneyMovementGroupsResponse]
87
+ def get_money_movement_groups_by_month(plan_id, month, opts = {})
88
+ data, _status_code, _headers = get_money_movement_groups_by_month_with_http_info(plan_id, month, opts)
89
+ data
90
+ end
91
+
92
+ # Get money movement groups for a plan month
93
+ # Returns all money movement groups for a specific month
94
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
95
+ # @param month [Date] The plan month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
96
+ # @param [Hash] opts the optional parameters
97
+ # @return [Array<(MoneyMovementGroupsResponse, Integer, Hash)>] MoneyMovementGroupsResponse data, response status code and response headers
98
+ def get_money_movement_groups_by_month_with_http_info(plan_id, month, opts = {})
99
+ if @api_client.config.debugging
100
+ @api_client.config.logger.debug 'Calling API: MoneyMovementsApi.get_money_movement_groups_by_month ...'
101
+ end
102
+ # verify the required parameter 'plan_id' is set
103
+ if @api_client.config.client_side_validation && plan_id.nil?
104
+ fail ArgumentError, "Missing the required parameter 'plan_id' when calling MoneyMovementsApi.get_money_movement_groups_by_month"
105
+ end
106
+ # verify the required parameter 'month' is set
107
+ if @api_client.config.client_side_validation && month.nil?
108
+ fail ArgumentError, "Missing the required parameter 'month' when calling MoneyMovementsApi.get_money_movement_groups_by_month"
109
+ end
110
+ # resource path
111
+ local_var_path = '/budgets/{plan_id}/months/{month}/money_movement_groups'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s))
112
+
113
+ # query parameters
114
+ query_params = opts[:query_params] || {}
115
+
116
+ # header parameters
117
+ header_params = opts[:header_params] || {}
118
+ # HTTP header 'Accept' (if needed)
119
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
120
+
121
+ # form parameters
122
+ form_params = opts[:form_params] || {}
123
+
124
+ # http body (model)
125
+ post_body = opts[:debug_body]
126
+
127
+ # return_type
128
+ return_type = opts[:debug_return_type] || 'MoneyMovementGroupsResponse'
129
+
130
+ # auth_names
131
+ auth_names = opts[:debug_auth_names] || ['bearer']
132
+
133
+ new_options = opts.merge(
134
+ :operation => :"MoneyMovementsApi.get_money_movement_groups_by_month",
135
+ :header_params => header_params,
136
+ :query_params => query_params,
137
+ :form_params => form_params,
138
+ :body => post_body,
139
+ :auth_names => auth_names,
140
+ :return_type => return_type
141
+ )
142
+
143
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
144
+ if @api_client.config.debugging
145
+ @api_client.config.logger.debug "API called: MoneyMovementsApi#get_money_movement_groups_by_month\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
+ end
147
+ return data, status_code, headers
148
+ end
149
+
150
+ # Get all money movements
151
+ # Returns all money movements
152
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
153
+ # @param [Hash] opts the optional parameters
154
+ # @return [MoneyMovementsResponse]
155
+ def get_money_movements(plan_id, opts = {})
156
+ data, _status_code, _headers = get_money_movements_with_http_info(plan_id, opts)
157
+ data
158
+ end
159
+
160
+ # Get all money movements
161
+ # Returns all money movements
162
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
163
+ # @param [Hash] opts the optional parameters
164
+ # @return [Array<(MoneyMovementsResponse, Integer, Hash)>] MoneyMovementsResponse data, response status code and response headers
165
+ def get_money_movements_with_http_info(plan_id, opts = {})
166
+ if @api_client.config.debugging
167
+ @api_client.config.logger.debug 'Calling API: MoneyMovementsApi.get_money_movements ...'
168
+ end
169
+ # verify the required parameter 'plan_id' is set
170
+ if @api_client.config.client_side_validation && plan_id.nil?
171
+ fail ArgumentError, "Missing the required parameter 'plan_id' when calling MoneyMovementsApi.get_money_movements"
172
+ end
173
+ # resource path
174
+ local_var_path = '/budgets/{plan_id}/money_movements'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
175
+
176
+ # query parameters
177
+ query_params = opts[:query_params] || {}
178
+
179
+ # header parameters
180
+ header_params = opts[:header_params] || {}
181
+ # HTTP header 'Accept' (if needed)
182
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
183
+
184
+ # form parameters
185
+ form_params = opts[:form_params] || {}
186
+
187
+ # http body (model)
188
+ post_body = opts[:debug_body]
189
+
190
+ # return_type
191
+ return_type = opts[:debug_return_type] || 'MoneyMovementsResponse'
192
+
193
+ # auth_names
194
+ auth_names = opts[:debug_auth_names] || ['bearer']
195
+
196
+ new_options = opts.merge(
197
+ :operation => :"MoneyMovementsApi.get_money_movements",
198
+ :header_params => header_params,
199
+ :query_params => query_params,
200
+ :form_params => form_params,
201
+ :body => post_body,
202
+ :auth_names => auth_names,
203
+ :return_type => return_type
204
+ )
205
+
206
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
207
+ if @api_client.config.debugging
208
+ @api_client.config.logger.debug "API called: MoneyMovementsApi#get_money_movements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
209
+ end
210
+ return data, status_code, headers
211
+ end
212
+
213
+ # Get money movements for a plan month
214
+ # Returns all money movements for a specific month
215
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
216
+ # @param month [Date] The plan month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
217
+ # @param [Hash] opts the optional parameters
218
+ # @return [MoneyMovementsResponse]
219
+ def get_money_movements_by_month(plan_id, month, opts = {})
220
+ data, _status_code, _headers = get_money_movements_by_month_with_http_info(plan_id, month, opts)
221
+ data
222
+ end
223
+
224
+ # Get money movements for a plan month
225
+ # Returns all money movements for a specific month
226
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
227
+ # @param month [Date] The plan month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
228
+ # @param [Hash] opts the optional parameters
229
+ # @return [Array<(MoneyMovementsResponse, Integer, Hash)>] MoneyMovementsResponse data, response status code and response headers
230
+ def get_money_movements_by_month_with_http_info(plan_id, month, opts = {})
231
+ if @api_client.config.debugging
232
+ @api_client.config.logger.debug 'Calling API: MoneyMovementsApi.get_money_movements_by_month ...'
233
+ end
234
+ # verify the required parameter 'plan_id' is set
235
+ if @api_client.config.client_side_validation && plan_id.nil?
236
+ fail ArgumentError, "Missing the required parameter 'plan_id' when calling MoneyMovementsApi.get_money_movements_by_month"
237
+ end
238
+ # verify the required parameter 'month' is set
239
+ if @api_client.config.client_side_validation && month.nil?
240
+ fail ArgumentError, "Missing the required parameter 'month' when calling MoneyMovementsApi.get_money_movements_by_month"
241
+ end
242
+ # resource path
243
+ local_var_path = '/budgets/{plan_id}/months/{month}/money_movements'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s))
244
+
245
+ # query parameters
246
+ query_params = opts[:query_params] || {}
247
+
248
+ # header parameters
249
+ header_params = opts[:header_params] || {}
250
+ # HTTP header 'Accept' (if needed)
251
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
252
+
253
+ # form parameters
254
+ form_params = opts[:form_params] || {}
255
+
256
+ # http body (model)
257
+ post_body = opts[:debug_body]
258
+
259
+ # return_type
260
+ return_type = opts[:debug_return_type] || 'MoneyMovementsResponse'
261
+
262
+ # auth_names
263
+ auth_names = opts[:debug_auth_names] || ['bearer']
264
+
265
+ new_options = opts.merge(
266
+ :operation => :"MoneyMovementsApi.get_money_movements_by_month",
267
+ :header_params => header_params,
268
+ :query_params => query_params,
269
+ :form_params => form_params,
270
+ :body => post_body,
271
+ :auth_names => auth_names,
272
+ :return_type => return_type
273
+ )
274
+
275
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
276
+ if @api_client.config.debugging
277
+ @api_client.config.logger.debug "API called: MoneyMovementsApi#get_money_movements_by_month\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
278
+ end
279
+ return data, status_code, headers
280
+ end
281
+ end
282
+ end
@@ -4,7 +4,6 @@
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
5
5
 
6
6
  Generated by: OpenAPI Generator (https://openapi-generator.tech)
7
-
8
7
  =end
9
8
 
10
9
  require 'cgi'
@@ -16,37 +15,37 @@ module YNAB
16
15
  def initialize(api_client = ApiClient.default)
17
16
  @api_client = api_client
18
17
  end
19
- # Single budget month
20
- # Returns a single budget month
21
- # @param budget_id [String] 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.ynab.com/#oauth-default-budget).
22
- # @param month [Date] 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))
18
+ # Get a plan month
19
+ # Returns a single plan month
20
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
21
+ # @param month [Date] The plan month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
23
22
  # @param [Hash] opts the optional parameters
24
23
  # @return [MonthDetailResponse]
25
- def get_budget_month(budget_id, month, opts = {})
26
- data, _status_code, _headers = get_budget_month_with_http_info(budget_id, month, opts)
24
+ def get_plan_month(plan_id, month, opts = {})
25
+ data, _status_code, _headers = get_plan_month_with_http_info(plan_id, month, opts)
27
26
  data
28
27
  end
29
28
 
30
- # Single budget month
31
- # Returns a single budget month
32
- # @param budget_id [String] 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.ynab.com/#oauth-default-budget).
33
- # @param month [Date] 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))
29
+ # Get a plan month
30
+ # Returns a single plan month
31
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
32
+ # @param month [Date] The plan month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
34
33
  # @param [Hash] opts the optional parameters
35
34
  # @return [Array<(MonthDetailResponse, Integer, Hash)>] MonthDetailResponse data, response status code and response headers
36
- def get_budget_month_with_http_info(budget_id, month, opts = {})
35
+ def get_plan_month_with_http_info(plan_id, month, opts = {})
37
36
  if @api_client.config.debugging
38
- @api_client.config.logger.debug 'Calling API: MonthsApi.get_budget_month ...'
37
+ @api_client.config.logger.debug 'Calling API: MonthsApi.get_plan_month ...'
39
38
  end
40
- # verify the required parameter 'budget_id' is set
41
- if @api_client.config.client_side_validation && budget_id.nil?
42
- fail ArgumentError, "Missing the required parameter 'budget_id' when calling MonthsApi.get_budget_month"
39
+ # verify the required parameter 'plan_id' is set
40
+ if @api_client.config.client_side_validation && plan_id.nil?
41
+ fail ArgumentError, "Missing the required parameter 'plan_id' when calling MonthsApi.get_plan_month"
43
42
  end
44
43
  # verify the required parameter 'month' is set
45
44
  if @api_client.config.client_side_validation && month.nil?
46
- fail ArgumentError, "Missing the required parameter 'month' when calling MonthsApi.get_budget_month"
45
+ fail ArgumentError, "Missing the required parameter 'month' when calling MonthsApi.get_plan_month"
47
46
  end
48
47
  # resource path
49
- local_var_path = '/budgets/{budget_id}/months/{month}'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s))
48
+ local_var_path = '/budgets/{plan_id}/months/{month}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s))
50
49
 
51
50
  # query parameters
52
51
  query_params = opts[:query_params] || {}
@@ -69,7 +68,7 @@ module YNAB
69
68
  auth_names = opts[:debug_auth_names] || ['bearer']
70
69
 
71
70
  new_options = opts.merge(
72
- :operation => :"MonthsApi.get_budget_month",
71
+ :operation => :"MonthsApi.get_plan_month",
73
72
  :header_params => header_params,
74
73
  :query_params => query_params,
75
74
  :form_params => form_params,
@@ -80,38 +79,38 @@ module YNAB
80
79
 
81
80
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
82
81
  if @api_client.config.debugging
83
- @api_client.config.logger.debug "API called: MonthsApi#get_budget_month\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ @api_client.config.logger.debug "API called: MonthsApi#get_plan_month\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
83
  end
85
84
  return data, status_code, headers
86
85
  end
87
86
 
88
- # List budget months
89
- # Returns all budget months
90
- # @param budget_id [String] 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.ynab.com/#oauth-default-budget).
87
+ # Get all plan months
88
+ # Returns all plan months
89
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
91
90
  # @param [Hash] opts the optional parameters
92
91
  # @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.
93
92
  # @return [MonthSummariesResponse]
94
- def get_budget_months(budget_id, opts = {})
95
- data, _status_code, _headers = get_budget_months_with_http_info(budget_id, opts)
93
+ def get_plan_months(plan_id, opts = {})
94
+ data, _status_code, _headers = get_plan_months_with_http_info(plan_id, opts)
96
95
  data
97
96
  end
98
97
 
99
- # List budget months
100
- # Returns all budget months
101
- # @param budget_id [String] 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.ynab.com/#oauth-default-budget).
98
+ # Get all plan months
99
+ # Returns all plan months
100
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
102
101
  # @param [Hash] opts the optional parameters
103
102
  # @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.
104
103
  # @return [Array<(MonthSummariesResponse, Integer, Hash)>] MonthSummariesResponse data, response status code and response headers
105
- def get_budget_months_with_http_info(budget_id, opts = {})
104
+ def get_plan_months_with_http_info(plan_id, opts = {})
106
105
  if @api_client.config.debugging
107
- @api_client.config.logger.debug 'Calling API: MonthsApi.get_budget_months ...'
106
+ @api_client.config.logger.debug 'Calling API: MonthsApi.get_plan_months ...'
108
107
  end
109
- # verify the required parameter 'budget_id' is set
110
- if @api_client.config.client_side_validation && budget_id.nil?
111
- fail ArgumentError, "Missing the required parameter 'budget_id' when calling MonthsApi.get_budget_months"
108
+ # verify the required parameter 'plan_id' is set
109
+ if @api_client.config.client_side_validation && plan_id.nil?
110
+ fail ArgumentError, "Missing the required parameter 'plan_id' when calling MonthsApi.get_plan_months"
112
111
  end
113
112
  # resource path
114
- local_var_path = '/budgets/{budget_id}/months'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s))
113
+ local_var_path = '/budgets/{plan_id}/months'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
115
114
 
116
115
  # query parameters
117
116
  query_params = opts[:query_params] || {}
@@ -135,7 +134,7 @@ module YNAB
135
134
  auth_names = opts[:debug_auth_names] || ['bearer']
136
135
 
137
136
  new_options = opts.merge(
138
- :operation => :"MonthsApi.get_budget_months",
137
+ :operation => :"MonthsApi.get_plan_months",
139
138
  :header_params => header_params,
140
139
  :query_params => query_params,
141
140
  :form_params => form_params,
@@ -146,7 +145,7 @@ module YNAB
146
145
 
147
146
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
148
147
  if @api_client.config.debugging
149
- @api_client.config.logger.debug "API called: MonthsApi#get_budget_months\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
+ @api_client.config.logger.debug "API called: MonthsApi#get_plan_months\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
149
  end
151
150
  return data, status_code, headers
152
151
  end
@@ -4,7 +4,6 @@
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
5
5
 
6
6
  Generated by: OpenAPI Generator (https://openapi-generator.tech)
7
-
8
7
  =end
9
8
 
10
9
  require 'cgi'
@@ -16,37 +15,37 @@ module YNAB
16
15
  def initialize(api_client = ApiClient.default)
17
16
  @api_client = api_client
18
17
  end
19
- # Single payee location
18
+ # Get a payee location
20
19
  # Returns a single payee location
21
- # @param budget_id [String] 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.ynab.com/#oauth-default-budget).
20
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
22
21
  # @param payee_location_id [String] id of payee location
23
22
  # @param [Hash] opts the optional parameters
24
23
  # @return [PayeeLocationResponse]
25
- def get_payee_location_by_id(budget_id, payee_location_id, opts = {})
26
- data, _status_code, _headers = get_payee_location_by_id_with_http_info(budget_id, payee_location_id, opts)
24
+ def get_payee_location_by_id(plan_id, payee_location_id, opts = {})
25
+ data, _status_code, _headers = get_payee_location_by_id_with_http_info(plan_id, payee_location_id, opts)
27
26
  data
28
27
  end
29
28
 
30
- # Single payee location
29
+ # Get a payee location
31
30
  # Returns a single payee location
32
- # @param budget_id [String] 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.ynab.com/#oauth-default-budget).
31
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
33
32
  # @param payee_location_id [String] id of payee location
34
33
  # @param [Hash] opts the optional parameters
35
34
  # @return [Array<(PayeeLocationResponse, Integer, Hash)>] PayeeLocationResponse data, response status code and response headers
36
- def get_payee_location_by_id_with_http_info(budget_id, payee_location_id, opts = {})
35
+ def get_payee_location_by_id_with_http_info(plan_id, payee_location_id, opts = {})
37
36
  if @api_client.config.debugging
38
37
  @api_client.config.logger.debug 'Calling API: PayeeLocationsApi.get_payee_location_by_id ...'
39
38
  end
40
- # verify the required parameter 'budget_id' is set
41
- if @api_client.config.client_side_validation && budget_id.nil?
42
- fail ArgumentError, "Missing the required parameter 'budget_id' when calling PayeeLocationsApi.get_payee_location_by_id"
39
+ # verify the required parameter 'plan_id' is set
40
+ if @api_client.config.client_side_validation && plan_id.nil?
41
+ fail ArgumentError, "Missing the required parameter 'plan_id' when calling PayeeLocationsApi.get_payee_location_by_id"
43
42
  end
44
43
  # verify the required parameter 'payee_location_id' is set
45
44
  if @api_client.config.client_side_validation && payee_location_id.nil?
46
45
  fail ArgumentError, "Missing the required parameter 'payee_location_id' when calling PayeeLocationsApi.get_payee_location_by_id"
47
46
  end
48
47
  # resource path
49
- local_var_path = '/budgets/{budget_id}/payee_locations/{payee_location_id}'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'payee_location_id' + '}', CGI.escape(payee_location_id.to_s))
48
+ local_var_path = '/budgets/{plan_id}/payee_locations/{payee_location_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_location_id' + '}', CGI.escape(payee_location_id.to_s))
50
49
 
51
50
  # query parameters
52
51
  query_params = opts[:query_params] || {}
@@ -85,31 +84,31 @@ module YNAB
85
84
  return data, status_code, headers
86
85
  end
87
86
 
88
- # List payee locations
87
+ # Get all payee locations
89
88
  # Returns all payee locations
90
- # @param budget_id [String] 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.ynab.com/#oauth-default-budget).
89
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
91
90
  # @param [Hash] opts the optional parameters
92
91
  # @return [PayeeLocationsResponse]
93
- def get_payee_locations(budget_id, opts = {})
94
- data, _status_code, _headers = get_payee_locations_with_http_info(budget_id, opts)
92
+ def get_payee_locations(plan_id, opts = {})
93
+ data, _status_code, _headers = get_payee_locations_with_http_info(plan_id, opts)
95
94
  data
96
95
  end
97
96
 
98
- # List payee locations
97
+ # Get all payee locations
99
98
  # Returns all payee locations
100
- # @param budget_id [String] 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.ynab.com/#oauth-default-budget).
99
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
101
100
  # @param [Hash] opts the optional parameters
102
101
  # @return [Array<(PayeeLocationsResponse, Integer, Hash)>] PayeeLocationsResponse data, response status code and response headers
103
- def get_payee_locations_with_http_info(budget_id, opts = {})
102
+ def get_payee_locations_with_http_info(plan_id, opts = {})
104
103
  if @api_client.config.debugging
105
104
  @api_client.config.logger.debug 'Calling API: PayeeLocationsApi.get_payee_locations ...'
106
105
  end
107
- # verify the required parameter 'budget_id' is set
108
- if @api_client.config.client_side_validation && budget_id.nil?
109
- fail ArgumentError, "Missing the required parameter 'budget_id' when calling PayeeLocationsApi.get_payee_locations"
106
+ # verify the required parameter 'plan_id' is set
107
+ if @api_client.config.client_side_validation && plan_id.nil?
108
+ fail ArgumentError, "Missing the required parameter 'plan_id' when calling PayeeLocationsApi.get_payee_locations"
110
109
  end
111
110
  # resource path
112
- local_var_path = '/budgets/{budget_id}/payee_locations'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s))
111
+ local_var_path = '/budgets/{plan_id}/payee_locations'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
113
112
 
114
113
  # query parameters
115
114
  query_params = opts[:query_params] || {}
@@ -148,37 +147,37 @@ module YNAB
148
147
  return data, status_code, headers
149
148
  end
150
149
 
151
- # List locations for a payee
150
+ # Get all locations for a payee
152
151
  # Returns all payee locations for a specified payee
153
- # @param budget_id [String] 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.ynab.com/#oauth-default-budget).
152
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
154
153
  # @param payee_id [String] id of payee
155
154
  # @param [Hash] opts the optional parameters
156
155
  # @return [PayeeLocationsResponse]
157
- def get_payee_locations_by_payee(budget_id, payee_id, opts = {})
158
- data, _status_code, _headers = get_payee_locations_by_payee_with_http_info(budget_id, payee_id, opts)
156
+ def get_payee_locations_by_payee(plan_id, payee_id, opts = {})
157
+ data, _status_code, _headers = get_payee_locations_by_payee_with_http_info(plan_id, payee_id, opts)
159
158
  data
160
159
  end
161
160
 
162
- # List locations for a payee
161
+ # Get all locations for a payee
163
162
  # Returns all payee locations for a specified payee
164
- # @param budget_id [String] 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.ynab.com/#oauth-default-budget).
163
+ # @param plan_id [String] The id of the plan. \&quot;last-used\&quot; can be used to specify the last used plan and \&quot;default\&quot; can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
165
164
  # @param payee_id [String] id of payee
166
165
  # @param [Hash] opts the optional parameters
167
166
  # @return [Array<(PayeeLocationsResponse, Integer, Hash)>] PayeeLocationsResponse data, response status code and response headers
168
- def get_payee_locations_by_payee_with_http_info(budget_id, payee_id, opts = {})
167
+ def get_payee_locations_by_payee_with_http_info(plan_id, payee_id, opts = {})
169
168
  if @api_client.config.debugging
170
169
  @api_client.config.logger.debug 'Calling API: PayeeLocationsApi.get_payee_locations_by_payee ...'
171
170
  end
172
- # verify the required parameter 'budget_id' is set
173
- if @api_client.config.client_side_validation && budget_id.nil?
174
- fail ArgumentError, "Missing the required parameter 'budget_id' when calling PayeeLocationsApi.get_payee_locations_by_payee"
171
+ # verify the required parameter 'plan_id' is set
172
+ if @api_client.config.client_side_validation && plan_id.nil?
173
+ fail ArgumentError, "Missing the required parameter 'plan_id' when calling PayeeLocationsApi.get_payee_locations_by_payee"
175
174
  end
176
175
  # verify the required parameter 'payee_id' is set
177
176
  if @api_client.config.client_side_validation && payee_id.nil?
178
177
  fail ArgumentError, "Missing the required parameter 'payee_id' when calling PayeeLocationsApi.get_payee_locations_by_payee"
179
178
  end
180
179
  # resource path
181
- local_var_path = '/budgets/{budget_id}/payees/{payee_id}/payee_locations'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s))
180
+ local_var_path = '/budgets/{plan_id}/payees/{payee_id}/payee_locations'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s))
182
181
 
183
182
  # query parameters
184
183
  query_params = opts[:query_params] || {}