fuse_client 1.0.38 → 1.0.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/docs/CreateConsumerRiskReportRequest.md +2 -0
  4. data/docs/CreateLinkTokenRequest.md +3 -1
  5. data/docs/CreateLinkTokenRequestSnaptrade.md +18 -0
  6. data/docs/CreateLinkTokenRequestSnaptradeConfig.md +18 -0
  7. data/docs/EnrichedTransaction.md +4 -26
  8. data/docs/ExternalTransactionEvent.md +6 -0
  9. data/docs/FinancialConnectionsAccount.md +2 -0
  10. data/docs/FinancialConnectionsAccountLiability.md +2 -0
  11. data/docs/FuseApi.md +1 -1
  12. data/docs/TransactionToEnrich.md +13 -5
  13. data/lib/fuse_client/configuration.rb +5 -1
  14. data/lib/fuse_client/models/create_consumer_risk_report_request.rb +11 -1
  15. data/lib/fuse_client/models/create_link_token_request.rb +13 -4
  16. data/lib/fuse_client/models/create_link_token_request_snaptrade.rb +220 -0
  17. data/lib/fuse_client/models/create_link_token_request_snaptrade_config.rb +256 -0
  18. data/lib/fuse_client/models/enriched_transaction.rb +17 -158
  19. data/lib/fuse_client/models/external_transaction_event.rb +44 -1
  20. data/lib/fuse_client/models/financial_connections_account.rb +16 -1
  21. data/lib/fuse_client/models/financial_connections_account_balance.rb +2 -0
  22. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +2 -0
  23. data/lib/fuse_client/models/financial_connections_account_liability.rb +16 -1
  24. data/lib/fuse_client/models/transaction_to_enrich.rb +130 -27
  25. data/lib/fuse_client/version.rb +1 -1
  26. data/lib/fuse_client.rb +2 -0
  27. data/spec/models/asset_report_transaction_spec.rb +1 -1
  28. data/spec/models/create_consumer_risk_report_request_spec.rb +6 -0
  29. data/spec/models/create_link_token_request_snaptrade_config_spec.rb +38 -0
  30. data/spec/models/create_link_token_request_snaptrade_spec.rb +34 -0
  31. data/spec/models/create_link_token_request_spec.rb +6 -0
  32. data/spec/models/enriched_transaction_spec.rb +2 -72
  33. data/spec/models/external_transaction_event_spec.rb +22 -0
  34. data/spec/models/financial_connections_account_liability_spec.rb +6 -0
  35. data/spec/models/financial_connections_account_spec.rb +6 -0
  36. data/spec/models/transaction_spec.rb +1 -1
  37. data/spec/models/transaction_to_enrich_spec.rb +32 -4
  38. metadata +20 -13
  39. data/fuse_client-1.0.37.gem +0 -0
@@ -18,6 +18,9 @@ module FuseClient
18
18
  # Remote Id of the account, ie Plaid or Teller account id
19
19
  attr_accessor :remote_id
20
20
 
21
+ # The ISO-4217 currency code of the account.
22
+ attr_accessor :currency
23
+
21
24
  # Uniquely identifies this account across all accounts for a single financial connection. Used for reconnection deduplication. See more information here: https://letsfuse.readme.io/docs/duplicate-accounts
22
25
  attr_accessor :fingerprint
23
26
 
@@ -84,6 +87,7 @@ module FuseClient
84
87
  def self.attribute_map
85
88
  {
86
89
  :'remote_id' => :'remote_id',
90
+ :'currency' => :'currency',
87
91
  :'fingerprint' => :'fingerprint',
88
92
  :'institution' => :'institution',
89
93
  :'mask' => :'mask',
@@ -111,6 +115,7 @@ module FuseClient
111
115
  def self.openapi_types
112
116
  {
113
117
  :'remote_id' => :'String',
118
+ :'currency' => :'String',
114
119
  :'fingerprint' => :'String',
115
120
  :'institution' => :'FinancialConnectionsAccountInstitution',
116
121
  :'mask' => :'String',
@@ -163,6 +168,10 @@ module FuseClient
163
168
  self.remote_id = attributes[:'remote_id']
164
169
  end
165
170
 
171
+ if attributes.key?(:'currency')
172
+ self.currency = attributes[:'currency']
173
+ end
174
+
166
175
  if attributes.key?(:'fingerprint')
167
176
  self.fingerprint = attributes[:'fingerprint']
168
177
  end
@@ -234,6 +243,10 @@ module FuseClient
234
243
  invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
235
244
  end
236
245
 
246
+ if @currency.nil?
247
+ invalid_properties.push('invalid value for "currency", currency cannot be nil.')
248
+ end
249
+
237
250
  if @fingerprint.nil?
238
251
  invalid_properties.push('invalid value for "fingerprint", fingerprint cannot be nil.')
239
252
  end
@@ -257,6 +270,7 @@ module FuseClient
257
270
  # @return true if the model is valid
258
271
  def valid?
259
272
  return false if @remote_id.nil?
273
+ return false if @currency.nil?
260
274
  return false if @fingerprint.nil?
261
275
  return false if @name.nil?
262
276
  return false if @type.nil?
@@ -270,6 +284,7 @@ module FuseClient
270
284
  return true if self.equal?(o)
271
285
  self.class == o.class &&
272
286
  remote_id == o.remote_id &&
287
+ currency == o.currency &&
273
288
  fingerprint == o.fingerprint &&
274
289
  institution == o.institution &&
275
290
  mask == o.mask &&
@@ -296,7 +311,7 @@ module FuseClient
296
311
  # Calculates hash code according to all attributes.
297
312
  # @return [Integer] Hash code
298
313
  def hash
299
- [remote_id, fingerprint, institution, mask, name, type, subtype, balance, remote_data, aprs, interest_rate_percentage, origination_principal_amount, next_payment_due_date, last_payment_date, last_payment_amount, minimum_payment_amount].hash
314
+ [remote_id, currency, fingerprint, institution, mask, name, type, subtype, balance, remote_data, aprs, interest_rate_percentage, origination_principal_amount, next_payment_due_date, last_payment_date, last_payment_amount, minimum_payment_amount].hash
300
315
  end
301
316
 
302
317
  # Builds the object from hash
@@ -18,17 +18,26 @@ module FuseClient
18
18
  # A unique ID for the transaction that to help you tie data back to your systems.
19
19
  attr_accessor :id
20
20
 
21
- # The name of the merchant.
22
- attr_accessor :merchant_name
21
+ # The name of the merchant if available or a description of the transaction.
22
+ attr_accessor :description
23
23
 
24
24
  # The merchant category code.
25
25
  attr_accessor :mcc
26
26
 
27
- # The amount of the transaction in cents, in the currency of the account.
27
+ # The amount of the transaction in cents, in the currency of the account. Must be a positive value. Use the type field to indicate the direction.
28
28
  attr_accessor :amount
29
29
 
30
- # The type of the transaction
31
- attr_accessor :type
30
+ # The direction of the transaction.
31
+ attr_accessor :direction
32
+
33
+ attr_accessor :country_code
34
+
35
+ attr_accessor :iso_currency_code
36
+
37
+ # The date the transaction was posted.
38
+ attr_accessor :date
39
+
40
+ attr_accessor :owner_type
32
41
 
33
42
  class EnumAttributeValidator
34
43
  attr_reader :datatype
@@ -56,10 +65,14 @@ module FuseClient
56
65
  def self.attribute_map
57
66
  {
58
67
  :'id' => :'id',
59
- :'merchant_name' => :'merchant_name',
68
+ :'description' => :'description',
60
69
  :'mcc' => :'mcc',
61
70
  :'amount' => :'amount',
62
- :'type' => :'type'
71
+ :'direction' => :'direction',
72
+ :'country_code' => :'country_code',
73
+ :'iso_currency_code' => :'iso_currency_code',
74
+ :'date' => :'date',
75
+ :'owner_type' => :'owner_type'
63
76
  }
64
77
  end
65
78
 
@@ -72,10 +85,14 @@ module FuseClient
72
85
  def self.openapi_types
73
86
  {
74
87
  :'id' => :'String',
75
- :'merchant_name' => :'String',
88
+ :'description' => :'String',
76
89
  :'mcc' => :'String',
77
90
  :'amount' => :'Float',
78
- :'type' => :'String'
91
+ :'direction' => :'String',
92
+ :'country_code' => :'String',
93
+ :'iso_currency_code' => :'String',
94
+ :'date' => :'String',
95
+ :'owner_type' => :'String'
79
96
  }
80
97
  end
81
98
 
@@ -104,8 +121,8 @@ module FuseClient
104
121
  self.id = attributes[:'id']
105
122
  end
106
123
 
107
- if attributes.key?(:'merchant_name')
108
- self.merchant_name = attributes[:'merchant_name']
124
+ if attributes.key?(:'description')
125
+ self.description = attributes[:'description']
109
126
  end
110
127
 
111
128
  if attributes.key?(:'mcc')
@@ -116,8 +133,30 @@ module FuseClient
116
133
  self.amount = attributes[:'amount']
117
134
  end
118
135
 
119
- if attributes.key?(:'type')
120
- self.type = attributes[:'type']
136
+ if attributes.key?(:'direction')
137
+ self.direction = attributes[:'direction']
138
+ end
139
+
140
+ if attributes.key?(:'country_code')
141
+ self.country_code = attributes[:'country_code']
142
+ else
143
+ self.country_code = 'US'
144
+ end
145
+
146
+ if attributes.key?(:'iso_currency_code')
147
+ self.iso_currency_code = attributes[:'iso_currency_code']
148
+ else
149
+ self.iso_currency_code = 'USD'
150
+ end
151
+
152
+ if attributes.key?(:'date')
153
+ self.date = attributes[:'date']
154
+ end
155
+
156
+ if attributes.key?(:'owner_type')
157
+ self.owner_type = attributes[:'owner_type']
158
+ else
159
+ self.owner_type = 'consumer'
121
160
  end
122
161
  end
123
162
 
@@ -129,8 +168,24 @@ module FuseClient
129
168
  invalid_properties.push('invalid value for "id", id cannot be nil.')
130
169
  end
131
170
 
132
- if @merchant_name.nil?
133
- invalid_properties.push('invalid value for "merchant_name", merchant_name cannot be nil.')
171
+ if @description.nil?
172
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
173
+ end
174
+
175
+ if @description.to_s.length < 1
176
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
177
+ end
178
+
179
+ if @amount.nil?
180
+ invalid_properties.push('invalid value for "amount", amount cannot be nil.')
181
+ end
182
+
183
+ if @amount < 0
184
+ invalid_properties.push('invalid value for "amount", must be greater than or equal to 0.')
185
+ end
186
+
187
+ if @direction.nil?
188
+ invalid_properties.push('invalid value for "direction", direction cannot be nil.')
134
189
  end
135
190
 
136
191
  invalid_properties
@@ -140,20 +195,64 @@ module FuseClient
140
195
  # @return true if the model is valid
141
196
  def valid?
142
197
  return false if @id.nil?
143
- return false if @merchant_name.nil?
144
- type_validator = EnumAttributeValidator.new('String', ["debit", "credit"])
145
- return false unless type_validator.valid?(@type)
198
+ return false if @description.nil?
199
+ return false if @description.to_s.length < 1
200
+ return false if @amount.nil?
201
+ return false if @amount < 0
202
+ return false if @direction.nil?
203
+ direction_validator = EnumAttributeValidator.new('String', ["incoming", "outgoing"])
204
+ return false unless direction_validator.valid?(@direction)
205
+ owner_type_validator = EnumAttributeValidator.new('String', ["consumer", "business"])
206
+ return false unless owner_type_validator.valid?(@owner_type)
146
207
  true
147
208
  end
148
209
 
210
+ # Custom attribute writer method with validation
211
+ # @param [Object] description Value to be assigned
212
+ def description=(description)
213
+ if description.nil?
214
+ fail ArgumentError, 'description cannot be nil'
215
+ end
216
+
217
+ if description.to_s.length < 1
218
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
219
+ end
220
+
221
+ @description = description
222
+ end
223
+
224
+ # Custom attribute writer method with validation
225
+ # @param [Object] amount Value to be assigned
226
+ def amount=(amount)
227
+ if amount.nil?
228
+ fail ArgumentError, 'amount cannot be nil'
229
+ end
230
+
231
+ if amount < 0
232
+ fail ArgumentError, 'invalid value for "amount", must be greater than or equal to 0.'
233
+ end
234
+
235
+ @amount = amount
236
+ end
237
+
238
+ # Custom attribute writer method checking allowed values (enum).
239
+ # @param [Object] direction Object to be assigned
240
+ def direction=(direction)
241
+ validator = EnumAttributeValidator.new('String', ["incoming", "outgoing"])
242
+ unless validator.valid?(direction)
243
+ fail ArgumentError, "invalid value for \"direction\", must be one of #{validator.allowable_values}."
244
+ end
245
+ @direction = direction
246
+ end
247
+
149
248
  # Custom attribute writer method checking allowed values (enum).
150
- # @param [Object] type Object to be assigned
151
- def type=(type)
152
- validator = EnumAttributeValidator.new('String', ["debit", "credit"])
153
- unless validator.valid?(type)
154
- fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
249
+ # @param [Object] owner_type Object to be assigned
250
+ def owner_type=(owner_type)
251
+ validator = EnumAttributeValidator.new('String', ["consumer", "business"])
252
+ unless validator.valid?(owner_type)
253
+ fail ArgumentError, "invalid value for \"owner_type\", must be one of #{validator.allowable_values}."
155
254
  end
156
- @type = type
255
+ @owner_type = owner_type
157
256
  end
158
257
 
159
258
  # Checks equality by comparing each attribute.
@@ -162,10 +261,14 @@ module FuseClient
162
261
  return true if self.equal?(o)
163
262
  self.class == o.class &&
164
263
  id == o.id &&
165
- merchant_name == o.merchant_name &&
264
+ description == o.description &&
166
265
  mcc == o.mcc &&
167
266
  amount == o.amount &&
168
- type == o.type
267
+ direction == o.direction &&
268
+ country_code == o.country_code &&
269
+ iso_currency_code == o.iso_currency_code &&
270
+ date == o.date &&
271
+ owner_type == o.owner_type
169
272
  end
170
273
 
171
274
  # @see the `==` method
@@ -177,7 +280,7 @@ module FuseClient
177
280
  # Calculates hash code according to all attributes.
178
281
  # @return [Integer] Hash code
179
282
  def hash
180
- [id, merchant_name, mcc, amount, type].hash
283
+ [id, description, mcc, amount, direction, country_code, iso_currency_code, date, owner_type].hash
181
284
  end
182
285
 
183
286
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.6.0
11
11
  =end
12
12
 
13
13
  module FuseClient
14
- VERSION = '1.0.38'
14
+ VERSION = '1.0.40'
15
15
  end
data/lib/fuse_client.rb CHANGED
@@ -44,6 +44,8 @@ require 'fuse_client/models/create_entity_response'
44
44
  require 'fuse_client/models/create_link_token_request'
45
45
  require 'fuse_client/models/create_link_token_request_mx'
46
46
  require 'fuse_client/models/create_link_token_request_plaid'
47
+ require 'fuse_client/models/create_link_token_request_snaptrade'
48
+ require 'fuse_client/models/create_link_token_request_snaptrade_config'
47
49
  require 'fuse_client/models/create_link_token_request_teller'
48
50
  require 'fuse_client/models/create_link_token_request_teller_config'
49
51
  require 'fuse_client/models/create_link_token_request_teller_config_account_filter'
@@ -58,7 +58,7 @@ describe FuseClient::AssetReportTransaction do
58
58
  describe 'test attribute "category"' do
59
59
  it 'should work' do
60
60
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
61
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["accessories_store", "accounting_and_bookkeeping", "ach", "acorns", "acupuncture", "adult", "adult_education", "adult_entertainment", "advertising", "advertising_agencies_and_media_buyers", "advertising_and_marketing", "afghan", "african", "agriculture_and_forestry", "airlines_and_aviation_services", "airports", "alcohol_and_bars", "alternative_medicine", "american", "anesthesiologists", "animal_shelter", "antiques", "apartments_condos_and_houses", "apparel_and_fabric_products", "aquarium", "arcades_and_amusement_parks", "architects", "art_and_graphic_design", "art_dealers_and_galleries", "art_restoration", "art_school", "arts_and_crafts", "arts_and_entertainment", "asian", "assisted_living_services", "athletic_fields", "atm", "atms", "auctions", "audiovisual", "australian", "auto_oil_and_lube", "auto_payment", "auto_smog_check", "auto_tires", "auto_transmission", "automation_and_control_systems", "automotive", "bagel_shop", "bakery", "bank_fees", "banking_and_finance", "bar", "barbecue", "baseball", "basketball", "batting_cages", "beaches", "beauty_products", "bed_and_breakfasts", "beer_wine_and_spirits", "benefits", "betterment", "bicycles", "bill", "billiards_and_pool", "billpay", "blood_banks_and_centers", "boarding_houses", "boat", "boat_dealers", "boating", "bookstores", "boutique", "bowling", "brazilian", "breakfast_spot", "breweries", "building_and_land_surveyors", "buildings_and_structures", "burgers", "burrito", "bus_stations", "business", "business_and_strategy_consulting", "business_brokers_and_franchises", "business_services", "cable", "cafe", "cajun", "cameras", "campgrounds_and_rv_parks", "canoes_and_kayaks", "car_and_truck_rentals", "car_appraisers", "car_dealers_and_leasing", "car_parts_and_accessories", "car_service", "car_wash_and_detail", "cardiologists", "cards_and_stationery", "caretakers", "caribbean", "carpenters", "carpet_and_flooring", "cash_advance", "casinos_and_gaming", "catering", "cemetery", "charities_and_non-profits", "charity", "charter_buses", "chase_quickpay", "check", "check_cashing", "chemicals_and_gasses", "childcare", "children", "chinese", "chiropractors", "churches", "circuses_and_carnivals", "classic_and_antique_car", "cleaning", "clothing", "clothing_and_accessories", "coal", "coffee_shop", "coinbase", "collections", "colleges_and_universities", "combat_sports", "commercial_real_estate", "community", "computer_training", "computers", "computers_and_electronics", "computers_and_office_machines", "construction", "construction_supplies", "contractors", "convenience_stores", "corporate_housing", "correctional_institutions", "costumes", "cottages_and_cabins", "counseling_and_therapy", "courts", "creative_services", "credit", "credit_card", "credit_counseling_and_bankruptcy_services", "credit_reporting", "crop_production", "cruises", "cuban", "culinary_lessons_and_schools", "cupcake_shop", "cycling", "dance", "dance_and_music", "dance_halls_and_saloons", "dance_schools", "dating_and_escort", "day_care_and_preschools", "debit", "delis", "dentists", "department_stores", "deposit", "dermatologists", "dessert", "digit", "digital_purchase", "diners", "dining", "direct_mail_and_email_marketing_services", "disabled_persons_services", "discount_stores", "distillery", "distribution", "doctors_and_dentists", "donuts", "doors_and_windows", "driving_schools", "drug_and_alcohol_services", "dwolla", "ear_nose_and_throat", "eastern_european", "education", "electric", "electrical_equipment", "electrical_equipment_and_components", "electricians", "electronics", "emergency_services", "employment_agencies", "engineering", "entertainment", "environmental", "equestrian", "equipment_rental", "ethiopian", "events_and_event_planning", "excess_activity", "expense", "facilities_and_nursing_homes", "fairgrounds_and_rodeos", "falafel", "family_medicine", "farmers_markets", "fast_food", "fee", "fences_fireplaces_and_garage_doors", "filipino", "financial", "financial_planning_and_investments", "fire_stations", "fish_and_chips", "flea_markets", "florists", "food_and_beverage", "food_and_beverage_store", "food_and_drink", "food_truck", "football", "foreign_transaction", "forestry", "forests", "fraternities_and_sororities", "fraud_dispute", "french", "fuel", "fuel_dealer", "fund_raising", "funeral_services", "furniture_and_fixtures", "furniture_and_home_decor", "gardens", "gas", "gas_stations", "gastroenterologists", "gastropub", "general", "general_surgery", "geological", "german", "gift_and_novelty", "gifts", "glass_products", "glasses_and_optometrist", "go_carts", "golf", "goods_and_merchandise", "government_departments_and_agencies", "government_lobbyists", "greek", "gun_ranges", "gym", "gymnastics", "gyms_and_fitness_centers", "hair_removal", "hair_salons_and_barbers", "hardware_and_services", "hardware_store", "health_food", "healthcare", "healthcare_services", "heating_ventilating_and_air_conditioning", "heliports", "hiking", "historic_sites", "hobby_and_collectibles", "hockey", "holding_and_investment_offices", "home", "home_appliances", "home_improvement", "home_inspection_services", "hookah_lounges", "hospitals_clinics_and_medical_centers", "hostels", "hot_air_balloons", "hotel_lounge", "hotels_and_motels", "household", "housewares", "housing_assistance_and_shelters", "human_resources", "hunting_and_fishing", "ice_cream", "immigration", "import_and_export", "income", "indian", "indonesian", "industrial_machinery_and_equipment", "industrial_machinery_and_vehicles", "industrial_supplies", "infrastructure", "insufficient_funds", "insurance", "interest", "interest_charged", "interest_earned", "interior_design", "internal_account_transfer", "internal_medicine", "internet", "internet_cafes", "internet_services", "investment", "italian", "japanese", "jazz_and_blues_cafe", "jewelry_and_watches", "juice_bar", "karaoke", "keep_the_change_savings_program", "kids", "kids'_store", "kitchens", "korean", "lakes", "landmarks", "landscaping_and_gardeners", "late_payment", "latin_american", "laundry_and_garment_services", "law_enforcement", "lawn_and_garden", "leather", "leather_goods", "legal", "libraries", "lighting_fixtures", "limos_and_chauffeurs", "lingerie_store", "livestock_and_animals", "loan", "loans_and_mortgages", "lodges_and_vacation_rentals", "lodging", "logging_and_sawmills", "luggage", "machine_shops", "maintenance_and_repair", "management", "manicures_and_pedicures", "manufacturing", "marine_supplies", "market_research_and_consulting", "masonry", "massage_clinics_and_therapists", "media", "media_production", "medical_supplies_and_labs", "mediterranean", "men's_store", "mental_health", "metal", "metal_products", "metals", "mexican", "middle_eastern", "military", "miniature_golf", "mining", "mobile_homes", "mobile_phones", "monuments_and_memorials", "moroccan", "mosques", "motorcycle_moped_and_scooter_repair", "motorcycles_mopeds_and_scooters", "mountains", "movers", "movie_theatres", "museums", "music_video_and_dvd", "music_and_show_venues", "musical_instruments", "natural_parks", "neurologists", "news_reporting", "newsstands", "night_clubs", "nightlife", "non-metallic_minerals", "nonmetallic_mineral_products", "nurses", "nutritionists", "obstetricians_and_gynecologists", "office", "office_supplies", "oil_and_gas", "oncologists", "online_advertising", "online_subscriptions", "ophthalmologists", "optometrists", "organizations_and_associations", "orthopedic_surgeons", "other", "outdoors", "outlet", "overdraft", "packaging", "paintball", "painting", "paper", "paper_products", "parking", "parks", "party_centers", "pathologists", "pawn_shops", "payment", "paypal", "payroll", "pediatricians", "personal_care", "personal_trainers", "pest_control", "pet", "petroleum", "pets", "pharmacies", "phone", "photography", "photos_and_frames", "physical_therapy", "physicians", "picnic_areas", "piercing", "pizza", "plaid", "plastic_products", "plastic_surgeons", "plastics", "playgrounds", "plumbing", "podiatrists", "police_stations", "pools_and_spas", "portuguese", "post_offices", "pregnancy_and_sexual_health", "primary_and_secondary_schools", "print_tv_radio_and_outdoor_advertising", "printing_and_publishing", "promotional_items", "property_management", "psychiatrists", "psychics_and_astrologers", "psychologists", "public_and_social_services", "public_relations", "public_transportation_services", "race_tracks", "racquet_sports", "racquetball", "radiologists", "rafting", "rail", "real_estate", "real_estate_agents", "real_estate_appraiser", "real_estate_development_and_title_companies", "recreation", "recreation_centers", "refrigeration_and_ice", "refund", "religious", "renewable_energy", "rent", "repair_services", "research", "resorts", "respiratory", "restaurants", "retirement", "ride_share", "rivers", "rock_climbing", "roofers", "rubber", "rubber_products", "running", "rvs_and_motor_homes", "salvage_yards", "sanitary_and_waste_management", "save_as_you_go", "scandinavian", "scientific", "scuba_diving", "seafood", "search_engine_marketing_and_optimization", "security_and_safety", "senior_citizen_services", "service", "service_instruments", "services", "shipping", "shipping_and_freight", "shoe_store", "shopping", "shopping_centers_and_malls", "shops", "skating", "skin_care", "skydiving", "snow_sports", "soccer", "social_clubs", "software", "software_development", "spanish", "spas", "specialty", "sport", "sporting_goods", "sports_and_recreation_camps", "sports_bar", "sports_clubs", "sports_venues", "square", "square_cash", "stadiums_and_arenas", "steakhouses", "stock_brokers", "storage", "strip_club", "student_aid_and_grants", "subscription", "supermarkets_and_groceries", "sushi", "swimming", "swimming_pool_maintenance_and_services", "swimwear", "swiss", "symphony_and_opera", "synagogues", "tailors", "tanning_salons", "tattooing", "tax", "taxes", "taxi", "telecommunication_services", "television", "temple", "tennis", "textiles", "thai", "theatrical_productions", "third_party", "tobacco", "tolls_and_fees", "tourist_information_and_services", "towing", "toys", "transfer", "transfers_and_adjustments", "transport", "transportation", "transportation_centers", "transportation_equipment", "travel", "travel_and_transportation", "travel_agents_and_tour_operators", "tree_service", "turkish", "tutoring_and_educational_services", "upholstery", "urologists", "used_car_dealers", "utilities", "vegan_and_vegetarian", "venmo", "veterinarians", "video_games", "vintage_and_thrift", "vocational_schools", "warehouses_and_wholesale_stores", "water", "water_and_waste_management", "water_sports", "web_design_and_development", "wedding_and_bridal", "welding", "wholesale", "wine_bar", "winery", "wire", "wire_transfer", "withdrawal", "women's_store", "wood_products", "writing_copywriting_and_technical_writing", "yoga_and_pilates", "youth_organizations", "zoo", "-"])
61
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["accessories_store", "accounting_and_bookkeeping", "ach", "acorns", "acupuncture", "adult", "adult_education", "adult_entertainment", "advertising", "advertising_agencies_and_media_buyers", "advertising_and_marketing", "afghan", "african", "agriculture_and_forestry", "airlines_and_aviation_services", "airports", "alcohol_and_bars", "alternative_medicine", "american", "anesthesiologists", "animal_shelter", "antiques", "apartments_condos_and_houses", "apparel_and_fabric_products", "aquarium", "arcades_and_amusement_parks", "architects", "art_and_graphic_design", "art_dealers_and_galleries", "art_restoration", "art_school", "arts_and_crafts", "arts_and_entertainment", "asian", "assisted_living_services", "athletic_fields", "atm", "atms", "auctions", "audiovisual", "australian", "auto_oil_and_lube", "auto_payment", "auto_smog_check", "auto_tires", "auto_transmission", "automation_and_control_systems", "automotive", "bagel_shop", "bakery", "bank_fees", "banking_and_finance", "bar", "barbecue", "baseball", "basketball", "batting_cages", "beaches", "beauty_products", "bed_and_breakfasts", "beer_wine_and_spirits", "benefits", "betterment", "bicycles", "bill", "billiards_and_pool", "billpay", "blood_banks_and_centers", "boarding_houses", "boat", "boat_dealers", "boating", "books_and_supplies", "bookstores", "boutique", "bowling", "brazilian", "breakfast_spot", "breweries", "building_and_land_surveyors", "buildings_and_structures", "burgers", "burrito", "bus_stations", "business", "business_and_strategy_consulting", "business_brokers_and_franchises", "business_services", "cable", "cafe", "cajun", "cameras", "campgrounds_and_rv_parks", "canoes_and_kayaks", "car_and_truck_rentals", "car_appraisers", "car_dealers_and_leasing", "car_parts_and_accessories", "car_service", "car_wash_and_detail", "cardiologists", "cards_and_stationery", "caretakers", "caribbean", "carpenters", "carpet_and_flooring", "cash_advance", "casinos_and_gaming", "catering", "cemetery", "charities_and_non-profits", "charity", "charter_buses", "chase_quickpay", "check", "check_cashing", "chemicals_and_gasses", "childcare", "children", "chinese", "chiropractors", "churches", "circuses_and_carnivals", "classic_and_antique_car", "cleaning", "clothing", "clothing_and_accessories", "coal", "coffee_shop", "coinbase", "collections", "colleges_and_universities", "combat_sports", "commercial_real_estate", "community", "computer_training", "computers", "computers_and_electronics", "computers_and_office_machines", "construction", "construction_supplies", "contractors", "convenience_stores", "corporate_housing", "correctional_institutions", "costumes", "cottages_and_cabins", "counseling_and_therapy", "courts", "creative_services", "credit", "credit_card", "credit_counseling_and_bankruptcy_services", "credit_reporting", "crop_production", "cruises", "cuban", "culinary_lessons_and_schools", "cupcake_shop", "cycling", "dance", "dance_and_music", "dance_halls_and_saloons", "dance_schools", "dating_and_escort", "day_care_and_preschools", "debit", "delis", "dentists", "department_stores", "deposit", "dermatologists", "dessert", "digit", "digital_purchase", "diners", "dining", "direct_mail_and_email_marketing_services", "disabled_persons_services", "discount_stores", "distillery", "distribution", "doctors_and_dentists", "donuts", "doors_and_windows", "driving_schools", "drug_and_alcohol_services", "dwolla", "ear_nose_and_throat", "eastern_european", "education", "electric", "electrical_equipment", "electrical_equipment_and_components", "electricians", "electronics", "emergency_services", "employment_agencies", "engineering", "entertainment", "environmental", "equestrian", "equipment_rental", "ethiopian", "events_and_event_planning", "excess_activity", "expense", "facilities_and_nursing_homes", "fairgrounds_and_rodeos", "falafel", "family_medicine", "farmers_markets", "fast_food", "fee", "fences_fireplaces_and_garage_doors", "filipino", "financial", "financial_planning_and_investments", "fire_stations", "fish_and_chips", "flea_markets", "florists", "food_and_beverage", "food_and_beverage_store", "food_and_drink", "food_truck", "football", "foreign_transaction", "forestry", "forests", "fraternities_and_sororities", "fraud_dispute", "french", "fuel", "fuel_dealer", "fund_raising", "funeral_services", "furniture_and_fixtures", "furniture_and_home_decor", "gardens", "gas", "gas_stations", "gastroenterologists", "gastropub", "general", "general_surgery", "geological", "german", "gift_and_novelty", "gifts", "glass_products", "glasses_and_optometrist", "go_carts", "golf", "goods_and_merchandise", "government_departments_and_agencies", "government_lobbyists", "greek", "gun_ranges", "gym", "gymnastics", "gyms_and_fitness_centers", "hair_removal", "hair_salons_and_barbers", "hardware_and_services", "hardware_store", "health_food", "healthcare", "healthcare_services", "heating_ventilating_and_air_conditioning", "heliports", "hiking", "historic_sites", "hobby_and_collectibles", "hockey", "holding_and_investment_offices", "home", "home_appliances", "home_improvement", "home_inspection_services", "hookah_lounges", "hospitals_clinics_and_medical_centers", "hostels", "hot_air_balloons", "hotel_lounge", "hotels_and_motels", "household", "housewares", "housing_assistance_and_shelters", "human_resources", "hunting_and_fishing", "ice_cream", "immigration", "import_and_export", "income", "indian", "indonesian", "industrial_machinery_and_equipment", "industrial_machinery_and_vehicles", "industrial_supplies", "infrastructure", "insufficient_funds", "insurance", "interest", "interest_charged", "interest_earned", "interior_design", "internal_account_transfer", "internal_medicine", "internet", "internet_cafes", "internet_services", "investment", "italian", "japanese", "jazz_and_blues_cafe", "jewelry_and_watches", "juice_bar", "karaoke", "keep_the_change_savings_program", "kids", "kids'_store", "kitchens", "korean", "lakes", "landmarks", "landscaping_and_gardeners", "late_payment", "latin_american", "laundry_and_garment_services", "law_enforcement", "lawn_and_garden", "leather", "leather_goods", "legal", "libraries", "lighting_fixtures", "limos_and_chauffeurs", "lingerie_store", "livestock_and_animals", "loan", "loans_and_mortgages", "lodges_and_vacation_rentals", "lodging", "logging_and_sawmills", "luggage", "machine_shops", "maintenance_and_repair", "management", "manicures_and_pedicures", "manufacturing", "marine_supplies", "market_research_and_consulting", "masonry", "massage_clinics_and_therapists", "media", "media_production", "medical_supplies_and_labs", "mediterranean", "men's_store", "mental_health", "metal", "metal_products", "metals", "mexican", "middle_eastern", "military", "miniature_golf", "mining", "mobile_homes", "mobile_phones", "monuments_and_memorials", "moroccan", "mosques", "motorcycle_moped_and_scooter_repair", "motorcycles_mopeds_and_scooters", "mountains", "movers", "movie_theatres", "museums", "music_video_and_dvd", "music_and_show_venues", "musical_instruments", "natural_parks", "neurologists", "news_reporting", "newsstands", "night_clubs", "nightlife", "non-metallic_minerals", "nonmetallic_mineral_products", "nurses", "nutritionists", "obstetricians_and_gynecologists", "office", "office_supplies", "oil_and_gas", "oncologists", "online_advertising", "online_subscriptions", "ophthalmologists", "optometrists", "organizations_and_associations", "orthopedic_surgeons", "other", "outdoors", "outlet", "overdraft", "packaging", "paintball", "painting", "paper", "paper_products", "parking", "parks", "party_centers", "pathologists", "pawn_shops", "payment", "paypal", "payroll", "pediatricians", "personal_care", "personal_trainers", "pest_control", "pet", "petroleum", "pets", "pharmacies", "phone", "photography", "photos_and_frames", "physical_therapy", "physicians", "picnic_areas", "piercing", "pizza", "plaid", "plastic_products", "plastic_surgeons", "plastics", "playgrounds", "plumbing", "podiatrists", "police_stations", "pools_and_spas", "portuguese", "post_offices", "pregnancy_and_sexual_health", "primary_and_secondary_schools", "print_tv_radio_and_outdoor_advertising", "printing_and_publishing", "promotional_items", "property_management", "psychiatrists", "psychics_and_astrologers", "psychologists", "public_and_social_services", "public_relations", "public_transportation_services", "race_tracks", "racquet_sports", "racquetball", "radiologists", "rafting", "rail", "real_estate", "real_estate_agents", "real_estate_appraiser", "real_estate_development_and_title_companies", "recreation", "recreation_centers", "refrigeration_and_ice", "refund", "religious", "renewable_energy", "rent", "repair_services", "research", "resorts", "respiratory", "restaurants", "retirement", "ride_share", "rivers", "rock_climbing", "roofers", "rubber", "rubber_products", "running", "rvs_and_motor_homes", "salvage_yards", "sanitary_and_waste_management", "save_as_you_go", "scandinavian", "scientific", "scuba_diving", "seafood", "search_engine_marketing_and_optimization", "security_and_safety", "senior_citizen_services", "service", "service_instruments", "services", "shipping", "shipping_and_freight", "shoe_store", "shopping", "shopping_centers_and_malls", "shops", "skating", "skin_care", "skydiving", "snow_sports", "soccer", "social_clubs", "software", "software_development", "spanish", "spas", "specialty", "sport", "sporting_goods", "sports_and_recreation_camps", "sports_bar", "sports_clubs", "sports_venues", "square", "square_cash", "stadiums_and_arenas", "steakhouses", "stock_brokers", "storage", "strip_club", "student_aid_and_grants", "subscription", "supermarkets_and_groceries", "sushi", "swimming", "swimming_pool_maintenance_and_services", "swimwear", "swiss", "symphony_and_opera", "synagogues", "tailors", "tanning_salons", "tattooing", "tax", "taxes", "taxi", "telecommunication_services", "television", "temple", "tennis", "textiles", "thai", "theatrical_productions", "third_party", "tobacco", "tolls_and_fees", "tourist_information_and_services", "towing", "toys", "transfer", "transfers_and_adjustments", "transport", "transportation", "transportation_centers", "transportation_equipment", "travel", "travel_and_transportation", "travel_agents_and_tour_operators", "tree_service", "turkish", "tutoring_and_educational_services", "upholstery", "urologists", "used_car_dealers", "utilities", "vegan_and_vegetarian", "venmo", "veterinarians", "video_games", "vintage_and_thrift", "vocational_schools", "warehouses_and_wholesale_stores", "water", "water_and_waste_management", "water_sports", "web_design_and_development", "wedding_and_bridal", "welding", "wholesale", "wine_bar", "winery", "wire", "wire_transfer", "withdrawal", "women's_store", "wood_products", "writing_copywriting_and_technical_writing", "yoga_and_pilates", "youth_organizations", "zoo", "-"])
62
62
  # validator.allowable_values.each do |value|
63
63
  # expect { instance.category = value }.not_to raise_error
64
64
  # end
@@ -37,6 +37,12 @@ describe FuseClient::CreateConsumerRiskReportRequest do
37
37
  end
38
38
  end
39
39
 
40
+ describe 'test attribute "end_user_name"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
+ end
44
+ end
45
+
40
46
  describe 'test attribute "customization_id"' do
41
47
  it 'should work' do
42
48
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -0,0 +1,38 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for FuseClient::CreateLinkTokenRequestSnaptradeConfig
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe FuseClient::CreateLinkTokenRequestSnaptradeConfig do
21
+ let(:instance) { FuseClient::CreateLinkTokenRequestSnaptradeConfig.new }
22
+
23
+ describe 'test an instance of CreateLinkTokenRequestSnaptradeConfig' do
24
+ it 'should create an instance of CreateLinkTokenRequestSnaptradeConfig' do
25
+ expect(instance).to be_instance_of(FuseClient::CreateLinkTokenRequestSnaptradeConfig)
26
+ end
27
+ end
28
+ describe 'test attribute "connection_type"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["read", "trade"])
32
+ # validator.allowable_values.each do |value|
33
+ # expect { instance.connection_type = value }.not_to raise_error
34
+ # end
35
+ end
36
+ end
37
+
38
+ end
@@ -0,0 +1,34 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for FuseClient::CreateLinkTokenRequestSnaptrade
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe FuseClient::CreateLinkTokenRequestSnaptrade do
21
+ let(:instance) { FuseClient::CreateLinkTokenRequestSnaptrade.new }
22
+
23
+ describe 'test an instance of CreateLinkTokenRequestSnaptrade' do
24
+ it 'should create an instance of CreateLinkTokenRequestSnaptrade' do
25
+ expect(instance).to be_instance_of(FuseClient::CreateLinkTokenRequestSnaptrade)
26
+ end
27
+ end
28
+ describe 'test attribute "config"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
+ end
32
+ end
33
+
34
+ end
@@ -73,4 +73,10 @@ describe FuseClient::CreateLinkTokenRequest do
73
73
  end
74
74
  end
75
75
 
76
+ describe 'test attribute "snaptrade"' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
79
+ end
80
+ end
81
+
76
82
  end
@@ -37,7 +37,7 @@ describe FuseClient::EnrichedTransaction do
37
37
  end
38
38
  end
39
39
 
40
- describe 'test attribute "name"' do
40
+ describe 'test attribute "merchant_name"' do
41
41
  it 'should work' do
42
42
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
43
  end
@@ -49,80 +49,10 @@ describe FuseClient::EnrichedTransaction do
49
49
  end
50
50
  end
51
51
 
52
- describe 'test attribute "amount"' do
52
+ describe 'test attribute "categories"' do
53
53
  it 'should work' do
54
54
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
55
  end
56
56
  end
57
57
 
58
- describe 'test attribute "category"' do
59
- it 'should work' do
60
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
61
- end
62
- end
63
-
64
- describe 'test attribute "is_bill_pay"' do
65
- it 'should work' do
66
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
- end
68
- end
69
-
70
- describe 'test attribute "is_direct_deposit"' do
71
- it 'should work' do
72
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
73
- end
74
- end
75
-
76
- describe 'test attribute "is_expense"' do
77
- it 'should work' do
78
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
79
- end
80
- end
81
-
82
- describe 'test attribute "is_fee"' do
83
- it 'should work' do
84
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
85
- end
86
- end
87
-
88
- describe 'test attribute "is_income"' do
89
- it 'should work' do
90
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
91
- end
92
- end
93
-
94
- describe 'test attribute "is_international"' do
95
- it 'should work' do
96
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
97
- end
98
- end
99
-
100
- describe 'test attribute "is_overdraft_fee"' do
101
- it 'should work' do
102
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
103
- end
104
- end
105
-
106
- describe 'test attribute "is_payroll_advance"' do
107
- it 'should work' do
108
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
109
- end
110
- end
111
-
112
- describe 'test attribute "is_subscription"' do
113
- it 'should work' do
114
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
115
- end
116
- end
117
-
118
- describe 'test attribute "type"' do
119
- it 'should work' do
120
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
121
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["debit", "credit"])
122
- # validator.allowable_values.each do |value|
123
- # expect { instance.type = value }.not_to raise_error
124
- # end
125
- end
126
- end
127
-
128
58
  end
@@ -53,6 +53,12 @@ describe FuseClient::ExternalTransactionEvent do
53
53
  end
54
54
  end
55
55
 
56
+ describe 'test attribute "country_code"' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
59
+ end
60
+ end
61
+
56
62
  describe 'test attribute "iso_currency_code"' do
57
63
  it 'should work' do
58
64
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -65,6 +71,22 @@ describe FuseClient::ExternalTransactionEvent do
65
71
  end
66
72
  end
67
73
 
74
+ describe 'test attribute "transaction_description"' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
77
+ end
78
+ end
79
+
80
+ describe 'test attribute "transaction_owner_type"' do
81
+ it 'should work' do
82
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
83
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["consumer", "business"])
84
+ # validator.allowable_values.each do |value|
85
+ # expect { instance.transaction_owner_type = value }.not_to raise_error
86
+ # end
87
+ end
88
+ end
89
+
68
90
  describe 'test attribute "merchant_name"' do
69
91
  it 'should work' do
70
92
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -31,6 +31,12 @@ describe FuseClient::FinancialConnectionsAccountLiability do
31
31
  end
32
32
  end
33
33
 
34
+ describe 'test attribute "currency"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
+ end
38
+ end
39
+
34
40
  describe 'test attribute "fingerprint"' do
35
41
  it 'should work' do
36
42
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -31,6 +31,12 @@ describe FuseClient::FinancialConnectionsAccount do
31
31
  end
32
32
  end
33
33
 
34
+ describe 'test attribute "currency"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
+ end
38
+ end
39
+
34
40
  describe 'test attribute "fingerprint"' do
35
41
  it 'should work' do
36
42
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/