fuse_client 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +6 -1
  4. data/docs/AddAccountEventsRequest.md +18 -0
  5. data/docs/AddAccountEventsRequestEventsInner.md +51 -0
  6. data/docs/{AddSpendPowerTransactionResponse.md → AddAccountEventsResponse.md} +2 -2
  7. data/docs/AssetReportTransaction.md +1 -1
  8. data/docs/CreateSessionRequest.md +1 -1
  9. data/docs/CreateSpendPowerCustomizationRequest.md +22 -0
  10. data/docs/CreateSpendPowerRequest.md +5 -5
  11. data/docs/CreateSpendPowerResponse.md +1 -1
  12. data/docs/DeleteSpendPowerResponse.md +2 -2
  13. data/docs/EnrichTransactionsRequest.md +18 -0
  14. data/docs/EnrichTransactionsResponse.md +18 -0
  15. data/docs/EnrichedTransaction.md +46 -0
  16. data/docs/EnrichedTransactionLogo.md +18 -0
  17. data/docs/EvalSpendPowerRequest.md +22 -0
  18. data/docs/EvalSpendPowerRequestEventsInner.md +20 -0
  19. data/docs/EvalSpendPowerResponse.md +20 -0
  20. data/docs/ExternalTransactionEvent.md +36 -0
  21. data/docs/ExternalTransactionEventStatus.md +15 -0
  22. data/docs/FinancialConnectionsAccountBalance.md +2 -2
  23. data/docs/FinancialConnectionsAccountCachedBalance.md +2 -2
  24. data/docs/FinancialConnectionsHolding.md +3 -3
  25. data/docs/FinancialConnectionsInvestmentSecurity.md +1 -1
  26. data/docs/FinancialConnectionsInvestmentTransaction.md +5 -3
  27. data/docs/FinancialConnectionsInvestmentTransactionSubtype.md +15 -0
  28. data/docs/FuseApi.md +193 -35
  29. data/docs/GetFinanceScoreResponse.md +20 -0
  30. data/docs/GetInvestmentTransactionsRequest.md +4 -4
  31. data/docs/GetSpendPowerCustomizationResponse.md +20 -0
  32. data/docs/InAppTransactionEvent.md +34 -0
  33. data/docs/InAppTransactionEventStatus.md +15 -0
  34. data/docs/SpendPower.md +6 -6
  35. data/docs/SpendPowerApi.md +87 -44
  36. data/docs/SpendPowerCustomization.md +5 -3
  37. data/docs/SpendPowerTimeFrame.md +15 -0
  38. data/docs/Transaction.md +1 -1
  39. data/docs/TransactionCategory.md +20 -0
  40. data/docs/TransactionCategoryDetailed.md +15 -0
  41. data/docs/TransactionCategoryPrimary.md +15 -0
  42. data/docs/TransactionEventType.md +15 -0
  43. data/docs/TransactionToEnrich.md +26 -0
  44. data/docs/UpdateSpendPowerCustomizationRequest.md +22 -0
  45. data/docs/UpdatedBalanceEvent.md +26 -0
  46. data/lib/fuse_client/api/fuse_api.rb +176 -31
  47. data/lib/fuse_client/api/spend_power_api.rb +78 -52
  48. data/lib/fuse_client/models/add_account_events_request.rb +254 -0
  49. data/lib/fuse_client/models/add_account_events_request_events_inner.rb +106 -0
  50. data/lib/fuse_client/models/{add_spend_power_transaction_response.rb → add_account_events_response.rb} +3 -3
  51. data/lib/fuse_client/models/asset_report_transaction.rb +1 -1
  52. data/lib/fuse_client/models/country_code.rb +2 -1
  53. data/lib/fuse_client/models/create_session_request.rb +1 -1
  54. data/lib/fuse_client/models/create_spend_power_customization_request.rb +314 -0
  55. data/lib/fuse_client/models/create_spend_power_request.rb +22 -22
  56. data/lib/fuse_client/models/create_spend_power_response.rb +1 -1
  57. data/lib/fuse_client/models/delete_spend_power_response.rb +11 -10
  58. data/lib/fuse_client/models/enrich_transactions_request.rb +226 -0
  59. data/lib/fuse_client/models/enrich_transactions_response.rb +222 -0
  60. data/lib/fuse_client/models/enriched_transaction.rb +397 -0
  61. data/lib/fuse_client/models/enriched_transaction_logo.rb +220 -0
  62. data/lib/fuse_client/models/eval_spend_power_request.rb +296 -0
  63. data/lib/fuse_client/models/eval_spend_power_request_events_inner.rb +239 -0
  64. data/lib/fuse_client/models/eval_spend_power_response.rb +230 -0
  65. data/lib/fuse_client/models/external_transaction_event.rb +384 -0
  66. data/lib/fuse_client/models/external_transaction_event_status.rb +40 -0
  67. data/lib/fuse_client/models/financial_connections_account_balance.rb +2 -2
  68. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +2 -2
  69. data/lib/fuse_client/models/financial_connections_holding.rb +3 -3
  70. data/lib/fuse_client/models/financial_connections_investment_security.rb +1 -1
  71. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +13 -4
  72. data/lib/fuse_client/models/financial_connections_investment_transaction_subtype.rb +87 -0
  73. data/lib/fuse_client/models/fuse_api_error_code.rb +3 -1
  74. data/lib/fuse_client/models/get_finance_score_response.rb +240 -0
  75. data/lib/fuse_client/models/get_investment_transactions_request.rb +37 -9
  76. data/lib/fuse_client/models/get_spend_power_customization_response.rb +239 -0
  77. data/lib/fuse_client/models/in_app_transaction_event.rb +364 -0
  78. data/lib/fuse_client/models/in_app_transaction_event_status.rb +41 -0
  79. data/lib/fuse_client/models/spend_power.rb +18 -18
  80. data/lib/fuse_client/models/spend_power_customization.rb +54 -14
  81. data/lib/fuse_client/models/spend_power_time_frame.rb +41 -0
  82. data/lib/fuse_client/models/transaction.rb +1 -1
  83. data/lib/fuse_client/models/transaction_category.rb +260 -0
  84. data/lib/fuse_client/models/transaction_category_detailed.rb +135 -0
  85. data/lib/fuse_client/models/transaction_category_primary.rb +59 -0
  86. data/lib/fuse_client/models/transaction_event_type.rb +65 -0
  87. data/lib/fuse_client/models/{add_spend_power_transaction_request.rb → transaction_to_enrich.rb} +47 -27
  88. data/lib/fuse_client/models/update_spend_power_customization_request.rb +291 -0
  89. data/lib/fuse_client/models/updated_balance_event.rb +308 -0
  90. data/lib/fuse_client/version.rb +1 -1
  91. data/lib/fuse_client.rb +26 -2
  92. data/spec/api/fuse_api_spec.rb +33 -7
  93. data/spec/api/spend_power_api_spec.rb +14 -17
  94. data/spec/models/add_account_events_request_events_inner_spec.rb +31 -0
  95. data/spec/models/add_account_events_request_spec.rb +34 -0
  96. data/spec/models/{add_spend_power_transaction_response_spec.rb → add_account_events_response_spec.rb} +6 -6
  97. data/spec/models/create_spend_power_customization_request_spec.rb +46 -0
  98. data/spec/models/create_spend_power_request_spec.rb +2 -2
  99. data/spec/models/delete_spend_power_response_spec.rb +1 -1
  100. data/spec/models/enrich_transactions_request_spec.rb +34 -0
  101. data/spec/models/enrich_transactions_response_spec.rb +34 -0
  102. data/spec/models/enriched_transaction_logo_spec.rb +34 -0
  103. data/spec/models/enriched_transaction_spec.rb +122 -0
  104. data/spec/models/eval_spend_power_request_events_inner_spec.rb +40 -0
  105. data/spec/models/eval_spend_power_request_spec.rb +46 -0
  106. data/spec/models/eval_spend_power_response_spec.rb +40 -0
  107. data/spec/models/external_transaction_event_spec.rb +92 -0
  108. data/spec/models/external_transaction_event_status_spec.rb +28 -0
  109. data/spec/models/financial_connections_investment_transaction_spec.rb +6 -0
  110. data/spec/models/financial_connections_investment_transaction_subtype_spec.rb +28 -0
  111. data/spec/models/get_finance_score_response_spec.rb +40 -0
  112. data/spec/models/get_spend_power_customization_response_spec.rb +40 -0
  113. data/spec/models/in_app_transaction_event_spec.rb +86 -0
  114. data/spec/models/in_app_transaction_event_status_spec.rb +28 -0
  115. data/spec/models/spend_power_customization_spec.rb +6 -4
  116. data/spec/models/spend_power_spec.rb +1 -1
  117. data/spec/models/spend_power_time_frame_spec.rb +28 -0
  118. data/spec/models/transaction_category_detailed_spec.rb +28 -0
  119. data/spec/models/transaction_category_primary_spec.rb +28 -0
  120. data/spec/models/transaction_category_spec.rb +40 -0
  121. data/spec/models/transaction_event_type_spec.rb +28 -0
  122. data/spec/models/{add_spend_power_transaction_request_spec.rb → transaction_to_enrich_spec.rb} +23 -11
  123. data/spec/models/update_spend_power_customization_request_spec.rb +46 -0
  124. data/spec/models/updated_balance_event_spec.rb +62 -0
  125. metadata +106 -10
  126. data/docs/AddSpendPowerTransactionRequest.md +0 -22
@@ -0,0 +1,314 @@
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.5.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ class CreateSpendPowerCustomizationRequest
18
+ attr_accessor :timeframe
19
+
20
+ # The minimum allowed limit for the spend power, in cents.
21
+ attr_accessor :min_limit
22
+
23
+ # The maximum allowed limit for the spend power, in cents.
24
+ attr_accessor :max_limit
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
+ :'timeframe' => :'timeframe',
52
+ :'min_limit' => :'min_limit',
53
+ :'max_limit' => :'max_limit'
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
+ :'timeframe' => :'SpendPowerTimeFrame',
66
+ :'min_limit' => :'Float',
67
+ :'max_limit' => :'Float'
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::CreateSpendPowerCustomizationRequest` 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::CreateSpendPowerCustomizationRequest`. 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?(:'timeframe')
93
+ self.timeframe = attributes[:'timeframe']
94
+ end
95
+
96
+ if attributes.key?(:'min_limit')
97
+ self.min_limit = attributes[:'min_limit']
98
+ end
99
+
100
+ if attributes.key?(:'max_limit')
101
+ self.max_limit = attributes[:'max_limit']
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 @timeframe.nil?
110
+ invalid_properties.push('invalid value for "timeframe", timeframe cannot be nil.')
111
+ end
112
+
113
+ if @min_limit.nil?
114
+ invalid_properties.push('invalid value for "min_limit", min_limit cannot be nil.')
115
+ end
116
+
117
+ if @min_limit < 0
118
+ invalid_properties.push('invalid value for "min_limit", must be greater than or equal to 0.')
119
+ end
120
+
121
+ if @max_limit.nil?
122
+ invalid_properties.push('invalid value for "max_limit", max_limit cannot be nil.')
123
+ end
124
+
125
+ if @max_limit < 1
126
+ invalid_properties.push('invalid value for "max_limit", must be greater than or equal to 1.')
127
+ end
128
+
129
+ invalid_properties
130
+ end
131
+
132
+ # Check to see if the all the properties in the model are valid
133
+ # @return true if the model is valid
134
+ def valid?
135
+ return false if @timeframe.nil?
136
+ return false if @min_limit.nil?
137
+ return false if @min_limit < 0
138
+ return false if @max_limit.nil?
139
+ return false if @max_limit < 1
140
+ true
141
+ end
142
+
143
+ # Custom attribute writer method with validation
144
+ # @param [Object] min_limit Value to be assigned
145
+ def min_limit=(min_limit)
146
+ if min_limit.nil?
147
+ fail ArgumentError, 'min_limit cannot be nil'
148
+ end
149
+
150
+ if min_limit < 0
151
+ fail ArgumentError, 'invalid value for "min_limit", must be greater than or equal to 0.'
152
+ end
153
+
154
+ @min_limit = min_limit
155
+ end
156
+
157
+ # Custom attribute writer method with validation
158
+ # @param [Object] max_limit Value to be assigned
159
+ def max_limit=(max_limit)
160
+ if max_limit.nil?
161
+ fail ArgumentError, 'max_limit cannot be nil'
162
+ end
163
+
164
+ if max_limit < 1
165
+ fail ArgumentError, 'invalid value for "max_limit", must be greater than or equal to 1.'
166
+ end
167
+
168
+ @max_limit = max_limit
169
+ end
170
+
171
+ # Checks equality by comparing each attribute.
172
+ # @param [Object] Object to be compared
173
+ def ==(o)
174
+ return true if self.equal?(o)
175
+ self.class == o.class &&
176
+ timeframe == o.timeframe &&
177
+ min_limit == o.min_limit &&
178
+ max_limit == o.max_limit
179
+ end
180
+
181
+ # @see the `==` method
182
+ # @param [Object] Object to be compared
183
+ def eql?(o)
184
+ self == o
185
+ end
186
+
187
+ # Calculates hash code according to all attributes.
188
+ # @return [Integer] Hash code
189
+ def hash
190
+ [timeframe, min_limit, max_limit].hash
191
+ end
192
+
193
+ # Builds the object from hash
194
+ # @param [Hash] attributes Model attributes in the form of hash
195
+ # @return [Object] Returns the model itself
196
+ def self.build_from_hash(attributes)
197
+ new.build_from_hash(attributes)
198
+ end
199
+
200
+ # Builds the object from hash
201
+ # @param [Hash] attributes Model attributes in the form of hash
202
+ # @return [Object] Returns the model itself
203
+ def build_from_hash(attributes)
204
+ return nil unless attributes.is_a?(Hash)
205
+ attributes = attributes.transform_keys(&:to_sym)
206
+ self.class.openapi_types.each_pair do |key, type|
207
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
208
+ self.send("#{key}=", nil)
209
+ elsif type =~ /\AArray<(.*)>/i
210
+ # check to ensure the input is an array given that the attribute
211
+ # is documented as an array but the input is not
212
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
213
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
214
+ end
215
+ elsif !attributes[self.class.attribute_map[key]].nil?
216
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
217
+ end
218
+ end
219
+
220
+ self
221
+ end
222
+
223
+ # Deserializes the data based on type
224
+ # @param string type Data type
225
+ # @param string value Value to be deserialized
226
+ # @return [Object] Deserialized data
227
+ def _deserialize(type, value)
228
+ case type.to_sym
229
+ when :Time
230
+ Time.parse(value)
231
+ when :Date
232
+ Date.parse(value)
233
+ when :String
234
+ value.to_s
235
+ when :Integer
236
+ value.to_i
237
+ when :Float
238
+ value.to_f
239
+ when :Boolean
240
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
241
+ true
242
+ else
243
+ false
244
+ end
245
+ when :Object
246
+ # generic object (usually a Hash), return directly
247
+ value
248
+ when /\AArray<(?<inner_type>.+)>\z/
249
+ inner_type = Regexp.last_match[:inner_type]
250
+ value.map { |v| _deserialize(inner_type, v) }
251
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
252
+ k_type = Regexp.last_match[:k_type]
253
+ v_type = Regexp.last_match[:v_type]
254
+ {}.tap do |hash|
255
+ value.each do |k, v|
256
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
257
+ end
258
+ end
259
+ else # model
260
+ # models (e.g. Pet) or oneOf
261
+ klass = FuseClient.const_get(type)
262
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
263
+ end
264
+ end
265
+
266
+ # Returns the string representation of the object
267
+ # @return [String] String presentation of the object
268
+ def to_s
269
+ to_hash.to_s
270
+ end
271
+
272
+ # to_body is an alias to to_hash (backward compatibility)
273
+ # @return [Hash] Returns the object in the form of hash
274
+ def to_body
275
+ to_hash
276
+ end
277
+
278
+ # Returns the object in the form of hash
279
+ # @return [Hash] Returns the object in the form of hash
280
+ def to_hash
281
+ hash = {}
282
+ self.class.attribute_map.each_pair do |attr, param|
283
+ value = self.send(attr)
284
+ if value.nil?
285
+ is_nullable = self.class.openapi_nullable.include?(attr)
286
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
287
+ end
288
+
289
+ hash[param] = _to_hash(value)
290
+ end
291
+ hash
292
+ end
293
+
294
+ # Outputs non-array value in the form of hash
295
+ # For object, use to_hash. Otherwise, just return the value
296
+ # @param [Object] value Any valid value
297
+ # @return [Hash] Returns the value in the form of hash
298
+ def _to_hash(value)
299
+ if value.is_a?(Array)
300
+ value.compact.map { |v| _to_hash(v) }
301
+ elsif value.is_a?(Hash)
302
+ {}.tap do |hash|
303
+ value.each { |k, v| hash[k] = _to_hash(v) }
304
+ end
305
+ elsif value.respond_to? :to_hash
306
+ value.to_hash
307
+ else
308
+ value
309
+ end
310
+ end
311
+
312
+ end
313
+
314
+ end
@@ -15,20 +15,20 @@ require 'time'
15
15
 
16
16
  module FuseClient
17
17
  class CreateSpendPowerRequest
18
- # Access token for authentication
19
- attr_accessor :access_token
18
+ # A unique ID representing the bank account that this spend power is calculated for. Typically this will be a bank connection account ID from your application. It is currently used as a means of connecting events to the spend power.
19
+ attr_accessor :account_id
20
20
 
21
- # The remote account id to create the spend power for.
22
- attr_accessor :remote_account_id
21
+ # The ISO-4217 currency code of the transaction
22
+ attr_accessor :iso_currency_code
23
23
 
24
- # The spend power customization id.
24
+ # The spend power customization id. This is used to determine the timeframe and other metadata for the spend power.
25
25
  attr_accessor :customization_id
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
- :'access_token' => :'access_token',
31
- :'remote_account_id' => :'remote_account_id',
30
+ :'account_id' => :'account_id',
31
+ :'iso_currency_code' => :'iso_currency_code',
32
32
  :'customization_id' => :'customization_id'
33
33
  }
34
34
  end
@@ -41,8 +41,8 @@ module FuseClient
41
41
  # Attribute type mapping.
42
42
  def self.openapi_types
43
43
  {
44
- :'access_token' => :'String',
45
- :'remote_account_id' => :'String',
44
+ :'account_id' => :'String',
45
+ :'iso_currency_code' => :'String',
46
46
  :'customization_id' => :'String'
47
47
  }
48
48
  end
@@ -68,12 +68,12 @@ module FuseClient
68
68
  h[k.to_sym] = v
69
69
  }
70
70
 
71
- if attributes.key?(:'access_token')
72
- self.access_token = attributes[:'access_token']
71
+ if attributes.key?(:'account_id')
72
+ self.account_id = attributes[:'account_id']
73
73
  end
74
74
 
75
- if attributes.key?(:'remote_account_id')
76
- self.remote_account_id = attributes[:'remote_account_id']
75
+ if attributes.key?(:'iso_currency_code')
76
+ self.iso_currency_code = attributes[:'iso_currency_code']
77
77
  end
78
78
 
79
79
  if attributes.key?(:'customization_id')
@@ -85,12 +85,12 @@ module FuseClient
85
85
  # @return Array for valid properties with the reasons
86
86
  def list_invalid_properties
87
87
  invalid_properties = Array.new
88
- if @access_token.nil?
89
- invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
88
+ if @account_id.nil?
89
+ invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
90
90
  end
91
91
 
92
- if @remote_account_id.nil?
93
- invalid_properties.push('invalid value for "remote_account_id", remote_account_id cannot be nil.')
92
+ if @iso_currency_code.nil?
93
+ invalid_properties.push('invalid value for "iso_currency_code", iso_currency_code cannot be nil.')
94
94
  end
95
95
 
96
96
  if @customization_id.nil?
@@ -103,8 +103,8 @@ module FuseClient
103
103
  # Check to see if the all the properties in the model are valid
104
104
  # @return true if the model is valid
105
105
  def valid?
106
- return false if @access_token.nil?
107
- return false if @remote_account_id.nil?
106
+ return false if @account_id.nil?
107
+ return false if @iso_currency_code.nil?
108
108
  return false if @customization_id.nil?
109
109
  true
110
110
  end
@@ -114,8 +114,8 @@ module FuseClient
114
114
  def ==(o)
115
115
  return true if self.equal?(o)
116
116
  self.class == o.class &&
117
- access_token == o.access_token &&
118
- remote_account_id == o.remote_account_id &&
117
+ account_id == o.account_id &&
118
+ iso_currency_code == o.iso_currency_code &&
119
119
  customization_id == o.customization_id
120
120
  end
121
121
 
@@ -128,7 +128,7 @@ module FuseClient
128
128
  # Calculates hash code according to all attributes.
129
129
  # @return [Integer] Hash code
130
130
  def hash
131
- [access_token, remote_account_id, customization_id].hash
131
+ [account_id, iso_currency_code, customization_id].hash
132
132
  end
133
133
 
134
134
  # Builds the object from hash
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module FuseClient
17
17
  class CreateSpendPowerResponse
18
- # The id of the created spend power
18
+ # The id of the created spend power.
19
19
  attr_accessor :id
20
20
 
21
21
  # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
@@ -15,7 +15,8 @@ require 'time'
15
15
 
16
16
  module FuseClient
17
17
  class DeleteSpendPowerResponse
18
- attr_accessor :spend_power
18
+ # The id of the deleted spend power
19
+ attr_accessor :id
19
20
 
20
21
  # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
21
22
  attr_accessor :request_id
@@ -23,7 +24,7 @@ module FuseClient
23
24
  # Attribute mapping from ruby-style variable name to JSON key.
24
25
  def self.attribute_map
25
26
  {
26
- :'spend_power' => :'spend_power',
27
+ :'id' => :'id',
27
28
  :'request_id' => :'request_id'
28
29
  }
29
30
  end
@@ -36,7 +37,7 @@ module FuseClient
36
37
  # Attribute type mapping.
37
38
  def self.openapi_types
38
39
  {
39
- :'spend_power' => :'SpendPower',
40
+ :'id' => :'String',
40
41
  :'request_id' => :'String'
41
42
  }
42
43
  end
@@ -62,8 +63,8 @@ module FuseClient
62
63
  h[k.to_sym] = v
63
64
  }
64
65
 
65
- if attributes.key?(:'spend_power')
66
- self.spend_power = attributes[:'spend_power']
66
+ if attributes.key?(:'id')
67
+ self.id = attributes[:'id']
67
68
  end
68
69
 
69
70
  if attributes.key?(:'request_id')
@@ -75,8 +76,8 @@ module FuseClient
75
76
  # @return Array for valid properties with the reasons
76
77
  def list_invalid_properties
77
78
  invalid_properties = Array.new
78
- if @spend_power.nil?
79
- invalid_properties.push('invalid value for "spend_power", spend_power cannot be nil.')
79
+ if @id.nil?
80
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
80
81
  end
81
82
 
82
83
  if @request_id.nil?
@@ -89,7 +90,7 @@ module FuseClient
89
90
  # Check to see if the all the properties in the model are valid
90
91
  # @return true if the model is valid
91
92
  def valid?
92
- return false if @spend_power.nil?
93
+ return false if @id.nil?
93
94
  return false if @request_id.nil?
94
95
  true
95
96
  end
@@ -99,7 +100,7 @@ module FuseClient
99
100
  def ==(o)
100
101
  return true if self.equal?(o)
101
102
  self.class == o.class &&
102
- spend_power == o.spend_power &&
103
+ id == o.id &&
103
104
  request_id == o.request_id
104
105
  end
105
106
 
@@ -112,7 +113,7 @@ module FuseClient
112
113
  # Calculates hash code according to all attributes.
113
114
  # @return [Integer] Hash code
114
115
  def hash
115
- [spend_power, request_id].hash
116
+ [id, request_id].hash
116
117
  end
117
118
 
118
119
  # Builds the object from hash