ynab 0.6.0 → 0.7.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 (98) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +24 -24
  4. data/Rakefile +1 -1
  5. data/config.json +1 -1
  6. data/docs/AccountsApi.md +0 -76
  7. data/docs/BudgetsApi.md +0 -74
  8. data/docs/CategoriesApi.md +0 -76
  9. data/docs/CurrencyFormat.md +8 -1
  10. data/docs/DateFormat.md +1 -1
  11. data/docs/HybridTransaction.md +3 -0
  12. data/docs/MonthsApi.md +0 -76
  13. data/docs/PayeeLocationsApi.md +0 -115
  14. data/docs/PayeesApi.md +0 -76
  15. data/docs/ScheduledTransactionsApi.md +0 -76
  16. data/docs/TransactionsApi.md +0 -325
  17. data/docs/UserApi.md +0 -34
  18. data/lib/ynab/api/accounts_api.rb +8 -10
  19. data/lib/ynab/api/budgets_api.rb +8 -10
  20. data/lib/ynab/api/categories_api.rb +8 -10
  21. data/lib/ynab/api/months_api.rb +8 -10
  22. data/lib/ynab/api/payee_locations_api.rb +11 -14
  23. data/lib/ynab/api/payees_api.rb +8 -10
  24. data/lib/ynab/api/scheduled_transactions_api.rb +8 -10
  25. data/lib/ynab/api/transactions_api.rb +26 -34
  26. data/lib/ynab/api/user_api.rb +5 -6
  27. data/lib/ynab/api_client.rb +1 -1
  28. data/lib/ynab/api_error.rb +1 -1
  29. data/lib/ynab/configuration.rb +2 -2
  30. data/lib/ynab/models/account.rb +18 -22
  31. data/lib/ynab/models/account_response.rb +7 -12
  32. data/lib/ynab/models/account_wrapper.rb +7 -12
  33. data/lib/ynab/models/accounts_response.rb +7 -12
  34. data/lib/ynab/models/accounts_wrapper.rb +7 -12
  35. data/lib/ynab/models/budget_detail.rb +8 -13
  36. data/lib/ynab/models/budget_detail_response.rb +7 -12
  37. data/lib/ynab/models/budget_detail_wrapper.rb +8 -13
  38. data/lib/ynab/models/budget_summary.rb +8 -13
  39. data/lib/ynab/models/budget_summary_response.rb +7 -12
  40. data/lib/ynab/models/budget_summary_wrapper.rb +7 -12
  41. data/lib/ynab/models/bulk_id_wrapper.rb +7 -12
  42. data/lib/ynab/models/bulk_ids.rb +8 -13
  43. data/lib/ynab/models/bulk_response.rb +7 -12
  44. data/lib/ynab/models/bulk_transactions.rb +7 -12
  45. data/lib/ynab/models/categories_response.rb +7 -12
  46. data/lib/ynab/models/category.rb +14 -19
  47. data/lib/ynab/models/category_group.rb +9 -14
  48. data/lib/ynab/models/category_group_with_categories.rb +10 -15
  49. data/lib/ynab/models/category_groups_wrapper.rb +7 -12
  50. data/lib/ynab/models/category_response.rb +7 -12
  51. data/lib/ynab/models/category_wrapper.rb +7 -12
  52. data/lib/ynab/models/currency_format.rb +112 -19
  53. data/lib/ynab/models/date_format.rb +16 -21
  54. data/lib/ynab/models/error_detail.rb +9 -14
  55. data/lib/ynab/models/error_response.rb +7 -12
  56. data/lib/ynab/models/hybrid_transaction.rb +74 -36
  57. data/lib/ynab/models/hybrid_transactions_response.rb +7 -12
  58. data/lib/ynab/models/hybrid_transactions_wrapper.rb +7 -12
  59. data/lib/ynab/models/month_detail.rb +11 -16
  60. data/lib/ynab/models/month_detail_response.rb +7 -12
  61. data/lib/ynab/models/month_detail_wrapper.rb +7 -12
  62. data/lib/ynab/models/month_summaries_response.rb +7 -12
  63. data/lib/ynab/models/month_summaries_wrapper.rb +7 -12
  64. data/lib/ynab/models/month_summary.rb +10 -15
  65. data/lib/ynab/models/payee.rb +9 -14
  66. data/lib/ynab/models/payee_location.rb +10 -15
  67. data/lib/ynab/models/payee_location_response.rb +7 -12
  68. data/lib/ynab/models/payee_location_wrapper.rb +7 -12
  69. data/lib/ynab/models/payee_locations_response.rb +7 -12
  70. data/lib/ynab/models/payee_locations_wrapper.rb +7 -12
  71. data/lib/ynab/models/payee_response.rb +7 -12
  72. data/lib/ynab/models/payee_wrapper.rb +7 -12
  73. data/lib/ynab/models/payees_response.rb +7 -12
  74. data/lib/ynab/models/payees_wrapper.rb +7 -12
  75. data/lib/ynab/models/save_transaction.rb +15 -19
  76. data/lib/ynab/models/save_transaction_wrapper.rb +7 -12
  77. data/lib/ynab/models/scheduled_sub_transaction.rb +13 -18
  78. data/lib/ynab/models/scheduled_transaction_detail.rb +27 -31
  79. data/lib/ynab/models/scheduled_transaction_response.rb +7 -12
  80. data/lib/ynab/models/scheduled_transaction_summary.rb +23 -27
  81. data/lib/ynab/models/scheduled_transaction_wrapper.rb +7 -12
  82. data/lib/ynab/models/scheduled_transactions_response.rb +7 -12
  83. data/lib/ynab/models/scheduled_transactions_wrapper.rb +7 -12
  84. data/lib/ynab/models/sub_transaction.rb +13 -18
  85. data/lib/ynab/models/transaction_detail.rb +28 -32
  86. data/lib/ynab/models/transaction_response.rb +7 -12
  87. data/lib/ynab/models/transaction_summary.rb +24 -28
  88. data/lib/ynab/models/transaction_wrapper.rb +7 -12
  89. data/lib/ynab/models/transactions_response.rb +7 -12
  90. data/lib/ynab/models/transactions_wrapper.rb +7 -12
  91. data/lib/ynab/models/user.rb +7 -12
  92. data/lib/ynab/models/user_response.rb +7 -12
  93. data/lib/ynab/models/user_wrapper.rb +7 -12
  94. data/lib/ynab/version.rb +2 -2
  95. data/spec-v1-swagger.json +50 -5
  96. data/swagger-templates/api_doc.mustache +32 -0
  97. data/ynab.gemspec +1 -1
  98. metadata +4 -3
@@ -14,29 +14,6 @@ User info
14
14
 
15
15
  Returns authenticated user information.
16
16
 
17
- ### Example
18
- ```ruby
19
- # load the gem
20
- require 'ynab'
21
- # setup authorization
22
- YnabApi.configure do |config|
23
- # Configure API key authorization: bearer
24
- config.api_key['Authorization'] = 'YOUR API KEY'
25
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
- #config.api_key_prefix['Authorization'] = 'Bearer'
27
- end
28
-
29
- api_instance = YnabApi::UserApi.new
30
-
31
- begin
32
- #User info
33
- result = api_instance.get_user
34
- p result
35
- rescue YnabApi::ApiError => e
36
- puts "Exception when calling UserApi->get_user: #{e}"
37
- end
38
- ```
39
-
40
17
  ### Parameters
41
18
  This endpoint does not need any parameter.
42
19
 
@@ -44,14 +21,3 @@ This endpoint does not need any parameter.
44
21
 
45
22
  [**UserResponse**](UserResponse.md)
46
23
 
47
- ### Authorization
48
-
49
- [bearer](../README.md#bearer)
50
-
51
- ### HTTP request headers
52
-
53
- - **Content-Type**: Not defined
54
- - **Accept**: application/json
55
-
56
-
57
-
@@ -6,11 +6,11 @@
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.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module YnabApi
16
16
  class AccountsApi
@@ -19,7 +19,6 @@ module YnabApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Single account
24
23
  # Returns a single account
25
24
  # @param budget_id The ID of the Budget.
@@ -28,7 +27,7 @@ module YnabApi
28
27
  # @return [AccountResponse]
29
28
  def get_account_by_id(budget_id, account_id, opts = {})
30
29
  data, _status_code, _headers = get_account_by_id_with_http_info(budget_id, account_id, opts)
31
- return data
30
+ data
32
31
  end
33
32
 
34
33
  # Single account
@@ -39,7 +38,7 @@ module YnabApi
39
38
  # @return [Array<(AccountResponse, Fixnum, Hash)>] AccountResponse data, response status code and response headers
40
39
  def get_account_by_id_with_http_info(budget_id, account_id, opts = {})
41
40
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: AccountsApi.get_account_by_id ..."
41
+ @api_client.config.logger.debug 'Calling API: AccountsApi.get_account_by_id ...'
43
42
  end
44
43
  # verify the required parameter 'budget_id' is set
45
44
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -50,7 +49,7 @@ module YnabApi
50
49
  fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_account_by_id"
51
50
  end
52
51
  # resource path
53
- local_var_path = "/budgets/{budget_id}/accounts/{account_id}".sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'account_id' + '}', account_id.to_s)
52
+ local_var_path = '/budgets/{budget_id}/accounts/{account_id}'.sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'account_id' + '}', account_id.to_s)
54
53
 
55
54
  # query parameters
56
55
  query_params = {}
@@ -78,7 +77,6 @@ module YnabApi
78
77
  end
79
78
  return data, status_code, headers
80
79
  end
81
-
82
80
  # Account list
83
81
  # Returns all accounts
84
82
  # @param budget_id The ID of the Budget.
@@ -86,7 +84,7 @@ module YnabApi
86
84
  # @return [AccountsResponse]
87
85
  def get_accounts(budget_id, opts = {})
88
86
  data, _status_code, _headers = get_accounts_with_http_info(budget_id, opts)
89
- return data
87
+ data
90
88
  end
91
89
 
92
90
  # Account list
@@ -96,14 +94,14 @@ module YnabApi
96
94
  # @return [Array<(AccountsResponse, Fixnum, Hash)>] AccountsResponse data, response status code and response headers
97
95
  def get_accounts_with_http_info(budget_id, opts = {})
98
96
  if @api_client.config.debugging
99
- @api_client.config.logger.debug "Calling API: AccountsApi.get_accounts ..."
97
+ @api_client.config.logger.debug 'Calling API: AccountsApi.get_accounts ...'
100
98
  end
101
99
  # verify the required parameter 'budget_id' is set
102
100
  if @api_client.config.client_side_validation && budget_id.nil?
103
101
  fail ArgumentError, "Missing the required parameter 'budget_id' when calling AccountsApi.get_accounts"
104
102
  end
105
103
  # resource path
106
- local_var_path = "/budgets/{budget_id}/accounts".sub('{' + 'budget_id' + '}', budget_id.to_s)
104
+ local_var_path = '/budgets/{budget_id}/accounts'.sub('{' + 'budget_id' + '}', budget_id.to_s)
107
105
 
108
106
  # query parameters
109
107
  query_params = {}
@@ -6,11 +6,11 @@
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.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module YnabApi
16
16
  class BudgetsApi
@@ -19,7 +19,6 @@ module YnabApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Single budget
24
23
  # Returns a single budget with all related entities. This resource is effectively a full budget export.
25
24
  # @param budget_id The ID of the Budget.
@@ -28,7 +27,7 @@ module YnabApi
28
27
  # @return [BudgetDetailResponse]
29
28
  def get_budget_by_id(budget_id, opts = {})
30
29
  data, _status_code, _headers = get_budget_by_id_with_http_info(budget_id, opts)
31
- return data
30
+ data
32
31
  end
33
32
 
34
33
  # Single budget
@@ -39,14 +38,14 @@ module YnabApi
39
38
  # @return [Array<(BudgetDetailResponse, Fixnum, Hash)>] BudgetDetailResponse data, response status code and response headers
40
39
  def get_budget_by_id_with_http_info(budget_id, opts = {})
41
40
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: BudgetsApi.get_budget_by_id ..."
41
+ @api_client.config.logger.debug 'Calling API: BudgetsApi.get_budget_by_id ...'
43
42
  end
44
43
  # verify the required parameter 'budget_id' is set
45
44
  if @api_client.config.client_side_validation && budget_id.nil?
46
45
  fail ArgumentError, "Missing the required parameter 'budget_id' when calling BudgetsApi.get_budget_by_id"
47
46
  end
48
47
  # resource path
49
- local_var_path = "/budgets/{budget_id}".sub('{' + 'budget_id' + '}', budget_id.to_s)
48
+ local_var_path = '/budgets/{budget_id}'.sub('{' + 'budget_id' + '}', budget_id.to_s)
50
49
 
51
50
  # query parameters
52
51
  query_params = {}
@@ -75,14 +74,13 @@ module YnabApi
75
74
  end
76
75
  return data, status_code, headers
77
76
  end
78
-
79
77
  # List budgets
80
78
  # Returns budgets list with summary information.
81
79
  # @param [Hash] opts the optional parameters
82
80
  # @return [BudgetSummaryResponse]
83
81
  def get_budgets(opts = {})
84
82
  data, _status_code, _headers = get_budgets_with_http_info(opts)
85
- return data
83
+ data
86
84
  end
87
85
 
88
86
  # List budgets
@@ -91,10 +89,10 @@ module YnabApi
91
89
  # @return [Array<(BudgetSummaryResponse, Fixnum, Hash)>] BudgetSummaryResponse data, response status code and response headers
92
90
  def get_budgets_with_http_info(opts = {})
93
91
  if @api_client.config.debugging
94
- @api_client.config.logger.debug "Calling API: BudgetsApi.get_budgets ..."
92
+ @api_client.config.logger.debug 'Calling API: BudgetsApi.get_budgets ...'
95
93
  end
96
94
  # resource path
97
- local_var_path = "/budgets"
95
+ local_var_path = '/budgets'
98
96
 
99
97
  # query parameters
100
98
  query_params = {}
@@ -6,11 +6,11 @@
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.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module YnabApi
16
16
  class CategoriesApi
@@ -19,7 +19,6 @@ module YnabApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # List categories
24
23
  # Returns all categories grouped by category group.
25
24
  # @param budget_id The ID of the Budget.
@@ -27,7 +26,7 @@ module YnabApi
27
26
  # @return [CategoriesResponse]
28
27
  def get_categories(budget_id, opts = {})
29
28
  data, _status_code, _headers = get_categories_with_http_info(budget_id, opts)
30
- return data
29
+ data
31
30
  end
32
31
 
33
32
  # List categories
@@ -37,14 +36,14 @@ module YnabApi
37
36
  # @return [Array<(CategoriesResponse, Fixnum, Hash)>] CategoriesResponse data, response status code and response headers
38
37
  def get_categories_with_http_info(budget_id, opts = {})
39
38
  if @api_client.config.debugging
40
- @api_client.config.logger.debug "Calling API: CategoriesApi.get_categories ..."
39
+ @api_client.config.logger.debug 'Calling API: CategoriesApi.get_categories ...'
41
40
  end
42
41
  # verify the required parameter 'budget_id' is set
43
42
  if @api_client.config.client_side_validation && budget_id.nil?
44
43
  fail ArgumentError, "Missing the required parameter 'budget_id' when calling CategoriesApi.get_categories"
45
44
  end
46
45
  # resource path
47
- local_var_path = "/budgets/{budget_id}/categories".sub('{' + 'budget_id' + '}', budget_id.to_s)
46
+ local_var_path = '/budgets/{budget_id}/categories'.sub('{' + 'budget_id' + '}', budget_id.to_s)
48
47
 
49
48
  # query parameters
50
49
  query_params = {}
@@ -72,7 +71,6 @@ module YnabApi
72
71
  end
73
72
  return data, status_code, headers
74
73
  end
75
-
76
74
  # Single category
77
75
  # Returns a single category
78
76
  # @param budget_id The ID of the Budget.
@@ -81,7 +79,7 @@ module YnabApi
81
79
  # @return [CategoryResponse]
82
80
  def get_category_by_id(budget_id, category_id, opts = {})
83
81
  data, _status_code, _headers = get_category_by_id_with_http_info(budget_id, category_id, opts)
84
- return data
82
+ data
85
83
  end
86
84
 
87
85
  # Single category
@@ -92,7 +90,7 @@ module YnabApi
92
90
  # @return [Array<(CategoryResponse, Fixnum, Hash)>] CategoryResponse data, response status code and response headers
93
91
  def get_category_by_id_with_http_info(budget_id, category_id, opts = {})
94
92
  if @api_client.config.debugging
95
- @api_client.config.logger.debug "Calling API: CategoriesApi.get_category_by_id ..."
93
+ @api_client.config.logger.debug 'Calling API: CategoriesApi.get_category_by_id ...'
96
94
  end
97
95
  # verify the required parameter 'budget_id' is set
98
96
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -103,7 +101,7 @@ module YnabApi
103
101
  fail ArgumentError, "Missing the required parameter 'category_id' when calling CategoriesApi.get_category_by_id"
104
102
  end
105
103
  # resource path
106
- local_var_path = "/budgets/{budget_id}/categories/{category_id}".sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'category_id' + '}', category_id.to_s)
104
+ local_var_path = '/budgets/{budget_id}/categories/{category_id}'.sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'category_id' + '}', category_id.to_s)
107
105
 
108
106
  # query parameters
109
107
  query_params = {}
@@ -6,11 +6,11 @@
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.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module YnabApi
16
16
  class MonthsApi
@@ -19,7 +19,6 @@ module YnabApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Single budget month
24
23
  # Returns a single budget month
25
24
  # @param budget_id The ID of the Budget.
@@ -28,7 +27,7 @@ module YnabApi
28
27
  # @return [MonthDetailResponse]
29
28
  def get_budget_month(budget_id, month, opts = {})
30
29
  data, _status_code, _headers = get_budget_month_with_http_info(budget_id, month, opts)
31
- return data
30
+ data
32
31
  end
33
32
 
34
33
  # Single budget month
@@ -39,7 +38,7 @@ module YnabApi
39
38
  # @return [Array<(MonthDetailResponse, Fixnum, Hash)>] MonthDetailResponse data, response status code and response headers
40
39
  def get_budget_month_with_http_info(budget_id, month, opts = {})
41
40
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: MonthsApi.get_budget_month ..."
41
+ @api_client.config.logger.debug 'Calling API: MonthsApi.get_budget_month ...'
43
42
  end
44
43
  # verify the required parameter 'budget_id' is set
45
44
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -50,7 +49,7 @@ module YnabApi
50
49
  fail ArgumentError, "Missing the required parameter 'month' when calling MonthsApi.get_budget_month"
51
50
  end
52
51
  # resource path
53
- local_var_path = "/budgets/{budget_id}/months/{month}".sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'month' + '}', month.to_s)
52
+ local_var_path = '/budgets/{budget_id}/months/{month}'.sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'month' + '}', month.to_s)
54
53
 
55
54
  # query parameters
56
55
  query_params = {}
@@ -78,7 +77,6 @@ module YnabApi
78
77
  end
79
78
  return data, status_code, headers
80
79
  end
81
-
82
80
  # List budget months
83
81
  # Returns all budget months
84
82
  # @param budget_id The ID of the Budget.
@@ -86,7 +84,7 @@ module YnabApi
86
84
  # @return [MonthSummariesResponse]
87
85
  def get_budget_months(budget_id, opts = {})
88
86
  data, _status_code, _headers = get_budget_months_with_http_info(budget_id, opts)
89
- return data
87
+ data
90
88
  end
91
89
 
92
90
  # List budget months
@@ -96,14 +94,14 @@ module YnabApi
96
94
  # @return [Array<(MonthSummariesResponse, Fixnum, Hash)>] MonthSummariesResponse data, response status code and response headers
97
95
  def get_budget_months_with_http_info(budget_id, opts = {})
98
96
  if @api_client.config.debugging
99
- @api_client.config.logger.debug "Calling API: MonthsApi.get_budget_months ..."
97
+ @api_client.config.logger.debug 'Calling API: MonthsApi.get_budget_months ...'
100
98
  end
101
99
  # verify the required parameter 'budget_id' is set
102
100
  if @api_client.config.client_side_validation && budget_id.nil?
103
101
  fail ArgumentError, "Missing the required parameter 'budget_id' when calling MonthsApi.get_budget_months"
104
102
  end
105
103
  # resource path
106
- local_var_path = "/budgets/{budget_id}/months".sub('{' + 'budget_id' + '}', budget_id.to_s)
104
+ local_var_path = '/budgets/{budget_id}/months'.sub('{' + 'budget_id' + '}', budget_id.to_s)
107
105
 
108
106
  # query parameters
109
107
  query_params = {}
@@ -6,11 +6,11 @@
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.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module YnabApi
16
16
  class PayeeLocationsApi
@@ -19,7 +19,6 @@ module YnabApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Single payee location
24
23
  # Returns a single payee location
25
24
  # @param budget_id The ID of the Budget.
@@ -28,7 +27,7 @@ module YnabApi
28
27
  # @return [PayeeLocationResponse]
29
28
  def get_payee_location_by_id(budget_id, payee_location_id, opts = {})
30
29
  data, _status_code, _headers = get_payee_location_by_id_with_http_info(budget_id, payee_location_id, opts)
31
- return data
30
+ data
32
31
  end
33
32
 
34
33
  # Single payee location
@@ -39,7 +38,7 @@ module YnabApi
39
38
  # @return [Array<(PayeeLocationResponse, Fixnum, Hash)>] PayeeLocationResponse data, response status code and response headers
40
39
  def get_payee_location_by_id_with_http_info(budget_id, payee_location_id, opts = {})
41
40
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: PayeeLocationsApi.get_payee_location_by_id ..."
41
+ @api_client.config.logger.debug 'Calling API: PayeeLocationsApi.get_payee_location_by_id ...'
43
42
  end
44
43
  # verify the required parameter 'budget_id' is set
45
44
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -50,7 +49,7 @@ module YnabApi
50
49
  fail ArgumentError, "Missing the required parameter 'payee_location_id' when calling PayeeLocationsApi.get_payee_location_by_id"
51
50
  end
52
51
  # resource path
53
- local_var_path = "/budgets/{budget_id}/payee_locations/{payee_location_id}".sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'payee_location_id' + '}', payee_location_id.to_s)
52
+ local_var_path = '/budgets/{budget_id}/payee_locations/{payee_location_id}'.sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'payee_location_id' + '}', payee_location_id.to_s)
54
53
 
55
54
  # query parameters
56
55
  query_params = {}
@@ -78,7 +77,6 @@ module YnabApi
78
77
  end
79
78
  return data, status_code, headers
80
79
  end
81
-
82
80
  # List payee locations
83
81
  # Returns all payee locations
84
82
  # @param budget_id The ID of the Budget.
@@ -86,7 +84,7 @@ module YnabApi
86
84
  # @return [PayeeLocationsResponse]
87
85
  def get_payee_locations(budget_id, opts = {})
88
86
  data, _status_code, _headers = get_payee_locations_with_http_info(budget_id, opts)
89
- return data
87
+ data
90
88
  end
91
89
 
92
90
  # List payee locations
@@ -96,14 +94,14 @@ module YnabApi
96
94
  # @return [Array<(PayeeLocationsResponse, Fixnum, Hash)>] PayeeLocationsResponse data, response status code and response headers
97
95
  def get_payee_locations_with_http_info(budget_id, opts = {})
98
96
  if @api_client.config.debugging
99
- @api_client.config.logger.debug "Calling API: PayeeLocationsApi.get_payee_locations ..."
97
+ @api_client.config.logger.debug 'Calling API: PayeeLocationsApi.get_payee_locations ...'
100
98
  end
101
99
  # verify the required parameter 'budget_id' is set
102
100
  if @api_client.config.client_side_validation && budget_id.nil?
103
101
  fail ArgumentError, "Missing the required parameter 'budget_id' when calling PayeeLocationsApi.get_payee_locations"
104
102
  end
105
103
  # resource path
106
- local_var_path = "/budgets/{budget_id}/payee_locations".sub('{' + 'budget_id' + '}', budget_id.to_s)
104
+ local_var_path = '/budgets/{budget_id}/payee_locations'.sub('{' + 'budget_id' + '}', budget_id.to_s)
107
105
 
108
106
  # query parameters
109
107
  query_params = {}
@@ -131,7 +129,6 @@ module YnabApi
131
129
  end
132
130
  return data, status_code, headers
133
131
  end
134
-
135
132
  # List locations for a payee
136
133
  # Returns all payee locations for the specified payee
137
134
  # @param budget_id The ID of the Budget.
@@ -140,7 +137,7 @@ module YnabApi
140
137
  # @return [PayeeLocationsResponse]
141
138
  def get_payee_locations_by_payee(budget_id, payee_id, opts = {})
142
139
  data, _status_code, _headers = get_payee_locations_by_payee_with_http_info(budget_id, payee_id, opts)
143
- return data
140
+ data
144
141
  end
145
142
 
146
143
  # List locations for a payee
@@ -151,7 +148,7 @@ module YnabApi
151
148
  # @return [Array<(PayeeLocationsResponse, Fixnum, Hash)>] PayeeLocationsResponse data, response status code and response headers
152
149
  def get_payee_locations_by_payee_with_http_info(budget_id, payee_id, opts = {})
153
150
  if @api_client.config.debugging
154
- @api_client.config.logger.debug "Calling API: PayeeLocationsApi.get_payee_locations_by_payee ..."
151
+ @api_client.config.logger.debug 'Calling API: PayeeLocationsApi.get_payee_locations_by_payee ...'
155
152
  end
156
153
  # verify the required parameter 'budget_id' is set
157
154
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -162,7 +159,7 @@ module YnabApi
162
159
  fail ArgumentError, "Missing the required parameter 'payee_id' when calling PayeeLocationsApi.get_payee_locations_by_payee"
163
160
  end
164
161
  # resource path
165
- local_var_path = "/budgets/{budget_id}/payees/{payee_id}/payee_locations".sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'payee_id' + '}', payee_id.to_s)
162
+ local_var_path = '/budgets/{budget_id}/payees/{payee_id}/payee_locations'.sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'payee_id' + '}', payee_id.to_s)
166
163
 
167
164
  # query parameters
168
165
  query_params = {}