fuse_client 1.0.40 → 1.0.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +4 -0
  4. data/docs/FinancialConnectionData.md +1 -1
  5. data/docs/FinancialConnectionDetails.md +3 -1
  6. data/docs/FinancialConnectionDetailsFinicity.md +20 -0
  7. data/docs/FinancialConnectionsAccountDetails.md +1 -1
  8. data/docs/FinancialConnectionsAccountDetailsAccountNumber.md +1 -1
  9. data/docs/FuseApi.md +7 -84
  10. data/docs/Transaction.md +1 -1
  11. data/lib/fuse_client/api/fuse_api.rb +10 -67
  12. data/lib/fuse_client/configuration.rb +32 -11
  13. data/lib/fuse_client/models/aggregator.rb +9 -8
  14. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +46 -1
  15. data/lib/fuse_client/models/financial_connection_data.rb +1 -5
  16. data/lib/fuse_client/models/financial_connection_details.rb +13 -4
  17. data/lib/fuse_client/models/{fin_ql_top_merchants_feature_inner.rb → financial_connection_details_finicity.rb} +29 -25
  18. data/lib/fuse_client/models/financial_connections_account.rb +1 -0
  19. data/lib/fuse_client/models/financial_connections_account_balance.rb +2 -0
  20. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +2 -0
  21. data/lib/fuse_client/models/financial_connections_account_details.rb +0 -5
  22. data/lib/fuse_client/models/financial_connections_account_details_account_number.rb +5 -0
  23. data/lib/fuse_client/models/financial_connections_account_liability.rb +1 -0
  24. data/lib/fuse_client/models/fuse_api_aggregator_error.rb +5 -0
  25. data/lib/fuse_client/models/fuse_api_error_code.rb +4 -1
  26. data/lib/fuse_client/models/transaction.rb +1 -1
  27. data/lib/fuse_client/version.rb +1 -1
  28. data/lib/fuse_client.rb +1 -20
  29. data/spec/api/fuse_api_spec.rb +1 -12
  30. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +12 -0
  31. data/spec/models/{fin_ql_prompt_response_spec.rb → financial_connection_details_finicity_spec.rb} +8 -8
  32. data/spec/models/financial_connection_details_spec.rb +6 -0
  33. metadata +6 -82
  34. data/docs/FinQLComparisonFeature.md +0 -26
  35. data/docs/FinQLFeature.md +0 -61
  36. data/docs/FinQLFeatureOneOf.md +0 -18
  37. data/docs/FinQLFeatureOneOf1.md +0 -18
  38. data/docs/FinQLFeatureOneOf2.md +0 -18
  39. data/docs/FinQLFeatureOneOf3.md +0 -18
  40. data/docs/FinQLFeatureOneOf4.md +0 -18
  41. data/docs/FinQLFeatureOneOf5.md +0 -18
  42. data/docs/FinQLFeatureOneOf6.md +0 -18
  43. data/docs/FinQLFeatureOneOf7.md +0 -18
  44. data/docs/FinQLFeatureRequest.md +0 -15
  45. data/docs/FinQLFrequencyFeature.md +0 -20
  46. data/docs/FinQLIndividualMerchantFeature.md +0 -20
  47. data/docs/FinQLInterestFeature.md +0 -18
  48. data/docs/FinQLMerchantCategoriesFeatureInner.md +0 -20
  49. data/docs/FinQLMerchantCategoriesFeatureInnerResultInner.md +0 -20
  50. data/docs/FinQLPromptRequest.md +0 -22
  51. data/docs/FinQLPromptResponse.md +0 -20
  52. data/docs/FinQLTimeBasedFeatureInner.md +0 -20
  53. data/docs/FinQLTopMerchantsFeatureInner.md +0 -22
  54. data/lib/fuse_client/models/fin_ql_comparison_feature.rb +0 -255
  55. data/lib/fuse_client/models/fin_ql_feature.rb +0 -111
  56. data/lib/fuse_client/models/fin_ql_feature_one_of.rb +0 -219
  57. data/lib/fuse_client/models/fin_ql_feature_one_of1.rb +0 -219
  58. data/lib/fuse_client/models/fin_ql_feature_one_of2.rb +0 -221
  59. data/lib/fuse_client/models/fin_ql_feature_one_of3.rb +0 -219
  60. data/lib/fuse_client/models/fin_ql_feature_one_of4.rb +0 -219
  61. data/lib/fuse_client/models/fin_ql_feature_one_of5.rb +0 -221
  62. data/lib/fuse_client/models/fin_ql_feature_one_of6.rb +0 -219
  63. data/lib/fuse_client/models/fin_ql_feature_one_of7.rb +0 -221
  64. data/lib/fuse_client/models/fin_ql_feature_request.rb +0 -46
  65. data/lib/fuse_client/models/fin_ql_frequency_feature.rb +0 -262
  66. data/lib/fuse_client/models/fin_ql_individual_merchant_feature.rb +0 -228
  67. data/lib/fuse_client/models/fin_ql_interest_feature.rb +0 -219
  68. data/lib/fuse_client/models/fin_ql_merchant_categories_feature_inner.rb +0 -230
  69. data/lib/fuse_client/models/fin_ql_merchant_categories_feature_inner_result_inner.rb +0 -228
  70. data/lib/fuse_client/models/fin_ql_prompt_request.rb +0 -276
  71. data/lib/fuse_client/models/fin_ql_prompt_response.rb +0 -234
  72. data/lib/fuse_client/models/fin_ql_time_based_feature_inner.rb +0 -228
  73. data/spec/models/fin_ql_comparison_feature_spec.rb +0 -58
  74. data/spec/models/fin_ql_feature_one_of1_spec.rb +0 -34
  75. data/spec/models/fin_ql_feature_one_of2_spec.rb +0 -34
  76. data/spec/models/fin_ql_feature_one_of3_spec.rb +0 -34
  77. data/spec/models/fin_ql_feature_one_of4_spec.rb +0 -34
  78. data/spec/models/fin_ql_feature_one_of5_spec.rb +0 -34
  79. data/spec/models/fin_ql_feature_one_of6_spec.rb +0 -34
  80. data/spec/models/fin_ql_feature_one_of7_spec.rb +0 -34
  81. data/spec/models/fin_ql_feature_one_of_spec.rb +0 -34
  82. data/spec/models/fin_ql_feature_request_spec.rb +0 -28
  83. data/spec/models/fin_ql_feature_spec.rb +0 -31
  84. data/spec/models/fin_ql_frequency_feature_spec.rb +0 -44
  85. data/spec/models/fin_ql_individual_merchant_feature_spec.rb +0 -40
  86. data/spec/models/fin_ql_interest_feature_spec.rb +0 -34
  87. data/spec/models/fin_ql_merchant_categories_feature_inner_result_inner_spec.rb +0 -40
  88. data/spec/models/fin_ql_merchant_categories_feature_inner_spec.rb +0 -40
  89. data/spec/models/fin_ql_prompt_request_spec.rb +0 -46
  90. data/spec/models/fin_ql_time_based_feature_inner_spec.rb +0 -40
  91. data/spec/models/fin_ql_top_merchants_feature_inner_spec.rb +0 -46
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 405c7dda28ecef0c84f7d5139e118bd251b7642653664706b522660e27cbd4c6
4
- data.tar.gz: 804299b0297286305bd7f256061195cfc16c213dafdfc3fd90c76e9a46291d9f
3
+ metadata.gz: 221b46adbe1bdcc95d0ba2d0246f9bc6338da627498ef8742c56f7642f3a1fda
4
+ data.tar.gz: 0a684c082ee681b5f6b4adea5e20576a67b344f798296372ce8fa1d99abd553c
5
5
  SHA512:
6
- metadata.gz: 66c922e7fd3dd49b6ee4eeac05401839f9b0853ec1c375163be10273ecb915d3d4901c0cca7fe321190e9066fc2e531f27ee9716f88a07345f9dad877678d1e6
7
- data.tar.gz: f5b4045c9b26bbbb761548fc9dc6a0c17bd89a4a14fac0088a8fde8ddce48db6d1af86635cad4719a20baa251dd7eed183a7fb6b53478da67ac941397601c57d
6
+ metadata.gz: d829da6bf1ae65b21d824e888a83844f23843278428e2d8175df00c1b7993f18e3fcbccb553181ab31a5ed202841179f31bd024a9252c128660e8daf4b4261f4
7
+ data.tar.gz: 3e76080c050440718aee1e4c85a029d7b03bec290daa15989d71b6c78d26ca818518646a2515ff55fd81ed920ec7928c37ffa86726733125eab59aa8c7b481ca
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fuse_client (1.0.40)
4
+ fuse_client (1.0.42)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -53,7 +53,7 @@ GEM
53
53
  ruby-progressbar (~> 1.7)
54
54
  unicode-display_width (>= 1.4.0, < 1.6)
55
55
  ruby-progressbar (1.13.0)
56
- stringio (3.0.7)
56
+ stringio (3.0.8)
57
57
  typhoeus (1.4.0)
58
58
  ethon (>= 0.9.0)
59
59
  unicode-display_width (1.5.0)
@@ -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
  ```
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | The financial connection id. | |
8
- | **institution_id** | **String** | The Fuse Institution ID associated with the financial connection | |
8
+ | **institution_id** | **String** | The Fuse Institution ID associated with the financial connection | [optional] |
9
9
 
10
10
  ## Example
11
11
 
@@ -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,7 +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
- | **ach** | [**FinancialConnectionsAccountDetailsAch**](FinancialConnectionsAccountDetailsAch.md) | | |
8
+ | **ach** | [**FinancialConnectionsAccountDetailsAch**](FinancialConnectionsAccountDetailsAch.md) | | [optional] |
9
9
  | **account_number** | [**FinancialConnectionsAccountDetailsAccountNumber**](FinancialConnectionsAccountDetailsAccountNumber.md) | | [optional] |
10
10
  | **remote_data** | **Object** | | |
11
11
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **number** | **String** | Unique identifier representing the account, typically referred to as the account number. | [optional] |
7
+ | **number** | **String** | Unique identifier representing the account, typically referred to as the account number. | |
8
8
  | **sort_code** | **String** | A six-digit number used by banks in the United Kingdom and Ireland to identify the branch where the account is held. | [optional] |
9
9
  | **iban** | **String** | International Bank Account Number (IBAN) is an internationally agreed system of identifying bank accounts across national borders to facilitate the communication and processing of cross border transactions. | [optional] |
10
10
  | **swift_bic** | **String** | SWIFT/BIC code is an international identifier used to distinctively recognize a particular bank during financial transactions, such as money transfers. | [optional] |
data/docs/FuseApi.md CHANGED
@@ -13,7 +13,6 @@ All URIs are relative to *https://sandbox-api.letsfuse.com*
13
13
  | [**delete_financial_connection**](FuseApi.md#delete_financial_connection) | **DELETE** /v1/financial_connections/{financial_connection_id_to_delete} | Delete a financial connection |
14
14
  | [**enrich_transactions**](FuseApi.md#enrich_transactions) | **POST** /v1/transactions/enrich | |
15
15
  | [**exchange_financial_connections_public_token**](FuseApi.md#exchange_financial_connections_public_token) | **POST** /v1/financial_connections/public_token/exchange | |
16
- | [**fin_ql_prompt**](FuseApi.md#fin_ql_prompt) | **POST** /v1/finql/prompt | FinQL Prompt |
17
16
  | [**get_asset_report**](FuseApi.md#get_asset_report) | **POST** /v1/financial_connections/asset_report | |
18
17
  | [**get_consumer_risk_report**](FuseApi.md#get_consumer_risk_report) | **GET** /v1/risk_report/consumer/{consumer_risk_report_id} | Get consumer risk report |
19
18
  | [**get_entity**](FuseApi.md#get_entity) | **GET** /v1/entities/{entity_id} | Get entity |
@@ -451,7 +450,7 @@ end
451
450
 
452
451
  api_instance = FuseClient::FuseApi.new
453
452
  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 |
453
+ 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
454
  }
456
455
 
457
456
  begin
@@ -733,84 +732,6 @@ end
733
732
  - **Accept**: application/json
734
733
 
735
734
 
736
- ## fin_ql_prompt
737
-
738
- > <FinQLPromptResponse> fin_ql_prompt(opts)
739
-
740
- FinQL Prompt
741
-
742
- Retrieve information using finQL. Uses data submitted via the /events endpoint. This feature is being built and is not currently available.
743
-
744
- ### Examples
745
-
746
- ```ruby
747
- require 'time'
748
- require 'fuse_client'
749
- # setup authorization
750
- FuseClient.configure do |config|
751
- # Configure API key authorization: fuseApiKey
752
- config.api_key['fuseApiKey'] = 'YOUR API KEY'
753
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
754
- # config.api_key_prefix['fuseApiKey'] = 'Bearer'
755
-
756
- # Configure API key authorization: fuseClientId
757
- config.api_key['fuseClientId'] = 'YOUR API KEY'
758
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
759
- # config.api_key_prefix['fuseClientId'] = 'Bearer'
760
- end
761
-
762
- api_instance = FuseClient::FuseApi.new
763
- opts = {
764
- fin_ql_prompt_request: FuseClient::FinQLPromptRequest.new({prompt: 'prompt_example', account_id: 'account_id_example', feature: FuseClient::FinQLFeatureRequest::TEXT}) # FinQLPromptRequest |
765
- }
766
-
767
- begin
768
- # FinQL Prompt
769
- result = api_instance.fin_ql_prompt(opts)
770
- p result
771
- rescue FuseClient::ApiError => e
772
- puts "Error when calling FuseApi->fin_ql_prompt: #{e}"
773
- end
774
- ```
775
-
776
- #### Using the fin_ql_prompt_with_http_info variant
777
-
778
- This returns an Array which contains the response data, status code and headers.
779
-
780
- > <Array(<FinQLPromptResponse>, Integer, Hash)> fin_ql_prompt_with_http_info(opts)
781
-
782
- ```ruby
783
- begin
784
- # FinQL Prompt
785
- data, status_code, headers = api_instance.fin_ql_prompt_with_http_info(opts)
786
- p status_code # => 2xx
787
- p headers # => { ... }
788
- p data # => <FinQLPromptResponse>
789
- rescue FuseClient::ApiError => e
790
- puts "Error when calling FuseApi->fin_ql_prompt_with_http_info: #{e}"
791
- end
792
- ```
793
-
794
- ### Parameters
795
-
796
- | Name | Type | Description | Notes |
797
- | ---- | ---- | ----------- | ----- |
798
- | **fin_ql_prompt_request** | [**FinQLPromptRequest**](FinQLPromptRequest.md) | | [optional] |
799
-
800
- ### Return type
801
-
802
- [**FinQLPromptResponse**](FinQLPromptResponse.md)
803
-
804
- ### Authorization
805
-
806
- [fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
807
-
808
- ### HTTP request headers
809
-
810
- - **Content-Type**: application/json
811
- - **Accept**: application/json
812
-
813
-
814
735
  ## get_asset_report
815
736
 
816
737
  > <RefreshAssetReportResponse> get_asset_report(opts)
@@ -2021,7 +1942,7 @@ end
2021
1942
 
2022
1943
  ## sync_financial_connections_data
2023
1944
 
2024
- > <SyncFinancialConnectionsDataResponse> sync_financial_connections_data(body)
1945
+ > <SyncFinancialConnectionsDataResponse> sync_financial_connections_data(fuse_verification, body)
2025
1946
 
2026
1947
  Sync financial connections data
2027
1948
 
@@ -2046,11 +1967,12 @@ FuseClient.configure do |config|
2046
1967
  end
2047
1968
 
2048
1969
  api_instance = FuseClient::FuseApi.new
1970
+ fuse_verification = 'fuse_verification_example' # String |
2049
1971
  body = { ... } # Object |
2050
1972
 
2051
1973
  begin
2052
1974
  # Sync financial connections data
2053
- result = api_instance.sync_financial_connections_data(body)
1975
+ result = api_instance.sync_financial_connections_data(fuse_verification, body)
2054
1976
  p result
2055
1977
  rescue FuseClient::ApiError => e
2056
1978
  puts "Error when calling FuseApi->sync_financial_connections_data: #{e}"
@@ -2061,12 +1983,12 @@ end
2061
1983
 
2062
1984
  This returns an Array which contains the response data, status code and headers.
2063
1985
 
2064
- > <Array(<SyncFinancialConnectionsDataResponse>, Integer, Hash)> sync_financial_connections_data_with_http_info(body)
1986
+ > <Array(<SyncFinancialConnectionsDataResponse>, Integer, Hash)> sync_financial_connections_data_with_http_info(fuse_verification, body)
2065
1987
 
2066
1988
  ```ruby
2067
1989
  begin
2068
1990
  # Sync financial connections data
2069
- data, status_code, headers = api_instance.sync_financial_connections_data_with_http_info(body)
1991
+ data, status_code, headers = api_instance.sync_financial_connections_data_with_http_info(fuse_verification, body)
2070
1992
  p status_code # => 2xx
2071
1993
  p headers # => { ... }
2072
1994
  p data # => <SyncFinancialConnectionsDataResponse>
@@ -2079,6 +2001,7 @@ end
2079
2001
 
2080
2002
  | Name | Type | Description | Notes |
2081
2003
  | ---- | ---- | ----------- | ----- |
2004
+ | **fuse_verification** | **String** | | |
2082
2005
  | **body** | **Object** | | |
2083
2006
 
2084
2007
  ### Return type
data/docs/Transaction.md CHANGED
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **remote_id** | **String** | Remote Id of the transaction, ie Plaid or Teller Id | |
8
- | **fingerprint** | **String** | Uniquely identifies this account across all transactions for a single financial connection. Used for reconnection deduplication. This field may or may not be present depending on if a transaction can be uniquely identified. See more information here: https://letsfuse.readme.io/docs/duplicate-accounts | [optional] |
8
+ | **fingerprint** | **String** | Uniquely identifies this transaction across all transactions for a single financial connection. Used for reconnection deduplication. This field may or may not be present depending on if a transaction can be uniquely identified. See more information here: https://letsfuse.readme.io/docs/duplicate-accounts | [optional] |
9
9
  | **remote_account_id** | **String** | Remote Account Id of the transaction, ie Plaid Account Id | |
10
10
  | **amount** | **Float** | Amount in cents associated with the transaction. The format of this value is a double. Positive values when money moves out of the account; negative values when money moves in. For example, debit card purchases are positive; credit card payments, direct deposits, and refunds are negative. | |
11
11
  | **date** | **String** | Date of the transaction (YYYY-MM-DD) | |
@@ -590,70 +590,6 @@ module FuseClient
590
590
  return data, status_code, headers
591
591
  end
592
592
 
593
- # FinQL Prompt
594
- # Retrieve information using finQL. Uses data submitted via the /events endpoint. This feature is being built and is not currently available.
595
- # @param [Hash] opts the optional parameters
596
- # @option opts [FinQLPromptRequest] :fin_ql_prompt_request
597
- # @return [FinQLPromptResponse]
598
- def fin_ql_prompt(opts = {})
599
- data, _status_code, _headers = fin_ql_prompt_with_http_info(opts)
600
- data
601
- end
602
-
603
- # FinQL Prompt
604
- # Retrieve information using finQL. Uses data submitted via the /events endpoint. This feature is being built and is not currently available.
605
- # @param [Hash] opts the optional parameters
606
- # @option opts [FinQLPromptRequest] :fin_ql_prompt_request
607
- # @return [Array<(FinQLPromptResponse, Integer, Hash)>] FinQLPromptResponse data, response status code and response headers
608
- def fin_ql_prompt_with_http_info(opts = {})
609
- if @api_client.config.debugging
610
- @api_client.config.logger.debug 'Calling API: FuseApi.fin_ql_prompt ...'
611
- end
612
- # resource path
613
- local_var_path = '/v1/finql/prompt'
614
-
615
- # query parameters
616
- query_params = opts[:query_params] || {}
617
-
618
- # header parameters
619
- header_params = opts[:header_params] || {}
620
- # HTTP header 'Accept' (if needed)
621
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
622
- # HTTP header 'Content-Type'
623
- content_type = @api_client.select_header_content_type(['application/json'])
624
- if !content_type.nil?
625
- header_params['Content-Type'] = content_type
626
- end
627
-
628
- # form parameters
629
- form_params = opts[:form_params] || {}
630
-
631
- # http body (model)
632
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'fin_ql_prompt_request'])
633
-
634
- # return_type
635
- return_type = opts[:debug_return_type] || 'FinQLPromptResponse'
636
-
637
- # auth_names
638
- auth_names = opts[:debug_auth_names] || ['fuseApiKey', 'fuseClientId']
639
-
640
- new_options = opts.merge(
641
- :operation => :"FuseApi.fin_ql_prompt",
642
- :header_params => header_params,
643
- :query_params => query_params,
644
- :form_params => form_params,
645
- :body => post_body,
646
- :auth_names => auth_names,
647
- :return_type => return_type
648
- )
649
-
650
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
651
- if @api_client.config.debugging
652
- @api_client.config.logger.debug "API called: FuseApi#fin_ql_prompt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
653
- end
654
- return data, status_code, headers
655
- end
656
-
657
593
  # Retrieves the Asset Report in JSON format. For Plaid, you will need to have the assets product enabled on your plaid account.
658
594
  # @param [Hash] opts the optional parameters
659
595
  # @option opts [GetAssetReportRequest] :get_asset_report_request
@@ -1680,23 +1616,29 @@ module FuseClient
1680
1616
 
1681
1617
  # Sync financial connections data
1682
1618
  # Call this endpoint upon receiving a financial_connection.sync_data webhook. This will keep the financial connections data up to date.
1619
+ # @param fuse_verification [String]
1683
1620
  # @param body [Object]
1684
1621
  # @param [Hash] opts the optional parameters
1685
1622
  # @return [SyncFinancialConnectionsDataResponse]
1686
- def sync_financial_connections_data(body, opts = {})
1687
- data, _status_code, _headers = sync_financial_connections_data_with_http_info(body, opts)
1623
+ def sync_financial_connections_data(fuse_verification, body, opts = {})
1624
+ data, _status_code, _headers = sync_financial_connections_data_with_http_info(fuse_verification, body, opts)
1688
1625
  data
1689
1626
  end
1690
1627
 
1691
1628
  # Sync financial connections data
1692
1629
  # Call this endpoint upon receiving a financial_connection.sync_data webhook. This will keep the financial connections data up to date.
1630
+ # @param fuse_verification [String]
1693
1631
  # @param body [Object]
1694
1632
  # @param [Hash] opts the optional parameters
1695
1633
  # @return [Array<(SyncFinancialConnectionsDataResponse, Integer, Hash)>] SyncFinancialConnectionsDataResponse data, response status code and response headers
1696
- def sync_financial_connections_data_with_http_info(body, opts = {})
1634
+ def sync_financial_connections_data_with_http_info(fuse_verification, body, opts = {})
1697
1635
  if @api_client.config.debugging
1698
1636
  @api_client.config.logger.debug 'Calling API: FuseApi.sync_financial_connections_data ...'
1699
1637
  end
1638
+ # verify the required parameter 'fuse_verification' is set
1639
+ if @api_client.config.client_side_validation && fuse_verification.nil?
1640
+ fail ArgumentError, "Missing the required parameter 'fuse_verification' when calling FuseApi.sync_financial_connections_data"
1641
+ end
1700
1642
  # verify the required parameter 'body' is set
1701
1643
  if @api_client.config.client_side_validation && body.nil?
1702
1644
  fail ArgumentError, "Missing the required parameter 'body' when calling FuseApi.sync_financial_connections_data"
@@ -1716,6 +1658,7 @@ module FuseClient
1716
1658
  if !content_type.nil?
1717
1659
  header_params['Content-Type'] = content_type
1718
1660
  end
1661
+ header_params[:'Fuse-Verification'] = fuse_verification
1719
1662
 
1720
1663
  # form parameters
1721
1664
  form_params = opts[:form_params] || {}
@@ -320,7 +320,7 @@ module FuseClient
320
320
  {
321
321
  type: 'api_key',
322
322
  in: 'header',
323
- key: 'Snaptrade-Consumer-Id',
323
+ key: 'Snaptrade-Consumer-Key',
324
324
  value: api_key_with_prefix('snaptradeConsumerKey')
325
325
  },
326
326
  'flinksCaCustomerIdKey' =>
@@ -386,13 +386,6 @@ module FuseClient
386
386
  key: 'TrueLayer-Client-Secret',
387
387
  value: api_key_with_prefix('trueLayerClientSecret')
388
388
  },
389
- 'trueLayerClientRedirectUri' =>
390
- {
391
- type: 'api_key',
392
- in: 'header',
393
- key: 'TrueLayer-Redirect-Uri',
394
- value: api_key_with_prefix('trueLayerClientRedirectUri')
395
- },
396
389
  'finverseClientId' =>
397
390
  {
398
391
  type: 'api_key',
@@ -407,12 +400,40 @@ module FuseClient
407
400
  key: 'Finverse-Client-Secret',
408
401
  value: api_key_with_prefix('finverseClientSecret')
409
402
  },
410
- 'finverseClientRedirectUri' =>
403
+ 'belvoSecretId' =>
404
+ {
405
+ type: 'api_key',
406
+ in: 'header',
407
+ key: 'Belvo-Secret-Id',
408
+ value: api_key_with_prefix('belvoSecretId')
409
+ },
410
+ 'belvoSecretPassword' =>
411
+ {
412
+ type: 'api_key',
413
+ in: 'header',
414
+ key: 'Belvo-Secret-Password',
415
+ value: api_key_with_prefix('belvoSecretPassword')
416
+ },
417
+ 'finicityPartnerSecret' =>
418
+ {
419
+ type: 'api_key',
420
+ in: 'header',
421
+ key: 'Finicity-Partner-Secret',
422
+ value: api_key_with_prefix('finicityPartnerSecret')
423
+ },
424
+ 'finicityPartnerId' =>
425
+ {
426
+ type: 'api_key',
427
+ in: 'header',
428
+ key: 'Finicity-Partner-Id',
429
+ value: api_key_with_prefix('finicityPartnerId')
430
+ },
431
+ 'finicityAppKey' =>
411
432
  {
412
433
  type: 'api_key',
413
434
  in: 'header',
414
- key: 'Finverse-Redirect-Uri',
415
- value: api_key_with_prefix('finverseClientRedirectUri')
435
+ key: 'Finicity-App-Key',
436
+ value: api_key_with_prefix('finicityAppKey')
416
437
  },
417
438
  }
418
439
  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,14 +21,42 @@ module FuseClient
21
21
  # 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.
22
22
  attr_accessor :financial_connection_id
23
23
 
24
+ attr_accessor :institution
25
+
26
+ attr_accessor :aggregator
27
+
24
28
  # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
25
29
  attr_accessor :request_id
26
30
 
31
+ class EnumAttributeValidator
32
+ attr_reader :datatype
33
+ attr_reader :allowable_values
34
+
35
+ def initialize(datatype, allowable_values)
36
+ @allowable_values = allowable_values.map do |value|
37
+ case datatype.to_s
38
+ when /Integer/i
39
+ value.to_i
40
+ when /Float/i
41
+ value.to_f
42
+ else
43
+ value
44
+ end
45
+ end
46
+ end
47
+
48
+ def valid?(value)
49
+ !value || allowable_values.include?(value)
50
+ end
51
+ end
52
+
27
53
  # Attribute mapping from ruby-style variable name to JSON key.
28
54
  def self.attribute_map
29
55
  {
30
56
  :'access_token' => :'access_token',
31
57
  :'financial_connection_id' => :'financial_connection_id',
58
+ :'institution' => :'institution',
59
+ :'aggregator' => :'aggregator',
32
60
  :'request_id' => :'request_id'
33
61
  }
34
62
  end
@@ -43,6 +71,8 @@ module FuseClient
43
71
  {
44
72
  :'access_token' => :'String',
45
73
  :'financial_connection_id' => :'String',
74
+ :'institution' => :'FinancialInstitution',
75
+ :'aggregator' => :'Aggregator',
46
76
  :'request_id' => :'String'
47
77
  }
48
78
  end
@@ -76,6 +106,14 @@ module FuseClient
76
106
  self.financial_connection_id = attributes[:'financial_connection_id']
77
107
  end
78
108
 
109
+ if attributes.key?(:'institution')
110
+ self.institution = attributes[:'institution']
111
+ end
112
+
113
+ if attributes.key?(:'aggregator')
114
+ self.aggregator = attributes[:'aggregator']
115
+ end
116
+
79
117
  if attributes.key?(:'request_id')
80
118
  self.request_id = attributes[:'request_id']
81
119
  end
@@ -93,6 +131,10 @@ module FuseClient
93
131
  invalid_properties.push('invalid value for "financial_connection_id", financial_connection_id cannot be nil.')
94
132
  end
95
133
 
134
+ if @aggregator.nil?
135
+ invalid_properties.push('invalid value for "aggregator", aggregator cannot be nil.')
136
+ end
137
+
96
138
  if @request_id.nil?
97
139
  invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
98
140
  end
@@ -105,6 +147,7 @@ module FuseClient
105
147
  def valid?
106
148
  return false if @access_token.nil?
107
149
  return false if @financial_connection_id.nil?
150
+ return false if @aggregator.nil?
108
151
  return false if @request_id.nil?
109
152
  true
110
153
  end
@@ -116,6 +159,8 @@ module FuseClient
116
159
  self.class == o.class &&
117
160
  access_token == o.access_token &&
118
161
  financial_connection_id == o.financial_connection_id &&
162
+ institution == o.institution &&
163
+ aggregator == o.aggregator &&
119
164
  request_id == o.request_id
120
165
  end
121
166
 
@@ -128,7 +173,7 @@ module FuseClient
128
173
  # Calculates hash code according to all attributes.
129
174
  # @return [Integer] Hash code
130
175
  def hash
131
- [access_token, financial_connection_id, request_id].hash
176
+ [access_token, financial_connection_id, institution, aggregator, request_id].hash
132
177
  end
133
178
 
134
179
  # Builds the object from hash
@@ -45,6 +45,7 @@ module FuseClient
45
45
  # List of attributes with nullable: true
46
46
  def self.openapi_nullable
47
47
  Set.new([
48
+ :'institution_id'
48
49
  ])
49
50
  end
50
51
 
@@ -80,10 +81,6 @@ module FuseClient
80
81
  invalid_properties.push('invalid value for "id", id cannot be nil.')
81
82
  end
82
83
 
83
- if @institution_id.nil?
84
- invalid_properties.push('invalid value for "institution_id", institution_id cannot be nil.')
85
- end
86
-
87
84
  invalid_properties
88
85
  end
89
86
 
@@ -91,7 +88,6 @@ module FuseClient
91
88
  # @return true if the model is valid
92
89
  def valid?
93
90
  return false if @id.nil?
94
- return false if @institution_id.nil?
95
91
  true
96
92
  end
97
93
 
@@ -49,6 +49,8 @@ module FuseClient
49
49
 
50
50
  attr_accessor :belvo
51
51
 
52
+ attr_accessor :finicity
53
+
52
54
  class EnumAttributeValidator
53
55
  attr_reader :datatype
54
56
  attr_reader :allowable_values
@@ -88,7 +90,8 @@ module FuseClient
88
90
  :'truelayer' => :'truelayer',
89
91
  :'finverse' => :'finverse',
90
92
  :'basiq' => :'basiq',
91
- :'belvo' => :'belvo'
93
+ :'belvo' => :'belvo',
94
+ :'finicity' => :'finicity'
92
95
  }
93
96
  end
94
97
 
@@ -114,7 +117,8 @@ module FuseClient
114
117
  :'truelayer' => :'FinancialConnectionDetailsTruelayer',
115
118
  :'finverse' => :'FinancialConnectionDetailsFinverse',
116
119
  :'basiq' => :'FinancialConnectionDetailsBasiq',
117
- :'belvo' => :'FinancialConnectionDetailsBelvo'
120
+ :'belvo' => :'FinancialConnectionDetailsBelvo',
121
+ :'finicity' => :'FinancialConnectionDetailsFinicity'
118
122
  }
119
123
  end
120
124
 
@@ -198,6 +202,10 @@ module FuseClient
198
202
  if attributes.key?(:'belvo')
199
203
  self.belvo = attributes[:'belvo']
200
204
  end
205
+
206
+ if attributes.key?(:'finicity')
207
+ self.finicity = attributes[:'finicity']
208
+ end
201
209
  end
202
210
 
203
211
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -269,7 +277,8 @@ module FuseClient
269
277
  truelayer == o.truelayer &&
270
278
  finverse == o.finverse &&
271
279
  basiq == o.basiq &&
272
- belvo == o.belvo
280
+ belvo == o.belvo &&
281
+ finicity == o.finicity
273
282
  end
274
283
 
275
284
  # @see the `==` method
@@ -281,7 +290,7 @@ module FuseClient
281
290
  # Calculates hash code according to all attributes.
282
291
  # @return [Integer] Hash code
283
292
  def hash
284
- [id, connection_status, connection_status_updated_at, is_oauth, aggregator, plaid, teller, mx, snaptrade, flinks, mono, truelayer, finverse, basiq, belvo].hash
293
+ [id, connection_status, connection_status_updated_at, is_oauth, aggregator, plaid, teller, mx, snaptrade, flinks, mono, truelayer, finverse, basiq, belvo, finicity].hash
285
294
  end
286
295
 
287
296
  # Builds the object from hash