Skip to content

Commit

Permalink
Merge pull request #83 from ynab/gen-1.71.1
Browse files Browse the repository at this point in the history
Generate 1.72.1 - updated memo and payee_name lengths
  • Loading branch information
bradymholt authored Aug 29, 2024
2 parents 825a49a + 230d3c4 commit 62844b0
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ynab (3.3.0)
ynab (3.4.0)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
2 changes: 1 addition & 1 deletion docs/SaveScheduledTransaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **account_id** | **String** | | |
| **date** | **Date** | The scheduled transaction date in ISO format (e.g. 2016-12-01). | |
| **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. | |
| **amount** | **Integer** | The scheduled transaction amount in milliunits format. | [optional] |
| **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] |
| **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] |
Expand Down
2 changes: 1 addition & 1 deletion docs/ScheduledTransactionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ All URIs are relative to *https://api.ynab.com/v1*
Create a single scheduled transaction

Creates a single scheduled transaction.
Creates a single scheduled transaction (a transaction with a future date).

### Parameters

Expand Down
4 changes: 2 additions & 2 deletions lib/ynab/api/scheduled_transactions_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(api_client = ApiClient.default)
@api_client = api_client
end
# Create a single scheduled transaction
# Creates a single scheduled transaction.
# Creates a single scheduled transaction (a transaction with a future date).
# @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).
# @param data [PostScheduledTransactionWrapper] The scheduled transaction to create
# @param [Hash] opts the optional parameters
Expand All @@ -28,7 +28,7 @@ def create_scheduled_transaction(budget_id, data, opts = {})
end

# Create a single scheduled transaction
# Creates a single scheduled transaction.
# Creates a single scheduled transaction (a transaction with a future date).
# @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).
# @param data [PostScheduledTransactionWrapper] The scheduled transaction to create
# @param [Hash] opts the optional parameters
Expand Down
4 changes: 2 additions & 2 deletions lib/ynab/models/existing_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def list_invalid_properties
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
return false if !@memo.nil? && @memo.to_s.length > 200
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
return false if !@memo.nil? && @memo.to_s.length > 500
true
end

Expand Down
4 changes: 2 additions & 2 deletions lib/ynab/models/new_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ def list_invalid_properties
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
return false if !@memo.nil? && @memo.to_s.length > 200
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
return false if !@memo.nil? && @memo.to_s.length > 500
return false if !@import_id.nil? && @import_id.to_s.length > 36
true
end
Expand Down
6 changes: 3 additions & 3 deletions lib/ynab/models/save_scheduled_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module YNAB
class SaveScheduledTransaction
attr_accessor :account_id

# The scheduled transaction date in ISO format (e.g. 2016-12-01).
# 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.
attr_accessor :date

# The scheduled transaction amount in milliunits format.
Expand Down Expand Up @@ -167,8 +167,8 @@ def list_invalid_properties
def valid?
return false if @account_id.nil?
return false if @date.nil?
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
return false if !@memo.nil? && @memo.to_s.length > 200
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
return false if !@memo.nil? && @memo.to_s.length > 500
true
end

Expand Down
4 changes: 2 additions & 2 deletions lib/ynab/models/save_sub_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def list_invalid_properties
# @return true if the model is valid
def valid?
return false if @amount.nil?
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
return false if !@memo.nil? && @memo.to_s.length > 200
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
return false if !@memo.nil? && @memo.to_s.length > 500
true
end

Expand Down
4 changes: 2 additions & 2 deletions lib/ynab/models/save_transaction_with_id_or_import_id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ def list_invalid_properties
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
return false if !@memo.nil? && @memo.to_s.length > 200
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
return false if !@memo.nil? && @memo.to_s.length > 500
return false if !@import_id.nil? && @import_id.to_s.length > 36
true
end
Expand Down
4 changes: 2 additions & 2 deletions lib/ynab/models/save_transaction_with_optional_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ def list_invalid_properties
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
return false if !@memo.nil? && @memo.to_s.length > 200
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
return false if !@memo.nil? && @memo.to_s.length > 500
true
end

Expand Down
18 changes: 9 additions & 9 deletions open_api_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ info:
upon HTTPS for transport. We respond with meaningful HTTP response codes and
if an error occurs, we include error details in the response body. API
Documentation is at https://api.ynab.com
version: 1.72.0
version: 1.72.1
servers:
- url: https://api.ynab.com/v1
security:
Expand Down Expand Up @@ -1544,7 +1544,7 @@ paths:
- Scheduled Transactions
summary: Create a single scheduled transaction
description: >-
Creates a single scheduled transaction.
Creates a single scheduled transaction (a transaction with a future date).
operationId: createScheduledTransaction
parameters:
- name: budget_id
Expand Down Expand Up @@ -2515,7 +2515,7 @@ components:
`transfer_payee_id` on the account resource.
format: uuid
payee_name:
maxLength: 50
maxLength: 200
type: string
nullable: true
description: >-
Expand All @@ -2536,7 +2536,7 @@ components:
be ignored if supplied.
format: uuid
memo:
maxLength: 200
maxLength: 500
type: string
nullable: true
cleared:
Expand Down Expand Up @@ -2571,7 +2571,7 @@ components:
description: The payee for the subtransaction.
format: uuid
payee_name:
maxLength: 50
maxLength: 200
type: string
nullable: true
description: >-
Expand All @@ -2588,7 +2588,7 @@ components:
are not permitted and will be ignored if supplied.
format: uuid
memo:
maxLength: 200
maxLength: 500
type: string
nullable: true
SaveTransactionsResponse:
Expand Down Expand Up @@ -3005,7 +3005,7 @@ components:
date:
type: string
description: >-
The scheduled transaction date in ISO format (e.g. 2016-12-01).
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.
format: date
amount:
type: integer
Expand All @@ -3022,7 +3022,7 @@ components:
`transfer_payee_id` on the account resource.
format: uuid
payee_name:
maxLength: 50
maxLength: 200
type: string
nullable: true
description: >-
Expand All @@ -3037,7 +3037,7 @@ components:
Creating a split scheduled transaction is not currently supported.
format: uuid
memo:
maxLength: 200
maxLength: 500
type: string
nullable: true
flag_color:
Expand Down
2 changes: 1 addition & 1 deletion ynab.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |s|
s.email = ["api@ynab.com"]
s.homepage = "https://github.com/ynab/ynab-sdk-ruby"
s.summary = "YNAB API Client for Ruby"
s.description = "Ruby gem wrapper for the YNAB API. Generated from server specification version 1.72.0 using OpenAPI Generator version 7.7.0."
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."
s.license = "Apache-2.0"
s.required_ruby_version = ">= 3.3"
s.metadata = {}
Expand Down

0 comments on commit 62844b0

Please sign in to comment.