ynab 5.0.0 → 5.2.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 +1 -1
- data/README.md +1 -0
- data/docs/Account.md +6 -0
- data/docs/AccountBase.md +25 -0
- data/docs/Category.md +15 -0
- data/docs/CategoryBase.md +34 -0
- data/docs/CategoryGroup.md +1 -0
- data/docs/CategoryGroupWithCategories.md +1 -0
- data/docs/ExistingCategory.md +3 -2
- data/docs/HybridTransaction.md +2 -0
- data/docs/MoneyMovement.md +2 -0
- data/docs/MoneyMovementBase.md +16 -0
- data/docs/MonthDetail.md +8 -0
- data/docs/MonthDetailBase.md +16 -0
- data/docs/MonthSummary.md +8 -0
- data/docs/MonthSummaryBase.md +15 -0
- data/docs/NewCategory.md +3 -2
- data/docs/PayeesApi.md +21 -0
- data/docs/PlanDetail.md +7 -7
- data/docs/PostPayee.md +8 -0
- data/docs/PostPayeeWrapper.md +8 -0
- data/docs/SaveAccount.md +1 -1
- data/docs/SaveAccountType.md +7 -0
- data/docs/SaveCategory.md +3 -2
- data/docs/SavePayee.md +1 -1
- data/docs/ScheduledSubTransaction.md +2 -0
- data/docs/ScheduledSubTransactionBase.md +17 -0
- data/docs/ScheduledTransactionDetail.md +2 -0
- data/docs/ScheduledTransactionSummary.md +2 -0
- data/docs/ScheduledTransactionSummaryBase.md +20 -0
- data/docs/SubTransaction.md +2 -0
- data/docs/SubTransactionBase.md +18 -0
- data/docs/TransactionDetail.md +2 -0
- data/docs/TransactionSummary.md +2 -0
- data/docs/TransactionSummaryBase.md +26 -0
- data/docs/TransactionsApi.md +19 -14
- data/lib/ynab/api/payees_api.rb +74 -0
- data/lib/ynab/api/transactions_api.rb +33 -18
- data/lib/ynab/models/account.rb +72 -8
- data/lib/ynab/models/account_base.rb +340 -0
- data/lib/ynab/models/category.rb +170 -20
- data/lib/ynab/models/category_base.rb +447 -0
- data/lib/ynab/models/category_group.rb +12 -1
- data/lib/ynab/models/category_group_with_categories.rb +12 -1
- data/lib/ynab/models/existing_category.rb +16 -5
- data/lib/ynab/models/hybrid_transaction.rb +21 -1
- data/lib/ynab/models/money_movement.rb +31 -11
- data/lib/ynab/models/money_movement_base.rb +223 -0
- data/lib/ynab/models/month_detail.rb +81 -1
- data/lib/ynab/models/month_detail_base.rb +230 -0
- data/lib/ynab/models/month_summary.rb +91 -6
- data/lib/ynab/models/month_summary_base.rb +212 -0
- data/lib/ynab/models/new_category.rb +16 -5
- data/lib/ynab/models/plan_detail.rb +7 -7
- data/lib/ynab/models/post_payee.rb +148 -0
- data/lib/ynab/models/post_payee_wrapper.rb +136 -0
- data/lib/ynab/models/save_account.rb +1 -1
- data/lib/ynab/models/save_account_type.rb +45 -0
- data/lib/ynab/models/save_category.rb +18 -6
- data/lib/ynab/models/save_payee.rb +1 -1
- data/lib/ynab/models/scheduled_sub_transaction.rb +31 -10
- data/lib/ynab/models/scheduled_sub_transaction_base.rb +229 -0
- data/lib/ynab/models/scheduled_transaction_detail.rb +21 -1
- data/lib/ynab/models/scheduled_transaction_summary.rb +31 -9
- data/lib/ynab/models/scheduled_transaction_summary_base.rb +292 -0
- data/lib/ynab/models/sub_transaction.rb +31 -11
- data/lib/ynab/models/sub_transaction_base.rb +240 -0
- data/lib/ynab/models/transaction_detail.rb +21 -1
- data/lib/ynab/models/transaction_summary.rb +31 -14
- data/lib/ynab/models/transaction_summary_base.rb +358 -0
- data/lib/ynab/version.rb +1 -1
- data/lib/ynab.rb +12 -0
- data/open_api_spec.yaml +348 -26
- data/ynab.gemspec +1 -1
- metadata +27 -3
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.85.0
|
|
9
9
|
servers:
|
|
10
10
|
- url: https://api.ynab.com/v1
|
|
11
11
|
security:
|
|
@@ -622,6 +622,43 @@ paths:
|
|
|
622
622
|
application/json:
|
|
623
623
|
schema:
|
|
624
624
|
$ref: "#/components/schemas/ErrorResponse"
|
|
625
|
+
post:
|
|
626
|
+
tags:
|
|
627
|
+
- Payees
|
|
628
|
+
summary: Create a payee
|
|
629
|
+
description: Creates a new payee
|
|
630
|
+
operationId: createPayee
|
|
631
|
+
parameters:
|
|
632
|
+
- name: plan_id
|
|
633
|
+
in: path
|
|
634
|
+
description: 'The id of the plan. "last-used" can be used to specify the last
|
|
635
|
+
used plan and "default" can be used if default plan selection is
|
|
636
|
+
enabled (see: https://api.ynab.com/#oauth-default-plan).'
|
|
637
|
+
required: true
|
|
638
|
+
schema:
|
|
639
|
+
type: string
|
|
640
|
+
requestBody:
|
|
641
|
+
description: The payee to create
|
|
642
|
+
content:
|
|
643
|
+
application/json:
|
|
644
|
+
schema:
|
|
645
|
+
$ref: "#/components/schemas/PostPayeeWrapper"
|
|
646
|
+
required: true
|
|
647
|
+
responses:
|
|
648
|
+
"201":
|
|
649
|
+
description: The payee was successfully created
|
|
650
|
+
content:
|
|
651
|
+
application/json:
|
|
652
|
+
schema:
|
|
653
|
+
$ref: "#/components/schemas/SavePayeeResponse"
|
|
654
|
+
"400":
|
|
655
|
+
description: The request could not be understood due to malformed syntax or
|
|
656
|
+
validation error(s)
|
|
657
|
+
content:
|
|
658
|
+
application/json:
|
|
659
|
+
schema:
|
|
660
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
661
|
+
x-codegen-request-body-name: data
|
|
625
662
|
/plans/{plan_id}/payees/{payee_id}:
|
|
626
663
|
get:
|
|
627
664
|
tags:
|
|
@@ -1008,7 +1045,7 @@ paths:
|
|
|
1008
1045
|
get:
|
|
1009
1046
|
tags:
|
|
1010
1047
|
- Transactions
|
|
1011
|
-
summary: Get
|
|
1048
|
+
summary: Get transactions
|
|
1012
1049
|
description: Returns plan transactions, excluding any pending transactions
|
|
1013
1050
|
operationId: getTransactions
|
|
1014
1051
|
parameters:
|
|
@@ -1024,6 +1061,14 @@ paths:
|
|
|
1024
1061
|
in: query
|
|
1025
1062
|
description: If specified, only transactions on or after this date will be
|
|
1026
1063
|
included. The date should be ISO formatted (e.g. 2016-12-30).
|
|
1064
|
+
Defaults to one year ago when not specified.
|
|
1065
|
+
schema:
|
|
1066
|
+
type: string
|
|
1067
|
+
format: date
|
|
1068
|
+
- name: until_date
|
|
1069
|
+
in: query
|
|
1070
|
+
description: If specified, only transactions on or before this date will be
|
|
1071
|
+
included. The date should be ISO formatted (e.g. 2016-12-30).
|
|
1027
1072
|
schema:
|
|
1028
1073
|
type: string
|
|
1029
1074
|
format: date
|
|
@@ -1316,7 +1361,7 @@ paths:
|
|
|
1316
1361
|
get:
|
|
1317
1362
|
tags:
|
|
1318
1363
|
- Transactions
|
|
1319
|
-
summary: Get
|
|
1364
|
+
summary: Get account transactions
|
|
1320
1365
|
description: Returns all transactions for a specified account, excluding any
|
|
1321
1366
|
pending transactions
|
|
1322
1367
|
operationId: getTransactionsByAccount
|
|
@@ -1339,6 +1384,14 @@ paths:
|
|
|
1339
1384
|
in: query
|
|
1340
1385
|
description: If specified, only transactions on or after this date will be
|
|
1341
1386
|
included. The date should be ISO formatted (e.g. 2016-12-30).
|
|
1387
|
+
Defaults to one year ago when not specified.
|
|
1388
|
+
schema:
|
|
1389
|
+
type: string
|
|
1390
|
+
format: date
|
|
1391
|
+
- name: until_date
|
|
1392
|
+
in: query
|
|
1393
|
+
description: If specified, only transactions on or before this date will be
|
|
1394
|
+
included. The date should be ISO formatted (e.g. 2016-12-30).
|
|
1342
1395
|
schema:
|
|
1343
1396
|
type: string
|
|
1344
1397
|
format: date
|
|
@@ -1375,7 +1428,7 @@ paths:
|
|
|
1375
1428
|
get:
|
|
1376
1429
|
tags:
|
|
1377
1430
|
- Transactions
|
|
1378
|
-
summary: Get
|
|
1431
|
+
summary: Get category transactions
|
|
1379
1432
|
description: Returns all transactions for a specified category, excluding any
|
|
1380
1433
|
pending transactions
|
|
1381
1434
|
operationId: getTransactionsByCategory
|
|
@@ -1398,6 +1451,14 @@ paths:
|
|
|
1398
1451
|
in: query
|
|
1399
1452
|
description: If specified, only transactions on or after this date will be
|
|
1400
1453
|
included. The date should be ISO formatted (e.g. 2016-12-30).
|
|
1454
|
+
Defaults to one year ago when not specified.
|
|
1455
|
+
schema:
|
|
1456
|
+
type: string
|
|
1457
|
+
format: date
|
|
1458
|
+
- name: until_date
|
|
1459
|
+
in: query
|
|
1460
|
+
description: If specified, only transactions on or before this date will be
|
|
1461
|
+
included. The date should be ISO formatted (e.g. 2016-12-30).
|
|
1401
1462
|
schema:
|
|
1402
1463
|
type: string
|
|
1403
1464
|
format: date
|
|
@@ -1434,7 +1495,7 @@ paths:
|
|
|
1434
1495
|
get:
|
|
1435
1496
|
tags:
|
|
1436
1497
|
- Transactions
|
|
1437
|
-
summary: Get
|
|
1498
|
+
summary: Get payee transactions
|
|
1438
1499
|
description: Returns all transactions for a specified payee, excluding any
|
|
1439
1500
|
pending transactions
|
|
1440
1501
|
operationId: getTransactionsByPayee
|
|
@@ -1457,6 +1518,14 @@ paths:
|
|
|
1457
1518
|
in: query
|
|
1458
1519
|
description: If specified, only transactions on or after this date will be
|
|
1459
1520
|
included. The date should be ISO formatted (e.g. 2016-12-30).
|
|
1521
|
+
Defaults to one year ago when not specified.
|
|
1522
|
+
schema:
|
|
1523
|
+
type: string
|
|
1524
|
+
format: date
|
|
1525
|
+
- name: until_date
|
|
1526
|
+
in: query
|
|
1527
|
+
description: If specified, only transactions on or before this date will be
|
|
1528
|
+
included. The date should be ISO formatted (e.g. 2016-12-30).
|
|
1460
1529
|
schema:
|
|
1461
1530
|
type: string
|
|
1462
1531
|
format: date
|
|
@@ -1493,7 +1562,7 @@ paths:
|
|
|
1493
1562
|
get:
|
|
1494
1563
|
tags:
|
|
1495
1564
|
- Transactions
|
|
1496
|
-
summary: Get
|
|
1565
|
+
summary: Get plan month transactions
|
|
1497
1566
|
description: Returns all transactions for a specified month, excluding any
|
|
1498
1567
|
pending transactions
|
|
1499
1568
|
operationId: getTransactionsByMonth
|
|
@@ -1520,6 +1589,13 @@ paths:
|
|
|
1520
1589
|
schema:
|
|
1521
1590
|
type: string
|
|
1522
1591
|
format: date
|
|
1592
|
+
- name: until_date
|
|
1593
|
+
in: query
|
|
1594
|
+
description: If specified, only transactions on or before this date will be
|
|
1595
|
+
included. The date should be ISO formatted (e.g. 2016-12-30).
|
|
1596
|
+
schema:
|
|
1597
|
+
type: string
|
|
1598
|
+
format: date
|
|
1523
1599
|
- name: type
|
|
1524
1600
|
in: query
|
|
1525
1601
|
description: If specified, only transactions of the specified type will be
|
|
@@ -1897,7 +1973,7 @@ components:
|
|
|
1897
1973
|
accounts:
|
|
1898
1974
|
type: array
|
|
1899
1975
|
items:
|
|
1900
|
-
$ref: "#/components/schemas/
|
|
1976
|
+
$ref: "#/components/schemas/AccountBase"
|
|
1901
1977
|
payees:
|
|
1902
1978
|
type: array
|
|
1903
1979
|
items:
|
|
@@ -1913,27 +1989,27 @@ components:
|
|
|
1913
1989
|
categories:
|
|
1914
1990
|
type: array
|
|
1915
1991
|
items:
|
|
1916
|
-
$ref: "#/components/schemas/
|
|
1992
|
+
$ref: "#/components/schemas/CategoryBase"
|
|
1917
1993
|
months:
|
|
1918
1994
|
type: array
|
|
1919
1995
|
items:
|
|
1920
|
-
$ref: "#/components/schemas/
|
|
1996
|
+
$ref: "#/components/schemas/MonthDetailBase"
|
|
1921
1997
|
transactions:
|
|
1922
1998
|
type: array
|
|
1923
1999
|
items:
|
|
1924
|
-
$ref: "#/components/schemas/
|
|
2000
|
+
$ref: "#/components/schemas/TransactionSummaryBase"
|
|
1925
2001
|
subtransactions:
|
|
1926
2002
|
type: array
|
|
1927
2003
|
items:
|
|
1928
|
-
$ref: "#/components/schemas/
|
|
2004
|
+
$ref: "#/components/schemas/SubTransactionBase"
|
|
1929
2005
|
scheduled_transactions:
|
|
1930
2006
|
type: array
|
|
1931
2007
|
items:
|
|
1932
|
-
$ref: "#/components/schemas/
|
|
2008
|
+
$ref: "#/components/schemas/ScheduledTransactionSummaryBase"
|
|
1933
2009
|
scheduled_subtransactions:
|
|
1934
2010
|
type: array
|
|
1935
2011
|
items:
|
|
1936
|
-
$ref: "#/components/schemas/
|
|
2012
|
+
$ref: "#/components/schemas/ScheduledSubTransactionBase"
|
|
1937
2013
|
PlanSettingsResponse:
|
|
1938
2014
|
required:
|
|
1939
2015
|
- data
|
|
@@ -1987,7 +2063,7 @@ components:
|
|
|
1987
2063
|
properties:
|
|
1988
2064
|
account:
|
|
1989
2065
|
$ref: "#/components/schemas/Account"
|
|
1990
|
-
|
|
2066
|
+
AccountBase:
|
|
1991
2067
|
required:
|
|
1992
2068
|
- balance
|
|
1993
2069
|
- cleared_balance
|
|
@@ -2067,6 +2143,32 @@ components:
|
|
|
2067
2143
|
type: boolean
|
|
2068
2144
|
description: Whether or not the account has been deleted. Deleted accounts will
|
|
2069
2145
|
only be included in delta requests.
|
|
2146
|
+
Account:
|
|
2147
|
+
allOf:
|
|
2148
|
+
- $ref: "#/components/schemas/AccountBase"
|
|
2149
|
+
- type: object
|
|
2150
|
+
properties:
|
|
2151
|
+
balance_formatted:
|
|
2152
|
+
type: string
|
|
2153
|
+
description: The current available balance of the account formatted in the plan's currency format
|
|
2154
|
+
balance_currency:
|
|
2155
|
+
type: number
|
|
2156
|
+
format: double
|
|
2157
|
+
description: The current available balance of the account as a decimal currency amount
|
|
2158
|
+
cleared_balance_formatted:
|
|
2159
|
+
type: string
|
|
2160
|
+
description: The current cleared balance of the account formatted in the plan's currency format
|
|
2161
|
+
cleared_balance_currency:
|
|
2162
|
+
type: number
|
|
2163
|
+
format: double
|
|
2164
|
+
description: The current cleared balance of the account as a decimal currency amount
|
|
2165
|
+
uncleared_balance_formatted:
|
|
2166
|
+
type: string
|
|
2167
|
+
description: The current uncleared balance of the account formatted in the plan's currency format
|
|
2168
|
+
uncleared_balance_currency:
|
|
2169
|
+
type: number
|
|
2170
|
+
format: double
|
|
2171
|
+
description: The current uncleared balance of the account as a decimal currency amount
|
|
2070
2172
|
PostAccountWrapper:
|
|
2071
2173
|
required:
|
|
2072
2174
|
- account
|
|
@@ -2085,7 +2187,7 @@ components:
|
|
|
2085
2187
|
type: string
|
|
2086
2188
|
description: The name of the account
|
|
2087
2189
|
type:
|
|
2088
|
-
$ref: "#/components/schemas/
|
|
2190
|
+
$ref: "#/components/schemas/SaveAccountType"
|
|
2089
2191
|
balance:
|
|
2090
2192
|
type: integer
|
|
2091
2193
|
description: The current balance of the account in milliunits format
|
|
@@ -2097,6 +2199,16 @@ components:
|
|
|
2097
2199
|
additionalProperties:
|
|
2098
2200
|
type: integer
|
|
2099
2201
|
format: int64
|
|
2202
|
+
SaveAccountType:
|
|
2203
|
+
type: string
|
|
2204
|
+
description: The type of account to create or update
|
|
2205
|
+
enum:
|
|
2206
|
+
- checking
|
|
2207
|
+
- savings
|
|
2208
|
+
- cash
|
|
2209
|
+
- creditCard
|
|
2210
|
+
- otherAsset
|
|
2211
|
+
- otherLiability
|
|
2100
2212
|
AccountType:
|
|
2101
2213
|
type: string
|
|
2102
2214
|
description: The type of account
|
|
@@ -2162,6 +2274,7 @@ components:
|
|
|
2162
2274
|
required:
|
|
2163
2275
|
- deleted
|
|
2164
2276
|
- hidden
|
|
2277
|
+
- internal
|
|
2165
2278
|
- id
|
|
2166
2279
|
- name
|
|
2167
2280
|
type: object
|
|
@@ -2174,11 +2287,14 @@ components:
|
|
|
2174
2287
|
hidden:
|
|
2175
2288
|
type: boolean
|
|
2176
2289
|
description: Whether or not the category group is hidden
|
|
2290
|
+
internal:
|
|
2291
|
+
type: boolean
|
|
2292
|
+
description: Whether or not the category group is internal
|
|
2177
2293
|
deleted:
|
|
2178
2294
|
type: boolean
|
|
2179
2295
|
description: Whether or not the category group has been deleted. Deleted
|
|
2180
2296
|
category groups will only be included in delta requests.
|
|
2181
|
-
|
|
2297
|
+
CategoryBase:
|
|
2182
2298
|
required:
|
|
2183
2299
|
- activity
|
|
2184
2300
|
- balance
|
|
@@ -2186,6 +2302,7 @@ components:
|
|
|
2186
2302
|
- category_group_id
|
|
2187
2303
|
- deleted
|
|
2188
2304
|
- hidden
|
|
2305
|
+
- internal
|
|
2189
2306
|
- id
|
|
2190
2307
|
- name
|
|
2191
2308
|
type: object
|
|
@@ -2203,6 +2320,9 @@ components:
|
|
|
2203
2320
|
hidden:
|
|
2204
2321
|
type: boolean
|
|
2205
2322
|
description: Whether or not the category is hidden
|
|
2323
|
+
internal:
|
|
2324
|
+
type: boolean
|
|
2325
|
+
description: Whether or not the category is internal
|
|
2206
2326
|
original_category_group_id:
|
|
2207
2327
|
type:
|
|
2208
2328
|
- string
|
|
@@ -2357,6 +2477,76 @@ components:
|
|
|
2357
2477
|
type: boolean
|
|
2358
2478
|
description: Whether or not the category has been deleted. Deleted categories
|
|
2359
2479
|
will only be included in delta requests.
|
|
2480
|
+
Category:
|
|
2481
|
+
allOf:
|
|
2482
|
+
- $ref: "#/components/schemas/CategoryBase"
|
|
2483
|
+
- type: object
|
|
2484
|
+
properties:
|
|
2485
|
+
balance_formatted:
|
|
2486
|
+
type: string
|
|
2487
|
+
description: Available balance of the category formatted in the plan's currency format
|
|
2488
|
+
balance_currency:
|
|
2489
|
+
type: number
|
|
2490
|
+
format: double
|
|
2491
|
+
description: Available balance of the category as a decimal currency amount
|
|
2492
|
+
activity_formatted:
|
|
2493
|
+
type: string
|
|
2494
|
+
description: Activity of the category formatted in the plan's currency format
|
|
2495
|
+
activity_currency:
|
|
2496
|
+
type: number
|
|
2497
|
+
format: double
|
|
2498
|
+
description: Activity of the category as a decimal currency amount
|
|
2499
|
+
budgeted_formatted:
|
|
2500
|
+
type: string
|
|
2501
|
+
description: Assigned (budgeted) amount of the category formatted in the plan's currency format
|
|
2502
|
+
budgeted_currency:
|
|
2503
|
+
type: number
|
|
2504
|
+
format: double
|
|
2505
|
+
description: Assigned (budgeted) amount of the category as a decimal currency amount
|
|
2506
|
+
goal_target_formatted:
|
|
2507
|
+
type:
|
|
2508
|
+
- string
|
|
2509
|
+
- "null"
|
|
2510
|
+
description: The goal target amount formatted in the plan's currency format
|
|
2511
|
+
goal_target_currency:
|
|
2512
|
+
type:
|
|
2513
|
+
- number
|
|
2514
|
+
- "null"
|
|
2515
|
+
format: double
|
|
2516
|
+
description: The goal target amount as a decimal currency amount
|
|
2517
|
+
goal_under_funded_formatted:
|
|
2518
|
+
type:
|
|
2519
|
+
- string
|
|
2520
|
+
- "null"
|
|
2521
|
+
description: The goal underfunded amount formatted in the plan's currency format
|
|
2522
|
+
goal_under_funded_currency:
|
|
2523
|
+
type:
|
|
2524
|
+
- number
|
|
2525
|
+
- "null"
|
|
2526
|
+
format: double
|
|
2527
|
+
description: The goal underfunded amount as a decimal currency amount
|
|
2528
|
+
goal_overall_funded_formatted:
|
|
2529
|
+
type:
|
|
2530
|
+
- string
|
|
2531
|
+
- "null"
|
|
2532
|
+
description: The total amount funded towards the goal formatted in the plan's currency format
|
|
2533
|
+
goal_overall_funded_currency:
|
|
2534
|
+
type:
|
|
2535
|
+
- number
|
|
2536
|
+
- "null"
|
|
2537
|
+
format: double
|
|
2538
|
+
description: The total amount funded towards the goal as a decimal currency amount
|
|
2539
|
+
goal_overall_left_formatted:
|
|
2540
|
+
type:
|
|
2541
|
+
- string
|
|
2542
|
+
- "null"
|
|
2543
|
+
description: The amount of funding still needed to complete the goal formatted in the plan's currency format
|
|
2544
|
+
goal_overall_left_currency:
|
|
2545
|
+
type:
|
|
2546
|
+
- number
|
|
2547
|
+
- "null"
|
|
2548
|
+
format: double
|
|
2549
|
+
description: The amount of funding still needed to complete the goal as a decimal currency amount
|
|
2360
2550
|
SaveCategoryResponse:
|
|
2361
2551
|
required:
|
|
2362
2552
|
- data
|
|
@@ -2784,7 +2974,7 @@ components:
|
|
|
2784
2974
|
type: integer
|
|
2785
2975
|
description: The knowledge of the server
|
|
2786
2976
|
format: int64
|
|
2787
|
-
|
|
2977
|
+
TransactionSummaryBase:
|
|
2788
2978
|
required:
|
|
2789
2979
|
- account_id
|
|
2790
2980
|
- amount
|
|
@@ -2894,6 +3084,19 @@ components:
|
|
|
2894
3084
|
type: boolean
|
|
2895
3085
|
description: Whether or not the transaction has been deleted. Deleted
|
|
2896
3086
|
transactions will only be included in delta requests.
|
|
3087
|
+
TransactionSummary:
|
|
3088
|
+
allOf:
|
|
3089
|
+
- $ref: "#/components/schemas/TransactionSummaryBase"
|
|
3090
|
+
- type: object
|
|
3091
|
+
properties:
|
|
3092
|
+
amount_formatted:
|
|
3093
|
+
type: string
|
|
3094
|
+
description: The transaction amount formatted in the plan's currency format
|
|
3095
|
+
amount_currency:
|
|
3096
|
+
type: number
|
|
3097
|
+
format: double
|
|
3098
|
+
description: The transaction amount as a decimal currency amount
|
|
3099
|
+
|
|
2897
3100
|
TransactionDetail:
|
|
2898
3101
|
allOf:
|
|
2899
3102
|
- $ref: "#/components/schemas/TransactionSummary"
|
|
@@ -2951,6 +3154,23 @@ components:
|
|
|
2951
3154
|
type: string
|
|
2952
3155
|
description: The name of the category. If a split transaction, this will be
|
|
2953
3156
|
'Split'.
|
|
3157
|
+
PostPayeeWrapper:
|
|
3158
|
+
required:
|
|
3159
|
+
- payee
|
|
3160
|
+
type: object
|
|
3161
|
+
properties:
|
|
3162
|
+
payee:
|
|
3163
|
+
$ref: "#/components/schemas/PostPayee"
|
|
3164
|
+
PostPayee:
|
|
3165
|
+
required:
|
|
3166
|
+
- name
|
|
3167
|
+
type: object
|
|
3168
|
+
properties:
|
|
3169
|
+
name:
|
|
3170
|
+
type: string
|
|
3171
|
+
nullable: false
|
|
3172
|
+
maxLength: 500
|
|
3173
|
+
description: The name of the payee.
|
|
2954
3174
|
PatchPayeeWrapper:
|
|
2955
3175
|
required:
|
|
2956
3176
|
- payee
|
|
@@ -2965,7 +3185,7 @@ components:
|
|
|
2965
3185
|
type: string
|
|
2966
3186
|
nullable: false
|
|
2967
3187
|
maxLength: 500
|
|
2968
|
-
description: The name of the payee.
|
|
3188
|
+
description: The name of the payee.
|
|
2969
3189
|
PostCategoryGroupWrapper:
|
|
2970
3190
|
required:
|
|
2971
3191
|
- category_group
|
|
@@ -3018,14 +3238,15 @@ components:
|
|
|
3018
3238
|
category_group_id:
|
|
3019
3239
|
type: string
|
|
3020
3240
|
format: uuid
|
|
3241
|
+
description: The id of the category group to which this category belongs. An internal category group may not be specified.
|
|
3021
3242
|
goal_target:
|
|
3022
3243
|
type:
|
|
3023
3244
|
- integer
|
|
3024
3245
|
- "null"
|
|
3025
3246
|
description: The goal target amount in milliunits format. If value is specified
|
|
3026
|
-
and goal has not already been configured for category, a monthly
|
|
3027
|
-
|
|
3028
|
-
|
|
3247
|
+
and goal has not already been configured for category, a monthly goal
|
|
3248
|
+
will be created for the category with this target amount. If goal_type is
|
|
3249
|
+
not specified, it will default to 'NEED' or 'MF' for Credit Card Payment categories.
|
|
3029
3250
|
format: int64
|
|
3030
3251
|
goal_target_date:
|
|
3031
3252
|
type:
|
|
@@ -3033,6 +3254,13 @@ components:
|
|
|
3033
3254
|
- "null"
|
|
3034
3255
|
description: The goal target date in ISO format (e.g. 2016-12-01).
|
|
3035
3256
|
format: date
|
|
3257
|
+
goal_needs_whole_amount:
|
|
3258
|
+
type:
|
|
3259
|
+
- boolean
|
|
3260
|
+
- "null"
|
|
3261
|
+
description: Whether the goal requires the full target amount each period. Only supported for 'NEED' goals.
|
|
3262
|
+
When true, the goal is configured as 'Set aside another...'.
|
|
3263
|
+
When false, the goal is configured as 'Refill up to...'.
|
|
3036
3264
|
ExistingCategory:
|
|
3037
3265
|
allOf:
|
|
3038
3266
|
- $ref: "#/components/schemas/SaveCategory"
|
|
@@ -3112,7 +3340,7 @@ components:
|
|
|
3112
3340
|
type: array
|
|
3113
3341
|
items:
|
|
3114
3342
|
$ref: "#/components/schemas/SaveTransactionWithOptionalFields"
|
|
3115
|
-
|
|
3343
|
+
SubTransactionBase:
|
|
3116
3344
|
required:
|
|
3117
3345
|
- amount
|
|
3118
3346
|
- deleted
|
|
@@ -3166,6 +3394,18 @@ components:
|
|
|
3166
3394
|
type: boolean
|
|
3167
3395
|
description: Whether or not the subtransaction has been deleted. Deleted
|
|
3168
3396
|
subtransactions will only be included in delta requests.
|
|
3397
|
+
SubTransaction:
|
|
3398
|
+
allOf:
|
|
3399
|
+
- $ref: "#/components/schemas/SubTransactionBase"
|
|
3400
|
+
- type: object
|
|
3401
|
+
properties:
|
|
3402
|
+
amount_formatted:
|
|
3403
|
+
type: string
|
|
3404
|
+
description: The subtransaction amount formatted in the plan's currency format
|
|
3405
|
+
amount_currency:
|
|
3406
|
+
type: number
|
|
3407
|
+
format: double
|
|
3408
|
+
description: The subtransaction amount as a decimal currency amount
|
|
3169
3409
|
ScheduledTransactionsResponse:
|
|
3170
3410
|
required:
|
|
3171
3411
|
- data
|
|
@@ -3265,7 +3505,7 @@ components:
|
|
|
3265
3505
|
$ref: "#/components/schemas/TransactionFlagColor"
|
|
3266
3506
|
frequency:
|
|
3267
3507
|
$ref: "#/components/schemas/ScheduledTransactionFrequency"
|
|
3268
|
-
|
|
3508
|
+
ScheduledTransactionSummaryBase:
|
|
3269
3509
|
required:
|
|
3270
3510
|
- account_id
|
|
3271
3511
|
- amount
|
|
@@ -3339,6 +3579,18 @@ components:
|
|
|
3339
3579
|
type: boolean
|
|
3340
3580
|
description: Whether or not the scheduled transaction has been deleted. Deleted
|
|
3341
3581
|
scheduled transactions will only be included in delta requests.
|
|
3582
|
+
ScheduledTransactionSummary:
|
|
3583
|
+
allOf:
|
|
3584
|
+
- $ref: "#/components/schemas/ScheduledTransactionSummaryBase"
|
|
3585
|
+
- type: object
|
|
3586
|
+
properties:
|
|
3587
|
+
amount_formatted:
|
|
3588
|
+
type: string
|
|
3589
|
+
description: The scheduled transaction amount formatted in the plan's currency format
|
|
3590
|
+
amount_currency:
|
|
3591
|
+
type: number
|
|
3592
|
+
format: double
|
|
3593
|
+
description: The scheduled transaction amount as a decimal currency amount
|
|
3342
3594
|
ScheduledTransactionDetail:
|
|
3343
3595
|
allOf:
|
|
3344
3596
|
- $ref: "#/components/schemas/ScheduledTransactionSummary"
|
|
@@ -3364,7 +3616,7 @@ components:
|
|
|
3364
3616
|
description: If a split scheduled transaction, the subtransactions.
|
|
3365
3617
|
items:
|
|
3366
3618
|
$ref: "#/components/schemas/ScheduledSubTransaction"
|
|
3367
|
-
|
|
3619
|
+
ScheduledSubTransactionBase:
|
|
3368
3620
|
required:
|
|
3369
3621
|
- amount
|
|
3370
3622
|
- deleted
|
|
@@ -3416,6 +3668,18 @@ components:
|
|
|
3416
3668
|
description: Whether or not the scheduled subtransaction has been deleted.
|
|
3417
3669
|
Deleted scheduled subtransactions will only be included in delta
|
|
3418
3670
|
requests.
|
|
3671
|
+
ScheduledSubTransaction:
|
|
3672
|
+
allOf:
|
|
3673
|
+
- $ref: "#/components/schemas/ScheduledSubTransactionBase"
|
|
3674
|
+
- type: object
|
|
3675
|
+
properties:
|
|
3676
|
+
amount_formatted:
|
|
3677
|
+
type: string
|
|
3678
|
+
description: The scheduled subtransaction amount formatted in the plan's currency format
|
|
3679
|
+
amount_currency:
|
|
3680
|
+
type: number
|
|
3681
|
+
format: double
|
|
3682
|
+
description: The scheduled subtransaction amount as a decimal currency amount
|
|
3419
3683
|
MonthSummariesResponse:
|
|
3420
3684
|
required:
|
|
3421
3685
|
- data
|
|
@@ -3447,7 +3711,7 @@ components:
|
|
|
3447
3711
|
properties:
|
|
3448
3712
|
month:
|
|
3449
3713
|
$ref: "#/components/schemas/MonthDetail"
|
|
3450
|
-
|
|
3714
|
+
MonthSummaryBase:
|
|
3451
3715
|
required:
|
|
3452
3716
|
- activity
|
|
3453
3717
|
- budgeted
|
|
@@ -3492,6 +3756,52 @@ components:
|
|
|
3492
3756
|
type: boolean
|
|
3493
3757
|
description: Whether or not the month has been deleted. Deleted months will
|
|
3494
3758
|
only be included in delta requests.
|
|
3759
|
+
MonthSummary:
|
|
3760
|
+
allOf:
|
|
3761
|
+
- $ref: "#/components/schemas/MonthSummaryBase"
|
|
3762
|
+
- type: object
|
|
3763
|
+
properties:
|
|
3764
|
+
income_formatted:
|
|
3765
|
+
type: string
|
|
3766
|
+
description: The total income formatted in the plan's currency format
|
|
3767
|
+
income_currency:
|
|
3768
|
+
type: number
|
|
3769
|
+
format: double
|
|
3770
|
+
description: The total income as a decimal currency amount
|
|
3771
|
+
budgeted_formatted:
|
|
3772
|
+
type: string
|
|
3773
|
+
description: The total amount assigned formatted in the plan's currency format
|
|
3774
|
+
budgeted_currency:
|
|
3775
|
+
type: number
|
|
3776
|
+
format: double
|
|
3777
|
+
description: The total amount assigned as a decimal currency amount
|
|
3778
|
+
activity_formatted:
|
|
3779
|
+
type: string
|
|
3780
|
+
description: The total activity amount formatted in the plan's currency format
|
|
3781
|
+
activity_currency:
|
|
3782
|
+
type: number
|
|
3783
|
+
format: double
|
|
3784
|
+
description: The total activity amount as a decimal currency amount
|
|
3785
|
+
to_be_budgeted_formatted:
|
|
3786
|
+
type: string
|
|
3787
|
+
description: The available amount for 'Ready to Assign' formatted in the plan's currency format
|
|
3788
|
+
to_be_budgeted_currency:
|
|
3789
|
+
type: number
|
|
3790
|
+
format: double
|
|
3791
|
+
description: The available amount for 'Ready to Assign' as a decimal currency amount
|
|
3792
|
+
MonthDetailBase:
|
|
3793
|
+
allOf:
|
|
3794
|
+
- $ref: "#/components/schemas/MonthSummaryBase"
|
|
3795
|
+
- required:
|
|
3796
|
+
- categories
|
|
3797
|
+
type: object
|
|
3798
|
+
properties:
|
|
3799
|
+
categories:
|
|
3800
|
+
type: array
|
|
3801
|
+
description: The plan month categories. Amounts (budgeted, activity, balance,
|
|
3802
|
+
etc.) are specific to the {month} parameter specified.
|
|
3803
|
+
items:
|
|
3804
|
+
$ref: "#/components/schemas/CategoryBase"
|
|
3495
3805
|
MonthDetail:
|
|
3496
3806
|
allOf:
|
|
3497
3807
|
- $ref: "#/components/schemas/MonthSummary"
|
|
@@ -3567,7 +3877,7 @@ components:
|
|
|
3567
3877
|
type: integer
|
|
3568
3878
|
description: The knowledge of the server
|
|
3569
3879
|
format: int64
|
|
3570
|
-
|
|
3880
|
+
MoneyMovementBase:
|
|
3571
3881
|
required:
|
|
3572
3882
|
- id
|
|
3573
3883
|
- amount
|
|
@@ -3621,6 +3931,18 @@ components:
|
|
|
3621
3931
|
type: integer
|
|
3622
3932
|
description: The amount of the money movement in milliunits format
|
|
3623
3933
|
format: int64
|
|
3934
|
+
MoneyMovement:
|
|
3935
|
+
allOf:
|
|
3936
|
+
- $ref: "#/components/schemas/MoneyMovementBase"
|
|
3937
|
+
- type: object
|
|
3938
|
+
properties:
|
|
3939
|
+
amount_formatted:
|
|
3940
|
+
type: string
|
|
3941
|
+
description: The money movement amount formatted in the plan's currency format
|
|
3942
|
+
amount_currency:
|
|
3943
|
+
type: number
|
|
3944
|
+
format: double
|
|
3945
|
+
description: The money movement amount as a decimal currency amount
|
|
3624
3946
|
MoneyMovementGroupsResponse:
|
|
3625
3947
|
required:
|
|
3626
3948
|
- data
|
data/ynab.gemspec
CHANGED
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
|
19
19
|
s.email = ["api@ynab.com"]
|
|
20
20
|
s.homepage = "https://github.com/ynab/ynab-sdk-ruby"
|
|
21
21
|
s.summary = "Official Ruby client for the YNAB API"
|
|
22
|
-
s.description = "Official Ruby client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.
|
|
22
|
+
s.description = "Official Ruby client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.85.0."
|
|
23
23
|
s.license = "Apache-2.0"
|
|
24
24
|
s.required_ruby_version = ">= 3.3"
|
|
25
25
|
s.metadata = {}
|