fuse_client 1.0.33 → 1.0.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +6 -1
  4. data/docs/AddAccountEventsRequest.md +18 -0
  5. data/docs/AddAccountEventsRequestEventsInner.md +51 -0
  6. data/docs/{AddSpendPowerTransactionResponse.md → AddAccountEventsResponse.md} +2 -2
  7. data/docs/AssetReportTransaction.md +1 -1
  8. data/docs/CreateSessionRequest.md +1 -1
  9. data/docs/CreateSpendPowerCustomizationRequest.md +22 -0
  10. data/docs/CreateSpendPowerRequest.md +5 -5
  11. data/docs/CreateSpendPowerResponse.md +1 -1
  12. data/docs/DeleteSpendPowerResponse.md +2 -2
  13. data/docs/EnrichTransactionsRequest.md +18 -0
  14. data/docs/EnrichTransactionsResponse.md +18 -0
  15. data/docs/EnrichedTransaction.md +46 -0
  16. data/docs/EnrichedTransactionLogo.md +18 -0
  17. data/docs/EvalSpendPowerRequest.md +22 -0
  18. data/docs/EvalSpendPowerRequestEventsInner.md +20 -0
  19. data/docs/EvalSpendPowerResponse.md +20 -0
  20. data/docs/ExternalTransactionEvent.md +36 -0
  21. data/docs/ExternalTransactionEventStatus.md +15 -0
  22. data/docs/FinancialConnectionsAccountBalance.md +2 -2
  23. data/docs/FinancialConnectionsAccountCachedBalance.md +2 -2
  24. data/docs/FinancialConnectionsHolding.md +3 -3
  25. data/docs/FinancialConnectionsInvestmentSecurity.md +1 -1
  26. data/docs/FinancialConnectionsInvestmentTransaction.md +5 -3
  27. data/docs/FinancialConnectionsInvestmentTransactionSubtype.md +15 -0
  28. data/docs/FuseApi.md +193 -35
  29. data/docs/GetFinanceScoreResponse.md +20 -0
  30. data/docs/GetInvestmentTransactionsRequest.md +4 -4
  31. data/docs/GetSpendPowerCustomizationResponse.md +20 -0
  32. data/docs/InAppTransactionEvent.md +34 -0
  33. data/docs/InAppTransactionEventStatus.md +15 -0
  34. data/docs/SpendPower.md +6 -6
  35. data/docs/SpendPowerApi.md +87 -44
  36. data/docs/SpendPowerCustomization.md +5 -3
  37. data/docs/SpendPowerTimeFrame.md +15 -0
  38. data/docs/Transaction.md +1 -1
  39. data/docs/TransactionCategory.md +20 -0
  40. data/docs/TransactionCategoryDetailed.md +15 -0
  41. data/docs/TransactionCategoryPrimary.md +15 -0
  42. data/docs/TransactionEventType.md +15 -0
  43. data/docs/TransactionToEnrich.md +26 -0
  44. data/docs/UpdateSpendPowerCustomizationRequest.md +22 -0
  45. data/docs/UpdatedBalanceEvent.md +26 -0
  46. data/lib/fuse_client/api/fuse_api.rb +176 -31
  47. data/lib/fuse_client/api/spend_power_api.rb +78 -52
  48. data/lib/fuse_client/models/add_account_events_request.rb +254 -0
  49. data/lib/fuse_client/models/add_account_events_request_events_inner.rb +106 -0
  50. data/lib/fuse_client/models/{add_spend_power_transaction_response.rb → add_account_events_response.rb} +3 -3
  51. data/lib/fuse_client/models/asset_report_transaction.rb +1 -1
  52. data/lib/fuse_client/models/country_code.rb +2 -1
  53. data/lib/fuse_client/models/create_session_request.rb +1 -1
  54. data/lib/fuse_client/models/create_spend_power_customization_request.rb +314 -0
  55. data/lib/fuse_client/models/create_spend_power_request.rb +22 -22
  56. data/lib/fuse_client/models/create_spend_power_response.rb +1 -1
  57. data/lib/fuse_client/models/delete_spend_power_response.rb +11 -10
  58. data/lib/fuse_client/models/enrich_transactions_request.rb +226 -0
  59. data/lib/fuse_client/models/enrich_transactions_response.rb +222 -0
  60. data/lib/fuse_client/models/enriched_transaction.rb +397 -0
  61. data/lib/fuse_client/models/enriched_transaction_logo.rb +220 -0
  62. data/lib/fuse_client/models/eval_spend_power_request.rb +296 -0
  63. data/lib/fuse_client/models/eval_spend_power_request_events_inner.rb +239 -0
  64. data/lib/fuse_client/models/eval_spend_power_response.rb +230 -0
  65. data/lib/fuse_client/models/external_transaction_event.rb +384 -0
  66. data/lib/fuse_client/models/external_transaction_event_status.rb +40 -0
  67. data/lib/fuse_client/models/financial_connections_account_balance.rb +2 -2
  68. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +2 -2
  69. data/lib/fuse_client/models/financial_connections_holding.rb +3 -3
  70. data/lib/fuse_client/models/financial_connections_investment_security.rb +1 -1
  71. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +13 -4
  72. data/lib/fuse_client/models/financial_connections_investment_transaction_subtype.rb +87 -0
  73. data/lib/fuse_client/models/fuse_api_error_code.rb +3 -1
  74. data/lib/fuse_client/models/get_finance_score_response.rb +240 -0
  75. data/lib/fuse_client/models/get_investment_transactions_request.rb +37 -9
  76. data/lib/fuse_client/models/get_spend_power_customization_response.rb +239 -0
  77. data/lib/fuse_client/models/in_app_transaction_event.rb +364 -0
  78. data/lib/fuse_client/models/in_app_transaction_event_status.rb +41 -0
  79. data/lib/fuse_client/models/spend_power.rb +18 -18
  80. data/lib/fuse_client/models/spend_power_customization.rb +54 -14
  81. data/lib/fuse_client/models/spend_power_time_frame.rb +41 -0
  82. data/lib/fuse_client/models/transaction.rb +1 -1
  83. data/lib/fuse_client/models/transaction_category.rb +260 -0
  84. data/lib/fuse_client/models/transaction_category_detailed.rb +135 -0
  85. data/lib/fuse_client/models/transaction_category_primary.rb +59 -0
  86. data/lib/fuse_client/models/transaction_event_type.rb +65 -0
  87. data/lib/fuse_client/models/{add_spend_power_transaction_request.rb → transaction_to_enrich.rb} +47 -27
  88. data/lib/fuse_client/models/update_spend_power_customization_request.rb +291 -0
  89. data/lib/fuse_client/models/updated_balance_event.rb +308 -0
  90. data/lib/fuse_client/version.rb +1 -1
  91. data/lib/fuse_client.rb +26 -2
  92. data/spec/api/fuse_api_spec.rb +33 -7
  93. data/spec/api/spend_power_api_spec.rb +14 -17
  94. data/spec/models/add_account_events_request_events_inner_spec.rb +31 -0
  95. data/spec/models/add_account_events_request_spec.rb +34 -0
  96. data/spec/models/{add_spend_power_transaction_response_spec.rb → add_account_events_response_spec.rb} +6 -6
  97. data/spec/models/create_spend_power_customization_request_spec.rb +46 -0
  98. data/spec/models/create_spend_power_request_spec.rb +2 -2
  99. data/spec/models/delete_spend_power_response_spec.rb +1 -1
  100. data/spec/models/enrich_transactions_request_spec.rb +34 -0
  101. data/spec/models/enrich_transactions_response_spec.rb +34 -0
  102. data/spec/models/enriched_transaction_logo_spec.rb +34 -0
  103. data/spec/models/enriched_transaction_spec.rb +122 -0
  104. data/spec/models/eval_spend_power_request_events_inner_spec.rb +40 -0
  105. data/spec/models/eval_spend_power_request_spec.rb +46 -0
  106. data/spec/models/eval_spend_power_response_spec.rb +40 -0
  107. data/spec/models/external_transaction_event_spec.rb +92 -0
  108. data/spec/models/external_transaction_event_status_spec.rb +28 -0
  109. data/spec/models/financial_connections_investment_transaction_spec.rb +6 -0
  110. data/spec/models/financial_connections_investment_transaction_subtype_spec.rb +28 -0
  111. data/spec/models/get_finance_score_response_spec.rb +40 -0
  112. data/spec/models/get_spend_power_customization_response_spec.rb +40 -0
  113. data/spec/models/in_app_transaction_event_spec.rb +86 -0
  114. data/spec/models/in_app_transaction_event_status_spec.rb +28 -0
  115. data/spec/models/spend_power_customization_spec.rb +6 -4
  116. data/spec/models/spend_power_spec.rb +1 -1
  117. data/spec/models/spend_power_time_frame_spec.rb +28 -0
  118. data/spec/models/transaction_category_detailed_spec.rb +28 -0
  119. data/spec/models/transaction_category_primary_spec.rb +28 -0
  120. data/spec/models/transaction_category_spec.rb +40 -0
  121. data/spec/models/transaction_event_type_spec.rb +28 -0
  122. data/spec/models/{add_spend_power_transaction_request_spec.rb → transaction_to_enrich_spec.rb} +23 -11
  123. data/spec/models/update_spend_power_customization_request_spec.rb +46 -0
  124. data/spec/models/updated_balance_event_spec.rb +62 -0
  125. metadata +106 -10
  126. data/docs/AddSpendPowerTransactionRequest.md +0 -22
data/docs/FuseApi.md CHANGED
@@ -4,16 +4,18 @@ All URIs are relative to *https://sandbox-api.letsfuse.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**add_spend_power_transaction**](FuseApi.md#add_spend_power_transaction) | **POST** /v1/financial_connections/spend-power/{spend_power_id}/transaction | |
7
+ | [**add_account_events**](FuseApi.md#add_account_events) | **POST** /v1/accounts/{account_id}/events | |
8
8
  | [**create_asset_report**](FuseApi.md#create_asset_report) | **POST** /v1/financial_connections/asset_report/create | |
9
9
  | [**create_link_token**](FuseApi.md#create_link_token) | **POST** /v1/link/token | |
10
10
  | [**create_session**](FuseApi.md#create_session) | **POST** /v1/session | |
11
- | [**create_spend_power**](FuseApi.md#create_spend_power) | **POST** /v1/financial_connections/spend-power | |
12
- | [**create_spend_power_customization**](FuseApi.md#create_spend_power_customization) | **POST** /v1/financial_connections/spend-power/customization | |
11
+ | [**create_spend_power**](FuseApi.md#create_spend_power) | **POST** /v1/spend_power | |
12
+ | [**create_spend_power_customization**](FuseApi.md#create_spend_power_customization) | **POST** /v1/spend_power/customization | |
13
13
  | [**delete_financial_connection**](FuseApi.md#delete_financial_connection) | **DELETE** /v1/financial_connections/{financial_connection_id_to_delete} | Delete a financial connection |
14
+ | [**enrich_transactions**](FuseApi.md#enrich_transactions) | **POST** /v1/transactions/enrich | |
14
15
  | [**exchange_financial_connections_public_token**](FuseApi.md#exchange_financial_connections_public_token) | **POST** /v1/financial_connections/public_token/exchange | |
15
16
  | [**get_asset_report**](FuseApi.md#get_asset_report) | **POST** /v1/financial_connections/asset_report | |
16
17
  | [**get_entity**](FuseApi.md#get_entity) | **GET** /v1/entities/{entity_id} | Get entity |
18
+ | [**get_finance_score**](FuseApi.md#get_finance_score) | **GET** /v1/accounts/{account_id}/finance_score | Get finance score |
17
19
  | [**get_financial_connection**](FuseApi.md#get_financial_connection) | **GET** /v1/financial_connections/{financial_connection_id} | Get financial connection details |
18
20
  | [**get_financial_connections_account_details**](FuseApi.md#get_financial_connections_account_details) | **POST** /v1/financial_connections/accounts/details | Get account details |
19
21
  | [**get_financial_connections_account_statement**](FuseApi.md#get_financial_connections_account_statement) | **POST** /v1/financial_connections/accounts/statement | |
@@ -24,17 +26,17 @@ All URIs are relative to *https://sandbox-api.letsfuse.com*
24
26
  | [**get_financial_institution**](FuseApi.md#get_financial_institution) | **GET** /v1/financial_connections/institutions/{institution_id} | Get a financial institution |
25
27
  | [**get_investment_holdings**](FuseApi.md#get_investment_holdings) | **POST** /v1/financial_connections/investments/holdings | Get investment holdings |
26
28
  | [**get_investment_transactions**](FuseApi.md#get_investment_transactions) | **POST** /v1/financial_connections/investments/transactions | Get investment transactions |
27
- | [**get_spend_power**](FuseApi.md#get_spend_power) | **GET** /v1/financial_connections/spend-power/{spend_power_id} | |
29
+ | [**get_spend_power**](FuseApi.md#get_spend_power) | **GET** /v1/spend_power/{spend_power_id} | Get spend power |
28
30
  | [**migrate_financial_connection**](FuseApi.md#migrate_financial_connection) | **POST** /v1/financial_connections/migrate | Migrate financial connection |
29
31
  | [**refresh_asset_report**](FuseApi.md#refresh_asset_report) | **POST** /v1/financial_connections/asset_report/refresh | |
30
32
  | [**sync_financial_connections_data**](FuseApi.md#sync_financial_connections_data) | **POST** /v1/financial_connections/sync | Sync financial connections data |
31
- | [**update_spend_power_customization**](FuseApi.md#update_spend_power_customization) | **POST** /v1/financial_connections/spend-power/customization/update | |
33
+ | [**update_spend_power_customization**](FuseApi.md#update_spend_power_customization) | **POST** /v1/spend_power/customization/{spend_power_customization_id} | Update spend power customization |
32
34
  | [**v1_financial_connections_liabilities_post**](FuseApi.md#v1_financial_connections_liabilities_post) | **POST** /v1/financial_connections/liabilities | Get liabilities |
33
35
 
34
36
 
35
- ## add_spend_power_transaction
37
+ ## add_account_events
36
38
 
37
- > <AddSpendPowerTransactionResponse> add_spend_power_transaction(spend_power_id, opts)
39
+ > <AddAccountEventsResponse> add_account_events(account_id, opts)
38
40
 
39
41
 
40
42
 
@@ -57,35 +59,35 @@ FuseClient.configure do |config|
57
59
  end
58
60
 
59
61
  api_instance = FuseClient::FuseApi.new
60
- spend_power_id = 'spend_power_id_example' # String |
62
+ account_id = 'account_id_example' # String |
61
63
  opts = {
62
- add_spend_power_transaction_request: FuseClient::AddSpendPowerTransactionRequest.new({id: 'id_example', status: 'pending'}) # AddSpendPowerTransactionRequest |
64
+ add_account_events_request: FuseClient::AddAccountEventsRequest.new({events: [FuseClient::ExternalTransactionEvent.new({id: 'id_example', event_type: 'external_transaction', status: FuseClient::ExternalTransactionEventStatus::PENDING, amount: 3.56, merchant_name: 'merchant_name_example', transaction_type: FuseClient::TransactionEventType::ACH, category: FuseClient::TransactionCategory.new({primary: FuseClient::TransactionCategoryPrimary::AUTO_AND_TRANSPORT, detailed: FuseClient::TransactionCategoryDetailed::AUTO_INSURANCE}), iso_currency_code: 'iso_currency_code_example', timestamp: 'timestamp_example'})]}) # AddAccountEventsRequest |
63
65
  }
64
66
 
65
67
  begin
66
68
 
67
- result = api_instance.add_spend_power_transaction(spend_power_id, opts)
69
+ result = api_instance.add_account_events(account_id, opts)
68
70
  p result
69
71
  rescue FuseClient::ApiError => e
70
- puts "Error when calling FuseApi->add_spend_power_transaction: #{e}"
72
+ puts "Error when calling FuseApi->add_account_events: #{e}"
71
73
  end
72
74
  ```
73
75
 
74
- #### Using the add_spend_power_transaction_with_http_info variant
76
+ #### Using the add_account_events_with_http_info variant
75
77
 
76
78
  This returns an Array which contains the response data, status code and headers.
77
79
 
78
- > <Array(<AddSpendPowerTransactionResponse>, Integer, Hash)> add_spend_power_transaction_with_http_info(spend_power_id, opts)
80
+ > <Array(<AddAccountEventsResponse>, Integer, Hash)> add_account_events_with_http_info(account_id, opts)
79
81
 
80
82
  ```ruby
81
83
  begin
82
84
 
83
- data, status_code, headers = api_instance.add_spend_power_transaction_with_http_info(spend_power_id, opts)
85
+ data, status_code, headers = api_instance.add_account_events_with_http_info(account_id, opts)
84
86
  p status_code # => 2xx
85
87
  p headers # => { ... }
86
- p data # => <AddSpendPowerTransactionResponse>
88
+ p data # => <AddAccountEventsResponse>
87
89
  rescue FuseClient::ApiError => e
88
- puts "Error when calling FuseApi->add_spend_power_transaction_with_http_info: #{e}"
90
+ puts "Error when calling FuseApi->add_account_events_with_http_info: #{e}"
89
91
  end
90
92
  ```
91
93
 
@@ -93,12 +95,12 @@ end
93
95
 
94
96
  | Name | Type | Description | Notes |
95
97
  | ---- | ---- | ----------- | ----- |
96
- | **spend_power_id** | **String** | | |
97
- | **add_spend_power_transaction_request** | [**AddSpendPowerTransactionRequest**](AddSpendPowerTransactionRequest.md) | | [optional] |
98
+ | **account_id** | **String** | | |
99
+ | **add_account_events_request** | [**AddAccountEventsRequest**](AddAccountEventsRequest.md) | | [optional] |
98
100
 
99
101
  ### Return type
100
102
 
101
- [**AddSpendPowerTransactionResponse**](AddSpendPowerTransactionResponse.md)
103
+ [**AddAccountEventsResponse**](AddAccountEventsResponse.md)
102
104
 
103
105
  ### Authorization
104
106
 
@@ -372,7 +374,7 @@ end
372
374
 
373
375
  api_instance = FuseClient::FuseApi.new
374
376
  opts = {
375
- create_spend_power_request: FuseClient::CreateSpendPowerRequest.new({access_token: 'access_token_example', remote_account_id: 'remote_account_id_example', customization_id: 'customization_id_example'}) # CreateSpendPowerRequest |
377
+ create_spend_power_request: FuseClient::CreateSpendPowerRequest.new({account_id: 'account_id_example', iso_currency_code: 'iso_currency_code_example', customization_id: 'customization_id_example'}) # CreateSpendPowerRequest |
376
378
  }
377
379
 
378
380
  begin
@@ -448,7 +450,7 @@ end
448
450
 
449
451
  api_instance = FuseClient::FuseApi.new
450
452
  opts = {
451
- body: 3.56 # SpendPowerCustomization |
453
+ create_spend_power_customization_request: FuseClient::CreateSpendPowerCustomizationRequest.new({timeframe: FuseClient::SpendPowerTimeFrame::DAILY, min_limit: 3.56, max_limit: 3.56}) # CreateSpendPowerCustomizationRequest |
452
454
  }
453
455
 
454
456
  begin
@@ -482,7 +484,7 @@ end
482
484
 
483
485
  | Name | Type | Description | Notes |
484
486
  | ---- | ---- | ----------- | ----- |
485
- | **body** | **SpendPowerCustomization** | | [optional] |
487
+ | **create_spend_power_customization_request** | [**CreateSpendPowerCustomizationRequest**](CreateSpendPowerCustomizationRequest.md) | | [optional] |
486
488
 
487
489
  ### Return type
488
490
 
@@ -572,6 +574,86 @@ end
572
574
  - **Accept**: application/json
573
575
 
574
576
 
577
+ ## enrich_transactions
578
+
579
+ > <EnrichTransactionsResponse> enrich_transactions(fuse_client_id, fuse_api_key, opts)
580
+
581
+
582
+
583
+ ### Examples
584
+
585
+ ```ruby
586
+ require 'time'
587
+ require 'fuse_client'
588
+ # setup authorization
589
+ FuseClient.configure do |config|
590
+ # Configure API key authorization: fuseApiKey
591
+ config.api_key['fuseApiKey'] = 'YOUR API KEY'
592
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
593
+ # config.api_key_prefix['fuseApiKey'] = 'Bearer'
594
+
595
+ # Configure API key authorization: fuseClientId
596
+ config.api_key['fuseClientId'] = 'YOUR API KEY'
597
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
598
+ # config.api_key_prefix['fuseClientId'] = 'Bearer'
599
+ end
600
+
601
+ api_instance = FuseClient::FuseApi.new
602
+ fuse_client_id = 'fuse_client_id_example' # String |
603
+ fuse_api_key = 'fuse_api_key_example' # String |
604
+ opts = {
605
+ enrich_transactions_request: FuseClient::EnrichTransactionsRequest.new({transactions: [FuseClient::TransactionToEnrich.new({id: 'id_example', merchant_name: 'merchant_name_example'})]}) # EnrichTransactionsRequest |
606
+ }
607
+
608
+ begin
609
+
610
+ result = api_instance.enrich_transactions(fuse_client_id, fuse_api_key, opts)
611
+ p result
612
+ rescue FuseClient::ApiError => e
613
+ puts "Error when calling FuseApi->enrich_transactions: #{e}"
614
+ end
615
+ ```
616
+
617
+ #### Using the enrich_transactions_with_http_info variant
618
+
619
+ This returns an Array which contains the response data, status code and headers.
620
+
621
+ > <Array(<EnrichTransactionsResponse>, Integer, Hash)> enrich_transactions_with_http_info(fuse_client_id, fuse_api_key, opts)
622
+
623
+ ```ruby
624
+ begin
625
+
626
+ data, status_code, headers = api_instance.enrich_transactions_with_http_info(fuse_client_id, fuse_api_key, opts)
627
+ p status_code # => 2xx
628
+ p headers # => { ... }
629
+ p data # => <EnrichTransactionsResponse>
630
+ rescue FuseClient::ApiError => e
631
+ puts "Error when calling FuseApi->enrich_transactions_with_http_info: #{e}"
632
+ end
633
+ ```
634
+
635
+ ### Parameters
636
+
637
+ | Name | Type | Description | Notes |
638
+ | ---- | ---- | ----------- | ----- |
639
+ | **fuse_client_id** | **String** | | |
640
+ | **fuse_api_key** | **String** | | |
641
+ | **enrich_transactions_request** | [**EnrichTransactionsRequest**](EnrichTransactionsRequest.md) | | [optional] |
642
+
643
+ ### Return type
644
+
645
+ [**EnrichTransactionsResponse**](EnrichTransactionsResponse.md)
646
+
647
+ ### Authorization
648
+
649
+ [fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
650
+
651
+ ### HTTP request headers
652
+
653
+ - **Content-Type**: application/json
654
+ - **Accept**: application/json
655
+
656
+
575
657
  ## exchange_financial_connections_public_token
576
658
 
577
659
  > <ExchangeFinancialConnectionsPublicTokenResponse> exchange_financial_connections_public_token(opts)
@@ -804,6 +886,80 @@ end
804
886
  - **Accept**: application/json
805
887
 
806
888
 
889
+ ## get_finance_score
890
+
891
+ > <GetFinanceScoreResponse> get_finance_score(account_id)
892
+
893
+ Get finance score
894
+
895
+ ### Examples
896
+
897
+ ```ruby
898
+ require 'time'
899
+ require 'fuse_client'
900
+ # setup authorization
901
+ FuseClient.configure do |config|
902
+ # Configure API key authorization: fuseApiKey
903
+ config.api_key['fuseApiKey'] = 'YOUR API KEY'
904
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
905
+ # config.api_key_prefix['fuseApiKey'] = 'Bearer'
906
+
907
+ # Configure API key authorization: fuseClientId
908
+ config.api_key['fuseClientId'] = 'YOUR API KEY'
909
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
910
+ # config.api_key_prefix['fuseClientId'] = 'Bearer'
911
+ end
912
+
913
+ api_instance = FuseClient::FuseApi.new
914
+ account_id = 'account_id_example' # String |
915
+
916
+ begin
917
+ # Get finance score
918
+ result = api_instance.get_finance_score(account_id)
919
+ p result
920
+ rescue FuseClient::ApiError => e
921
+ puts "Error when calling FuseApi->get_finance_score: #{e}"
922
+ end
923
+ ```
924
+
925
+ #### Using the get_finance_score_with_http_info variant
926
+
927
+ This returns an Array which contains the response data, status code and headers.
928
+
929
+ > <Array(<GetFinanceScoreResponse>, Integer, Hash)> get_finance_score_with_http_info(account_id)
930
+
931
+ ```ruby
932
+ begin
933
+ # Get finance score
934
+ data, status_code, headers = api_instance.get_finance_score_with_http_info(account_id)
935
+ p status_code # => 2xx
936
+ p headers # => { ... }
937
+ p data # => <GetFinanceScoreResponse>
938
+ rescue FuseClient::ApiError => e
939
+ puts "Error when calling FuseApi->get_finance_score_with_http_info: #{e}"
940
+ end
941
+ ```
942
+
943
+ ### Parameters
944
+
945
+ | Name | Type | Description | Notes |
946
+ | ---- | ---- | ----------- | ----- |
947
+ | **account_id** | **String** | | |
948
+
949
+ ### Return type
950
+
951
+ [**GetFinanceScoreResponse**](GetFinanceScoreResponse.md)
952
+
953
+ ### Authorization
954
+
955
+ [fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
956
+
957
+ ### HTTP request headers
958
+
959
+ - **Content-Type**: Not defined
960
+ - **Accept**: application/json
961
+
962
+
807
963
  ## get_financial_connection
808
964
 
809
965
  > <GetFinancialConnectionResponse> get_financial_connection(financial_connection_id)
@@ -1501,7 +1657,7 @@ FuseClient.configure do |config|
1501
1657
  end
1502
1658
 
1503
1659
  api_instance = FuseClient::FuseApi.new
1504
- get_investment_transactions_request = FuseClient::GetInvestmentTransactionsRequest.new({access_token: 'access_token_example'}) # GetInvestmentTransactionsRequest |
1660
+ get_investment_transactions_request = FuseClient::GetInvestmentTransactionsRequest.new({access_token: 'access_token_example', start_date: 'start_date_example', end_date: 'end_date_example', page: 37, records_per_page: 37}) # GetInvestmentTransactionsRequest |
1505
1661
 
1506
1662
  begin
1507
1663
  # Get investment transactions
@@ -1554,7 +1710,7 @@ end
1554
1710
 
1555
1711
  > <GetSpendPowerResponse> get_spend_power(spend_power_id)
1556
1712
 
1557
-
1713
+ Get spend power
1558
1714
 
1559
1715
  ### Examples
1560
1716
 
@@ -1578,7 +1734,7 @@ api_instance = FuseClient::FuseApi.new
1578
1734
  spend_power_id = 'spend_power_id_example' # String |
1579
1735
 
1580
1736
  begin
1581
-
1737
+ # Get spend power
1582
1738
  result = api_instance.get_spend_power(spend_power_id)
1583
1739
  p result
1584
1740
  rescue FuseClient::ApiError => e
@@ -1594,7 +1750,7 @@ This returns an Array which contains the response data, status code and headers.
1594
1750
 
1595
1751
  ```ruby
1596
1752
  begin
1597
-
1753
+ # Get spend power
1598
1754
  data, status_code, headers = api_instance.get_spend_power_with_http_info(spend_power_id)
1599
1755
  p status_code # => 2xx
1600
1756
  p headers # => { ... }
@@ -1858,9 +2014,9 @@ end
1858
2014
 
1859
2015
  ## update_spend_power_customization
1860
2016
 
1861
- > <UpdateSpendPowerCustomizationResponse> update_spend_power_customization(opts)
1862
-
2017
+ > <UpdateSpendPowerCustomizationResponse> update_spend_power_customization(spend_power_customization_id, opts)
1863
2018
 
2019
+ Update spend power customization
1864
2020
 
1865
2021
  ### Examples
1866
2022
 
@@ -1881,13 +2037,14 @@ FuseClient.configure do |config|
1881
2037
  end
1882
2038
 
1883
2039
  api_instance = FuseClient::FuseApi.new
2040
+ spend_power_customization_id = 'spend_power_customization_id_example' # String |
1884
2041
  opts = {
1885
- body: 3.56 # SpendPowerCustomization |
2042
+ update_spend_power_customization_request: FuseClient::UpdateSpendPowerCustomizationRequest.new # UpdateSpendPowerCustomizationRequest |
1886
2043
  }
1887
2044
 
1888
2045
  begin
1889
-
1890
- result = api_instance.update_spend_power_customization(opts)
2046
+ # Update spend power customization
2047
+ result = api_instance.update_spend_power_customization(spend_power_customization_id, opts)
1891
2048
  p result
1892
2049
  rescue FuseClient::ApiError => e
1893
2050
  puts "Error when calling FuseApi->update_spend_power_customization: #{e}"
@@ -1898,12 +2055,12 @@ end
1898
2055
 
1899
2056
  This returns an Array which contains the response data, status code and headers.
1900
2057
 
1901
- > <Array(<UpdateSpendPowerCustomizationResponse>, Integer, Hash)> update_spend_power_customization_with_http_info(opts)
2058
+ > <Array(<UpdateSpendPowerCustomizationResponse>, Integer, Hash)> update_spend_power_customization_with_http_info(spend_power_customization_id, opts)
1902
2059
 
1903
2060
  ```ruby
1904
2061
  begin
1905
-
1906
- data, status_code, headers = api_instance.update_spend_power_customization_with_http_info(opts)
2062
+ # Update spend power customization
2063
+ data, status_code, headers = api_instance.update_spend_power_customization_with_http_info(spend_power_customization_id, opts)
1907
2064
  p status_code # => 2xx
1908
2065
  p headers # => { ... }
1909
2066
  p data # => <UpdateSpendPowerCustomizationResponse>
@@ -1916,7 +2073,8 @@ end
1916
2073
 
1917
2074
  | Name | Type | Description | Notes |
1918
2075
  | ---- | ---- | ----------- | ----- |
1919
- | **body** | **SpendPowerCustomization** | | [optional] |
2076
+ | **spend_power_customization_id** | **String** | | |
2077
+ | **update_spend_power_customization_request** | [**UpdateSpendPowerCustomizationRequest**](UpdateSpendPowerCustomizationRequest.md) | | [optional] |
1920
2078
 
1921
2079
  ### Return type
1922
2080
 
@@ -0,0 +1,20 @@
1
+ # FuseClient::GetFinanceScoreResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **finance_score** | **Float** | A value between 0 and 1 where 1 is a perfect finance score and 0 is the worst finance score. | |
8
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'fuse_client'
14
+
15
+ instance = FuseClient::GetFinanceScoreResponse.new(
16
+ finance_score: null,
17
+ request_id: null
18
+ )
19
+ ```
20
+
@@ -5,10 +5,10 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **access_token** | **String** | Access token for authentication | |
8
- | **start_date** | **String** | The earliest date for which data should be returned. Dates should be formatted as YYYY-MM-DD. | [optional] |
9
- | **end_date** | **String** | The latest date for which data should be returned. Dates should be formatted as YYYY-MM-DD. | [optional] |
10
- | **page** | **Integer** | Specify current page. | [optional] |
11
- | **records_per_page** | **Integer** | Number of items per page. | [optional][default to 25] |
8
+ | **start_date** | **String** | The earliest date for which data should be returned. Dates should be formatted as YYYY-MM-DD. | |
9
+ | **end_date** | **String** | The latest date for which data should be returned. Dates should be formatted as YYYY-MM-DD. | |
10
+ | **page** | **Integer** | Specify current page. | |
11
+ | **records_per_page** | **Integer** | Number of items per page. | [default to 25] |
12
12
  | **options** | [**GetInvestmentTransactionsRequestOptions**](GetInvestmentTransactionsRequestOptions.md) | | [optional] |
13
13
 
14
14
  ## Example
@@ -0,0 +1,20 @@
1
+ # FuseClient::GetSpendPowerCustomizationResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **spend_power_customization** | [**SpendPowerCustomization**](SpendPowerCustomization.md) | | |
8
+ | **request_id** | **String** | An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'fuse_client'
14
+
15
+ instance = FuseClient::GetSpendPowerCustomizationResponse.new(
16
+ spend_power_customization: null,
17
+ request_id: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,34 @@
1
+ # FuseClient::InAppTransactionEvent
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | ID of the transaction | |
8
+ | **event_type** | **String** | | |
9
+ | **status** | [**InAppTransactionEventStatus**](InAppTransactionEventStatus.md) | | |
10
+ | **balance** | **Float** | The running balance of the account after the transaction has occurred, in cents. | [optional] |
11
+ | **amount** | **Float** | | |
12
+ | **merchant_name** | **String** | | |
13
+ | **transaction_type** | [**TransactionEventType**](TransactionEventType.md) | | |
14
+ | **iso_currency_code** | **String** | The ISO-4217 currency code. | [optional] |
15
+ | **timestamp** | **String** | Datetime of the transaction In ISO-8601 format | |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'fuse_client'
21
+
22
+ instance = FuseClient::InAppTransactionEvent.new(
23
+ id: null,
24
+ event_type: null,
25
+ status: null,
26
+ balance: null,
27
+ amount: null,
28
+ merchant_name: null,
29
+ transaction_type: null,
30
+ iso_currency_code: null,
31
+ timestamp: null
32
+ )
33
+ ```
34
+
@@ -0,0 +1,15 @@
1
+ # FuseClient::InAppTransactionEventStatus
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'fuse_client'
12
+
13
+ instance = FuseClient::InAppTransactionEventStatus.new()
14
+ ```
15
+
data/docs/SpendPower.md CHANGED
@@ -6,11 +6,11 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | The id of the spend power | |
8
8
  | **customization_id** | **String** | The customization id of the spend power. | |
9
- | **spend_limit** | **String** | The amount, in cents, of the users spend limit. | |
10
- | **current_spend** | **String** | The amount, in cents, that the user has already spent. | |
11
- | **pending_payments_amount** | **String** | The accumulative amount, in cents, of all the combined pending payments. | |
12
- | **currency** | **String** | The currency. | |
13
- | **last_updated** | **String** | The datetime of when the spend power was most recently updated. | |
9
+ | **spend_limit** | **Float** | The total limit for the current timeframe, in cents. | |
10
+ | **current_spend** | **Float** | The total current spend in the current timeframe, in cents, without factoring in pending payments. | |
11
+ | **pending_payments_amount** | **Float** | The total unpaid amount, in cents, from all timeframes. | |
12
+ | **iso_currency_code** | **String** | The ISO-4217 currency code of the transaction | |
13
+ | **last_updated** | **String** | The datetime of when the spend power was most recently updated, in ISO-8601 format. | |
14
14
 
15
15
  ## Example
16
16
 
@@ -23,7 +23,7 @@ instance = FuseClient::SpendPower.new(
23
23
  spend_limit: null,
24
24
  current_spend: null,
25
25
  pending_payments_amount: null,
26
- currency: null,
26
+ iso_currency_code: null,
27
27
  last_updated: null
28
28
  )
29
29
  ```