Skip to content

Commit f0d0af7

Browse files
committed
Generate against v1.76
1 parent 402f526 commit f0d0af7

File tree

10 files changed

+49
-11
lines changed

10 files changed

+49
-11
lines changed

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.12.0
1+
7.14.0

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
ynab (3.7.0)
4+
ynab (3.8.0)
55
typhoeus (~> 1.0, >= 1.0.1)
66

77
GEM

docs/Category.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@
2727
| **goal_under_funded** | **Integer** | The amount of funding still needed in the current month to stay on track towards completing the goal within the current goal period. This amount will generally correspond to the 'Underfunded' amount in the web and mobile clients except when viewing a category with a Needed for Spending Goal in a future month. The web and mobile clients will ignore any funding from a prior goal period when viewing category with a Needed for Spending Goal in a future month. | [optional] |
2828
| **goal_overall_funded** | **Integer** | The total amount funded towards the goal within the current goal period. | [optional] |
2929
| **goal_overall_left** | **Integer** | The amount of funding still needed to complete the goal within the current goal period. | [optional] |
30+
| **goal_snoozed_at** | **Time** | The date/time the goal was snoozed. If the goal is not snoozed, this will be null. | [optional] |
3031
| **deleted** | **Boolean** | Whether or not the category has been deleted. Deleted categories will only be included in delta requests. | |
3132

docs/TransactionResponseData.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
77
| **transaction** | [**TransactionDetail**](TransactionDetail.md) | | |
8+
| **server_knowledge** | **Integer** | The knowledge of the server | |
89

lib/ynab/models/category.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ class Category
7676
# The amount of funding still needed to complete the goal within the current goal period.
7777
attr_accessor :goal_overall_left
7878

79+
# The date/time the goal was snoozed. If the goal is not snoozed, this will be null.
80+
attr_accessor :goal_snoozed_at
81+
7982
# Whether or not the category has been deleted. Deleted categories will only be included in delta requests.
8083
attr_accessor :deleted
8184

@@ -127,6 +130,7 @@ def self.attribute_map
127130
:'goal_under_funded' => :'goal_under_funded',
128131
:'goal_overall_funded' => :'goal_overall_funded',
129132
:'goal_overall_left' => :'goal_overall_left',
133+
:'goal_snoozed_at' => :'goal_snoozed_at',
130134
:'deleted' => :'deleted'
131135
}
132136
end
@@ -162,6 +166,7 @@ def self.openapi_types
162166
:'goal_under_funded' => :'Integer',
163167
:'goal_overall_funded' => :'Integer',
164168
:'goal_overall_left' => :'Integer',
169+
:'goal_snoozed_at' => :'Time',
165170
:'deleted' => :'Boolean'
166171
}
167172
end
@@ -184,6 +189,7 @@ def self.openapi_nullable
184189
:'goal_under_funded',
185190
:'goal_overall_funded',
186191
:'goal_overall_left',
192+
:'goal_snoozed_at',
187193
])
188194
end
189195

@@ -294,6 +300,10 @@ def initialize(attributes = {})
294300
self.goal_overall_left = attributes[:'goal_overall_left']
295301
end
296302

303+
if attributes.key?(:'goal_snoozed_at')
304+
self.goal_snoozed_at = attributes[:'goal_snoozed_at']
305+
end
306+
297307
if attributes.key?(:'deleted')
298308
self.deleted = attributes[:'deleted']
299309
end
@@ -356,6 +366,7 @@ def ==(o)
356366
goal_under_funded == o.goal_under_funded &&
357367
goal_overall_funded == o.goal_overall_funded &&
358368
goal_overall_left == o.goal_overall_left &&
369+
goal_snoozed_at == o.goal_snoozed_at &&
359370
deleted == o.deleted
360371
end
361372

@@ -368,7 +379,7 @@ def eql?(o)
368379
# Calculates hash code according to all attributes.
369380
# @return [Integer] Hash code
370381
def hash
371-
[id, category_group_id, category_group_name, name, hidden, original_category_group_id, note, budgeted, activity, balance, goal_type, goal_needs_whole_amount, goal_day, goal_cadence, goal_cadence_frequency, goal_creation_month, goal_target, goal_target_month, goal_percentage_complete, goal_months_to_budget, goal_under_funded, goal_overall_funded, goal_overall_left, deleted].hash
382+
[id, category_group_id, category_group_name, name, hidden, original_category_group_id, note, budgeted, activity, balance, goal_type, goal_needs_whole_amount, goal_day, goal_cadence, goal_cadence_frequency, goal_creation_month, goal_target, goal_target_month, goal_percentage_complete, goal_months_to_budget, goal_under_funded, goal_overall_funded, goal_overall_left, goal_snoozed_at, deleted].hash
372383
end
373384

374385
# Builds the object from hash

lib/ynab/models/transaction_flag_color.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ class TransactionFlagColor
1818
GREEN = "green".freeze
1919
BLUE = "blue".freeze
2020
PURPLE = "purple".freeze
21+
EMPTY = "".freeze
2122

2223
def self.all_vars
23-
@all_vars ||= [RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE].freeze
24+
@all_vars ||= [RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE, EMPTY].freeze
2425
end
2526

2627
# Builds the enum from string

lib/ynab/models/transaction_response_data.rb

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ module YNAB
1414
class TransactionResponseData
1515
attr_accessor :transaction
1616

17+
# The knowledge of the server
18+
attr_accessor :server_knowledge
19+
1720
# Attribute mapping from ruby-style variable name to JSON key.
1821
def self.attribute_map
1922
{
20-
:'transaction' => :'transaction'
23+
:'transaction' => :'transaction',
24+
:'server_knowledge' => :'server_knowledge'
2125
}
2226
end
2327

@@ -29,7 +33,8 @@ def self.acceptable_attributes
2933
# Attribute type mapping.
3034
def self.openapi_types
3135
{
32-
:'transaction' => :'TransactionDetail'
36+
:'transaction' => :'TransactionDetail',
37+
:'server_knowledge' => :'Integer'
3338
}
3439
end
3540

@@ -57,6 +62,10 @@ def initialize(attributes = {})
5762
if attributes.key?(:'transaction')
5863
self.transaction = attributes[:'transaction']
5964
end
65+
66+
if attributes.key?(:'server_knowledge')
67+
self.server_knowledge = attributes[:'server_knowledge']
68+
end
6069
end
6170

6271
# Show invalid properties with the reasons. Usually used together with valid?
@@ -70,6 +79,7 @@ def list_invalid_properties
7079
# @return true if the model is valid
7180
def valid?
7281
return false if @transaction.nil?
82+
return false if @server_knowledge.nil?
7383
true
7484
end
7585

@@ -78,7 +88,8 @@ def valid?
7888
def ==(o)
7989
return true if self.equal?(o)
8090
self.class == o.class &&
81-
transaction == o.transaction
91+
transaction == o.transaction &&
92+
server_knowledge == o.server_knowledge
8293
end
8394

8495
# @see the `==` method
@@ -90,7 +101,7 @@ def eql?(o)
90101
# Calculates hash code according to all attributes.
91102
# @return [Integer] Hash code
92103
def hash
93-
[transaction].hash
104+
[transaction, server_knowledge].hash
94105
end
95106

96107
# Builds the object from hash

open_api_spec.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ info:
66
upon HTTPS for transport. We respond with meaningful HTTP response codes and
77
if an error occurs, we include error details in the response body. API
88
Documentation is at https://api.ynab.com
9-
version: 1.74.0
9+
version: 1.76.0
1010
servers:
1111
- url: https://api.ynab.com/v1
1212
security:
@@ -2304,6 +2304,13 @@ components:
23042304
current goal period.
23052305
format: int64
23062306
nullable: true
2307+
goal_snoozed_at:
2308+
type: string
2309+
description: >-
2310+
The date/time the goal was snoozed. If the goal is not snoozed, this
2311+
will be null.
2312+
format: date-time
2313+
nullable: true
23072314
deleted:
23082315
type: boolean
23092316
description: >-
@@ -2715,10 +2722,15 @@ components:
27152722
data:
27162723
required:
27172724
- transaction
2725+
- server_knowledge
27182726
type: object
27192727
properties:
27202728
transaction:
27212729
$ref: "#/components/schemas/TransactionDetail"
2730+
server_knowledge:
2731+
type: integer
2732+
description: The knowledge of the server
2733+
format: int64
27222734
TransactionSummary:
27232735
required:
27242736
- account_id
@@ -3380,6 +3392,7 @@ components:
33803392
- green
33813393
- blue
33823394
- purple
3395+
- ""
33833396
- null
33843397
nullable: true
33853398
TransactionFlagName:

spec/api/transactions_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
expect(client.last_request.response.options[:code]).to be 200
5353
expect(response.data.transactions.length).to be 2
5454
# We expect the flag_color to have been converted to nil for these transactions
55-
expect(response.data.transactions[0].flag_color).to be_nil
55+
expect(response.data.transactions[0].flag_color).to eq ""
5656
expect(response.data.transactions[1].flag_color).to be_nil
5757
end
5858
end

ynab.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
2020
s.email = ["[email protected]"]
2121
s.homepage = "https://github.com/ynab/ynab-sdk-ruby"
2222
s.summary = "Official Ruby client for the YNAB API"
23-
s.description = "Official Ruby client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.74.0."
23+
s.description = "Official Ruby client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.76.0."
2424
s.license = "Apache-2.0"
2525
s.required_ruby_version = ">= 3.3"
2626
s.metadata = {}

0 commit comments

Comments
 (0)