fuse_client 1.0.37 → 1.0.38
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/docs/{SpendPower.md → ConsumerRiskReport.md} +5 -5
- data/docs/{SpendPowerCustomization.md → ConsumerRiskReportCustomization.md} +6 -6
- data/docs/{SpendPowerTimeFrame.md → ConsumerRiskReportTimeFrame.md} +2 -2
- data/docs/{CreateSpendPowerCustomizationRequest.md → CreateConsumerRiskReportCustomizationRequest.md} +5 -5
- data/docs/{CreateSpendPowerCustomizationResponse.md → CreateConsumerRiskReportCustomizationResponse.md} +2 -2
- data/docs/{CreateSpendPowerRequest.md → CreateConsumerRiskReportRequest.md} +4 -4
- data/docs/{DeleteSpendPowerResponse.md → CreateConsumerRiskReportResponse.md} +3 -3
- data/docs/{CreateSpendPowerResponse.md → DeleteConsumerRiskReportResponse.md} +3 -3
- data/docs/EvalConsumerRiskReportRequest.md +22 -0
- data/docs/{EvalSpendPowerRequestEventsInner.md → EvalConsumerRiskReportRequestEventsInner.md} +2 -2
- data/docs/{EvalSpendPowerResponse.md → EvalConsumerRiskReportResponse.md} +2 -2
- data/docs/ExternalTransactionEvent.md +2 -2
- data/docs/FinancialConnectionDetails.md +5 -1
- data/docs/FinancialConnectionDetailsBasiq.md +20 -0
- data/docs/FinancialConnectionDetailsBelvo.md +20 -0
- data/docs/FinancialConnectionsInvestmentSecurityExchange.md +3 -1
- data/docs/FinancialConnectionsOwnerAddressesInnerData.md +2 -0
- data/docs/FuseApi.md +152 -148
- data/docs/{GetSpendPowerCustomizationResponse.md → GetConsumerRiskReportCustomizationResponse.md} +4 -4
- data/docs/{GetSpendPowerResponse.md → GetConsumerRiskReportResponse.md} +4 -4
- data/docs/InAppTransactionEvent.md +1 -1
- data/docs/RiskReportApi.md +165 -0
- data/docs/Transaction.md +1 -1
- data/docs/{UpdateSpendPowerCustomizationRequest.md → UpdateConsumerRiskReportCustomizationRequest.md} +5 -5
- data/docs/{UpdateSpendPowerCustomizationResponse.md → UpdateConsumerRiskReportCustomizationResponse.md} +2 -2
- data/docs/UpdatedBalanceEvent.md +2 -2
- data/fuse_client-1.0.37.gem +0 -0
- data/lib/fuse_client/api/fuse_api.rb +142 -139
- data/lib/fuse_client/api/{spend_power_api.rb → risk_report_api.rb} +39 -39
- data/lib/fuse_client/models/account_subtype.rb +3 -2
- data/lib/fuse_client/models/aggregator.rb +3 -1
- data/lib/fuse_client/models/{spend_power.rb → consumer_risk_report.rb} +4 -6
- data/lib/fuse_client/models/{spend_power_customization.rb → consumer_risk_report_customization.rb} +6 -7
- data/lib/fuse_client/models/{spend_power_time_frame.rb → consumer_risk_report_time_frame.rb} +3 -3
- data/lib/fuse_client/models/{create_spend_power_customization_request.rb → create_consumer_risk_report_customization_request.rb} +6 -6
- data/lib/fuse_client/models/{create_spend_power_customization_response.rb → create_consumer_risk_report_customization_response.rb} +3 -3
- data/lib/fuse_client/models/{create_spend_power_request.rb → create_consumer_risk_report_request.rb} +5 -5
- data/lib/fuse_client/models/{delete_spend_power_response.rb → create_consumer_risk_report_response.rb} +3 -4
- data/lib/fuse_client/models/{create_spend_power_response.rb → delete_consumer_risk_report_response.rb} +3 -4
- data/lib/fuse_client/models/{eval_spend_power_request.rb → eval_consumer_risk_report_request.rb} +5 -5
- data/lib/fuse_client/models/{eval_spend_power_request_events_inner.rb → eval_consumer_risk_report_request_events_inner.rb} +3 -3
- data/lib/fuse_client/models/{eval_spend_power_response.rb → eval_consumer_risk_report_response.rb} +3 -3
- data/lib/fuse_client/models/external_transaction_event.rb +1 -6
- data/lib/fuse_client/models/financial_connection_details.rb +22 -4
- data/lib/fuse_client/models/financial_connection_details_basiq.rb +241 -0
- data/lib/fuse_client/models/financial_connection_details_belvo.rb +236 -0
- data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +14 -4
- data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +11 -1
- data/lib/fuse_client/models/fuse_api_error_code.rb +6 -3
- data/lib/fuse_client/models/get_consumer_risk_report_customization_response.rb +239 -0
- data/lib/fuse_client/models/{get_spend_power_response.rb → get_consumer_risk_report_response.rb} +13 -13
- data/lib/fuse_client/models/in_app_transaction_event.rb +0 -5
- data/lib/fuse_client/models/transaction.rb +1 -1
- data/lib/fuse_client/models/{update_spend_power_customization_request.rb → update_consumer_risk_report_customization_request.rb} +6 -6
- data/lib/fuse_client/models/{update_spend_power_customization_response.rb → update_consumer_risk_report_customization_response.rb} +3 -3
- data/lib/fuse_client/models/updated_balance_event.rb +2 -2
- data/lib/fuse_client/version.rb +1 -1
- data/lib/fuse_client.rb +18 -16
- data/spec/api/fuse_api_spec.rb +37 -36
- data/spec/api/{spend_power_api_spec.rb → risk_report_api_spec.rb} +16 -16
- data/spec/models/{spend_power_customization_spec.rb → consumer_risk_report_customization_spec.rb} +6 -6
- data/spec/models/{spend_power_spec.rb → consumer_risk_report_spec.rb} +6 -6
- data/spec/models/{spend_power_time_frame_spec.rb → consumer_risk_report_time_frame_spec.rb} +6 -6
- data/spec/models/{create_spend_power_customization_request_spec.rb → create_consumer_risk_report_customization_request_spec.rb} +6 -6
- data/spec/models/{create_spend_power_customization_response_spec.rb → create_consumer_risk_report_customization_response_spec.rb} +6 -6
- data/spec/models/{create_spend_power_request_spec.rb → create_consumer_risk_report_request_spec.rb} +6 -6
- data/spec/models/{delete_spend_power_response_spec.rb → create_consumer_risk_report_response_spec.rb} +6 -6
- data/spec/models/{create_spend_power_response_spec.rb → delete_consumer_risk_report_response_spec.rb} +6 -6
- data/spec/models/{eval_spend_power_request_events_inner_spec.rb → eval_consumer_risk_report_request_events_inner_spec.rb} +6 -6
- data/spec/models/{eval_spend_power_request_spec.rb → eval_consumer_risk_report_request_spec.rb} +6 -6
- data/spec/models/{eval_spend_power_response_spec.rb → eval_consumer_risk_report_response_spec.rb} +6 -6
- data/spec/models/financial_connection_details_basiq_spec.rb +40 -0
- data/spec/models/financial_connection_details_belvo_spec.rb +40 -0
- data/spec/models/financial_connection_details_spec.rb +12 -0
- data/spec/models/financial_connections_investment_security_exchange_spec.rb +6 -0
- data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +6 -0
- data/spec/models/{get_spend_power_customization_response_spec.rb → get_consumer_risk_report_customization_response_spec.rb} +7 -7
- data/spec/models/{get_spend_power_response_spec.rb → get_consumer_risk_report_response_spec.rb} +7 -7
- data/spec/models/{update_spend_power_customization_request_spec.rb → update_consumer_risk_report_customization_request_spec.rb} +6 -6
- data/spec/models/{update_spend_power_customization_response_spec.rb → update_consumer_risk_report_customization_response_spec.rb} +6 -6
- metadata +74 -65
- data/docs/EvalSpendPowerRequest.md +0 -22
- data/docs/SpendPowerApi.md +0 -165
- data/lib/fuse_client/models/get_spend_power_customization_response.rb +0 -239
@@ -0,0 +1,165 @@
|
|
1
|
+
# FuseClient::RiskReportApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://sandbox-api.letsfuse.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_consumer_risk_report**](RiskReportApi.md#delete_consumer_risk_report) | **DELETE** /v1/risk_report/consumer/{consumer_risk_report_id} | Delete consumer risk report |
|
8
|
+
| [**get_consumer_risk_report_customization**](RiskReportApi.md#get_consumer_risk_report_customization) | **GET** /v1/risk_report/consumer/customization/{consumer_risk_report_customization_id} | Get consumer risk report customization |
|
9
|
+
|
10
|
+
|
11
|
+
## delete_consumer_risk_report
|
12
|
+
|
13
|
+
> <DeleteConsumerRiskReportResponse> delete_consumer_risk_report(consumer_risk_report_id, fuse_client_id, fuse_api_key)
|
14
|
+
|
15
|
+
Delete consumer risk report
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'fuse_client'
|
22
|
+
# setup authorization
|
23
|
+
FuseClient.configure do |config|
|
24
|
+
# Configure API key authorization: fuseApiKey
|
25
|
+
config.api_key['fuseApiKey'] = 'YOUR API KEY'
|
26
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
+
# config.api_key_prefix['fuseApiKey'] = 'Bearer'
|
28
|
+
|
29
|
+
# Configure API key authorization: fuseClientId
|
30
|
+
config.api_key['fuseClientId'] = 'YOUR API KEY'
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
32
|
+
# config.api_key_prefix['fuseClientId'] = 'Bearer'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = FuseClient::RiskReportApi.new
|
36
|
+
consumer_risk_report_id = 'consumer_risk_report_id_example' # String |
|
37
|
+
fuse_client_id = 'fuse_client_id_example' # String |
|
38
|
+
fuse_api_key = 'fuse_api_key_example' # String |
|
39
|
+
|
40
|
+
begin
|
41
|
+
# Delete consumer risk report
|
42
|
+
result = api_instance.delete_consumer_risk_report(consumer_risk_report_id, fuse_client_id, fuse_api_key)
|
43
|
+
p result
|
44
|
+
rescue FuseClient::ApiError => e
|
45
|
+
puts "Error when calling RiskReportApi->delete_consumer_risk_report: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
#### Using the delete_consumer_risk_report_with_http_info variant
|
50
|
+
|
51
|
+
This returns an Array which contains the response data, status code and headers.
|
52
|
+
|
53
|
+
> <Array(<DeleteConsumerRiskReportResponse>, Integer, Hash)> delete_consumer_risk_report_with_http_info(consumer_risk_report_id, fuse_client_id, fuse_api_key)
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
begin
|
57
|
+
# Delete consumer risk report
|
58
|
+
data, status_code, headers = api_instance.delete_consumer_risk_report_with_http_info(consumer_risk_report_id, fuse_client_id, fuse_api_key)
|
59
|
+
p status_code # => 2xx
|
60
|
+
p headers # => { ... }
|
61
|
+
p data # => <DeleteConsumerRiskReportResponse>
|
62
|
+
rescue FuseClient::ApiError => e
|
63
|
+
puts "Error when calling RiskReportApi->delete_consumer_risk_report_with_http_info: #{e}"
|
64
|
+
end
|
65
|
+
```
|
66
|
+
|
67
|
+
### Parameters
|
68
|
+
|
69
|
+
| Name | Type | Description | Notes |
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
71
|
+
| **consumer_risk_report_id** | **String** | | |
|
72
|
+
| **fuse_client_id** | **String** | | |
|
73
|
+
| **fuse_api_key** | **String** | | |
|
74
|
+
|
75
|
+
### Return type
|
76
|
+
|
77
|
+
[**DeleteConsumerRiskReportResponse**](DeleteConsumerRiskReportResponse.md)
|
78
|
+
|
79
|
+
### Authorization
|
80
|
+
|
81
|
+
[fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
|
82
|
+
|
83
|
+
### HTTP request headers
|
84
|
+
|
85
|
+
- **Content-Type**: Not defined
|
86
|
+
- **Accept**: application/json
|
87
|
+
|
88
|
+
|
89
|
+
## get_consumer_risk_report_customization
|
90
|
+
|
91
|
+
> <GetConsumerRiskReportCustomizationResponse> get_consumer_risk_report_customization(consumer_risk_report_customization_id, fuse_client_id, fuse_api_key)
|
92
|
+
|
93
|
+
Get consumer risk report customization
|
94
|
+
|
95
|
+
### Examples
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
require 'time'
|
99
|
+
require 'fuse_client'
|
100
|
+
# setup authorization
|
101
|
+
FuseClient.configure do |config|
|
102
|
+
# Configure API key authorization: fuseApiKey
|
103
|
+
config.api_key['fuseApiKey'] = 'YOUR API KEY'
|
104
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
105
|
+
# config.api_key_prefix['fuseApiKey'] = 'Bearer'
|
106
|
+
|
107
|
+
# Configure API key authorization: fuseClientId
|
108
|
+
config.api_key['fuseClientId'] = 'YOUR API KEY'
|
109
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
110
|
+
# config.api_key_prefix['fuseClientId'] = 'Bearer'
|
111
|
+
end
|
112
|
+
|
113
|
+
api_instance = FuseClient::RiskReportApi.new
|
114
|
+
consumer_risk_report_customization_id = 'consumer_risk_report_customization_id_example' # String |
|
115
|
+
fuse_client_id = 'fuse_client_id_example' # String |
|
116
|
+
fuse_api_key = 'fuse_api_key_example' # String |
|
117
|
+
|
118
|
+
begin
|
119
|
+
# Get consumer risk report customization
|
120
|
+
result = api_instance.get_consumer_risk_report_customization(consumer_risk_report_customization_id, fuse_client_id, fuse_api_key)
|
121
|
+
p result
|
122
|
+
rescue FuseClient::ApiError => e
|
123
|
+
puts "Error when calling RiskReportApi->get_consumer_risk_report_customization: #{e}"
|
124
|
+
end
|
125
|
+
```
|
126
|
+
|
127
|
+
#### Using the get_consumer_risk_report_customization_with_http_info variant
|
128
|
+
|
129
|
+
This returns an Array which contains the response data, status code and headers.
|
130
|
+
|
131
|
+
> <Array(<GetConsumerRiskReportCustomizationResponse>, Integer, Hash)> get_consumer_risk_report_customization_with_http_info(consumer_risk_report_customization_id, fuse_client_id, fuse_api_key)
|
132
|
+
|
133
|
+
```ruby
|
134
|
+
begin
|
135
|
+
# Get consumer risk report customization
|
136
|
+
data, status_code, headers = api_instance.get_consumer_risk_report_customization_with_http_info(consumer_risk_report_customization_id, fuse_client_id, fuse_api_key)
|
137
|
+
p status_code # => 2xx
|
138
|
+
p headers # => { ... }
|
139
|
+
p data # => <GetConsumerRiskReportCustomizationResponse>
|
140
|
+
rescue FuseClient::ApiError => e
|
141
|
+
puts "Error when calling RiskReportApi->get_consumer_risk_report_customization_with_http_info: #{e}"
|
142
|
+
end
|
143
|
+
```
|
144
|
+
|
145
|
+
### Parameters
|
146
|
+
|
147
|
+
| Name | Type | Description | Notes |
|
148
|
+
| ---- | ---- | ----------- | ----- |
|
149
|
+
| **consumer_risk_report_customization_id** | **String** | | |
|
150
|
+
| **fuse_client_id** | **String** | | |
|
151
|
+
| **fuse_api_key** | **String** | | |
|
152
|
+
|
153
|
+
### Return type
|
154
|
+
|
155
|
+
[**GetConsumerRiskReportCustomizationResponse**](GetConsumerRiskReportCustomizationResponse.md)
|
156
|
+
|
157
|
+
### Authorization
|
158
|
+
|
159
|
+
[fuseApiKey](../README.md#fuseApiKey), [fuseClientId](../README.md#fuseClientId)
|
160
|
+
|
161
|
+
### HTTP request headers
|
162
|
+
|
163
|
+
- **Content-Type**: Not defined
|
164
|
+
- **Accept**: application/json
|
165
|
+
|
data/docs/Transaction.md
CHANGED
@@ -10,7 +10,7 @@
|
|
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) | |
|
12
12
|
| **description** | **String** | Description of the transaction | |
|
13
|
-
| **category** | **Array<String>** | Categories of the transaction,
|
13
|
+
| **category** | **Array<String>** | Categories of the transaction, i.e., Computers and Electronics. You can download the categories from [here](https://fuse-public-bucket.s3.amazonaws.com/transaction-categories.csv) | |
|
14
14
|
| **merchant** | [**TransactionMerchant**](TransactionMerchant.md) | | |
|
15
15
|
| **status** | **String** | The status of the transaction. This will be either posted or pending. | |
|
16
16
|
| **type** | **String** | Type of the transaction, ie adjustment. '-' means we were not able to map the upstream type. | |
|
@@ -1,12 +1,12 @@
|
|
1
|
-
# FuseClient::
|
1
|
+
# FuseClient::UpdateConsumerRiskReportCustomizationRequest
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **timeframe** | [**
|
8
|
-
| **min_limit** | **Float** | The minimum allowed limit
|
9
|
-
| **max_limit** | **Float** | The maximum allowed limit
|
7
|
+
| **timeframe** | [**ConsumerRiskReportTimeFrame**](ConsumerRiskReportTimeFrame.md) | | [optional] |
|
8
|
+
| **min_limit** | **Float** | The minimum allowed limit, in cents. | [optional] |
|
9
|
+
| **max_limit** | **Float** | The maximum allowed limit, in cents. | [optional] |
|
10
10
|
| **risk_tolerance** | **Float** | This parameter indicates the risk tolerance associated with spend limits. A high risk tolerance allow for higher limits, increasing both potential gains and losses. A Lower risk tolerance enforces strict limits, reducing the potential for loss but also limiting transaction volume for reliable users. | [optional] |
|
11
11
|
|
12
12
|
## Example
|
@@ -14,7 +14,7 @@
|
|
14
14
|
```ruby
|
15
15
|
require 'fuse_client'
|
16
16
|
|
17
|
-
instance = FuseClient::
|
17
|
+
instance = FuseClient::UpdateConsumerRiskReportCustomizationRequest.new(
|
18
18
|
timeframe: null,
|
19
19
|
min_limit: null,
|
20
20
|
max_limit: null,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# FuseClient::
|
1
|
+
# FuseClient::UpdateConsumerRiskReportCustomizationResponse
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
```ruby
|
13
13
|
require 'fuse_client'
|
14
14
|
|
15
|
-
instance = FuseClient::
|
15
|
+
instance = FuseClient::UpdateConsumerRiskReportCustomizationResponse.new(
|
16
16
|
id: null,
|
17
17
|
request_id: null
|
18
18
|
)
|
data/docs/UpdatedBalanceEvent.md
CHANGED
@@ -7,8 +7,8 @@
|
|
7
7
|
| **event_type** | **String** | | |
|
8
8
|
| **iso_currency_code** | **String** | The ISO-4217 currency code. | |
|
9
9
|
| **timestamp** | **String** | Datetime that the balance is accurate for In ISO-8601 format | |
|
10
|
-
| **available** | **Float** | The current balance of the account factoring in pending transactions.
|
11
|
-
| **current** | **Float** | The current balance of the account without factoring in pending transactions.
|
10
|
+
| **available** | **Float** | The current balance of the account factoring in pending transactions. | [optional] |
|
11
|
+
| **current** | **Float** | The current balance of the account without factoring in pending transactions. | [optional] |
|
12
12
|
|
13
13
|
## Example
|
14
14
|
|
Binary file
|