ynab 3.4.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/docs/SaveScheduledTransaction.md +1 -1
- data/docs/ScheduledTransactionsApi.md +1 -1
- data/lib/ynab/api/scheduled_transactions_api.rb +2 -2
- data/lib/ynab/models/existing_transaction.rb +2 -2
- data/lib/ynab/models/new_transaction.rb +2 -2
- data/lib/ynab/models/save_scheduled_transaction.rb +3 -3
- data/lib/ynab/models/save_sub_transaction.rb +2 -2
- data/lib/ynab/models/save_transaction_with_id_or_import_id.rb +2 -2
- data/lib/ynab/models/save_transaction_with_optional_fields.rb +2 -2
- data/lib/ynab/version.rb +1 -1
- data/open_api_spec.yaml +9 -9
- data/ynab.gemspec +1 -1
- metadata +39 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc994f9a63594e32cb1b9c8b13306f18f2733eb431053f8dcfef284f7895403b
|
4
|
+
data.tar.gz: 9c28e134e2a37ee05170523094f73f92cb4ee1c66bb031b9fa87720211fb8e2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc6b6d5d897605e05ab6b3ecbbf980dabee50e595fb37b2daba30cf4c0374a1b5ab5dfe7292bfd33dcb031f9ff70728201c7de3f49e024dfe3e4a3a93f0adb6e
|
7
|
+
data.tar.gz: 8fb3ed8420ca14192b5fc275762c28ffce341f611a5010f2f7cc3eb41f4249631c0ec24000877e8e8cf2bf0f45e306061ef93d6191f829456feba5b3125d4bb1
|
data/Gemfile.lock
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **account_id** | **String** | | |
|
8
|
-
| **date** | **Date** | The scheduled transaction date in ISO format (e.g. 2016-12-01). | |
|
8
|
+
| **date** | **Date** | The scheduled transaction date in ISO format (e.g. 2016-12-01). This should be a future date no more than 5 years into the future. | |
|
9
9
|
| **amount** | **Integer** | The scheduled transaction amount in milliunits format. | [optional] |
|
10
10
|
| **payee_id** | **String** | The payee for the scheduled transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `transfer_payee_id` on the account resource. | [optional] |
|
11
11
|
| **payee_name** | **String** | The payee name for the the scheduled transaction. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a payee with the same name or (2) creation of a new payee. | [optional] |
|
@@ -17,7 +17,7 @@ module YNAB
|
|
17
17
|
@api_client = api_client
|
18
18
|
end
|
19
19
|
# Create a single scheduled transaction
|
20
|
-
# Creates a single scheduled transaction.
|
20
|
+
# Creates a single scheduled transaction (a transaction with a future date).
|
21
21
|
# @param budget_id [String] The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).
|
22
22
|
# @param data [PostScheduledTransactionWrapper] The scheduled transaction to create
|
23
23
|
# @param [Hash] opts the optional parameters
|
@@ -28,7 +28,7 @@ module YNAB
|
|
28
28
|
end
|
29
29
|
|
30
30
|
# Create a single scheduled transaction
|
31
|
-
# Creates a single scheduled transaction.
|
31
|
+
# Creates a single scheduled transaction (a transaction with a future date).
|
32
32
|
# @param budget_id [String] The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget).
|
33
33
|
# @param data [PostScheduledTransactionWrapper] The scheduled transaction to create
|
34
34
|
# @param [Hash] opts the optional parameters
|
@@ -192,8 +192,8 @@ module YNAB
|
|
192
192
|
# Check to see if the all the properties in the model are valid
|
193
193
|
# @return true if the model is valid
|
194
194
|
def valid?
|
195
|
-
return false if !@payee_name.nil? && @payee_name.to_s.length >
|
196
|
-
return false if !@memo.nil? && @memo.to_s.length >
|
195
|
+
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
|
196
|
+
return false if !@memo.nil? && @memo.to_s.length > 500
|
197
197
|
true
|
198
198
|
end
|
199
199
|
|
@@ -202,8 +202,8 @@ module YNAB
|
|
202
202
|
# Check to see if the all the properties in the model are valid
|
203
203
|
# @return true if the model is valid
|
204
204
|
def valid?
|
205
|
-
return false if !@payee_name.nil? && @payee_name.to_s.length >
|
206
|
-
return false if !@memo.nil? && @memo.to_s.length >
|
205
|
+
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
|
206
|
+
return false if !@memo.nil? && @memo.to_s.length > 500
|
207
207
|
return false if !@import_id.nil? && @import_id.to_s.length > 36
|
208
208
|
true
|
209
209
|
end
|
@@ -14,7 +14,7 @@ module YNAB
|
|
14
14
|
class SaveScheduledTransaction
|
15
15
|
attr_accessor :account_id
|
16
16
|
|
17
|
-
# The scheduled transaction date in ISO format (e.g. 2016-12-01).
|
17
|
+
# The scheduled transaction date in ISO format (e.g. 2016-12-01). This should be a future date no more than 5 years into the future.
|
18
18
|
attr_accessor :date
|
19
19
|
|
20
20
|
# The scheduled transaction amount in milliunits format.
|
@@ -167,8 +167,8 @@ module YNAB
|
|
167
167
|
def valid?
|
168
168
|
return false if @account_id.nil?
|
169
169
|
return false if @date.nil?
|
170
|
-
return false if !@payee_name.nil? && @payee_name.to_s.length >
|
171
|
-
return false if !@memo.nil? && @memo.to_s.length >
|
170
|
+
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
|
171
|
+
return false if !@memo.nil? && @memo.to_s.length > 500
|
172
172
|
true
|
173
173
|
end
|
174
174
|
|
@@ -110,8 +110,8 @@ module YNAB
|
|
110
110
|
# @return true if the model is valid
|
111
111
|
def valid?
|
112
112
|
return false if @amount.nil?
|
113
|
-
return false if !@payee_name.nil? && @payee_name.to_s.length >
|
114
|
-
return false if !@memo.nil? && @memo.to_s.length >
|
113
|
+
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
|
114
|
+
return false if !@memo.nil? && @memo.to_s.length > 500
|
115
115
|
true
|
116
116
|
end
|
117
117
|
|
@@ -212,8 +212,8 @@ module YNAB
|
|
212
212
|
# Check to see if the all the properties in the model are valid
|
213
213
|
# @return true if the model is valid
|
214
214
|
def valid?
|
215
|
-
return false if !@payee_name.nil? && @payee_name.to_s.length >
|
216
|
-
return false if !@memo.nil? && @memo.to_s.length >
|
215
|
+
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
|
216
|
+
return false if !@memo.nil? && @memo.to_s.length > 500
|
217
217
|
return false if !@import_id.nil? && @import_id.to_s.length > 36
|
218
218
|
true
|
219
219
|
end
|
@@ -185,8 +185,8 @@ module YNAB
|
|
185
185
|
# Check to see if the all the properties in the model are valid
|
186
186
|
# @return true if the model is valid
|
187
187
|
def valid?
|
188
|
-
return false if !@payee_name.nil? && @payee_name.to_s.length >
|
189
|
-
return false if !@memo.nil? && @memo.to_s.length >
|
188
|
+
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
|
189
|
+
return false if !@memo.nil? && @memo.to_s.length > 500
|
190
190
|
true
|
191
191
|
end
|
192
192
|
|
data/lib/ynab/version.rb
CHANGED
data/open_api_spec.yaml
CHANGED
@@ -6,7 +6,7 @@ info:
|
|
6
6
|
upon HTTPS for transport. We respond with meaningful HTTP response codes and
|
7
7
|
if an error occurs, we include error details in the response body. API
|
8
8
|
Documentation is at https://api.ynab.com
|
9
|
-
version: 1.72.
|
9
|
+
version: 1.72.1
|
10
10
|
servers:
|
11
11
|
- url: https://api.ynab.com/v1
|
12
12
|
security:
|
@@ -1544,7 +1544,7 @@ paths:
|
|
1544
1544
|
- Scheduled Transactions
|
1545
1545
|
summary: Create a single scheduled transaction
|
1546
1546
|
description: >-
|
1547
|
-
Creates a single scheduled transaction.
|
1547
|
+
Creates a single scheduled transaction (a transaction with a future date).
|
1548
1548
|
operationId: createScheduledTransaction
|
1549
1549
|
parameters:
|
1550
1550
|
- name: budget_id
|
@@ -2515,7 +2515,7 @@ components:
|
|
2515
2515
|
`transfer_payee_id` on the account resource.
|
2516
2516
|
format: uuid
|
2517
2517
|
payee_name:
|
2518
|
-
maxLength:
|
2518
|
+
maxLength: 200
|
2519
2519
|
type: string
|
2520
2520
|
nullable: true
|
2521
2521
|
description: >-
|
@@ -2536,7 +2536,7 @@ components:
|
|
2536
2536
|
be ignored if supplied.
|
2537
2537
|
format: uuid
|
2538
2538
|
memo:
|
2539
|
-
maxLength:
|
2539
|
+
maxLength: 500
|
2540
2540
|
type: string
|
2541
2541
|
nullable: true
|
2542
2542
|
cleared:
|
@@ -2571,7 +2571,7 @@ components:
|
|
2571
2571
|
description: The payee for the subtransaction.
|
2572
2572
|
format: uuid
|
2573
2573
|
payee_name:
|
2574
|
-
maxLength:
|
2574
|
+
maxLength: 200
|
2575
2575
|
type: string
|
2576
2576
|
nullable: true
|
2577
2577
|
description: >-
|
@@ -2588,7 +2588,7 @@ components:
|
|
2588
2588
|
are not permitted and will be ignored if supplied.
|
2589
2589
|
format: uuid
|
2590
2590
|
memo:
|
2591
|
-
maxLength:
|
2591
|
+
maxLength: 500
|
2592
2592
|
type: string
|
2593
2593
|
nullable: true
|
2594
2594
|
SaveTransactionsResponse:
|
@@ -3005,7 +3005,7 @@ components:
|
|
3005
3005
|
date:
|
3006
3006
|
type: string
|
3007
3007
|
description: >-
|
3008
|
-
The scheduled transaction date in ISO format (e.g. 2016-12-01).
|
3008
|
+
The scheduled transaction date in ISO format (e.g. 2016-12-01). This should be a future date no more than 5 years into the future.
|
3009
3009
|
format: date
|
3010
3010
|
amount:
|
3011
3011
|
type: integer
|
@@ -3022,7 +3022,7 @@ components:
|
|
3022
3022
|
`transfer_payee_id` on the account resource.
|
3023
3023
|
format: uuid
|
3024
3024
|
payee_name:
|
3025
|
-
maxLength:
|
3025
|
+
maxLength: 200
|
3026
3026
|
type: string
|
3027
3027
|
nullable: true
|
3028
3028
|
description: >-
|
@@ -3037,7 +3037,7 @@ components:
|
|
3037
3037
|
Creating a split scheduled transaction is not currently supported.
|
3038
3038
|
format: uuid
|
3039
3039
|
memo:
|
3040
|
-
maxLength:
|
3040
|
+
maxLength: 500
|
3041
3041
|
type: string
|
3042
3042
|
nullable: true
|
3043
3043
|
flag_color:
|
data/ynab.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.email = ["api@ynab.com"]
|
21
21
|
s.homepage = "https://github.com/ynab/ynab-sdk-ruby"
|
22
22
|
s.summary = "YNAB API Client for Ruby"
|
23
|
-
s.description = "Ruby gem wrapper for the YNAB API. Generated from server specification version 1.72.
|
23
|
+
s.description = "Ruby gem wrapper for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.72.1 using OpenAPI Generator version 7.7.0."
|
24
24
|
s.license = "Apache-2.0"
|
25
25
|
s.required_ruby_version = ">= 3.3"
|
26
26
|
s.metadata = {}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ynab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YNAB
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -50,8 +50,9 @@ dependencies:
|
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 3.6.0
|
53
|
-
description: Ruby gem wrapper for the YNAB API.
|
54
|
-
version 1.72.
|
53
|
+
description: Ruby gem wrapper for the YNAB API. API documentation available at https://api.ynab.com.
|
54
|
+
Generated from server specification version 1.72.1 using OpenAPI Generator version
|
55
|
+
7.7.0.
|
55
56
|
email:
|
56
57
|
- api@ynab.com
|
57
58
|
executables: []
|
@@ -366,55 +367,55 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
366
367
|
- !ruby/object:Gem::Version
|
367
368
|
version: '0'
|
368
369
|
requirements: []
|
369
|
-
rubygems_version: 3.5.
|
370
|
+
rubygems_version: 3.5.18
|
370
371
|
signing_key:
|
371
372
|
specification_version: 4
|
372
373
|
summary: YNAB API Client for Ruby
|
373
374
|
test_files:
|
374
|
-
- spec/api/categories_spec.rb
|
375
|
-
- spec/api/budgets_spec.rb
|
376
|
-
- spec/api/scheduled_transactions_spec.rb
|
377
|
-
- spec/api/accounts_spec.rb
|
378
375
|
- spec/api/payees_spec.rb
|
376
|
+
- spec/api/payee_locations_spec.rb
|
379
377
|
- spec/api/transactions_spec.rb
|
378
|
+
- spec/api/scheduled_transactions_spec.rb
|
380
379
|
- spec/api/months_spec.rb
|
381
|
-
- spec/api/
|
380
|
+
- spec/api/categories_spec.rb
|
381
|
+
- spec/api/accounts_spec.rb
|
382
|
+
- spec/api/budgets_spec.rb
|
382
383
|
- spec/api_error_spec.rb
|
383
|
-
- spec/fixtures/vcr_cassettes/
|
384
|
+
- spec/fixtures/vcr_cassettes/create_transactions.yml
|
385
|
+
- spec/fixtures/vcr_cassettes/budgets_unauthorized.yml
|
386
|
+
- spec/fixtures/vcr_cassettes/payees.yml
|
387
|
+
- spec/fixtures/vcr_cassettes/import_transactions.yml
|
388
|
+
- spec/fixtures/vcr_cassettes/payees_unauthorized.yml
|
384
389
|
- spec/fixtures/vcr_cassettes/scheduled_transactions.yml
|
385
|
-
- spec/fixtures/vcr_cassettes/
|
386
|
-
- spec/fixtures/vcr_cassettes/accounts.yml
|
387
|
-
- spec/fixtures/vcr_cassettes/months.yml
|
388
|
-
- spec/fixtures/vcr_cassettes/payee_transactions.yml
|
389
|
-
- spec/fixtures/vcr_cassettes/transaction.yml
|
390
|
+
- spec/fixtures/vcr_cassettes/bulk_transactions.yml
|
390
391
|
- spec/fixtures/vcr_cassettes/month.yml
|
392
|
+
- spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
|
393
|
+
- spec/fixtures/vcr_cassettes/update_transactions.yml
|
394
|
+
- spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml
|
395
|
+
- spec/fixtures/vcr_cassettes/month_transactions.yml
|
396
|
+
- spec/fixtures/vcr_cassettes/update_transaction.yml
|
397
|
+
- spec/fixtures/vcr_cassettes/transaction.yml
|
391
398
|
- spec/fixtures/vcr_cassettes/category_transactions.yml
|
399
|
+
- spec/fixtures/vcr_cassettes/create_scheduled_transaction.yml
|
400
|
+
- spec/fixtures/vcr_cassettes/budget.yml
|
392
401
|
- spec/fixtures/vcr_cassettes/patch_month_category.yml
|
393
|
-
- spec/fixtures/vcr_cassettes/
|
394
|
-
- spec/fixtures/vcr_cassettes/payee.yml
|
402
|
+
- spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml
|
395
403
|
- spec/fixtures/vcr_cassettes/payee_location.yml
|
396
|
-
- spec/fixtures/vcr_cassettes/
|
397
|
-
- spec/fixtures/vcr_cassettes/
|
398
|
-
- spec/fixtures/vcr_cassettes/
|
399
|
-
- spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml
|
400
|
-
- spec/fixtures/vcr_cassettes/categories.yml
|
401
|
-
- spec/fixtures/vcr_cassettes/create_transactions.yml
|
402
|
-
- spec/fixtures/vcr_cassettes/update_transactions.yml
|
404
|
+
- spec/fixtures/vcr_cassettes/payee_transactions.yml
|
405
|
+
- spec/fixtures/vcr_cassettes/accounts.yml
|
406
|
+
- spec/fixtures/vcr_cassettes/categories_unauthorized.yml
|
403
407
|
- spec/fixtures/vcr_cassettes/create_account.yml
|
404
|
-
- spec/fixtures/vcr_cassettes/payees.yml
|
405
|
-
- spec/fixtures/vcr_cassettes/budgets.yml
|
406
|
-
- spec/fixtures/vcr_cassettes/payee_locations.yml
|
407
408
|
- spec/fixtures/vcr_cassettes/multiple_transactions.yml
|
408
|
-
- spec/fixtures/vcr_cassettes/
|
409
|
+
- spec/fixtures/vcr_cassettes/months.yml
|
410
|
+
- spec/fixtures/vcr_cassettes/payee_locations.yml
|
411
|
+
- spec/fixtures/vcr_cassettes/budgets.yml
|
412
|
+
- spec/fixtures/vcr_cassettes/account.yml
|
409
413
|
- spec/fixtures/vcr_cassettes/scheduled_transaction.yml
|
410
|
-
- spec/fixtures/vcr_cassettes/accounts_unauthorized.yml
|
411
|
-
- spec/fixtures/vcr_cassettes/import_transactions.yml
|
412
|
-
- spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
|
413
|
-
- spec/fixtures/vcr_cassettes/update_transaction.yml
|
414
414
|
- spec/fixtures/vcr_cassettes/category.yml
|
415
|
-
- spec/fixtures/vcr_cassettes/
|
416
|
-
- spec/fixtures/vcr_cassettes/
|
417
|
-
- spec/fixtures/vcr_cassettes/
|
418
|
-
- spec/fixtures/vcr_cassettes/
|
419
|
-
- spec/fixtures/vcr_cassettes/
|
415
|
+
- spec/fixtures/vcr_cassettes/transactions.yml
|
416
|
+
- spec/fixtures/vcr_cassettes/payee.yml
|
417
|
+
- spec/fixtures/vcr_cassettes/accounts_unauthorized.yml
|
418
|
+
- spec/fixtures/vcr_cassettes/months_unauthorized.yml
|
419
|
+
- spec/fixtures/vcr_cassettes/create_transaction.yml
|
420
|
+
- spec/fixtures/vcr_cassettes/categories.yml
|
420
421
|
- spec/spec_helper.rb
|