fuse_client 1.0.38 → 1.0.41

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 (50) 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/ExchangeFinancialConnectionsPublicTokenResponse.md +4 -0
  9. data/docs/ExternalTransactionEvent.md +6 -0
  10. data/docs/FinancialConnectionDetails.md +3 -1
  11. data/docs/FinancialConnectionDetailsFinicity.md +20 -0
  12. data/docs/FinancialConnectionsAccount.md +2 -0
  13. data/docs/FinancialConnectionsAccountLiability.md +2 -0
  14. data/docs/FuseApi.md +2 -2
  15. data/docs/TransactionToEnrich.md +13 -5
  16. data/lib/fuse_client/configuration.rb +5 -1
  17. data/lib/fuse_client/models/aggregator.rb +9 -8
  18. data/lib/fuse_client/models/create_consumer_risk_report_request.rb +11 -1
  19. data/lib/fuse_client/models/create_link_token_request.rb +13 -4
  20. data/lib/fuse_client/models/create_link_token_request_snaptrade.rb +220 -0
  21. data/lib/fuse_client/models/create_link_token_request_snaptrade_config.rb +256 -0
  22. data/lib/fuse_client/models/enriched_transaction.rb +17 -158
  23. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +46 -1
  24. data/lib/fuse_client/models/external_transaction_event.rb +44 -1
  25. data/lib/fuse_client/models/financial_connection_details.rb +13 -4
  26. data/lib/fuse_client/models/financial_connection_details_finicity.rb +241 -0
  27. data/lib/fuse_client/models/financial_connections_account.rb +16 -1
  28. data/lib/fuse_client/models/financial_connections_account_balance.rb +2 -0
  29. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +2 -0
  30. data/lib/fuse_client/models/financial_connections_account_liability.rb +16 -1
  31. data/lib/fuse_client/models/fuse_api_error_code.rb +4 -1
  32. data/lib/fuse_client/models/transaction_to_enrich.rb +130 -27
  33. data/lib/fuse_client/version.rb +1 -1
  34. data/lib/fuse_client.rb +3 -0
  35. data/spec/models/asset_report_transaction_spec.rb +1 -1
  36. data/spec/models/create_consumer_risk_report_request_spec.rb +6 -0
  37. data/spec/models/create_link_token_request_snaptrade_config_spec.rb +38 -0
  38. data/spec/models/create_link_token_request_snaptrade_spec.rb +34 -0
  39. data/spec/models/create_link_token_request_spec.rb +6 -0
  40. data/spec/models/enriched_transaction_spec.rb +2 -72
  41. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +12 -0
  42. data/spec/models/external_transaction_event_spec.rb +22 -0
  43. data/spec/models/financial_connection_details_finicity_spec.rb +40 -0
  44. data/spec/models/financial_connection_details_spec.rb +6 -0
  45. data/spec/models/financial_connections_account_liability_spec.rb +6 -0
  46. data/spec/models/financial_connections_account_spec.rb +6 -0
  47. data/spec/models/transaction_spec.rb +1 -1
  48. data/spec/models/transaction_to_enrich_spec.rb +32 -4
  49. metadata +24 -13
  50. data/fuse_client-1.0.37.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 351d5ff5a46eaedee35749af460dc341d897dc6a9bc42e00b66316d57df26a8a
4
- data.tar.gz: 2e1b7c5b760b4adf13f5458a5c4ea04be6c90108be98f0d4501946ea29574c03
3
+ metadata.gz: a492d2f9e47ad292cf3bf5b39bc639e8cd84e2b16e0ffcd1f1a18892f0fce774
4
+ data.tar.gz: 4f74fa2de057c81976c219b732b81f9d5794c021c9bf76967c070a4785f2f031
5
5
  SHA512:
6
- metadata.gz: 4dcae290bc05b205832431c53b1375c8be1cfea1e2a18eff5dd59bb5b5b7c8b2854076d87fababc6a97583d75739a4b44fec6033858f6b65917a0c103d10873a
7
- data.tar.gz: d8926148e2f571491c9e8f4e79e1df937dabe48c56aea0a94803250e4c6bde81d2203c7abcef2317897ded6fec3cd0fb924b71f9c51737ffef5e2222de513afb
6
+ metadata.gz: 8a9fc8c27c141c0afe852afa4c9e545af02a38ce80cae2fee56900024be6ab61dc7a85336dc9322257d9687a489ac81d30ce4f7974410c645a69c99f631f60f9
7
+ data.tar.gz: ad609b8f0b24793fe29c901d125f86d8eb9a97d8ef4b6be353c20cdec2bc473360333d2acc3fef9c3f3eedf4e16dd0f9681d09f379545e966f74a5f695644fad
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fuse_client (1.0.38)
4
+ fuse_client (1.0.41)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -40,7 +40,7 @@ GEM
40
40
  rspec-expectations (3.12.3)
41
41
  diff-lcs (>= 1.2.0, < 2.0)
42
42
  rspec-support (~> 3.12.0)
43
- rspec-mocks (3.12.5)
43
+ rspec-mocks (3.12.6)
44
44
  diff-lcs (>= 1.2.0, < 2.0)
45
45
  rspec-support (~> 3.12.0)
46
46
  rspec-support (3.12.1)
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **account_id** | **String** | A unique ID representing the bank account that this risk report 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 consumer risk report. | |
8
8
  | **iso_currency_code** | **String** | The ISO-4217 currency code of the transaction | |
9
+ | **end_user_name** | **String** | The name of the end user associated with this consumer risk report. | [optional] |
9
10
  | **customization_id** | **String** | This is used to determine the timeframe and other metadata for the consumer risk report. | |
10
11
 
11
12
  ## Example
@@ -16,6 +17,7 @@ require 'fuse_client'
16
17
  instance = FuseClient::CreateConsumerRiskReportRequest.new(
17
18
  account_id: null,
18
19
  iso_currency_code: null,
20
+ end_user_name: null,
19
21
  customization_id: null
20
22
  )
21
23
  ```
@@ -12,6 +12,7 @@
12
12
  | **mx** | [**CreateLinkTokenRequestMx**](CreateLinkTokenRequestMx.md) | | [optional] |
13
13
  | **plaid** | [**CreateLinkTokenRequestPlaid**](CreateLinkTokenRequestPlaid.md) | | [optional] |
14
14
  | **teller** | [**CreateLinkTokenRequestTeller**](CreateLinkTokenRequestTeller.md) | | [optional] |
15
+ | **snaptrade** | [**CreateLinkTokenRequestSnaptrade**](CreateLinkTokenRequestSnaptrade.md) | | [optional] |
15
16
 
16
17
  ## Example
17
18
 
@@ -26,7 +27,8 @@ instance = FuseClient::CreateLinkTokenRequest.new(
26
27
  webhook_url: null,
27
28
  mx: null,
28
29
  plaid: null,
29
- teller: null
30
+ teller: null,
31
+ snaptrade: null
30
32
  )
31
33
  ```
32
34
 
@@ -0,0 +1,18 @@
1
+ # FuseClient::CreateLinkTokenRequestSnaptrade
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **config** | [**CreateLinkTokenRequestSnaptradeConfig**](CreateLinkTokenRequestSnaptradeConfig.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'fuse_client'
13
+
14
+ instance = FuseClient::CreateLinkTokenRequestSnaptrade.new(
15
+ config: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # FuseClient::CreateLinkTokenRequestSnaptradeConfig
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **connection_type** | **String** | SnapTrade connection type. Defaults to &#39;read&#39; | [optional][default to &#39;read&#39;] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'fuse_client'
13
+
14
+ instance = FuseClient::CreateLinkTokenRequestSnaptradeConfig.new(
15
+ connection_type: null
16
+ )
17
+ ```
18
+
@@ -6,20 +6,9 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | A original ID for the transaction that to help you tie data back to your systems. | |
8
8
  | **merchant_id** | **String** | A Fuse defined, unique ID for the merchant associated with this transaction. | [optional] |
9
- | **name** | **String** | The original or enhanced name of the merchant. | [optional] |
9
+ | **merchant_name** | **String** | The name of the merchant. | [optional] |
10
10
  | **logo** | [**MerchantLogo**](MerchantLogo.md) | | [optional] |
11
- | **amount** | **Float** | The amount of the transaction in cents, in the currency of the account. | [optional] |
12
- | **category** | [**TransactionCategory**](TransactionCategory.md) | | [optional] |
13
- | **is_bill_pay** | **Boolean** | Whether the transaction is a bill pay. | [optional] |
14
- | **is_direct_deposit** | **Boolean** | Whether the transaction is a direct deposit. | [optional] |
15
- | **is_expense** | **Boolean** | Whether the transaction is a an expense | [optional] |
16
- | **is_fee** | **Boolean** | Whether the transaction is a fee. | [optional] |
17
- | **is_income** | **Boolean** | Whether the transaction is income. | [optional] |
18
- | **is_international** | **Boolean** | Whether the transaction is international. | [optional] |
19
- | **is_overdraft_fee** | **Boolean** | This indicates whether the transaction represents an overdraft fee. | [optional] |
20
- | **is_payroll_advance** | **Boolean** | Whether the transaction is a payroll advance. | [optional] |
21
- | **is_subscription** | **Boolean** | Whether the transaction is a subscription. | [optional] |
22
- | **type** | **String** | The type of transaction | [optional] |
11
+ | **categories** | **Array&lt;String&gt;** | Hierarchical transaction categories: Each element narrows down from parent to nested sub-categories. Example: [&#39;personnel&#39;, &#39;employee&#39;, &#39;payroll&#39;]. | [optional] |
23
12
 
24
13
  ## Example
25
14
 
@@ -29,20 +18,9 @@ require 'fuse_client'
29
18
  instance = FuseClient::EnrichedTransaction.new(
30
19
  id: null,
31
20
  merchant_id: null,
32
- name: null,
21
+ merchant_name: null,
33
22
  logo: null,
34
- amount: null,
35
- category: null,
36
- is_bill_pay: null,
37
- is_direct_deposit: null,
38
- is_expense: null,
39
- is_fee: null,
40
- is_income: null,
41
- is_international: null,
42
- is_overdraft_fee: null,
43
- is_payroll_advance: null,
44
- is_subscription: null,
45
- type: null
23
+ categories: null
46
24
  )
47
25
  ```
48
26
 
@@ -6,6 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **access_token** | **String** | Token used for querying data on the user, ie account details, balances etc. This does NOT expire and should be stored securely. | |
8
8
  | **financial_connection_id** | **String** | The id of the new financial connection. Every webhook will be sent with this id. Use this id when calling the GET /financial_connection/${financial_connection_id} endpoint. | |
9
+ | **institution** | [**FinancialInstitution**](FinancialInstitution.md) | | [optional] |
10
+ | **aggregator** | [**Aggregator**](Aggregator.md) | | |
9
11
  | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
10
12
 
11
13
  ## Example
@@ -16,6 +18,8 @@ require 'fuse_client'
16
18
  instance = FuseClient::ExchangeFinancialConnectionsPublicTokenResponse.new(
17
19
  access_token: null,
18
20
  financial_connection_id: null,
21
+ institution: null,
22
+ aggregator: null,
19
23
  request_id: null
20
24
  )
21
25
  ```
@@ -8,8 +8,11 @@
8
8
  | **event_type** | **String** | | |
9
9
  | **status** | [**ExternalTransactionEventStatus**](ExternalTransactionEventStatus.md) | | |
10
10
  | **amount** | **Float** | Amount in cents associated with the transaction. Use positive values to represent money going out and negative to represent money going in. | |
11
+ | **country_code** | **String** | | [optional][default to &#39;US&#39;] |
11
12
  | **iso_currency_code** | **String** | The ISO-4217 currency code. | |
12
13
  | **transaction_type** | [**TransactionEventType**](TransactionEventType.md) | | [optional] |
14
+ | **transaction_description** | **String** | | [optional] |
15
+ | **transaction_owner_type** | **String** | | [optional][default to &#39;consumer&#39;] |
13
16
  | **merchant_name** | **String** | | |
14
17
  | **timestamp** | **String** | Datetime of the transaction In ISO-8601 format | |
15
18
  | **balance** | **Float** | The running balance of the account after the transaction has occurred, in cents | [optional] |
@@ -24,8 +27,11 @@ instance = FuseClient::ExternalTransactionEvent.new(
24
27
  event_type: null,
25
28
  status: null,
26
29
  amount: null,
30
+ country_code: null,
27
31
  iso_currency_code: null,
28
32
  transaction_type: null,
33
+ transaction_description: null,
34
+ transaction_owner_type: null,
29
35
  merchant_name: null,
30
36
  timestamp: null,
31
37
  balance: null
@@ -19,6 +19,7 @@
19
19
  | **finverse** | [**FinancialConnectionDetailsFinverse**](FinancialConnectionDetailsFinverse.md) | | [optional] |
20
20
  | **basiq** | [**FinancialConnectionDetailsBasiq**](FinancialConnectionDetailsBasiq.md) | | [optional] |
21
21
  | **belvo** | [**FinancialConnectionDetailsBelvo**](FinancialConnectionDetailsBelvo.md) | | [optional] |
22
+ | **finicity** | [**FinancialConnectionDetailsFinicity**](FinancialConnectionDetailsFinicity.md) | | [optional] |
22
23
 
23
24
  ## Example
24
25
 
@@ -40,7 +41,8 @@ instance = FuseClient::FinancialConnectionDetails.new(
40
41
  truelayer: null,
41
42
  finverse: null,
42
43
  basiq: null,
43
- belvo: null
44
+ belvo: null,
45
+ finicity: null
44
46
  )
45
47
  ```
46
48
 
@@ -0,0 +1,20 @@
1
+ # FuseClient::FinancialConnectionDetailsFinicity
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **customer_id** | **String** | The identifier of the customer for Finicity. | |
8
+ | **institution_login_id** | **String** | The Finicity institution login id. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'fuse_client'
14
+
15
+ instance = FuseClient::FinancialConnectionDetailsFinicity.new(
16
+ customer_id: null,
17
+ institution_login_id: null
18
+ )
19
+ ```
20
+
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **remote_id** | **String** | Remote Id of the account, ie Plaid or Teller account id | |
8
+ | **currency** | **String** | The ISO-4217 currency code of the account. | |
8
9
  | **fingerprint** | **String** | 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 | |
9
10
  | **institution** | [**FinancialConnectionsAccountInstitution**](FinancialConnectionsAccountInstitution.md) | | [optional] |
10
11
  | **mask** | **String** | The partial account number. | [optional] |
@@ -21,6 +22,7 @@ require 'fuse_client'
21
22
 
22
23
  instance = FuseClient::FinancialConnectionsAccount.new(
23
24
  remote_id: null,
25
+ currency: null,
24
26
  fingerprint: null,
25
27
  institution: null,
26
28
  mask: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **remote_id** | **String** | Remote Id of the account, ie Plaid or Teller account id | |
8
+ | **currency** | **String** | The ISO-4217 currency code of the account. | |
8
9
  | **fingerprint** | **String** | 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 | |
9
10
  | **institution** | [**FinancialConnectionsAccountInstitution**](FinancialConnectionsAccountInstitution.md) | | [optional] |
10
11
  | **mask** | **String** | The partial account number. | [optional] |
@@ -28,6 +29,7 @@ require 'fuse_client'
28
29
 
29
30
  instance = FuseClient::FinancialConnectionsAccountLiability.new(
30
31
  remote_id: null,
32
+ currency: null,
31
33
  fingerprint: null,
32
34
  institution: null,
33
35
  mask: null,
data/docs/FuseApi.md CHANGED
@@ -451,7 +451,7 @@ end
451
451
 
452
452
  api_instance = FuseClient::FuseApi.new
453
453
  opts = {
454
- create_session_request: FuseClient::CreateSessionRequest.new({supported_financial_institution_aggregators: [FuseClient::Aggregator::PLAID], products: [FuseClient::Product::ACCOUNT_DETAILS], entity: FuseClient::Entity.new({id: 'id_example'})}) # CreateSessionRequest |
454
+ create_session_request: FuseClient::CreateSessionRequest.new({supported_financial_institution_aggregators: [FuseClient::Aggregator::BASIQ], products: [FuseClient::Product::ACCOUNT_DETAILS], entity: FuseClient::Entity.new({id: 'id_example'})}) # CreateSessionRequest |
455
455
  }
456
456
 
457
457
  begin
@@ -603,7 +603,7 @@ api_instance = FuseClient::FuseApi.new
603
603
  fuse_client_id = 'fuse_client_id_example' # String |
604
604
  fuse_api_key = 'fuse_api_key_example' # String |
605
605
  opts = {
606
- enrich_transactions_request: FuseClient::EnrichTransactionsRequest.new({transactions: [FuseClient::TransactionToEnrich.new({id: 'id_example', merchant_name: 'merchant_name_example'})]}) # EnrichTransactionsRequest |
606
+ enrich_transactions_request: FuseClient::EnrichTransactionsRequest.new({transactions: [FuseClient::TransactionToEnrich.new({id: 'id_example', description: 'description_example', amount: 3.56, direction: 'incoming'})]}) # EnrichTransactionsRequest |
607
607
  }
608
608
 
609
609
  begin
@@ -5,10 +5,14 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | A unique ID for the transaction that to help you tie data back to your systems. | |
8
- | **merchant_name** | **String** | The name of the merchant. | |
8
+ | **description** | **String** | The name of the merchant if available or a description of the transaction. | |
9
9
  | **mcc** | **String** | The merchant category code. | [optional] |
10
- | **amount** | **Float** | The amount of the transaction in cents, in the currency of the account. | [optional] |
11
- | **type** | **String** | The type of the transaction | [optional] |
10
+ | **amount** | **Float** | 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. | |
11
+ | **direction** | **String** | The direction of the transaction. | |
12
+ | **country_code** | **String** | | [optional][default to &#39;US&#39;] |
13
+ | **iso_currency_code** | **String** | | [optional][default to &#39;USD&#39;] |
14
+ | **date** | **String** | The date the transaction was posted. | [optional] |
15
+ | **owner_type** | **String** | | [optional][default to &#39;consumer&#39;] |
12
16
 
13
17
  ## Example
14
18
 
@@ -17,10 +21,14 @@ require 'fuse_client'
17
21
 
18
22
  instance = FuseClient::TransactionToEnrich.new(
19
23
  id: null,
20
- merchant_name: null,
24
+ description: null,
21
25
  mcc: null,
22
26
  amount: null,
23
- type: null
27
+ direction: null,
28
+ country_code: null,
29
+ iso_currency_code: null,
30
+ date: null,
31
+ owner_type: null
24
32
  )
25
33
  ```
26
34
 
@@ -422,7 +422,11 @@ module FuseClient
422
422
  [
423
423
  {
424
424
  url: "https://sandbox-api.letsfuse.com",
425
- description: "sandbox",
425
+ description: "Fuse sandbox API server",
426
+ },
427
+ {
428
+ url: "https://api.letsfuse.com",
429
+ description: "Fuse production API server",
426
430
  }
427
431
  ]
428
432
  end
@@ -15,19 +15,20 @@ require 'time'
15
15
 
16
16
  module FuseClient
17
17
  class Aggregator
18
- PLAID = "plaid".freeze
19
- TELLER = "teller".freeze
20
- MX = "mx".freeze
21
- SNAPTRADE = "snaptrade".freeze
18
+ BASIQ = "basiq".freeze
19
+ BELVO = "belvo".freeze
20
+ FINICITY = "finicity".freeze
21
+ FINVERSE = "finverse".freeze
22
22
  FLINKS = "flinks".freeze
23
23
  MONO = "mono".freeze
24
+ MX = "mx".freeze
25
+ PLAID = "plaid".freeze
26
+ SNAPTRADE = "snaptrade".freeze
27
+ TELLER = "teller".freeze
24
28
  TRUELAYER = "truelayer".freeze
25
- FINVERSE = "finverse".freeze
26
- BASIQ = "basiq".freeze
27
- BELVO = "belvo".freeze
28
29
 
29
30
  def self.all_vars
30
- @all_vars ||= [PLAID, TELLER, MX, SNAPTRADE, FLINKS, MONO, TRUELAYER, FINVERSE, BASIQ, BELVO].freeze
31
+ @all_vars ||= [BASIQ, BELVO, FINICITY, FINVERSE, FLINKS, MONO, MX, PLAID, SNAPTRADE, TELLER, TRUELAYER].freeze
31
32
  end
32
33
 
33
34
  # Builds the enum from string
@@ -21,6 +21,9 @@ module FuseClient
21
21
  # The ISO-4217 currency code of the transaction
22
22
  attr_accessor :iso_currency_code
23
23
 
24
+ # The name of the end user associated with this consumer risk report.
25
+ attr_accessor :end_user_name
26
+
24
27
  # This is used to determine the timeframe and other metadata for the consumer risk report.
25
28
  attr_accessor :customization_id
26
29
 
@@ -29,6 +32,7 @@ module FuseClient
29
32
  {
30
33
  :'account_id' => :'account_id',
31
34
  :'iso_currency_code' => :'iso_currency_code',
35
+ :'end_user_name' => :'end_user_name',
32
36
  :'customization_id' => :'customization_id'
33
37
  }
34
38
  end
@@ -43,6 +47,7 @@ module FuseClient
43
47
  {
44
48
  :'account_id' => :'String',
45
49
  :'iso_currency_code' => :'String',
50
+ :'end_user_name' => :'String',
46
51
  :'customization_id' => :'String'
47
52
  }
48
53
  end
@@ -76,6 +81,10 @@ module FuseClient
76
81
  self.iso_currency_code = attributes[:'iso_currency_code']
77
82
  end
78
83
 
84
+ if attributes.key?(:'end_user_name')
85
+ self.end_user_name = attributes[:'end_user_name']
86
+ end
87
+
79
88
  if attributes.key?(:'customization_id')
80
89
  self.customization_id = attributes[:'customization_id']
81
90
  end
@@ -116,6 +125,7 @@ module FuseClient
116
125
  self.class == o.class &&
117
126
  account_id == o.account_id &&
118
127
  iso_currency_code == o.iso_currency_code &&
128
+ end_user_name == o.end_user_name &&
119
129
  customization_id == o.customization_id
120
130
  end
121
131
 
@@ -128,7 +138,7 @@ module FuseClient
128
138
  # Calculates hash code according to all attributes.
129
139
  # @return [Integer] Hash code
130
140
  def hash
131
- [account_id, iso_currency_code, customization_id].hash
141
+ [account_id, iso_currency_code, end_user_name, customization_id].hash
132
142
  end
133
143
 
134
144
  # Builds the object from hash
@@ -35,6 +35,8 @@ module FuseClient
35
35
 
36
36
  attr_accessor :teller
37
37
 
38
+ attr_accessor :snaptrade
39
+
38
40
  # Attribute mapping from ruby-style variable name to JSON key.
39
41
  def self.attribute_map
40
42
  {
@@ -45,7 +47,8 @@ module FuseClient
45
47
  :'webhook_url' => :'webhook_url',
46
48
  :'mx' => :'mx',
47
49
  :'plaid' => :'plaid',
48
- :'teller' => :'teller'
50
+ :'teller' => :'teller',
51
+ :'snaptrade' => :'snaptrade'
49
52
  }
50
53
  end
51
54
 
@@ -64,7 +67,8 @@ module FuseClient
64
67
  :'webhook_url' => :'String',
65
68
  :'mx' => :'CreateLinkTokenRequestMx',
66
69
  :'plaid' => :'CreateLinkTokenRequestPlaid',
67
- :'teller' => :'CreateLinkTokenRequestTeller'
70
+ :'teller' => :'CreateLinkTokenRequestTeller',
71
+ :'snaptrade' => :'CreateLinkTokenRequestSnaptrade'
68
72
  }
69
73
  end
70
74
 
@@ -120,6 +124,10 @@ module FuseClient
120
124
  if attributes.key?(:'teller')
121
125
  self.teller = attributes[:'teller']
122
126
  end
127
+
128
+ if attributes.key?(:'snaptrade')
129
+ self.snaptrade = attributes[:'snaptrade']
130
+ end
123
131
  end
124
132
 
125
133
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -167,7 +175,8 @@ module FuseClient
167
175
  webhook_url == o.webhook_url &&
168
176
  mx == o.mx &&
169
177
  plaid == o.plaid &&
170
- teller == o.teller
178
+ teller == o.teller &&
179
+ snaptrade == o.snaptrade
171
180
  end
172
181
 
173
182
  # @see the `==` method
@@ -179,7 +188,7 @@ module FuseClient
179
188
  # Calculates hash code according to all attributes.
180
189
  # @return [Integer] Hash code
181
190
  def hash
182
- [institution_id, entity, client_name, session_client_secret, webhook_url, mx, plaid, teller].hash
191
+ [institution_id, entity, client_name, session_client_secret, webhook_url, mx, plaid, teller, snaptrade].hash
183
192
  end
184
193
 
185
194
  # Builds the object from hash