Skip to content

Commit 62844b0

Browse files
authored
Merge pull request #83 from ynab/gen-1.71.1
Generate 1.72.1 - updated memo and payee_name lengths
2 parents 825a49a + 230d3c4 commit 62844b0

12 files changed

+28
-28
lines changed

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.3.0)
4+
ynab (3.4.0)
55
typhoeus (~> 1.0, >= 1.0.1)
66

77
GEM

docs/SaveScheduledTransaction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
77
| **account_id** | **String** | | |
8-
| **date** | **Date** | The scheduled transaction date in ISO format (e.g. 2016-12-01). | |
8+
| **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. | |
99
| **amount** | **Integer** | The scheduled transaction amount in milliunits format. | [optional] |
1010
| **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] |
1111
| **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] |

docs/ScheduledTransactionsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ All URIs are relative to *https://api.ynab.com/v1*
1515
1616
Create a single scheduled transaction
1717

18-
Creates a single scheduled transaction.
18+
Creates a single scheduled transaction (a transaction with a future date).
1919

2020
### Parameters
2121

lib/ynab/api/scheduled_transactions_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize(api_client = ApiClient.default)
1717
@api_client = api_client
1818
end
1919
# Create a single scheduled transaction
20-
# Creates a single scheduled transaction.
20+
# Creates a single scheduled transaction (a transaction with a future date).
2121
# @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).
2222
# @param data [PostScheduledTransactionWrapper] The scheduled transaction to create
2323
# @param [Hash] opts the optional parameters
@@ -28,7 +28,7 @@ def create_scheduled_transaction(budget_id, data, opts = {})
2828
end
2929

3030
# Create a single scheduled transaction
31-
# Creates a single scheduled transaction.
31+
# Creates a single scheduled transaction (a transaction with a future date).
3232
# @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).
3333
# @param data [PostScheduledTransactionWrapper] The scheduled transaction to create
3434
# @param [Hash] opts the optional parameters

lib/ynab/models/existing_transaction.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ def list_invalid_properties
192192
# Check to see if the all the properties in the model are valid
193193
# @return true if the model is valid
194194
def valid?
195-
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
196-
return false if !@memo.nil? && @memo.to_s.length > 200
195+
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
196+
return false if !@memo.nil? && @memo.to_s.length > 500
197197
true
198198
end
199199

lib/ynab/models/new_transaction.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ def list_invalid_properties
202202
# Check to see if the all the properties in the model are valid
203203
# @return true if the model is valid
204204
def valid?
205-
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
206-
return false if !@memo.nil? && @memo.to_s.length > 200
205+
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
206+
return false if !@memo.nil? && @memo.to_s.length > 500
207207
return false if !@import_id.nil? && @import_id.to_s.length > 36
208208
true
209209
end

lib/ynab/models/save_scheduled_transaction.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module YNAB
1414
class SaveScheduledTransaction
1515
attr_accessor :account_id
1616

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

2020
# The scheduled transaction amount in milliunits format.
@@ -167,8 +167,8 @@ def list_invalid_properties
167167
def valid?
168168
return false if @account_id.nil?
169169
return false if @date.nil?
170-
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
171-
return false if !@memo.nil? && @memo.to_s.length > 200
170+
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
171+
return false if !@memo.nil? && @memo.to_s.length > 500
172172
true
173173
end
174174

lib/ynab/models/save_sub_transaction.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def list_invalid_properties
110110
# @return true if the model is valid
111111
def valid?
112112
return false if @amount.nil?
113-
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
114-
return false if !@memo.nil? && @memo.to_s.length > 200
113+
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
114+
return false if !@memo.nil? && @memo.to_s.length > 500
115115
true
116116
end
117117

lib/ynab/models/save_transaction_with_id_or_import_id.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ def list_invalid_properties
212212
# Check to see if the all the properties in the model are valid
213213
# @return true if the model is valid
214214
def valid?
215-
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
216-
return false if !@memo.nil? && @memo.to_s.length > 200
215+
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
216+
return false if !@memo.nil? && @memo.to_s.length > 500
217217
return false if !@import_id.nil? && @import_id.to_s.length > 36
218218
true
219219
end

lib/ynab/models/save_transaction_with_optional_fields.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ def list_invalid_properties
185185
# Check to see if the all the properties in the model are valid
186186
# @return true if the model is valid
187187
def valid?
188-
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
189-
return false if !@memo.nil? && @memo.to_s.length > 200
188+
return false if !@payee_name.nil? && @payee_name.to_s.length > 200
189+
return false if !@memo.nil? && @memo.to_s.length > 500
190190
true
191191
end
192192

0 commit comments

Comments
 (0)