ynab 4.9.0 → 5.0.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/Rakefile +2 -2
- data/docs/AccountsApi.md +3 -3
- data/docs/CategoriesApi.md +8 -8
- data/docs/MoneyMovementsApi.md +4 -4
- data/docs/MonthsApi.md +2 -2
- data/docs/PayeeLocationsApi.md +3 -3
- data/docs/PayeesApi.md +3 -3
- data/docs/PlanDetailResponseData.md +1 -1
- data/docs/PlanSummaryResponseData.md +2 -2
- data/docs/PlansApi.md +3 -3
- data/docs/ScheduledTransactionsApi.md +5 -5
- data/docs/TransactionsApi.md +11 -11
- data/lib/ynab/api/accounts_api.rb +3 -3
- data/lib/ynab/api/categories_api.rb +8 -8
- data/lib/ynab/api/deprecated_api.rb +3 -3
- data/lib/ynab/api/money_movements_api.rb +4 -4
- data/lib/ynab/api/months_api.rb +2 -2
- data/lib/ynab/api/payee_locations_api.rb +3 -3
- data/lib/ynab/api/payees_api.rb +3 -3
- data/lib/ynab/api/plans_api.rb +3 -3
- data/lib/ynab/api/scheduled_transactions_api.rb +5 -5
- data/lib/ynab/api/transactions_api.rb +11 -11
- data/lib/ynab/models/plan_detail_response_data.rb +8 -8
- data/lib/ynab/models/plan_summary_response_data.rb +15 -15
- data/lib/ynab/version.rb +1 -1
- data/open_api_spec.yaml +36 -36
- data/spec/api/accounts_spec.rb +3 -3
- data/spec/api/categories_spec.rb +3 -3
- data/spec/api/months_spec.rb +2 -2
- data/spec/api/payee_locations_spec.rb +2 -2
- data/spec/api/payees_spec.rb +2 -2
- data/spec/api/plans_spec.rb +9 -9
- data/spec/api/scheduled_transactions_spec.rb +3 -3
- data/spec/api/transactions_spec.rb +11 -11
- data/spec/fixtures/vcr_cassettes/account.yml +2 -2
- data/spec/fixtures/vcr_cassettes/accounts.yml +2 -2
- data/spec/fixtures/vcr_cassettes/accounts_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/bulk_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/categories.yml +2 -2
- data/spec/fixtures/vcr_cassettes/categories_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/category.yml +2 -2
- data/spec/fixtures/vcr_cassettes/category_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/create_account.yml +2 -2
- data/spec/fixtures/vcr_cassettes/create_scheduled_transaction.yml +2 -2
- data/spec/fixtures/vcr_cassettes/create_transaction.yml +2 -2
- data/spec/fixtures/vcr_cassettes/create_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/import_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/month.yml +2 -2
- data/spec/fixtures/vcr_cassettes/month_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/months.yml +2 -2
- data/spec/fixtures/vcr_cassettes/months_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/multiple_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/patch_month_category.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payee.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payee_location.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payee_locations.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payee_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payees.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payees_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/{budget.yml → plan.yml} +3 -3
- data/spec/fixtures/vcr_cassettes/plans.yml +3 -3
- data/spec/fixtures/vcr_cassettes/plans_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/scheduled_transaction.yml +2 -2
- data/spec/fixtures/vcr_cassettes/scheduled_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/transaction.yml +2 -2
- data/spec/fixtures/vcr_cassettes/transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/transactions_invalid_flags.yml +2 -2
- data/spec/fixtures/vcr_cassettes/transactions_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/update_transaction.yml +2 -2
- data/spec/fixtures/vcr_cassettes/update_transactions.yml +2 -2
- data/ynab.gemspec +1 -1
- metadata +4 -8
- data/spec/fixtures/vcr_cassettes/budgets.yml +0 -49
- data/spec/fixtures/vcr_cassettes/budgets_unauthorized.yml +0 -49
|
@@ -45,7 +45,7 @@ module YNAB
|
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'data' when calling TransactionsApi.create_transaction"
|
|
46
46
|
end
|
|
47
47
|
# resource path
|
|
48
|
-
local_var_path = '/
|
|
48
|
+
local_var_path = '/plans/{plan_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
49
49
|
|
|
50
50
|
# query parameters
|
|
51
51
|
query_params = opts[:query_params] || {}
|
|
@@ -119,7 +119,7 @@ module YNAB
|
|
|
119
119
|
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling TransactionsApi.delete_transaction"
|
|
120
120
|
end
|
|
121
121
|
# resource path
|
|
122
|
-
local_var_path = '/
|
|
122
|
+
local_var_path = '/plans/{plan_id}/transactions/{transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'transaction_id' + '}', CGI.escape(transaction_id.to_s))
|
|
123
123
|
|
|
124
124
|
# query parameters
|
|
125
125
|
query_params = opts[:query_params] || {}
|
|
@@ -188,7 +188,7 @@ module YNAB
|
|
|
188
188
|
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling TransactionsApi.get_transaction_by_id"
|
|
189
189
|
end
|
|
190
190
|
# resource path
|
|
191
|
-
local_var_path = '/
|
|
191
|
+
local_var_path = '/plans/{plan_id}/transactions/{transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'transaction_id' + '}', CGI.escape(transaction_id.to_s))
|
|
192
192
|
|
|
193
193
|
# query parameters
|
|
194
194
|
query_params = opts[:query_params] || {}
|
|
@@ -257,7 +257,7 @@ module YNAB
|
|
|
257
257
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling TransactionsApi.get_transactions"
|
|
258
258
|
end
|
|
259
259
|
# resource path
|
|
260
|
-
local_var_path = '/
|
|
260
|
+
local_var_path = '/plans/{plan_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
261
261
|
|
|
262
262
|
# query parameters
|
|
263
263
|
query_params = opts[:query_params] || {}
|
|
@@ -335,7 +335,7 @@ module YNAB
|
|
|
335
335
|
fail ArgumentError, "Missing the required parameter 'account_id' when calling TransactionsApi.get_transactions_by_account"
|
|
336
336
|
end
|
|
337
337
|
# resource path
|
|
338
|
-
local_var_path = '/
|
|
338
|
+
local_var_path = '/plans/{plan_id}/accounts/{account_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
|
|
339
339
|
|
|
340
340
|
# query parameters
|
|
341
341
|
query_params = opts[:query_params] || {}
|
|
@@ -413,7 +413,7 @@ module YNAB
|
|
|
413
413
|
fail ArgumentError, "Missing the required parameter 'category_id' when calling TransactionsApi.get_transactions_by_category"
|
|
414
414
|
end
|
|
415
415
|
# resource path
|
|
416
|
-
local_var_path = '/
|
|
416
|
+
local_var_path = '/plans/{plan_id}/categories/{category_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s))
|
|
417
417
|
|
|
418
418
|
# query parameters
|
|
419
419
|
query_params = opts[:query_params] || {}
|
|
@@ -491,7 +491,7 @@ module YNAB
|
|
|
491
491
|
fail ArgumentError, "Missing the required parameter 'month' when calling TransactionsApi.get_transactions_by_month"
|
|
492
492
|
end
|
|
493
493
|
# resource path
|
|
494
|
-
local_var_path = '/
|
|
494
|
+
local_var_path = '/plans/{plan_id}/months/{month}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s))
|
|
495
495
|
|
|
496
496
|
# query parameters
|
|
497
497
|
query_params = opts[:query_params] || {}
|
|
@@ -569,7 +569,7 @@ module YNAB
|
|
|
569
569
|
fail ArgumentError, "Missing the required parameter 'payee_id' when calling TransactionsApi.get_transactions_by_payee"
|
|
570
570
|
end
|
|
571
571
|
# resource path
|
|
572
|
-
local_var_path = '/
|
|
572
|
+
local_var_path = '/plans/{plan_id}/payees/{payee_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s))
|
|
573
573
|
|
|
574
574
|
# query parameters
|
|
575
575
|
query_params = opts[:query_params] || {}
|
|
@@ -635,7 +635,7 @@ module YNAB
|
|
|
635
635
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling TransactionsApi.import_transactions"
|
|
636
636
|
end
|
|
637
637
|
# resource path
|
|
638
|
-
local_var_path = '/
|
|
638
|
+
local_var_path = '/plans/{plan_id}/transactions/import'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
639
639
|
|
|
640
640
|
# query parameters
|
|
641
641
|
query_params = opts[:query_params] || {}
|
|
@@ -710,7 +710,7 @@ module YNAB
|
|
|
710
710
|
fail ArgumentError, "Missing the required parameter 'data' when calling TransactionsApi.update_transaction"
|
|
711
711
|
end
|
|
712
712
|
# resource path
|
|
713
|
-
local_var_path = '/
|
|
713
|
+
local_var_path = '/plans/{plan_id}/transactions/{transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'transaction_id' + '}', CGI.escape(transaction_id.to_s))
|
|
714
714
|
|
|
715
715
|
# query parameters
|
|
716
716
|
query_params = opts[:query_params] || {}
|
|
@@ -784,7 +784,7 @@ module YNAB
|
|
|
784
784
|
fail ArgumentError, "Missing the required parameter 'data' when calling TransactionsApi.update_transactions"
|
|
785
785
|
end
|
|
786
786
|
# resource path
|
|
787
|
-
local_var_path = '/
|
|
787
|
+
local_var_path = '/plans/{plan_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
788
788
|
|
|
789
789
|
# query parameters
|
|
790
790
|
query_params = opts[:query_params] || {}
|
|
@@ -12,7 +12,7 @@ require 'time'
|
|
|
12
12
|
|
|
13
13
|
module YNAB
|
|
14
14
|
class PlanDetailResponseData < ApiModelBase
|
|
15
|
-
attr_accessor :
|
|
15
|
+
attr_accessor :plan
|
|
16
16
|
|
|
17
17
|
# The knowledge of the server
|
|
18
18
|
attr_accessor :server_knowledge
|
|
@@ -20,7 +20,7 @@ module YNAB
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
21
|
def self.attribute_map
|
|
22
22
|
{
|
|
23
|
-
:'
|
|
23
|
+
:'plan' => :'plan',
|
|
24
24
|
:'server_knowledge' => :'server_knowledge'
|
|
25
25
|
}
|
|
26
26
|
end
|
|
@@ -33,7 +33,7 @@ module YNAB
|
|
|
33
33
|
# Attribute type mapping.
|
|
34
34
|
def self.openapi_types
|
|
35
35
|
{
|
|
36
|
-
:'
|
|
36
|
+
:'plan' => :'PlanDetail',
|
|
37
37
|
:'server_knowledge' => :'Integer'
|
|
38
38
|
}
|
|
39
39
|
end
|
|
@@ -59,8 +59,8 @@ module YNAB
|
|
|
59
59
|
h[k.to_sym] = v
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
if attributes.key?(:'
|
|
63
|
-
self.
|
|
62
|
+
if attributes.key?(:'plan')
|
|
63
|
+
self.plan = attributes[:'plan']
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
if attributes.key?(:'server_knowledge')
|
|
@@ -78,7 +78,7 @@ module YNAB
|
|
|
78
78
|
# Check to see if the all the properties in the model are valid
|
|
79
79
|
# @return true if the model is valid
|
|
80
80
|
def valid?
|
|
81
|
-
return false if @
|
|
81
|
+
return false if @plan.nil?
|
|
82
82
|
return false if @server_knowledge.nil?
|
|
83
83
|
true
|
|
84
84
|
end
|
|
@@ -88,7 +88,7 @@ module YNAB
|
|
|
88
88
|
def ==(o)
|
|
89
89
|
return true if self.equal?(o)
|
|
90
90
|
self.class == o.class &&
|
|
91
|
-
|
|
91
|
+
plan == o.plan &&
|
|
92
92
|
server_knowledge == o.server_knowledge
|
|
93
93
|
end
|
|
94
94
|
|
|
@@ -101,7 +101,7 @@ module YNAB
|
|
|
101
101
|
# Calculates hash code according to all attributes.
|
|
102
102
|
# @return [Integer] Hash code
|
|
103
103
|
def hash
|
|
104
|
-
[
|
|
104
|
+
[plan, server_knowledge].hash
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
# Builds the object from hash
|
|
@@ -12,15 +12,15 @@ require 'time'
|
|
|
12
12
|
|
|
13
13
|
module YNAB
|
|
14
14
|
class PlanSummaryResponseData < ApiModelBase
|
|
15
|
-
attr_accessor :
|
|
15
|
+
attr_accessor :plans
|
|
16
16
|
|
|
17
|
-
attr_accessor :
|
|
17
|
+
attr_accessor :default_plan
|
|
18
18
|
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
20
|
def self.attribute_map
|
|
21
21
|
{
|
|
22
|
-
:'
|
|
23
|
-
:'
|
|
22
|
+
:'plans' => :'plans',
|
|
23
|
+
:'default_plan' => :'default_plan'
|
|
24
24
|
}
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -32,8 +32,8 @@ module YNAB
|
|
|
32
32
|
# Attribute type mapping.
|
|
33
33
|
def self.openapi_types
|
|
34
34
|
{
|
|
35
|
-
:'
|
|
36
|
-
:'
|
|
35
|
+
:'plans' => :'Array<PlanSummary>',
|
|
36
|
+
:'default_plan' => :'PlanSummary'
|
|
37
37
|
}
|
|
38
38
|
end
|
|
39
39
|
|
|
@@ -58,14 +58,14 @@ module YNAB
|
|
|
58
58
|
h[k.to_sym] = v
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
if attributes.key?(:'
|
|
62
|
-
if (value = attributes[:'
|
|
63
|
-
self.
|
|
61
|
+
if attributes.key?(:'plans')
|
|
62
|
+
if (value = attributes[:'plans']).is_a?(Array)
|
|
63
|
+
self.plans = value
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
-
if attributes.key?(:'
|
|
68
|
-
self.
|
|
67
|
+
if attributes.key?(:'default_plan')
|
|
68
|
+
self.default_plan = attributes[:'default_plan']
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
@@ -79,7 +79,7 @@ module YNAB
|
|
|
79
79
|
# Check to see if the all the properties in the model are valid
|
|
80
80
|
# @return true if the model is valid
|
|
81
81
|
def valid?
|
|
82
|
-
return false if @
|
|
82
|
+
return false if @plans.nil?
|
|
83
83
|
true
|
|
84
84
|
end
|
|
85
85
|
|
|
@@ -88,8 +88,8 @@ module YNAB
|
|
|
88
88
|
def ==(o)
|
|
89
89
|
return true if self.equal?(o)
|
|
90
90
|
self.class == o.class &&
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
plans == o.plans &&
|
|
92
|
+
default_plan == o.default_plan
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
# @see the `==` method
|
|
@@ -101,7 +101,7 @@ module YNAB
|
|
|
101
101
|
# Calculates hash code according to all attributes.
|
|
102
102
|
# @return [Integer] Hash code
|
|
103
103
|
def hash
|
|
104
|
-
[
|
|
104
|
+
[plans, default_plan].hash
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
# Builds the object from hash
|
data/lib/ynab/version.rb
CHANGED
data/open_api_spec.yaml
CHANGED
|
@@ -5,7 +5,7 @@ info:
|
|
|
5
5
|
and relies upon HTTPS for transport. We respond with meaningful HTTP
|
|
6
6
|
response codes and if an error occurs, we include error details in the
|
|
7
7
|
response body. API Documentation is at https://api.ynab.com
|
|
8
|
-
version: 1.
|
|
8
|
+
version: 1.79.0
|
|
9
9
|
servers:
|
|
10
10
|
- url: https://api.ynab.com/v1
|
|
11
11
|
security:
|
|
@@ -51,7 +51,7 @@ paths:
|
|
|
51
51
|
application/json:
|
|
52
52
|
schema:
|
|
53
53
|
$ref: "#/components/schemas/UserResponse"
|
|
54
|
-
/
|
|
54
|
+
/plans:
|
|
55
55
|
get:
|
|
56
56
|
tags:
|
|
57
57
|
- Plans
|
|
@@ -77,7 +77,7 @@ paths:
|
|
|
77
77
|
application/json:
|
|
78
78
|
schema:
|
|
79
79
|
$ref: "#/components/schemas/ErrorResponse"
|
|
80
|
-
/
|
|
80
|
+
/plans/{plan_id}:
|
|
81
81
|
get:
|
|
82
82
|
tags:
|
|
83
83
|
- Plans
|
|
@@ -114,7 +114,7 @@ paths:
|
|
|
114
114
|
application/json:
|
|
115
115
|
schema:
|
|
116
116
|
$ref: "#/components/schemas/ErrorResponse"
|
|
117
|
-
/
|
|
117
|
+
/plans/{plan_id}/settings:
|
|
118
118
|
get:
|
|
119
119
|
tags:
|
|
120
120
|
- Plans
|
|
@@ -143,7 +143,7 @@ paths:
|
|
|
143
143
|
application/json:
|
|
144
144
|
schema:
|
|
145
145
|
$ref: "#/components/schemas/ErrorResponse"
|
|
146
|
-
/
|
|
146
|
+
/plans/{plan_id}/accounts:
|
|
147
147
|
get:
|
|
148
148
|
tags:
|
|
149
149
|
- Accounts
|
|
@@ -216,7 +216,7 @@ paths:
|
|
|
216
216
|
schema:
|
|
217
217
|
$ref: "#/components/schemas/ErrorResponse"
|
|
218
218
|
x-codegen-request-body-name: data
|
|
219
|
-
/
|
|
219
|
+
/plans/{plan_id}/accounts/{account_id}:
|
|
220
220
|
get:
|
|
221
221
|
tags:
|
|
222
222
|
- Accounts
|
|
@@ -252,7 +252,7 @@ paths:
|
|
|
252
252
|
application/json:
|
|
253
253
|
schema:
|
|
254
254
|
$ref: "#/components/schemas/ErrorResponse"
|
|
255
|
-
/
|
|
255
|
+
/plans/{plan_id}/categories:
|
|
256
256
|
get:
|
|
257
257
|
tags:
|
|
258
258
|
- Categories
|
|
@@ -327,7 +327,7 @@ paths:
|
|
|
327
327
|
schema:
|
|
328
328
|
$ref: "#/components/schemas/ErrorResponse"
|
|
329
329
|
x-codegen-request-body-name: data
|
|
330
|
-
/
|
|
330
|
+
/plans/{plan_id}/categories/{category_id}:
|
|
331
331
|
get:
|
|
332
332
|
tags:
|
|
333
333
|
- Categories
|
|
@@ -406,7 +406,7 @@ paths:
|
|
|
406
406
|
schema:
|
|
407
407
|
$ref: "#/components/schemas/ErrorResponse"
|
|
408
408
|
x-codegen-request-body-name: data
|
|
409
|
-
/
|
|
409
|
+
/plans/{plan_id}/months/{month}/categories/{category_id}:
|
|
410
410
|
get:
|
|
411
411
|
tags:
|
|
412
412
|
- Categories
|
|
@@ -504,7 +504,7 @@ paths:
|
|
|
504
504
|
schema:
|
|
505
505
|
$ref: "#/components/schemas/ErrorResponse"
|
|
506
506
|
x-codegen-request-body-name: data
|
|
507
|
-
/
|
|
507
|
+
/plans/{plan_id}/category_groups:
|
|
508
508
|
post:
|
|
509
509
|
tags:
|
|
510
510
|
- Categories
|
|
@@ -542,7 +542,7 @@ paths:
|
|
|
542
542
|
schema:
|
|
543
543
|
$ref: "#/components/schemas/ErrorResponse"
|
|
544
544
|
x-codegen-request-body-name: data
|
|
545
|
-
/
|
|
545
|
+
/plans/{plan_id}/category_groups/{category_group_id}:
|
|
546
546
|
patch:
|
|
547
547
|
tags:
|
|
548
548
|
- Categories
|
|
@@ -586,7 +586,7 @@ paths:
|
|
|
586
586
|
schema:
|
|
587
587
|
$ref: "#/components/schemas/ErrorResponse"
|
|
588
588
|
x-codegen-request-body-name: data
|
|
589
|
-
/
|
|
589
|
+
/plans/{plan_id}/payees:
|
|
590
590
|
get:
|
|
591
591
|
tags:
|
|
592
592
|
- Payees
|
|
@@ -622,7 +622,7 @@ paths:
|
|
|
622
622
|
application/json:
|
|
623
623
|
schema:
|
|
624
624
|
$ref: "#/components/schemas/ErrorResponse"
|
|
625
|
-
/
|
|
625
|
+
/plans/{plan_id}/payees/{payee_id}:
|
|
626
626
|
get:
|
|
627
627
|
tags:
|
|
628
628
|
- Payees
|
|
@@ -700,7 +700,7 @@ paths:
|
|
|
700
700
|
schema:
|
|
701
701
|
$ref: "#/components/schemas/ErrorResponse"
|
|
702
702
|
x-codegen-request-body-name: data
|
|
703
|
-
/
|
|
703
|
+
/plans/{plan_id}/payee_locations:
|
|
704
704
|
get:
|
|
705
705
|
tags:
|
|
706
706
|
- Payee Locations
|
|
@@ -729,7 +729,7 @@ paths:
|
|
|
729
729
|
application/json:
|
|
730
730
|
schema:
|
|
731
731
|
$ref: "#/components/schemas/ErrorResponse"
|
|
732
|
-
/
|
|
732
|
+
/plans/{plan_id}/payee_locations/{payee_location_id}:
|
|
733
733
|
get:
|
|
734
734
|
tags:
|
|
735
735
|
- Payee Locations
|
|
@@ -764,7 +764,7 @@ paths:
|
|
|
764
764
|
application/json:
|
|
765
765
|
schema:
|
|
766
766
|
$ref: "#/components/schemas/ErrorResponse"
|
|
767
|
-
/
|
|
767
|
+
/plans/{plan_id}/payees/{payee_id}/payee_locations:
|
|
768
768
|
get:
|
|
769
769
|
tags:
|
|
770
770
|
- Payee Locations
|
|
@@ -799,7 +799,7 @@ paths:
|
|
|
799
799
|
application/json:
|
|
800
800
|
schema:
|
|
801
801
|
$ref: "#/components/schemas/ErrorResponse"
|
|
802
|
-
/
|
|
802
|
+
/plans/{plan_id}/months:
|
|
803
803
|
get:
|
|
804
804
|
tags:
|
|
805
805
|
- Months
|
|
@@ -835,7 +835,7 @@ paths:
|
|
|
835
835
|
application/json:
|
|
836
836
|
schema:
|
|
837
837
|
$ref: "#/components/schemas/ErrorResponse"
|
|
838
|
-
/
|
|
838
|
+
/plans/{plan_id}/months/{month}:
|
|
839
839
|
get:
|
|
840
840
|
tags:
|
|
841
841
|
- Months
|
|
@@ -872,7 +872,7 @@ paths:
|
|
|
872
872
|
application/json:
|
|
873
873
|
schema:
|
|
874
874
|
$ref: "#/components/schemas/ErrorResponse"
|
|
875
|
-
/
|
|
875
|
+
/plans/{plan_id}/money_movements:
|
|
876
876
|
get:
|
|
877
877
|
tags:
|
|
878
878
|
- Money Movements
|
|
@@ -901,7 +901,7 @@ paths:
|
|
|
901
901
|
application/json:
|
|
902
902
|
schema:
|
|
903
903
|
$ref: "#/components/schemas/ErrorResponse"
|
|
904
|
-
/
|
|
904
|
+
/plans/{plan_id}/months/{month}/money_movements:
|
|
905
905
|
get:
|
|
906
906
|
tags:
|
|
907
907
|
- Money Movements
|
|
@@ -938,7 +938,7 @@ paths:
|
|
|
938
938
|
application/json:
|
|
939
939
|
schema:
|
|
940
940
|
$ref: "#/components/schemas/ErrorResponse"
|
|
941
|
-
/
|
|
941
|
+
/plans/{plan_id}/money_movement_groups:
|
|
942
942
|
get:
|
|
943
943
|
tags:
|
|
944
944
|
- Money Movements
|
|
@@ -967,7 +967,7 @@ paths:
|
|
|
967
967
|
application/json:
|
|
968
968
|
schema:
|
|
969
969
|
$ref: "#/components/schemas/ErrorResponse"
|
|
970
|
-
/
|
|
970
|
+
/plans/{plan_id}/months/{month}/money_movement_groups:
|
|
971
971
|
get:
|
|
972
972
|
tags:
|
|
973
973
|
- Money Movements
|
|
@@ -1004,7 +1004,7 @@ paths:
|
|
|
1004
1004
|
application/json:
|
|
1005
1005
|
schema:
|
|
1006
1006
|
$ref: "#/components/schemas/ErrorResponse"
|
|
1007
|
-
/
|
|
1007
|
+
/plans/{plan_id}/transactions:
|
|
1008
1008
|
get:
|
|
1009
1009
|
tags:
|
|
1010
1010
|
- Transactions
|
|
@@ -1158,7 +1158,7 @@ paths:
|
|
|
1158
1158
|
schema:
|
|
1159
1159
|
$ref: "#/components/schemas/ErrorResponse"
|
|
1160
1160
|
x-codegen-request-body-name: data
|
|
1161
|
-
/
|
|
1161
|
+
/plans/{plan_id}/transactions/import:
|
|
1162
1162
|
post:
|
|
1163
1163
|
tags:
|
|
1164
1164
|
- Transactions
|
|
@@ -1200,7 +1200,7 @@ paths:
|
|
|
1200
1200
|
application/json:
|
|
1201
1201
|
schema:
|
|
1202
1202
|
$ref: "#/components/schemas/ErrorResponse"
|
|
1203
|
-
/
|
|
1203
|
+
/plans/{plan_id}/transactions/{transaction_id}:
|
|
1204
1204
|
get:
|
|
1205
1205
|
tags:
|
|
1206
1206
|
- Transactions
|
|
@@ -1312,7 +1312,7 @@ paths:
|
|
|
1312
1312
|
application/json:
|
|
1313
1313
|
schema:
|
|
1314
1314
|
$ref: "#/components/schemas/ErrorResponse"
|
|
1315
|
-
/
|
|
1315
|
+
/plans/{plan_id}/accounts/{account_id}/transactions:
|
|
1316
1316
|
get:
|
|
1317
1317
|
tags:
|
|
1318
1318
|
- Transactions
|
|
@@ -1371,7 +1371,7 @@ paths:
|
|
|
1371
1371
|
application/json:
|
|
1372
1372
|
schema:
|
|
1373
1373
|
$ref: "#/components/schemas/ErrorResponse"
|
|
1374
|
-
/
|
|
1374
|
+
/plans/{plan_id}/categories/{category_id}/transactions:
|
|
1375
1375
|
get:
|
|
1376
1376
|
tags:
|
|
1377
1377
|
- Transactions
|
|
@@ -1430,7 +1430,7 @@ paths:
|
|
|
1430
1430
|
application/json:
|
|
1431
1431
|
schema:
|
|
1432
1432
|
$ref: "#/components/schemas/ErrorResponse"
|
|
1433
|
-
/
|
|
1433
|
+
/plans/{plan_id}/payees/{payee_id}/transactions:
|
|
1434
1434
|
get:
|
|
1435
1435
|
tags:
|
|
1436
1436
|
- Transactions
|
|
@@ -1489,7 +1489,7 @@ paths:
|
|
|
1489
1489
|
application/json:
|
|
1490
1490
|
schema:
|
|
1491
1491
|
$ref: "#/components/schemas/ErrorResponse"
|
|
1492
|
-
/
|
|
1492
|
+
/plans/{plan_id}/months/{month}/transactions:
|
|
1493
1493
|
get:
|
|
1494
1494
|
tags:
|
|
1495
1495
|
- Transactions
|
|
@@ -1549,7 +1549,7 @@ paths:
|
|
|
1549
1549
|
application/json:
|
|
1550
1550
|
schema:
|
|
1551
1551
|
$ref: "#/components/schemas/ErrorResponse"
|
|
1552
|
-
/
|
|
1552
|
+
/plans/{plan_id}/scheduled_transactions:
|
|
1553
1553
|
get:
|
|
1554
1554
|
tags:
|
|
1555
1555
|
- Scheduled Transactions
|
|
@@ -1623,7 +1623,7 @@ paths:
|
|
|
1623
1623
|
schema:
|
|
1624
1624
|
$ref: "#/components/schemas/ErrorResponse"
|
|
1625
1625
|
x-codegen-request-body-name: data
|
|
1626
|
-
/
|
|
1626
|
+
/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}:
|
|
1627
1627
|
get:
|
|
1628
1628
|
tags:
|
|
1629
1629
|
- Scheduled Transactions
|
|
@@ -1827,14 +1827,14 @@ components:
|
|
|
1827
1827
|
properties:
|
|
1828
1828
|
data:
|
|
1829
1829
|
required:
|
|
1830
|
-
-
|
|
1830
|
+
- plans
|
|
1831
1831
|
type: object
|
|
1832
1832
|
properties:
|
|
1833
|
-
|
|
1833
|
+
plans:
|
|
1834
1834
|
type: array
|
|
1835
1835
|
items:
|
|
1836
1836
|
$ref: "#/components/schemas/PlanSummary"
|
|
1837
|
-
|
|
1837
|
+
default_plan:
|
|
1838
1838
|
allOf:
|
|
1839
1839
|
- $ref: "#/components/schemas/PlanSummary"
|
|
1840
1840
|
nullable: true
|
|
@@ -1879,11 +1879,11 @@ components:
|
|
|
1879
1879
|
properties:
|
|
1880
1880
|
data:
|
|
1881
1881
|
required:
|
|
1882
|
-
-
|
|
1882
|
+
- plan
|
|
1883
1883
|
- server_knowledge
|
|
1884
1884
|
type: object
|
|
1885
1885
|
properties:
|
|
1886
|
-
|
|
1886
|
+
plan:
|
|
1887
1887
|
$ref: "#/components/schemas/PlanDetail"
|
|
1888
1888
|
server_knowledge:
|
|
1889
1889
|
type: integer
|
data/spec/api/accounts_spec.rb
CHANGED
|
@@ -34,7 +34,7 @@ describe 'accounts' do
|
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
describe 'GET /
|
|
37
|
+
describe 'GET /plans/{plan_id}/accounts' do
|
|
38
38
|
it 'returns a list of accounts' do
|
|
39
39
|
VCR.use_cassette("accounts") do
|
|
40
40
|
response = instance.get_accounts(plan_id)
|
|
@@ -44,7 +44,7 @@ describe 'accounts' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'GET /
|
|
47
|
+
describe 'GET /plans/{plan_id}/accounts/{account_id}' do
|
|
48
48
|
it 'returns an account' do
|
|
49
49
|
VCR.use_cassette("account") do
|
|
50
50
|
response = instance.get_account_by_id(plan_id, '5982e895-98e5-41ca-9681-0b6de1036a1c')
|
|
@@ -54,7 +54,7 @@ describe 'accounts' do
|
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
describe 'POST /
|
|
57
|
+
describe 'POST /plans/{plan_id}/accounts' do
|
|
58
58
|
it 'creates an account' do
|
|
59
59
|
VCR.use_cassette("create_account") do
|
|
60
60
|
response = instance.create_account(plan_id, {
|
data/spec/api/categories_spec.rb
CHANGED
|
@@ -35,7 +35,7 @@ describe 'categories' do
|
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
describe 'GET /
|
|
38
|
+
describe 'GET /plans/{plan_id}/categories' do
|
|
39
39
|
it 'returns a list of categories' do
|
|
40
40
|
VCR.use_cassette("categories") do
|
|
41
41
|
response = instance.get_categories(plan_id)
|
|
@@ -46,7 +46,7 @@ describe 'categories' do
|
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
describe 'GET /
|
|
49
|
+
describe 'GET /plans/{plan_id}/categories/{category_id}' do
|
|
50
50
|
it 'returns a category' do
|
|
51
51
|
VCR.use_cassette("category") do
|
|
52
52
|
response = instance.get_category_by_id(plan_id, category_id)
|
|
@@ -56,7 +56,7 @@ describe 'categories' do
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
describe 'PATCH /
|
|
59
|
+
describe 'PATCH /plans/{plan_id}/months/{month}/categories/{category_id}' do
|
|
60
60
|
it 'returns a category' do
|
|
61
61
|
VCR.use_cassette("patch_month_category") do
|
|
62
62
|
response = instance.update_month_category(plan_id, '2018-02-01', category_id, month_category: { budgeted: 20382 })
|
data/spec/api/months_spec.rb
CHANGED
|
@@ -34,7 +34,7 @@ describe 'months' do
|
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
describe 'GET /
|
|
37
|
+
describe 'GET /plans/{plan_id}/months' do
|
|
38
38
|
it 'returns a list of months' do
|
|
39
39
|
VCR.use_cassette("months") do
|
|
40
40
|
response = instance.get_plan_months(plan_id)
|
|
@@ -44,7 +44,7 @@ describe 'months' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'GET /
|
|
47
|
+
describe 'GET /plans/{plan_id}/months/{month}' do
|
|
48
48
|
it 'returns a month' do
|
|
49
49
|
VCR.use_cassette("month") do
|
|
50
50
|
response = instance.get_plan_month(plan_id, '2018-02-01')
|
|
@@ -34,7 +34,7 @@ describe 'payee locations' do
|
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
describe 'GET /
|
|
37
|
+
describe 'GET /plans/{plan_id}/payee_location' do
|
|
38
38
|
it 'returns a list of payee locations' do
|
|
39
39
|
VCR.use_cassette("payee_locations") do
|
|
40
40
|
response = instance.get_payee_locations(plan_id)
|
|
@@ -44,7 +44,7 @@ describe 'payee locations' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'GET /
|
|
47
|
+
describe 'GET /plans/{plan_id}/payee_locations/{payee_id}' do
|
|
48
48
|
it 'returns a payee location' do
|
|
49
49
|
VCR.use_cassette("payee_location") do
|
|
50
50
|
response = instance.get_payee_location_by_id(plan_id, '052c7814-1797-44ce-9519-020e864e4928')
|
data/spec/api/payees_spec.rb
CHANGED
|
@@ -34,7 +34,7 @@ describe 'payees' do
|
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
describe 'GET /
|
|
37
|
+
describe 'GET /plans/{plan_id}/payees' do
|
|
38
38
|
it 'returns a list of payees' do
|
|
39
39
|
VCR.use_cassette("payees") do
|
|
40
40
|
response = instance.get_payees(plan_id)
|
|
@@ -44,7 +44,7 @@ describe 'payees' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'GET /
|
|
47
|
+
describe 'GET /plans/{plan_id}/payees/{payee_id}' do
|
|
48
48
|
it 'returns a payee' do
|
|
49
49
|
VCR.use_cassette("payee") do
|
|
50
50
|
response = instance.get_payee_by_id(plan_id, '200e6eb1-02fc-4af6-be26-27c5740bb949')
|