ynab 3.2.0 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +2 -0
  4. data/Rakefile +6 -5
  5. data/config.yaml +11 -0
  6. data/docs/ExistingTransaction.md +1 -1
  7. data/docs/NewTransaction.md +1 -1
  8. data/docs/PostScheduledTransactionWrapper.md +8 -0
  9. data/docs/SaveScheduledTransaction.md +16 -0
  10. data/docs/SaveTransactionWithIdOrImportId.md +1 -1
  11. data/docs/SaveTransactionWithOptionalFields.md +1 -1
  12. data/docs/{SaveTransactionWithIdAllOf.md → ScheduledTransactionFrequency.md} +1 -2
  13. data/docs/ScheduledTransactionsApi.md +21 -0
  14. data/docs/TransactionsApi.md +25 -1
  15. data/lib/ynab/api/accounts_api.rb +1 -4
  16. data/lib/ynab/api/budgets_api.rb +1 -4
  17. data/lib/ynab/api/categories_api.rb +1 -4
  18. data/lib/ynab/api/months_api.rb +1 -4
  19. data/lib/ynab/api/payee_locations_api.rb +1 -4
  20. data/lib/ynab/api/payees_api.rb +1 -4
  21. data/lib/ynab/api/scheduled_transactions_api.rb +75 -4
  22. data/lib/ynab/api/transactions_api.rb +81 -6
  23. data/lib/ynab/api/user_api.rb +1 -4
  24. data/lib/ynab/api_client.rb +1 -4
  25. data/lib/ynab/api_error.rb +0 -12
  26. data/lib/ynab/configuration.rb +11 -4
  27. data/lib/ynab/models/account.rb +1 -4
  28. data/lib/ynab/models/account_response.rb +1 -4
  29. data/lib/ynab/models/account_response_data.rb +1 -4
  30. data/lib/ynab/models/account_type.rb +1 -4
  31. data/lib/ynab/models/accounts_response.rb +1 -4
  32. data/lib/ynab/models/accounts_response_data.rb +1 -4
  33. data/lib/ynab/models/budget_detail.rb +1 -4
  34. data/lib/ynab/models/budget_detail_response.rb +1 -4
  35. data/lib/ynab/models/budget_detail_response_data.rb +1 -4
  36. data/lib/ynab/models/budget_settings.rb +1 -4
  37. data/lib/ynab/models/budget_settings_response.rb +1 -4
  38. data/lib/ynab/models/budget_settings_response_data.rb +1 -4
  39. data/lib/ynab/models/budget_summary.rb +1 -4
  40. data/lib/ynab/models/budget_summary_response.rb +1 -4
  41. data/lib/ynab/models/budget_summary_response_data.rb +1 -4
  42. data/lib/ynab/models/bulk_response.rb +1 -4
  43. data/lib/ynab/models/bulk_response_data.rb +1 -4
  44. data/lib/ynab/models/bulk_response_data_bulk.rb +1 -4
  45. data/lib/ynab/models/bulk_transactions.rb +1 -4
  46. data/lib/ynab/models/categories_response.rb +1 -4
  47. data/lib/ynab/models/categories_response_data.rb +1 -4
  48. data/lib/ynab/models/category.rb +1 -4
  49. data/lib/ynab/models/category_group.rb +1 -4
  50. data/lib/ynab/models/category_group_with_categories.rb +1 -4
  51. data/lib/ynab/models/category_response.rb +1 -4
  52. data/lib/ynab/models/category_response_data.rb +1 -4
  53. data/lib/ynab/models/currency_format.rb +1 -4
  54. data/lib/ynab/models/date_format.rb +1 -4
  55. data/lib/ynab/models/error_detail.rb +1 -4
  56. data/lib/ynab/models/error_response.rb +1 -4
  57. data/lib/ynab/models/existing_transaction.rb +4 -7
  58. data/lib/ynab/models/hybrid_transaction.rb +1 -4
  59. data/lib/ynab/models/hybrid_transactions_response.rb +1 -4
  60. data/lib/ynab/models/hybrid_transactions_response_data.rb +1 -4
  61. data/lib/ynab/models/month_detail.rb +1 -4
  62. data/lib/ynab/models/month_detail_response.rb +1 -4
  63. data/lib/ynab/models/month_detail_response_data.rb +1 -4
  64. data/lib/ynab/models/month_summaries_response.rb +1 -4
  65. data/lib/ynab/models/month_summaries_response_data.rb +1 -4
  66. data/lib/ynab/models/month_summary.rb +1 -4
  67. data/lib/ynab/models/new_transaction.rb +4 -7
  68. data/lib/ynab/models/patch_category_wrapper.rb +1 -4
  69. data/lib/ynab/models/patch_month_category_wrapper.rb +1 -4
  70. data/lib/ynab/models/patch_payee_wrapper.rb +1 -4
  71. data/lib/ynab/models/patch_transactions_wrapper.rb +1 -4
  72. data/lib/ynab/models/payee.rb +1 -4
  73. data/lib/ynab/models/payee_location.rb +1 -4
  74. data/lib/ynab/models/payee_location_response.rb +1 -4
  75. data/lib/ynab/models/payee_location_response_data.rb +1 -4
  76. data/lib/ynab/models/payee_locations_response.rb +1 -4
  77. data/lib/ynab/models/payee_locations_response_data.rb +1 -4
  78. data/lib/ynab/models/payee_response.rb +1 -4
  79. data/lib/ynab/models/payee_response_data.rb +1 -4
  80. data/lib/ynab/models/payees_response.rb +1 -4
  81. data/lib/ynab/models/payees_response_data.rb +1 -4
  82. data/lib/ynab/models/post_account_wrapper.rb +1 -4
  83. data/lib/ynab/models/{save_transaction_with_id_all_of.rb → post_scheduled_transaction_wrapper.rb} +23 -32
  84. data/lib/ynab/models/post_transactions_wrapper.rb +1 -4
  85. data/lib/ynab/models/put_transaction_wrapper.rb +1 -4
  86. data/lib/ynab/models/save_account.rb +1 -4
  87. data/lib/ynab/models/save_category.rb +1 -4
  88. data/lib/ynab/models/save_category_response.rb +1 -4
  89. data/lib/ynab/models/save_category_response_data.rb +1 -4
  90. data/lib/ynab/models/save_month_category.rb +1 -4
  91. data/lib/ynab/models/save_payee.rb +1 -4
  92. data/lib/ynab/models/save_payee_response.rb +1 -4
  93. data/lib/ynab/models/save_payee_response_data.rb +1 -4
  94. data/lib/ynab/models/{hybrid_transaction_all_of.rb → save_scheduled_transaction.rb} +99 -62
  95. data/lib/ynab/models/save_sub_transaction.rb +3 -6
  96. data/lib/ynab/models/save_transaction_with_id_or_import_id.rb +4 -7
  97. data/lib/ynab/models/save_transaction_with_optional_fields.rb +4 -7
  98. data/lib/ynab/models/save_transactions_response.rb +1 -4
  99. data/lib/ynab/models/save_transactions_response_data.rb +1 -4
  100. data/lib/ynab/models/scheduled_sub_transaction.rb +1 -4
  101. data/lib/ynab/models/scheduled_transaction_detail.rb +1 -4
  102. data/lib/ynab/models/scheduled_transaction_frequency.rb +48 -0
  103. data/lib/ynab/models/scheduled_transaction_response.rb +1 -4
  104. data/lib/ynab/models/scheduled_transaction_response_data.rb +1 -4
  105. data/lib/ynab/models/scheduled_transaction_summary.rb +1 -4
  106. data/lib/ynab/models/scheduled_transactions_response.rb +1 -4
  107. data/lib/ynab/models/scheduled_transactions_response_data.rb +1 -4
  108. data/lib/ynab/models/sub_transaction.rb +1 -4
  109. data/lib/ynab/models/transaction_cleared_status.rb +1 -4
  110. data/lib/ynab/models/transaction_detail.rb +1 -4
  111. data/lib/ynab/models/transaction_flag_color.rb +1 -4
  112. data/lib/ynab/models/transaction_response.rb +1 -4
  113. data/lib/ynab/models/transaction_response_data.rb +1 -4
  114. data/lib/ynab/models/transaction_summary.rb +1 -4
  115. data/lib/ynab/models/transactions_import_response.rb +1 -4
  116. data/lib/ynab/models/transactions_import_response_data.rb +1 -4
  117. data/lib/ynab/models/transactions_response.rb +1 -4
  118. data/lib/ynab/models/transactions_response_data.rb +1 -4
  119. data/lib/ynab/models/user.rb +1 -4
  120. data/lib/ynab/models/user_response.rb +1 -4
  121. data/lib/ynab/models/user_response_data.rb +1 -4
  122. data/lib/ynab/overrides/transactions_api.rb +0 -12
  123. data/lib/ynab/version.rb +1 -13
  124. data/lib/ynab.rb +4 -4
  125. data/open_api_spec.yaml +194 -8
  126. data/spec/api/scheduled_transactions_spec.rb +20 -2
  127. data/spec/api/transactions_spec.rb +10 -0
  128. data/spec/fixtures/vcr_cassettes/create_scheduled_transaction.yml +63 -0
  129. data/spec/fixtures/vcr_cassettes/month_transactions.yml +46 -0
  130. data/templates/README.md +3 -0
  131. data/templates/api_info.mustache +9 -0
  132. data/templates/gemspec.mustache +41 -0
  133. data/ynab.gemspec +3 -6
  134. metadata +51 -84
  135. data/docs/AccountWrapper.md +0 -8
  136. data/docs/AccountsWrapper.md +0 -9
  137. data/docs/BudgetDetailAllOf.md +0 -17
  138. data/docs/BudgetDetailWrapper.md +0 -9
  139. data/docs/BudgetSettingsWrapper.md +0 -8
  140. data/docs/BudgetSummaryWrapper.md +0 -9
  141. data/docs/BulkIdWrapper.md +0 -8
  142. data/docs/BulkIds.md +0 -9
  143. data/docs/BulkTransactionCreateResponse.md +0 -8
  144. data/docs/BulkTransactionIds.md +0 -8
  145. data/docs/CategoryGroupWithCategoriesAllOf.md +0 -8
  146. data/docs/CategoryGroupsWrapper.md +0 -9
  147. data/docs/CategoryWrapper.md +0 -9
  148. data/docs/DeprecatedApi.md +0 -28
  149. data/docs/HybridTransactionAllOf.md +0 -12
  150. data/docs/HybridTransactionsWrapper.md +0 -8
  151. data/docs/LoanAccountPeriodicValue.md +0 -7
  152. data/docs/MonthDetailAllOf.md +0 -8
  153. data/docs/MonthDetailWrapper.md +0 -8
  154. data/docs/MonthSummariesWrapper.md +0 -9
  155. data/docs/PayeeLocationWrapper.md +0 -8
  156. data/docs/PayeeLocationsWrapper.md +0 -8
  157. data/docs/PayeeWrapper.md +0 -8
  158. data/docs/PayeesWrapper.md +0 -9
  159. data/docs/SaveAccountWrapper.md +0 -8
  160. data/docs/SaveMonthCategoryWrapper.md +0 -8
  161. data/docs/SaveTransaction.md +0 -19
  162. data/docs/SaveTransactionWithId.md +0 -20
  163. data/docs/SaveTransactionWrapper.md +0 -8
  164. data/docs/SaveTransactionsWrapper.md +0 -9
  165. data/docs/ScheduledTransactionDetailAllOf.md +0 -11
  166. data/docs/ScheduledTransactionWrapper.md +0 -8
  167. data/docs/ScheduledTransactionsWrapper.md +0 -8
  168. data/docs/TransactionDetailAllOf.md +0 -11
  169. data/docs/TransactionWrapper.md +0 -8
  170. data/docs/TransactionsWrapper.md +0 -9
  171. data/docs/UpdateTransaction.md +0 -20
  172. data/docs/UpdateTransactionsWrapper.md +0 -8
  173. data/docs/UserWrapper.md +0 -8
  174. data/lib/ynab/models/budget_detail_all_of.rb +0 -320
  175. data/lib/ynab/models/category_group_with_categories_all_of.rb +0 -223
  176. data/lib/ynab/models/month_detail_all_of.rb +0 -223
  177. data/lib/ynab/models/save_transaction.rb +0 -401
  178. data/lib/ynab/models/save_transaction_with_id.rb +0 -411
  179. data/lib/ynab/models/scheduled_transaction_detail_all_of.rb +0 -254
  180. data/lib/ynab/models/transaction_detail_all_of.rb +0 -254
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.0.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -14,13 +11,13 @@ require 'date'
14
11
  require 'time'
15
12
 
16
13
  module YNAB
17
- class SaveTransactionWithIdAllOf
18
- attr_accessor :id
14
+ class PostScheduledTransactionWrapper
15
+ attr_accessor :scheduled_transaction
19
16
 
20
17
  # Attribute mapping from ruby-style variable name to JSON key.
21
18
  def self.attribute_map
22
19
  {
23
- :'id' => :'id'
20
+ :'scheduled_transaction' => :'scheduled_transaction'
24
21
  }
25
22
  end
26
23
 
@@ -32,7 +29,7 @@ module YNAB
32
29
  # Attribute type mapping.
33
30
  def self.openapi_types
34
31
  {
35
- :'id' => :'String'
32
+ :'scheduled_transaction' => :'SaveScheduledTransaction'
36
33
  }
37
34
  end
38
35
 
@@ -46,19 +43,19 @@ module YNAB
46
43
  # @param [Hash] attributes Model attributes in the form of hash
47
44
  def initialize(attributes = {})
48
45
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `YNAB::SaveTransactionWithIdAllOf` initialize method"
46
+ fail ArgumentError, "The input argument (attributes) must be a hash in `YNAB::PostScheduledTransactionWrapper` initialize method"
50
47
  end
51
48
 
52
49
  # check to see if the attribute exists and convert string to symbol for hash key
53
50
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
51
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `YNAB::SaveTransactionWithIdAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
+ fail ArgumentError, "`#{k}` is not a valid attribute in `YNAB::PostScheduledTransactionWrapper`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
53
  end
57
54
  h[k.to_sym] = v
58
55
  }
59
56
 
60
- if attributes.key?(:'id')
61
- self.id = attributes[:'id']
57
+ if attributes.key?(:'scheduled_transaction')
58
+ self.scheduled_transaction = attributes[:'scheduled_transaction']
62
59
  end
63
60
  end
64
61
 
@@ -72,6 +69,7 @@ module YNAB
72
69
  # Check to see if the all the properties in the model are valid
73
70
  # @return true if the model is valid
74
71
  def valid?
72
+ return false if @scheduled_transaction.nil?
75
73
  true
76
74
  end
77
75
 
@@ -80,7 +78,7 @@ module YNAB
80
78
  def ==(o)
81
79
  return true if self.equal?(o)
82
80
  self.class == o.class &&
83
- id == o.id
81
+ scheduled_transaction == o.scheduled_transaction
84
82
  end
85
83
 
86
84
  # @see the `==` method
@@ -92,44 +90,37 @@ module YNAB
92
90
  # Calculates hash code according to all attributes.
93
91
  # @return [Integer] Hash code
94
92
  def hash
95
- [id].hash
93
+ [scheduled_transaction].hash
96
94
  end
97
95
 
98
96
  # Builds the object from hash
99
97
  # @param [Hash] attributes Model attributes in the form of hash
100
98
  # @return [Object] Returns the model itself
101
99
  def self.build_from_hash(attributes)
102
- new.build_from_hash(attributes)
103
- end
104
-
105
- # Builds the object from hash
106
- # @param [Hash] attributes Model attributes in the form of hash
107
- # @return [Object] Returns the model itself
108
- def build_from_hash(attributes)
109
100
  return nil unless attributes.is_a?(Hash)
110
101
  attributes = attributes.transform_keys(&:to_sym)
111
- self.class.openapi_types.each_pair do |key, type|
112
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
113
- self.send("#{key}=", nil)
102
+ transformed_hash = {}
103
+ openapi_types.each_pair do |key, type|
104
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
105
+ transformed_hash["#{key}"] = nil
114
106
  elsif type =~ /\AArray<(.*)>/i
115
107
  # check to ensure the input is an array given that the attribute
116
108
  # is documented as an array but the input is not
117
- if attributes[self.class.attribute_map[key]].is_a?(Array)
118
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
109
+ if attributes[attribute_map[key]].is_a?(Array)
110
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
119
111
  end
120
- elsif !attributes[self.class.attribute_map[key]].nil?
121
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
112
+ elsif !attributes[attribute_map[key]].nil?
113
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
122
114
  end
123
115
  end
124
-
125
- self
116
+ new(transformed_hash)
126
117
  end
127
118
 
128
119
  # Deserializes the data based on type
129
120
  # @param string type Data type
130
121
  # @param string value Value to be deserialized
131
122
  # @return [Object] Deserialized data
132
- def _deserialize(type, value)
123
+ def self._deserialize(type, value)
133
124
  case type.to_sym
134
125
  when :Time
135
126
  Time.parse(value)
@@ -164,7 +155,7 @@ module YNAB
164
155
  else # model
165
156
  # models (e.g. Pet) or oneOf
166
157
  klass = YNAB.const_get(type)
167
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
158
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
168
159
  end
169
160
  end
170
161
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9
 
@@ -3,10 +3,7 @@
3
3
 
4
4
  #Our API uses a REST based design, leverages the JSON data format, and relies 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
5
5
 
6
- The version of the OpenAPI document: 1.70.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
6
+ Generated by: OpenAPI Generator (https://openapi-generator.tech)
10
7
 
11
8
  =end
12
9