Skip to content

Commit 94b1da5

Browse files
committed
Generate against v1.81.0
1 parent 1b65b90 commit 94b1da5

7 files changed

Lines changed: 25 additions & 25 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ access_token = ENV['YNAB_ACCESS_TOKEN']
3030
ynab_api = YNAB::API.new(access_token)
3131

3232
plan_response = ynab_api.plans.get_plans
33-
budgets = budget_response.data.budgets
33+
plans = plan_response.data.budgets
3434

35-
budgets.each do |budget|
36-
puts "Budget Name: #{budget.name}"
35+
plans.each do |plan|
36+
puts "Plan Name: #{plan.name}"
3737
end
3838
```
3939

@@ -89,6 +89,6 @@ The version of this client is defined in the `ynab.gemspec` file and follows [se
8989

9090
## License
9191

92-
Copyright (c) 2024 You Need A Budget, LLC
92+
Copyright (c) 2024 YNAB
9393

9494
Licensed under the Apache-2.0 license

lib/ynab/models/account_type.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
require 'time'
1212

1313
module YNAB
14-
class AccountType < ApiModelBase
14+
class AccountType
1515
CHECKING = "checking".freeze
1616
SAVINGS = "savings".freeze
1717
CASH = "cash".freeze

lib/ynab/models/scheduled_transaction_frequency.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
require 'time'
1212

1313
module YNAB
14-
class ScheduledTransactionFrequency < ApiModelBase
14+
class ScheduledTransactionFrequency
1515
NEVER = "never".freeze
1616
DAILY = "daily".freeze
1717
WEEKLY = "weekly".freeze

lib/ynab/models/transaction_cleared_status.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
require 'time'
1212

1313
module YNAB
14-
class TransactionClearedStatus < ApiModelBase
14+
class TransactionClearedStatus
1515
CLEARED = "cleared".freeze
1616
UNCLEARED = "uncleared".freeze
1717
RECONCILED = "reconciled".freeze

lib/ynab/models/transaction_flag_color.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
require 'time'
1212

1313
module YNAB
14-
class TransactionFlagColor < ApiModelBase
14+
class TransactionFlagColor
1515
RED = "red".freeze
1616
ORANGE = "orange".freeze
1717
YELLOW = "yellow".freeze

open_api_spec.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
and relies upon HTTPS for transport. We respond with meaningful HTTP
66
response codes and if an error occurs, we include error details in the
77
response body. API Documentation is at https://api.ynab.com
8-
version: 1.81.0
8+
version: 1.78.0
99
servers:
1010
- url: https://api.ynab.com/v1
1111
security:
@@ -2586,24 +2586,24 @@ components:
25862586
type:
25872587
- string
25882588
- "null"
2589-
description: "If specified, a new transaction will be assigned this `import_id`
2590-
and considered \"imported\". We will also attempt to match this
2591-
imported transaction to an existing \"user-entered\" transaction
2589+
description: 'If specified, a new transaction will be assigned this `import_id`
2590+
and considered "imported". We will also attempt to match this
2591+
imported transaction to an existing "user-entered" transaction
25922592
on the same account, with the same amount, and with a date +/-10
25932593
days from the imported transaction date.<br><br>Transactions
25942594
imported through File Based Import or Direct Import (not through
25952595
the API) are assigned an import_id in the format:
2596-
'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example,
2596+
''YNAB:[milliunit_amount]:[iso_date]:[occurrence]''. For example,
25972597
a transaction dated 2015-12-30 in the amount of -$294.23 USD
2598-
would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a
2598+
would have an import_id of ''YNAB:-294230:2015-12-30:1''. If a
25992599
second transaction on the same account was imported and had the
26002600
same date and same amount, its import_id would be
2601-
'YNAB:-294230:2015-12-30:2'. Using a consistent format will
2601+
''YNAB:-294230:2015-12-30:2''. Using a consistent format will
26022602
prevent duplicates through Direct Import and File Based
26032603
Import.<br><br>If import_id is omitted or specified as null, the
2604-
transaction will be treated as a \"user-entered\" transaction.
2604+
transaction will be treated as a "user-entered" transaction.
26052605
As such, it will be eligible to be matched against transactions
2606-
later being imported (via DI, FBI, or API)."
2606+
later being imported (via DI, FBI, or API).'
26072607
SaveTransactionWithIdOrImportId:
26082608
allOf:
26092609
- type: object
@@ -2966,13 +2966,6 @@ components:
29662966
nullable: false
29672967
maxLength: 500
29682968
description: The name of the payee. The name must be a maximum of 500 characters.
2969-
PostCategoryWrapper:
2970-
required:
2971-
- category
2972-
type: object
2973-
properties:
2974-
category:
2975-
$ref: "#/components/schemas/NewCategory"
29762969
PostCategoryGroupWrapper:
29772970
required:
29782971
- category_group
@@ -2997,6 +2990,13 @@ components:
29972990
description: The name of the category group. The name must be a maximum of 50
29982991
characters.
29992992
maxLength: 50
2993+
PostCategoryWrapper:
2994+
required:
2995+
- category
2996+
type: object
2997+
properties:
2998+
category:
2999+
$ref: "#/components/schemas/NewCategory"
30003000
PatchCategoryWrapper:
30013001
required:
30023002
- category

ynab.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
1919
s.email = ["api@ynab.com"]
2020
s.homepage = "https://github.com/ynab/ynab-sdk-ruby"
2121
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.81.0."
22+
s.description = "Official Ruby client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.78.0."
2323
s.license = "Apache-2.0"
2424
s.required_ruby_version = ">= 3.3"
2525
s.metadata = {}

0 commit comments

Comments
 (0)