fuse_client 1.0.40 → 1.0.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +4 -0
  4. data/docs/FinancialConnectionData.md +1 -1
  5. data/docs/FinancialConnectionDetails.md +3 -1
  6. data/docs/FinancialConnectionDetailsFinicity.md +20 -0
  7. data/docs/FinancialConnectionsAccountDetails.md +1 -1
  8. data/docs/FinancialConnectionsAccountDetailsAccountNumber.md +1 -1
  9. data/docs/FuseApi.md +7 -84
  10. data/docs/Transaction.md +1 -1
  11. data/lib/fuse_client/api/fuse_api.rb +10 -67
  12. data/lib/fuse_client/configuration.rb +32 -11
  13. data/lib/fuse_client/models/aggregator.rb +9 -8
  14. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +46 -1
  15. data/lib/fuse_client/models/financial_connection_data.rb +1 -5
  16. data/lib/fuse_client/models/financial_connection_details.rb +13 -4
  17. data/lib/fuse_client/models/{fin_ql_top_merchants_feature_inner.rb → financial_connection_details_finicity.rb} +29 -25
  18. data/lib/fuse_client/models/financial_connections_account.rb +1 -0
  19. data/lib/fuse_client/models/financial_connections_account_balance.rb +2 -0
  20. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +2 -0
  21. data/lib/fuse_client/models/financial_connections_account_details.rb +0 -5
  22. data/lib/fuse_client/models/financial_connections_account_details_account_number.rb +5 -0
  23. data/lib/fuse_client/models/financial_connections_account_liability.rb +1 -0
  24. data/lib/fuse_client/models/fuse_api_aggregator_error.rb +5 -0
  25. data/lib/fuse_client/models/fuse_api_error_code.rb +4 -1
  26. data/lib/fuse_client/models/transaction.rb +1 -1
  27. data/lib/fuse_client/version.rb +1 -1
  28. data/lib/fuse_client.rb +1 -20
  29. data/spec/api/fuse_api_spec.rb +1 -12
  30. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +12 -0
  31. data/spec/models/{fin_ql_prompt_response_spec.rb → financial_connection_details_finicity_spec.rb} +8 -8
  32. data/spec/models/financial_connection_details_spec.rb +6 -0
  33. metadata +6 -82
  34. data/docs/FinQLComparisonFeature.md +0 -26
  35. data/docs/FinQLFeature.md +0 -61
  36. data/docs/FinQLFeatureOneOf.md +0 -18
  37. data/docs/FinQLFeatureOneOf1.md +0 -18
  38. data/docs/FinQLFeatureOneOf2.md +0 -18
  39. data/docs/FinQLFeatureOneOf3.md +0 -18
  40. data/docs/FinQLFeatureOneOf4.md +0 -18
  41. data/docs/FinQLFeatureOneOf5.md +0 -18
  42. data/docs/FinQLFeatureOneOf6.md +0 -18
  43. data/docs/FinQLFeatureOneOf7.md +0 -18
  44. data/docs/FinQLFeatureRequest.md +0 -15
  45. data/docs/FinQLFrequencyFeature.md +0 -20
  46. data/docs/FinQLIndividualMerchantFeature.md +0 -20
  47. data/docs/FinQLInterestFeature.md +0 -18
  48. data/docs/FinQLMerchantCategoriesFeatureInner.md +0 -20
  49. data/docs/FinQLMerchantCategoriesFeatureInnerResultInner.md +0 -20
  50. data/docs/FinQLPromptRequest.md +0 -22
  51. data/docs/FinQLPromptResponse.md +0 -20
  52. data/docs/FinQLTimeBasedFeatureInner.md +0 -20
  53. data/docs/FinQLTopMerchantsFeatureInner.md +0 -22
  54. data/lib/fuse_client/models/fin_ql_comparison_feature.rb +0 -255
  55. data/lib/fuse_client/models/fin_ql_feature.rb +0 -111
  56. data/lib/fuse_client/models/fin_ql_feature_one_of.rb +0 -219
  57. data/lib/fuse_client/models/fin_ql_feature_one_of1.rb +0 -219
  58. data/lib/fuse_client/models/fin_ql_feature_one_of2.rb +0 -221
  59. data/lib/fuse_client/models/fin_ql_feature_one_of3.rb +0 -219
  60. data/lib/fuse_client/models/fin_ql_feature_one_of4.rb +0 -219
  61. data/lib/fuse_client/models/fin_ql_feature_one_of5.rb +0 -221
  62. data/lib/fuse_client/models/fin_ql_feature_one_of6.rb +0 -219
  63. data/lib/fuse_client/models/fin_ql_feature_one_of7.rb +0 -221
  64. data/lib/fuse_client/models/fin_ql_feature_request.rb +0 -46
  65. data/lib/fuse_client/models/fin_ql_frequency_feature.rb +0 -262
  66. data/lib/fuse_client/models/fin_ql_individual_merchant_feature.rb +0 -228
  67. data/lib/fuse_client/models/fin_ql_interest_feature.rb +0 -219
  68. data/lib/fuse_client/models/fin_ql_merchant_categories_feature_inner.rb +0 -230
  69. data/lib/fuse_client/models/fin_ql_merchant_categories_feature_inner_result_inner.rb +0 -228
  70. data/lib/fuse_client/models/fin_ql_prompt_request.rb +0 -276
  71. data/lib/fuse_client/models/fin_ql_prompt_response.rb +0 -234
  72. data/lib/fuse_client/models/fin_ql_time_based_feature_inner.rb +0 -228
  73. data/spec/models/fin_ql_comparison_feature_spec.rb +0 -58
  74. data/spec/models/fin_ql_feature_one_of1_spec.rb +0 -34
  75. data/spec/models/fin_ql_feature_one_of2_spec.rb +0 -34
  76. data/spec/models/fin_ql_feature_one_of3_spec.rb +0 -34
  77. data/spec/models/fin_ql_feature_one_of4_spec.rb +0 -34
  78. data/spec/models/fin_ql_feature_one_of5_spec.rb +0 -34
  79. data/spec/models/fin_ql_feature_one_of6_spec.rb +0 -34
  80. data/spec/models/fin_ql_feature_one_of7_spec.rb +0 -34
  81. data/spec/models/fin_ql_feature_one_of_spec.rb +0 -34
  82. data/spec/models/fin_ql_feature_request_spec.rb +0 -28
  83. data/spec/models/fin_ql_feature_spec.rb +0 -31
  84. data/spec/models/fin_ql_frequency_feature_spec.rb +0 -44
  85. data/spec/models/fin_ql_individual_merchant_feature_spec.rb +0 -40
  86. data/spec/models/fin_ql_interest_feature_spec.rb +0 -34
  87. data/spec/models/fin_ql_merchant_categories_feature_inner_result_inner_spec.rb +0 -40
  88. data/spec/models/fin_ql_merchant_categories_feature_inner_spec.rb +0 -40
  89. data/spec/models/fin_ql_prompt_request_spec.rb +0 -46
  90. data/spec/models/fin_ql_time_based_feature_inner_spec.rb +0 -40
  91. data/spec/models/fin_ql_top_merchants_feature_inner_spec.rb +0 -46
@@ -1,276 +0,0 @@
1
- =begin
2
- #Fuse
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module FuseClient
17
- class FinQLPromptRequest
18
- # Description of the search in natural language.
19
- attr_accessor :prompt
20
-
21
- # ID of account to be queried
22
- attr_accessor :account_id
23
-
24
- attr_accessor :feature
25
-
26
- class EnumAttributeValidator
27
- attr_reader :datatype
28
- attr_reader :allowable_values
29
-
30
- def initialize(datatype, allowable_values)
31
- @allowable_values = allowable_values.map do |value|
32
- case datatype.to_s
33
- when /Integer/i
34
- value.to_i
35
- when /Float/i
36
- value.to_f
37
- else
38
- value
39
- end
40
- end
41
- end
42
-
43
- def valid?(value)
44
- !value || allowable_values.include?(value)
45
- end
46
- end
47
-
48
- # Attribute mapping from ruby-style variable name to JSON key.
49
- def self.attribute_map
50
- {
51
- :'prompt' => :'prompt',
52
- :'account_id' => :'account_id',
53
- :'feature' => :'feature'
54
- }
55
- end
56
-
57
- # Returns all the JSON keys this model knows about
58
- def self.acceptable_attributes
59
- attribute_map.values
60
- end
61
-
62
- # Attribute type mapping.
63
- def self.openapi_types
64
- {
65
- :'prompt' => :'String',
66
- :'account_id' => :'String',
67
- :'feature' => :'FinQLFeatureRequest'
68
- }
69
- end
70
-
71
- # List of attributes with nullable: true
72
- def self.openapi_nullable
73
- Set.new([
74
- ])
75
- end
76
-
77
- # Initializes the object
78
- # @param [Hash] attributes Model attributes in the form of hash
79
- def initialize(attributes = {})
80
- if (!attributes.is_a?(Hash))
81
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinQLPromptRequest` initialize method"
82
- end
83
-
84
- # check to see if the attribute exists and convert string to symbol for hash key
85
- attributes = attributes.each_with_object({}) { |(k, v), h|
86
- if (!self.class.attribute_map.key?(k.to_sym))
87
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinQLPromptRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
88
- end
89
- h[k.to_sym] = v
90
- }
91
-
92
- if attributes.key?(:'prompt')
93
- self.prompt = attributes[:'prompt']
94
- end
95
-
96
- if attributes.key?(:'account_id')
97
- self.account_id = attributes[:'account_id']
98
- end
99
-
100
- if attributes.key?(:'feature')
101
- self.feature = attributes[:'feature']
102
- end
103
- end
104
-
105
- # Show invalid properties with the reasons. Usually used together with valid?
106
- # @return Array for valid properties with the reasons
107
- def list_invalid_properties
108
- invalid_properties = Array.new
109
- if @prompt.nil?
110
- invalid_properties.push('invalid value for "prompt", prompt cannot be nil.')
111
- end
112
-
113
- if @account_id.nil?
114
- invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
115
- end
116
-
117
- if @feature.nil?
118
- invalid_properties.push('invalid value for "feature", feature cannot be nil.')
119
- end
120
-
121
- invalid_properties
122
- end
123
-
124
- # Check to see if the all the properties in the model are valid
125
- # @return true if the model is valid
126
- def valid?
127
- return false if @prompt.nil?
128
- return false if @account_id.nil?
129
- return false if @feature.nil?
130
- true
131
- end
132
-
133
- # Checks equality by comparing each attribute.
134
- # @param [Object] Object to be compared
135
- def ==(o)
136
- return true if self.equal?(o)
137
- self.class == o.class &&
138
- prompt == o.prompt &&
139
- account_id == o.account_id &&
140
- feature == o.feature
141
- end
142
-
143
- # @see the `==` method
144
- # @param [Object] Object to be compared
145
- def eql?(o)
146
- self == o
147
- end
148
-
149
- # Calculates hash code according to all attributes.
150
- # @return [Integer] Hash code
151
- def hash
152
- [prompt, account_id, feature].hash
153
- end
154
-
155
- # Builds the object from hash
156
- # @param [Hash] attributes Model attributes in the form of hash
157
- # @return [Object] Returns the model itself
158
- def self.build_from_hash(attributes)
159
- new.build_from_hash(attributes)
160
- end
161
-
162
- # Builds the object from hash
163
- # @param [Hash] attributes Model attributes in the form of hash
164
- # @return [Object] Returns the model itself
165
- def build_from_hash(attributes)
166
- return nil unless attributes.is_a?(Hash)
167
- attributes = attributes.transform_keys(&:to_sym)
168
- self.class.openapi_types.each_pair do |key, type|
169
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
170
- self.send("#{key}=", nil)
171
- elsif type =~ /\AArray<(.*)>/i
172
- # check to ensure the input is an array given that the attribute
173
- # is documented as an array but the input is not
174
- if attributes[self.class.attribute_map[key]].is_a?(Array)
175
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
176
- end
177
- elsif !attributes[self.class.attribute_map[key]].nil?
178
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
179
- end
180
- end
181
-
182
- self
183
- end
184
-
185
- # Deserializes the data based on type
186
- # @param string type Data type
187
- # @param string value Value to be deserialized
188
- # @return [Object] Deserialized data
189
- def _deserialize(type, value)
190
- case type.to_sym
191
- when :Time
192
- Time.parse(value)
193
- when :Date
194
- Date.parse(value)
195
- when :String
196
- value.to_s
197
- when :Integer
198
- value.to_i
199
- when :Float
200
- value.to_f
201
- when :Boolean
202
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
203
- true
204
- else
205
- false
206
- end
207
- when :Object
208
- # generic object (usually a Hash), return directly
209
- value
210
- when /\AArray<(?<inner_type>.+)>\z/
211
- inner_type = Regexp.last_match[:inner_type]
212
- value.map { |v| _deserialize(inner_type, v) }
213
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
214
- k_type = Regexp.last_match[:k_type]
215
- v_type = Regexp.last_match[:v_type]
216
- {}.tap do |hash|
217
- value.each do |k, v|
218
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
219
- end
220
- end
221
- else # model
222
- # models (e.g. Pet) or oneOf
223
- klass = FuseClient.const_get(type)
224
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
225
- end
226
- end
227
-
228
- # Returns the string representation of the object
229
- # @return [String] String presentation of the object
230
- def to_s
231
- to_hash.to_s
232
- end
233
-
234
- # to_body is an alias to to_hash (backward compatibility)
235
- # @return [Hash] Returns the object in the form of hash
236
- def to_body
237
- to_hash
238
- end
239
-
240
- # Returns the object in the form of hash
241
- # @return [Hash] Returns the object in the form of hash
242
- def to_hash
243
- hash = {}
244
- self.class.attribute_map.each_pair do |attr, param|
245
- value = self.send(attr)
246
- if value.nil?
247
- is_nullable = self.class.openapi_nullable.include?(attr)
248
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
249
- end
250
-
251
- hash[param] = _to_hash(value)
252
- end
253
- hash
254
- end
255
-
256
- # Outputs non-array value in the form of hash
257
- # For object, use to_hash. Otherwise, just return the value
258
- # @param [Object] value Any valid value
259
- # @return [Hash] Returns the value in the form of hash
260
- def _to_hash(value)
261
- if value.is_a?(Array)
262
- value.compact.map { |v| _to_hash(v) }
263
- elsif value.is_a?(Hash)
264
- {}.tap do |hash|
265
- value.each { |k, v| hash[k] = _to_hash(v) }
266
- end
267
- elsif value.respond_to? :to_hash
268
- value.to_hash
269
- else
270
- value
271
- end
272
- end
273
-
274
- end
275
-
276
- end
@@ -1,234 +0,0 @@
1
- =begin
2
- #Fuse
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module FuseClient
17
- class FinQLPromptResponse
18
- attr_accessor :feature
19
-
20
- # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
21
- attr_accessor :request_id
22
-
23
- # Attribute mapping from ruby-style variable name to JSON key.
24
- def self.attribute_map
25
- {
26
- :'feature' => :'feature',
27
- :'request_id' => :'request_id'
28
- }
29
- end
30
-
31
- # Returns all the JSON keys this model knows about
32
- def self.acceptable_attributes
33
- attribute_map.values
34
- end
35
-
36
- # Attribute type mapping.
37
- def self.openapi_types
38
- {
39
- :'feature' => :'FinQLFeature',
40
- :'request_id' => :'String'
41
- }
42
- end
43
-
44
- # List of attributes with nullable: true
45
- def self.openapi_nullable
46
- Set.new([
47
- ])
48
- end
49
-
50
- # Initializes the object
51
- # @param [Hash] attributes Model attributes in the form of hash
52
- def initialize(attributes = {})
53
- if (!attributes.is_a?(Hash))
54
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinQLPromptResponse` initialize method"
55
- end
56
-
57
- # check to see if the attribute exists and convert string to symbol for hash key
58
- attributes = attributes.each_with_object({}) { |(k, v), h|
59
- if (!self.class.attribute_map.key?(k.to_sym))
60
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinQLPromptResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
- end
62
- h[k.to_sym] = v
63
- }
64
-
65
- if attributes.key?(:'feature')
66
- self.feature = attributes[:'feature']
67
- end
68
-
69
- if attributes.key?(:'request_id')
70
- self.request_id = attributes[:'request_id']
71
- end
72
- end
73
-
74
- # Show invalid properties with the reasons. Usually used together with valid?
75
- # @return Array for valid properties with the reasons
76
- def list_invalid_properties
77
- invalid_properties = Array.new
78
- if @request_id.nil?
79
- invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
80
- end
81
-
82
- invalid_properties
83
- end
84
-
85
- # Check to see if the all the properties in the model are valid
86
- # @return true if the model is valid
87
- def valid?
88
- return false if @request_id.nil?
89
- true
90
- end
91
-
92
- # Checks equality by comparing each attribute.
93
- # @param [Object] Object to be compared
94
- def ==(o)
95
- return true if self.equal?(o)
96
- self.class == o.class &&
97
- feature == o.feature &&
98
- request_id == o.request_id
99
- end
100
-
101
- # @see the `==` method
102
- # @param [Object] Object to be compared
103
- def eql?(o)
104
- self == o
105
- end
106
-
107
- # Calculates hash code according to all attributes.
108
- # @return [Integer] Hash code
109
- def hash
110
- [feature, request_id].hash
111
- end
112
-
113
- # Builds the object from hash
114
- # @param [Hash] attributes Model attributes in the form of hash
115
- # @return [Object] Returns the model itself
116
- def self.build_from_hash(attributes)
117
- new.build_from_hash(attributes)
118
- end
119
-
120
- # Builds the object from hash
121
- # @param [Hash] attributes Model attributes in the form of hash
122
- # @return [Object] Returns the model itself
123
- def build_from_hash(attributes)
124
- return nil unless attributes.is_a?(Hash)
125
- attributes = attributes.transform_keys(&:to_sym)
126
- self.class.openapi_types.each_pair do |key, type|
127
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
128
- self.send("#{key}=", nil)
129
- elsif type =~ /\AArray<(.*)>/i
130
- # check to ensure the input is an array given that the attribute
131
- # is documented as an array but the input is not
132
- if attributes[self.class.attribute_map[key]].is_a?(Array)
133
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
134
- end
135
- elsif !attributes[self.class.attribute_map[key]].nil?
136
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
137
- end
138
- end
139
-
140
- self
141
- end
142
-
143
- # Deserializes the data based on type
144
- # @param string type Data type
145
- # @param string value Value to be deserialized
146
- # @return [Object] Deserialized data
147
- def _deserialize(type, value)
148
- case type.to_sym
149
- when :Time
150
- Time.parse(value)
151
- when :Date
152
- Date.parse(value)
153
- when :String
154
- value.to_s
155
- when :Integer
156
- value.to_i
157
- when :Float
158
- value.to_f
159
- when :Boolean
160
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
161
- true
162
- else
163
- false
164
- end
165
- when :Object
166
- # generic object (usually a Hash), return directly
167
- value
168
- when /\AArray<(?<inner_type>.+)>\z/
169
- inner_type = Regexp.last_match[:inner_type]
170
- value.map { |v| _deserialize(inner_type, v) }
171
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
172
- k_type = Regexp.last_match[:k_type]
173
- v_type = Regexp.last_match[:v_type]
174
- {}.tap do |hash|
175
- value.each do |k, v|
176
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
177
- end
178
- end
179
- else # model
180
- # models (e.g. Pet) or oneOf
181
- klass = FuseClient.const_get(type)
182
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
183
- end
184
- end
185
-
186
- # Returns the string representation of the object
187
- # @return [String] String presentation of the object
188
- def to_s
189
- to_hash.to_s
190
- end
191
-
192
- # to_body is an alias to to_hash (backward compatibility)
193
- # @return [Hash] Returns the object in the form of hash
194
- def to_body
195
- to_hash
196
- end
197
-
198
- # Returns the object in the form of hash
199
- # @return [Hash] Returns the object in the form of hash
200
- def to_hash
201
- hash = {}
202
- self.class.attribute_map.each_pair do |attr, param|
203
- value = self.send(attr)
204
- if value.nil?
205
- is_nullable = self.class.openapi_nullable.include?(attr)
206
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
207
- end
208
-
209
- hash[param] = _to_hash(value)
210
- end
211
- hash
212
- end
213
-
214
- # Outputs non-array value in the form of hash
215
- # For object, use to_hash. Otherwise, just return the value
216
- # @param [Object] value Any valid value
217
- # @return [Hash] Returns the value in the form of hash
218
- def _to_hash(value)
219
- if value.is_a?(Array)
220
- value.compact.map { |v| _to_hash(v) }
221
- elsif value.is_a?(Hash)
222
- {}.tap do |hash|
223
- value.each { |k, v| hash[k] = _to_hash(v) }
224
- end
225
- elsif value.respond_to? :to_hash
226
- value.to_hash
227
- else
228
- value
229
- end
230
- end
231
-
232
- end
233
-
234
- end