ynab 5.0.0 → 5.1.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/docs/Account.md +6 -0
- data/docs/AccountBase.md +25 -0
- data/docs/Category.md +14 -0
- data/docs/CategoryBase.md +33 -0
- data/docs/ExistingCategory.md +2 -1
- 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 +2 -1
- 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 +2 -1
- 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/lib/ynab/api/payees_api.rb +74 -0
- data/lib/ynab/models/account.rb +72 -8
- data/lib/ynab/models/account_base.rb +340 -0
- data/lib/ynab/models/category.rb +159 -20
- data/lib/ynab/models/category_base.rb +436 -0
- data/lib/ynab/models/existing_category.rb +15 -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 +15 -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 +17 -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 +295 -21
- 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.83.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:
|
|
@@ -1897,7 +1934,7 @@ components:
|
|
|
1897
1934
|
accounts:
|
|
1898
1935
|
type: array
|
|
1899
1936
|
items:
|
|
1900
|
-
$ref: "#/components/schemas/
|
|
1937
|
+
$ref: "#/components/schemas/AccountBase"
|
|
1901
1938
|
payees:
|
|
1902
1939
|
type: array
|
|
1903
1940
|
items:
|
|
@@ -1913,27 +1950,27 @@ components:
|
|
|
1913
1950
|
categories:
|
|
1914
1951
|
type: array
|
|
1915
1952
|
items:
|
|
1916
|
-
$ref: "#/components/schemas/
|
|
1953
|
+
$ref: "#/components/schemas/CategoryBase"
|
|
1917
1954
|
months:
|
|
1918
1955
|
type: array
|
|
1919
1956
|
items:
|
|
1920
|
-
$ref: "#/components/schemas/
|
|
1957
|
+
$ref: "#/components/schemas/MonthDetailBase"
|
|
1921
1958
|
transactions:
|
|
1922
1959
|
type: array
|
|
1923
1960
|
items:
|
|
1924
|
-
$ref: "#/components/schemas/
|
|
1961
|
+
$ref: "#/components/schemas/TransactionSummaryBase"
|
|
1925
1962
|
subtransactions:
|
|
1926
1963
|
type: array
|
|
1927
1964
|
items:
|
|
1928
|
-
$ref: "#/components/schemas/
|
|
1965
|
+
$ref: "#/components/schemas/SubTransactionBase"
|
|
1929
1966
|
scheduled_transactions:
|
|
1930
1967
|
type: array
|
|
1931
1968
|
items:
|
|
1932
|
-
$ref: "#/components/schemas/
|
|
1969
|
+
$ref: "#/components/schemas/ScheduledTransactionSummaryBase"
|
|
1933
1970
|
scheduled_subtransactions:
|
|
1934
1971
|
type: array
|
|
1935
1972
|
items:
|
|
1936
|
-
$ref: "#/components/schemas/
|
|
1973
|
+
$ref: "#/components/schemas/ScheduledSubTransactionBase"
|
|
1937
1974
|
PlanSettingsResponse:
|
|
1938
1975
|
required:
|
|
1939
1976
|
- data
|
|
@@ -1987,7 +2024,7 @@ components:
|
|
|
1987
2024
|
properties:
|
|
1988
2025
|
account:
|
|
1989
2026
|
$ref: "#/components/schemas/Account"
|
|
1990
|
-
|
|
2027
|
+
AccountBase:
|
|
1991
2028
|
required:
|
|
1992
2029
|
- balance
|
|
1993
2030
|
- cleared_balance
|
|
@@ -2067,6 +2104,32 @@ components:
|
|
|
2067
2104
|
type: boolean
|
|
2068
2105
|
description: Whether or not the account has been deleted. Deleted accounts will
|
|
2069
2106
|
only be included in delta requests.
|
|
2107
|
+
Account:
|
|
2108
|
+
allOf:
|
|
2109
|
+
- $ref: "#/components/schemas/AccountBase"
|
|
2110
|
+
- type: object
|
|
2111
|
+
properties:
|
|
2112
|
+
balance_formatted:
|
|
2113
|
+
type: string
|
|
2114
|
+
description: The current available balance of the account formatted in the plan's currency format
|
|
2115
|
+
balance_currency:
|
|
2116
|
+
type: number
|
|
2117
|
+
format: double
|
|
2118
|
+
description: The current available balance of the account as a decimal currency amount
|
|
2119
|
+
cleared_balance_formatted:
|
|
2120
|
+
type: string
|
|
2121
|
+
description: The current cleared balance of the account formatted in the plan's currency format
|
|
2122
|
+
cleared_balance_currency:
|
|
2123
|
+
type: number
|
|
2124
|
+
format: double
|
|
2125
|
+
description: The current cleared balance of the account as a decimal currency amount
|
|
2126
|
+
uncleared_balance_formatted:
|
|
2127
|
+
type: string
|
|
2128
|
+
description: The current uncleared balance of the account formatted in the plan's currency format
|
|
2129
|
+
uncleared_balance_currency:
|
|
2130
|
+
type: number
|
|
2131
|
+
format: double
|
|
2132
|
+
description: The current uncleared balance of the account as a decimal currency amount
|
|
2070
2133
|
PostAccountWrapper:
|
|
2071
2134
|
required:
|
|
2072
2135
|
- account
|
|
@@ -2085,7 +2148,7 @@ components:
|
|
|
2085
2148
|
type: string
|
|
2086
2149
|
description: The name of the account
|
|
2087
2150
|
type:
|
|
2088
|
-
$ref: "#/components/schemas/
|
|
2151
|
+
$ref: "#/components/schemas/SaveAccountType"
|
|
2089
2152
|
balance:
|
|
2090
2153
|
type: integer
|
|
2091
2154
|
description: The current balance of the account in milliunits format
|
|
@@ -2097,6 +2160,16 @@ components:
|
|
|
2097
2160
|
additionalProperties:
|
|
2098
2161
|
type: integer
|
|
2099
2162
|
format: int64
|
|
2163
|
+
SaveAccountType:
|
|
2164
|
+
type: string
|
|
2165
|
+
description: The type of account to create or update
|
|
2166
|
+
enum:
|
|
2167
|
+
- checking
|
|
2168
|
+
- savings
|
|
2169
|
+
- cash
|
|
2170
|
+
- creditCard
|
|
2171
|
+
- otherAsset
|
|
2172
|
+
- otherLiability
|
|
2100
2173
|
AccountType:
|
|
2101
2174
|
type: string
|
|
2102
2175
|
description: The type of account
|
|
@@ -2178,7 +2251,7 @@ components:
|
|
|
2178
2251
|
type: boolean
|
|
2179
2252
|
description: Whether or not the category group has been deleted. Deleted
|
|
2180
2253
|
category groups will only be included in delta requests.
|
|
2181
|
-
|
|
2254
|
+
CategoryBase:
|
|
2182
2255
|
required:
|
|
2183
2256
|
- activity
|
|
2184
2257
|
- balance
|
|
@@ -2357,6 +2430,76 @@ components:
|
|
|
2357
2430
|
type: boolean
|
|
2358
2431
|
description: Whether or not the category has been deleted. Deleted categories
|
|
2359
2432
|
will only be included in delta requests.
|
|
2433
|
+
Category:
|
|
2434
|
+
allOf:
|
|
2435
|
+
- $ref: "#/components/schemas/CategoryBase"
|
|
2436
|
+
- type: object
|
|
2437
|
+
properties:
|
|
2438
|
+
balance_formatted:
|
|
2439
|
+
type: string
|
|
2440
|
+
description: Available balance of the category formatted in the plan's currency format
|
|
2441
|
+
balance_currency:
|
|
2442
|
+
type: number
|
|
2443
|
+
format: double
|
|
2444
|
+
description: Available balance of the category as a decimal currency amount
|
|
2445
|
+
activity_formatted:
|
|
2446
|
+
type: string
|
|
2447
|
+
description: Activity of the category formatted in the plan's currency format
|
|
2448
|
+
activity_currency:
|
|
2449
|
+
type: number
|
|
2450
|
+
format: double
|
|
2451
|
+
description: Activity of the category as a decimal currency amount
|
|
2452
|
+
budgeted_formatted:
|
|
2453
|
+
type: string
|
|
2454
|
+
description: Assigned (budgeted) amount of the category formatted in the plan's currency format
|
|
2455
|
+
budgeted_currency:
|
|
2456
|
+
type: number
|
|
2457
|
+
format: double
|
|
2458
|
+
description: Assigned (budgeted) amount of the category as a decimal currency amount
|
|
2459
|
+
goal_target_formatted:
|
|
2460
|
+
type:
|
|
2461
|
+
- string
|
|
2462
|
+
- "null"
|
|
2463
|
+
description: The goal target amount formatted in the plan's currency format
|
|
2464
|
+
goal_target_currency:
|
|
2465
|
+
type:
|
|
2466
|
+
- number
|
|
2467
|
+
- "null"
|
|
2468
|
+
format: double
|
|
2469
|
+
description: The goal target amount as a decimal currency amount
|
|
2470
|
+
goal_under_funded_formatted:
|
|
2471
|
+
type:
|
|
2472
|
+
- string
|
|
2473
|
+
- "null"
|
|
2474
|
+
description: The goal underfunded amount formatted in the plan's currency format
|
|
2475
|
+
goal_under_funded_currency:
|
|
2476
|
+
type:
|
|
2477
|
+
- number
|
|
2478
|
+
- "null"
|
|
2479
|
+
format: double
|
|
2480
|
+
description: The goal underfunded amount as a decimal currency amount
|
|
2481
|
+
goal_overall_funded_formatted:
|
|
2482
|
+
type:
|
|
2483
|
+
- string
|
|
2484
|
+
- "null"
|
|
2485
|
+
description: The total amount funded towards the goal formatted in the plan's currency format
|
|
2486
|
+
goal_overall_funded_currency:
|
|
2487
|
+
type:
|
|
2488
|
+
- number
|
|
2489
|
+
- "null"
|
|
2490
|
+
format: double
|
|
2491
|
+
description: The total amount funded towards the goal as a decimal currency amount
|
|
2492
|
+
goal_overall_left_formatted:
|
|
2493
|
+
type:
|
|
2494
|
+
- string
|
|
2495
|
+
- "null"
|
|
2496
|
+
description: The amount of funding still needed to complete the goal formatted in the plan's currency format
|
|
2497
|
+
goal_overall_left_currency:
|
|
2498
|
+
type:
|
|
2499
|
+
- number
|
|
2500
|
+
- "null"
|
|
2501
|
+
format: double
|
|
2502
|
+
description: The amount of funding still needed to complete the goal as a decimal currency amount
|
|
2360
2503
|
SaveCategoryResponse:
|
|
2361
2504
|
required:
|
|
2362
2505
|
- data
|
|
@@ -2784,7 +2927,7 @@ components:
|
|
|
2784
2927
|
type: integer
|
|
2785
2928
|
description: The knowledge of the server
|
|
2786
2929
|
format: int64
|
|
2787
|
-
|
|
2930
|
+
TransactionSummaryBase:
|
|
2788
2931
|
required:
|
|
2789
2932
|
- account_id
|
|
2790
2933
|
- amount
|
|
@@ -2894,6 +3037,19 @@ components:
|
|
|
2894
3037
|
type: boolean
|
|
2895
3038
|
description: Whether or not the transaction has been deleted. Deleted
|
|
2896
3039
|
transactions will only be included in delta requests.
|
|
3040
|
+
TransactionSummary:
|
|
3041
|
+
allOf:
|
|
3042
|
+
- $ref: "#/components/schemas/TransactionSummaryBase"
|
|
3043
|
+
- type: object
|
|
3044
|
+
properties:
|
|
3045
|
+
amount_formatted:
|
|
3046
|
+
type: string
|
|
3047
|
+
description: The transaction amount formatted in the plan's currency format
|
|
3048
|
+
amount_currency:
|
|
3049
|
+
type: number
|
|
3050
|
+
format: double
|
|
3051
|
+
description: The transaction amount as a decimal currency amount
|
|
3052
|
+
|
|
2897
3053
|
TransactionDetail:
|
|
2898
3054
|
allOf:
|
|
2899
3055
|
- $ref: "#/components/schemas/TransactionSummary"
|
|
@@ -2951,6 +3107,23 @@ components:
|
|
|
2951
3107
|
type: string
|
|
2952
3108
|
description: The name of the category. If a split transaction, this will be
|
|
2953
3109
|
'Split'.
|
|
3110
|
+
PostPayeeWrapper:
|
|
3111
|
+
required:
|
|
3112
|
+
- payee
|
|
3113
|
+
type: object
|
|
3114
|
+
properties:
|
|
3115
|
+
payee:
|
|
3116
|
+
$ref: "#/components/schemas/PostPayee"
|
|
3117
|
+
PostPayee:
|
|
3118
|
+
required:
|
|
3119
|
+
- name
|
|
3120
|
+
type: object
|
|
3121
|
+
properties:
|
|
3122
|
+
name:
|
|
3123
|
+
type: string
|
|
3124
|
+
nullable: false
|
|
3125
|
+
maxLength: 500
|
|
3126
|
+
description: The name of the payee.
|
|
2954
3127
|
PatchPayeeWrapper:
|
|
2955
3128
|
required:
|
|
2956
3129
|
- payee
|
|
@@ -2965,7 +3138,7 @@ components:
|
|
|
2965
3138
|
type: string
|
|
2966
3139
|
nullable: false
|
|
2967
3140
|
maxLength: 500
|
|
2968
|
-
description: The name of the payee.
|
|
3141
|
+
description: The name of the payee.
|
|
2969
3142
|
PostCategoryGroupWrapper:
|
|
2970
3143
|
required:
|
|
2971
3144
|
- category_group
|
|
@@ -3023,9 +3196,9 @@ components:
|
|
|
3023
3196
|
- integer
|
|
3024
3197
|
- "null"
|
|
3025
3198
|
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
|
-
|
|
3199
|
+
and goal has not already been configured for category, a monthly goal
|
|
3200
|
+
will be created for the category with this target amount. If goal_type is
|
|
3201
|
+
not specified, it will default to 'NEED' or 'MF' for Credit Card Payment categories.
|
|
3029
3202
|
format: int64
|
|
3030
3203
|
goal_target_date:
|
|
3031
3204
|
type:
|
|
@@ -3033,6 +3206,13 @@ components:
|
|
|
3033
3206
|
- "null"
|
|
3034
3207
|
description: The goal target date in ISO format (e.g. 2016-12-01).
|
|
3035
3208
|
format: date
|
|
3209
|
+
goal_needs_whole_amount:
|
|
3210
|
+
type:
|
|
3211
|
+
- boolean
|
|
3212
|
+
- "null"
|
|
3213
|
+
description: Whether the goal requires the full target amount each period. Only supported for 'NEED' goals.
|
|
3214
|
+
When true, the goal is configured as 'Set aside another...'.
|
|
3215
|
+
When false, the goal is configured as 'Refill up to...'.
|
|
3036
3216
|
ExistingCategory:
|
|
3037
3217
|
allOf:
|
|
3038
3218
|
- $ref: "#/components/schemas/SaveCategory"
|
|
@@ -3112,7 +3292,7 @@ components:
|
|
|
3112
3292
|
type: array
|
|
3113
3293
|
items:
|
|
3114
3294
|
$ref: "#/components/schemas/SaveTransactionWithOptionalFields"
|
|
3115
|
-
|
|
3295
|
+
SubTransactionBase:
|
|
3116
3296
|
required:
|
|
3117
3297
|
- amount
|
|
3118
3298
|
- deleted
|
|
@@ -3166,6 +3346,18 @@ components:
|
|
|
3166
3346
|
type: boolean
|
|
3167
3347
|
description: Whether or not the subtransaction has been deleted. Deleted
|
|
3168
3348
|
subtransactions will only be included in delta requests.
|
|
3349
|
+
SubTransaction:
|
|
3350
|
+
allOf:
|
|
3351
|
+
- $ref: "#/components/schemas/SubTransactionBase"
|
|
3352
|
+
- type: object
|
|
3353
|
+
properties:
|
|
3354
|
+
amount_formatted:
|
|
3355
|
+
type: string
|
|
3356
|
+
description: The subtransaction amount formatted in the plan's currency format
|
|
3357
|
+
amount_currency:
|
|
3358
|
+
type: number
|
|
3359
|
+
format: double
|
|
3360
|
+
description: The subtransaction amount as a decimal currency amount
|
|
3169
3361
|
ScheduledTransactionsResponse:
|
|
3170
3362
|
required:
|
|
3171
3363
|
- data
|
|
@@ -3265,7 +3457,7 @@ components:
|
|
|
3265
3457
|
$ref: "#/components/schemas/TransactionFlagColor"
|
|
3266
3458
|
frequency:
|
|
3267
3459
|
$ref: "#/components/schemas/ScheduledTransactionFrequency"
|
|
3268
|
-
|
|
3460
|
+
ScheduledTransactionSummaryBase:
|
|
3269
3461
|
required:
|
|
3270
3462
|
- account_id
|
|
3271
3463
|
- amount
|
|
@@ -3339,6 +3531,18 @@ components:
|
|
|
3339
3531
|
type: boolean
|
|
3340
3532
|
description: Whether or not the scheduled transaction has been deleted. Deleted
|
|
3341
3533
|
scheduled transactions will only be included in delta requests.
|
|
3534
|
+
ScheduledTransactionSummary:
|
|
3535
|
+
allOf:
|
|
3536
|
+
- $ref: "#/components/schemas/ScheduledTransactionSummaryBase"
|
|
3537
|
+
- type: object
|
|
3538
|
+
properties:
|
|
3539
|
+
amount_formatted:
|
|
3540
|
+
type: string
|
|
3541
|
+
description: The scheduled transaction amount formatted in the plan's currency format
|
|
3542
|
+
amount_currency:
|
|
3543
|
+
type: number
|
|
3544
|
+
format: double
|
|
3545
|
+
description: The scheduled transaction amount as a decimal currency amount
|
|
3342
3546
|
ScheduledTransactionDetail:
|
|
3343
3547
|
allOf:
|
|
3344
3548
|
- $ref: "#/components/schemas/ScheduledTransactionSummary"
|
|
@@ -3364,7 +3568,7 @@ components:
|
|
|
3364
3568
|
description: If a split scheduled transaction, the subtransactions.
|
|
3365
3569
|
items:
|
|
3366
3570
|
$ref: "#/components/schemas/ScheduledSubTransaction"
|
|
3367
|
-
|
|
3571
|
+
ScheduledSubTransactionBase:
|
|
3368
3572
|
required:
|
|
3369
3573
|
- amount
|
|
3370
3574
|
- deleted
|
|
@@ -3416,6 +3620,18 @@ components:
|
|
|
3416
3620
|
description: Whether or not the scheduled subtransaction has been deleted.
|
|
3417
3621
|
Deleted scheduled subtransactions will only be included in delta
|
|
3418
3622
|
requests.
|
|
3623
|
+
ScheduledSubTransaction:
|
|
3624
|
+
allOf:
|
|
3625
|
+
- $ref: "#/components/schemas/ScheduledSubTransactionBase"
|
|
3626
|
+
- type: object
|
|
3627
|
+
properties:
|
|
3628
|
+
amount_formatted:
|
|
3629
|
+
type: string
|
|
3630
|
+
description: The scheduled subtransaction amount formatted in the plan's currency format
|
|
3631
|
+
amount_currency:
|
|
3632
|
+
type: number
|
|
3633
|
+
format: double
|
|
3634
|
+
description: The scheduled subtransaction amount as a decimal currency amount
|
|
3419
3635
|
MonthSummariesResponse:
|
|
3420
3636
|
required:
|
|
3421
3637
|
- data
|
|
@@ -3447,7 +3663,7 @@ components:
|
|
|
3447
3663
|
properties:
|
|
3448
3664
|
month:
|
|
3449
3665
|
$ref: "#/components/schemas/MonthDetail"
|
|
3450
|
-
|
|
3666
|
+
MonthSummaryBase:
|
|
3451
3667
|
required:
|
|
3452
3668
|
- activity
|
|
3453
3669
|
- budgeted
|
|
@@ -3492,6 +3708,52 @@ components:
|
|
|
3492
3708
|
type: boolean
|
|
3493
3709
|
description: Whether or not the month has been deleted. Deleted months will
|
|
3494
3710
|
only be included in delta requests.
|
|
3711
|
+
MonthSummary:
|
|
3712
|
+
allOf:
|
|
3713
|
+
- $ref: "#/components/schemas/MonthSummaryBase"
|
|
3714
|
+
- type: object
|
|
3715
|
+
properties:
|
|
3716
|
+
income_formatted:
|
|
3717
|
+
type: string
|
|
3718
|
+
description: The total income formatted in the plan's currency format
|
|
3719
|
+
income_currency:
|
|
3720
|
+
type: number
|
|
3721
|
+
format: double
|
|
3722
|
+
description: The total income as a decimal currency amount
|
|
3723
|
+
budgeted_formatted:
|
|
3724
|
+
type: string
|
|
3725
|
+
description: The total amount assigned formatted in the plan's currency format
|
|
3726
|
+
budgeted_currency:
|
|
3727
|
+
type: number
|
|
3728
|
+
format: double
|
|
3729
|
+
description: The total amount assigned as a decimal currency amount
|
|
3730
|
+
activity_formatted:
|
|
3731
|
+
type: string
|
|
3732
|
+
description: The total activity amount formatted in the plan's currency format
|
|
3733
|
+
activity_currency:
|
|
3734
|
+
type: number
|
|
3735
|
+
format: double
|
|
3736
|
+
description: The total activity amount as a decimal currency amount
|
|
3737
|
+
to_be_budgeted_formatted:
|
|
3738
|
+
type: string
|
|
3739
|
+
description: The available amount for 'Ready to Assign' formatted in the plan's currency format
|
|
3740
|
+
to_be_budgeted_currency:
|
|
3741
|
+
type: number
|
|
3742
|
+
format: double
|
|
3743
|
+
description: The available amount for 'Ready to Assign' as a decimal currency amount
|
|
3744
|
+
MonthDetailBase:
|
|
3745
|
+
allOf:
|
|
3746
|
+
- $ref: "#/components/schemas/MonthSummaryBase"
|
|
3747
|
+
- required:
|
|
3748
|
+
- categories
|
|
3749
|
+
type: object
|
|
3750
|
+
properties:
|
|
3751
|
+
categories:
|
|
3752
|
+
type: array
|
|
3753
|
+
description: The plan month categories. Amounts (budgeted, activity, balance,
|
|
3754
|
+
etc.) are specific to the {month} parameter specified.
|
|
3755
|
+
items:
|
|
3756
|
+
$ref: "#/components/schemas/CategoryBase"
|
|
3495
3757
|
MonthDetail:
|
|
3496
3758
|
allOf:
|
|
3497
3759
|
- $ref: "#/components/schemas/MonthSummary"
|
|
@@ -3567,7 +3829,7 @@ components:
|
|
|
3567
3829
|
type: integer
|
|
3568
3830
|
description: The knowledge of the server
|
|
3569
3831
|
format: int64
|
|
3570
|
-
|
|
3832
|
+
MoneyMovementBase:
|
|
3571
3833
|
required:
|
|
3572
3834
|
- id
|
|
3573
3835
|
- amount
|
|
@@ -3621,6 +3883,18 @@ components:
|
|
|
3621
3883
|
type: integer
|
|
3622
3884
|
description: The amount of the money movement in milliunits format
|
|
3623
3885
|
format: int64
|
|
3886
|
+
MoneyMovement:
|
|
3887
|
+
allOf:
|
|
3888
|
+
- $ref: "#/components/schemas/MoneyMovementBase"
|
|
3889
|
+
- type: object
|
|
3890
|
+
properties:
|
|
3891
|
+
amount_formatted:
|
|
3892
|
+
type: string
|
|
3893
|
+
description: The money movement amount formatted in the plan's currency format
|
|
3894
|
+
amount_currency:
|
|
3895
|
+
type: number
|
|
3896
|
+
format: double
|
|
3897
|
+
description: The money movement amount as a decimal currency amount
|
|
3624
3898
|
MoneyMovementGroupsResponse:
|
|
3625
3899
|
required:
|
|
3626
3900
|
- 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.83.0."
|
|
23
23
|
s.license = "Apache-2.0"
|
|
24
24
|
s.required_ruby_version = ">= 3.3"
|
|
25
25
|
s.metadata = {}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ynab
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- YNAB
|
|
@@ -50,7 +50,7 @@ dependencies:
|
|
|
50
50
|
- !ruby/object:Gem::Version
|
|
51
51
|
version: 3.6.0
|
|
52
52
|
description: Official Ruby client for the YNAB API. API documentation available at
|
|
53
|
-
https://api.ynab.com. Generated from server specification version 1.
|
|
53
|
+
https://api.ynab.com. Generated from server specification version 1.83.0.
|
|
54
54
|
email:
|
|
55
55
|
- api@ynab.com
|
|
56
56
|
executables: []
|
|
@@ -64,6 +64,7 @@ files:
|
|
|
64
64
|
- README.md
|
|
65
65
|
- Rakefile
|
|
66
66
|
- docs/Account.md
|
|
67
|
+
- docs/AccountBase.md
|
|
67
68
|
- docs/AccountResponse.md
|
|
68
69
|
- docs/AccountResponseData.md
|
|
69
70
|
- docs/AccountType.md
|
|
@@ -78,6 +79,7 @@ files:
|
|
|
78
79
|
- docs/CategoriesResponse.md
|
|
79
80
|
- docs/CategoriesResponseData.md
|
|
80
81
|
- docs/Category.md
|
|
82
|
+
- docs/CategoryBase.md
|
|
81
83
|
- docs/CategoryGroup.md
|
|
82
84
|
- docs/CategoryGroupWithCategories.md
|
|
83
85
|
- docs/CategoryResponse.md
|
|
@@ -92,6 +94,7 @@ files:
|
|
|
92
94
|
- docs/HybridTransactionsResponse.md
|
|
93
95
|
- docs/HybridTransactionsResponseData.md
|
|
94
96
|
- docs/MoneyMovement.md
|
|
97
|
+
- docs/MoneyMovementBase.md
|
|
95
98
|
- docs/MoneyMovementGroup.md
|
|
96
99
|
- docs/MoneyMovementGroupsResponse.md
|
|
97
100
|
- docs/MoneyMovementGroupsResponseData.md
|
|
@@ -99,11 +102,13 @@ files:
|
|
|
99
102
|
- docs/MoneyMovementsResponse.md
|
|
100
103
|
- docs/MoneyMovementsResponseData.md
|
|
101
104
|
- docs/MonthDetail.md
|
|
105
|
+
- docs/MonthDetailBase.md
|
|
102
106
|
- docs/MonthDetailResponse.md
|
|
103
107
|
- docs/MonthDetailResponseData.md
|
|
104
108
|
- docs/MonthSummariesResponse.md
|
|
105
109
|
- docs/MonthSummariesResponseData.md
|
|
106
110
|
- docs/MonthSummary.md
|
|
111
|
+
- docs/MonthSummaryBase.md
|
|
107
112
|
- docs/MonthsApi.md
|
|
108
113
|
- docs/NewCategory.md
|
|
109
114
|
- docs/NewTransaction.md
|
|
@@ -137,11 +142,14 @@ files:
|
|
|
137
142
|
- docs/PostAccountWrapper.md
|
|
138
143
|
- docs/PostCategoryGroupWrapper.md
|
|
139
144
|
- docs/PostCategoryWrapper.md
|
|
145
|
+
- docs/PostPayee.md
|
|
146
|
+
- docs/PostPayeeWrapper.md
|
|
140
147
|
- docs/PostScheduledTransactionWrapper.md
|
|
141
148
|
- docs/PostTransactionsWrapper.md
|
|
142
149
|
- docs/PutScheduledTransactionWrapper.md
|
|
143
150
|
- docs/PutTransactionWrapper.md
|
|
144
151
|
- docs/SaveAccount.md
|
|
152
|
+
- docs/SaveAccountType.md
|
|
145
153
|
- docs/SaveCategory.md
|
|
146
154
|
- docs/SaveCategoryGroup.md
|
|
147
155
|
- docs/SaveCategoryGroupResponse.md
|
|
@@ -159,21 +167,25 @@ files:
|
|
|
159
167
|
- docs/SaveTransactionsResponse.md
|
|
160
168
|
- docs/SaveTransactionsResponseData.md
|
|
161
169
|
- docs/ScheduledSubTransaction.md
|
|
170
|
+
- docs/ScheduledSubTransactionBase.md
|
|
162
171
|
- docs/ScheduledTransactionDetail.md
|
|
163
172
|
- docs/ScheduledTransactionFrequency.md
|
|
164
173
|
- docs/ScheduledTransactionResponse.md
|
|
165
174
|
- docs/ScheduledTransactionResponseData.md
|
|
166
175
|
- docs/ScheduledTransactionSummary.md
|
|
176
|
+
- docs/ScheduledTransactionSummaryBase.md
|
|
167
177
|
- docs/ScheduledTransactionsApi.md
|
|
168
178
|
- docs/ScheduledTransactionsResponse.md
|
|
169
179
|
- docs/ScheduledTransactionsResponseData.md
|
|
170
180
|
- docs/SubTransaction.md
|
|
181
|
+
- docs/SubTransactionBase.md
|
|
171
182
|
- docs/TransactionClearedStatus.md
|
|
172
183
|
- docs/TransactionDetail.md
|
|
173
184
|
- docs/TransactionFlagColor.md
|
|
174
185
|
- docs/TransactionResponse.md
|
|
175
186
|
- docs/TransactionResponseData.md
|
|
176
187
|
- docs/TransactionSummary.md
|
|
188
|
+
- docs/TransactionSummaryBase.md
|
|
177
189
|
- docs/TransactionsApi.md
|
|
178
190
|
- docs/TransactionsImportResponse.md
|
|
179
191
|
- docs/TransactionsImportResponseData.md
|
|
@@ -207,6 +219,7 @@ files:
|
|
|
207
219
|
- lib/ynab/api_model_base.rb
|
|
208
220
|
- lib/ynab/configuration.rb
|
|
209
221
|
- lib/ynab/models/account.rb
|
|
222
|
+
- lib/ynab/models/account_base.rb
|
|
210
223
|
- lib/ynab/models/account_response.rb
|
|
211
224
|
- lib/ynab/models/account_response_data.rb
|
|
212
225
|
- lib/ynab/models/account_type.rb
|
|
@@ -219,6 +232,7 @@ files:
|
|
|
219
232
|
- lib/ynab/models/categories_response.rb
|
|
220
233
|
- lib/ynab/models/categories_response_data.rb
|
|
221
234
|
- lib/ynab/models/category.rb
|
|
235
|
+
- lib/ynab/models/category_base.rb
|
|
222
236
|
- lib/ynab/models/category_group.rb
|
|
223
237
|
- lib/ynab/models/category_group_with_categories.rb
|
|
224
238
|
- lib/ynab/models/category_response.rb
|
|
@@ -233,17 +247,20 @@ files:
|
|
|
233
247
|
- lib/ynab/models/hybrid_transactions_response.rb
|
|
234
248
|
- lib/ynab/models/hybrid_transactions_response_data.rb
|
|
235
249
|
- lib/ynab/models/money_movement.rb
|
|
250
|
+
- lib/ynab/models/money_movement_base.rb
|
|
236
251
|
- lib/ynab/models/money_movement_group.rb
|
|
237
252
|
- lib/ynab/models/money_movement_groups_response.rb
|
|
238
253
|
- lib/ynab/models/money_movement_groups_response_data.rb
|
|
239
254
|
- lib/ynab/models/money_movements_response.rb
|
|
240
255
|
- lib/ynab/models/money_movements_response_data.rb
|
|
241
256
|
- lib/ynab/models/month_detail.rb
|
|
257
|
+
- lib/ynab/models/month_detail_base.rb
|
|
242
258
|
- lib/ynab/models/month_detail_response.rb
|
|
243
259
|
- lib/ynab/models/month_detail_response_data.rb
|
|
244
260
|
- lib/ynab/models/month_summaries_response.rb
|
|
245
261
|
- lib/ynab/models/month_summaries_response_data.rb
|
|
246
262
|
- lib/ynab/models/month_summary.rb
|
|
263
|
+
- lib/ynab/models/month_summary_base.rb
|
|
247
264
|
- lib/ynab/models/new_category.rb
|
|
248
265
|
- lib/ynab/models/new_transaction.rb
|
|
249
266
|
- lib/ynab/models/patch_category_group_wrapper.rb
|
|
@@ -273,11 +290,14 @@ files:
|
|
|
273
290
|
- lib/ynab/models/post_account_wrapper.rb
|
|
274
291
|
- lib/ynab/models/post_category_group_wrapper.rb
|
|
275
292
|
- lib/ynab/models/post_category_wrapper.rb
|
|
293
|
+
- lib/ynab/models/post_payee.rb
|
|
294
|
+
- lib/ynab/models/post_payee_wrapper.rb
|
|
276
295
|
- lib/ynab/models/post_scheduled_transaction_wrapper.rb
|
|
277
296
|
- lib/ynab/models/post_transactions_wrapper.rb
|
|
278
297
|
- lib/ynab/models/put_scheduled_transaction_wrapper.rb
|
|
279
298
|
- lib/ynab/models/put_transaction_wrapper.rb
|
|
280
299
|
- lib/ynab/models/save_account.rb
|
|
300
|
+
- lib/ynab/models/save_account_type.rb
|
|
281
301
|
- lib/ynab/models/save_category.rb
|
|
282
302
|
- lib/ynab/models/save_category_group.rb
|
|
283
303
|
- lib/ynab/models/save_category_group_response.rb
|
|
@@ -295,20 +315,24 @@ files:
|
|
|
295
315
|
- lib/ynab/models/save_transactions_response.rb
|
|
296
316
|
- lib/ynab/models/save_transactions_response_data.rb
|
|
297
317
|
- lib/ynab/models/scheduled_sub_transaction.rb
|
|
318
|
+
- lib/ynab/models/scheduled_sub_transaction_base.rb
|
|
298
319
|
- lib/ynab/models/scheduled_transaction_detail.rb
|
|
299
320
|
- lib/ynab/models/scheduled_transaction_frequency.rb
|
|
300
321
|
- lib/ynab/models/scheduled_transaction_response.rb
|
|
301
322
|
- lib/ynab/models/scheduled_transaction_response_data.rb
|
|
302
323
|
- lib/ynab/models/scheduled_transaction_summary.rb
|
|
324
|
+
- lib/ynab/models/scheduled_transaction_summary_base.rb
|
|
303
325
|
- lib/ynab/models/scheduled_transactions_response.rb
|
|
304
326
|
- lib/ynab/models/scheduled_transactions_response_data.rb
|
|
305
327
|
- lib/ynab/models/sub_transaction.rb
|
|
328
|
+
- lib/ynab/models/sub_transaction_base.rb
|
|
306
329
|
- lib/ynab/models/transaction_cleared_status.rb
|
|
307
330
|
- lib/ynab/models/transaction_detail.rb
|
|
308
331
|
- lib/ynab/models/transaction_flag_color.rb
|
|
309
332
|
- lib/ynab/models/transaction_response.rb
|
|
310
333
|
- lib/ynab/models/transaction_response_data.rb
|
|
311
334
|
- lib/ynab/models/transaction_summary.rb
|
|
335
|
+
- lib/ynab/models/transaction_summary_base.rb
|
|
312
336
|
- lib/ynab/models/transactions_import_response.rb
|
|
313
337
|
- lib/ynab/models/transactions_import_response_data.rb
|
|
314
338
|
- lib/ynab/models/transactions_response.rb
|
|
@@ -398,7 +422,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
398
422
|
- !ruby/object:Gem::Version
|
|
399
423
|
version: '0'
|
|
400
424
|
requirements: []
|
|
401
|
-
rubygems_version: 4.0.
|
|
425
|
+
rubygems_version: 4.0.10
|
|
402
426
|
specification_version: 4
|
|
403
427
|
summary: Official Ruby client for the YNAB API
|
|
404
428
|
test_files:
|