fuse_client 1.0.41 → 1.0.42

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