Skip to content

Commit 9f1df24

Browse files
author
fireblocks_dx_team
committed
Generated SDK #538
1 parent fb33045 commit 9f1df24

39 files changed

+1747
-39
lines changed

.openapi-generator/FILES

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ docs/AddCollateralRequestBody.md
1818
docs/AddContractAssetRequest.md
1919
docs/AddCosignerRequest.md
2020
docs/AddCosignerResponse.md
21+
docs/AddExchangeAccountRequest.md
22+
docs/AddExchangeAccountResponse.md
2123
docs/AdditionalInfo.md
2224
docs/AmlRegistrationResult.md
25+
docs/AmlRegistrationResultFullPayload.md
2326
docs/AmlScreeningResult.md
2427
docs/AmountAggregationTimePeriodMethod.md
2528
docs/AmountAndChainDescriptor.md
@@ -83,8 +86,10 @@ docs/CollectionTokenMetadataDto.md
8386
docs/CollectionType.md
8487
docs/ComplianceApi.md
8588
docs/ComplianceResult.md
89+
docs/ComplianceResultFullPayload.md
8690
docs/ComplianceScreeningConfigurationApi.md
8791
docs/ComplianceScreeningResult.md
92+
docs/ComplianceScreeningResultFullPayload.md
8893
docs/ConfigChangeRequestStatus.md
8994
docs/ConfigConversionOperationSnapshot.md
9095
docs/ConfigDisbursementOperationSnapshot.md
@@ -619,8 +624,11 @@ fireblocks/models/add_collateral_request_body.py
619624
fireblocks/models/add_contract_asset_request.py
620625
fireblocks/models/add_cosigner_request.py
621626
fireblocks/models/add_cosigner_response.py
627+
fireblocks/models/add_exchange_account_request.py
628+
fireblocks/models/add_exchange_account_response.py
622629
fireblocks/models/additional_info.py
623630
fireblocks/models/aml_registration_result.py
631+
fireblocks/models/aml_registration_result_full_payload.py
624632
fireblocks/models/aml_screening_result.py
625633
fireblocks/models/amount_aggregation_time_period_method.py
626634
fireblocks/models/amount_and_chain_descriptor.py
@@ -679,7 +687,9 @@ fireblocks/models/collection_token_metadata_attribute_dto.py
679687
fireblocks/models/collection_token_metadata_dto.py
680688
fireblocks/models/collection_type.py
681689
fireblocks/models/compliance_result.py
690+
fireblocks/models/compliance_result_full_payload.py
682691
fireblocks/models/compliance_screening_result.py
692+
fireblocks/models/compliance_screening_result_full_payload.py
683693
fireblocks/models/config_change_request_status.py
684694
fireblocks/models/config_conversion_operation_snapshot.py
685695
fireblocks/models/config_disbursement_operation_snapshot.py
@@ -1148,8 +1158,11 @@ test/test_add_collateral_request_body.py
11481158
test/test_add_contract_asset_request.py
11491159
test/test_add_cosigner_request.py
11501160
test/test_add_cosigner_response.py
1161+
test/test_add_exchange_account_request.py
1162+
test/test_add_exchange_account_response.py
11511163
test/test_additional_info.py
11521164
test/test_aml_registration_result.py
1165+
test/test_aml_registration_result_full_payload.py
11531166
test/test_aml_screening_result.py
11541167
test/test_amount_aggregation_time_period_method.py
11551168
test/test_amount_and_chain_descriptor.py
@@ -1214,8 +1227,10 @@ test/test_collection_token_metadata_dto.py
12141227
test/test_collection_type.py
12151228
test/test_compliance_api.py
12161229
test/test_compliance_result.py
1230+
test/test_compliance_result_full_payload.py
12171231
test/test_compliance_screening_configuration_api.py
12181232
test/test_compliance_screening_result.py
1233+
test/test_compliance_screening_result_full_payload.py
12191234
test/test_config_change_request_status.py
12201235
test/test_config_conversion_operation_snapshot.py
12211236
test/test_config_disbursement_operation_snapshot.py

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ Class | Method | HTTP request | Description
247247
*ComplianceApi* | [**get_aml_post_screening_policy**](docs/ComplianceApi.md#get_aml_post_screening_policy) | **GET** /screening/aml/post_screening_policy | AML - View Post-Screening Policy
248248
*ComplianceApi* | [**get_aml_screening_policy**](docs/ComplianceApi.md#get_aml_screening_policy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy
249249
*ComplianceApi* | [**get_post_screening_policy**](docs/ComplianceApi.md#get_post_screening_policy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy
250+
*ComplianceApi* | [**get_screening_full_details**](docs/ComplianceApi.md#get_screening_full_details) | **GET** /screening/transaction/{txId} | Provides all the compliance details for the given screened transaction.
250251
*ComplianceApi* | [**get_screening_policy**](docs/ComplianceApi.md#get_screening_policy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy
251252
*ComplianceApi* | [**retry_rejected_transaction_bypass_screening_checks**](docs/ComplianceApi.md#retry_rejected_transaction_bypass_screening_checks) | **POST** /screening/transaction/{txId}/bypass_screening_policy | Calling the \"Bypass Screening Policy\" API endpoint triggers a new transaction, with the API user as the initiator, bypassing the screening policy check
252253
*ComplianceApi* | [**update_aml_screening_configuration**](docs/ComplianceApi.md#update_aml_screening_configuration) | **PUT** /screening/aml/policy_configuration | Update AML Configuration
@@ -291,9 +292,11 @@ Class | Method | HTTP request | Description
291292
*DeployedContractsApi* | [**get_deployed_contracts**](docs/DeployedContractsApi.md#get_deployed_contracts) | **GET** /tokenization/contracts | List deployed contracts data
292293
*EmbeddedWalletsApi* | [**get_public_key_info_for_address_ncw**](docs/EmbeddedWalletsApi.md#get_public_key_info_for_address_ncw) | **GET** /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key of an asset
293294
*EmbeddedWalletsApi* | [**get_public_key_info_ncw**](docs/EmbeddedWalletsApi.md#get_public_key_info_ncw) | **GET** /ncw/{walletId}/public_key_info | Get the public key for a derivation path
295+
*ExchangeAccountsApi* | [**add_exchange_account**](docs/ExchangeAccountsApi.md#add_exchange_account) | **POST** /exchange_accounts | Add an exchange account
294296
*ExchangeAccountsApi* | [**convert_assets**](docs/ExchangeAccountsApi.md#convert_assets) | **POST** /exchange_accounts/{exchangeAccountId}/convert | Convert exchange account funds from the source asset to the destination asset.
295297
*ExchangeAccountsApi* | [**get_exchange_account**](docs/ExchangeAccountsApi.md#get_exchange_account) | **GET** /exchange_accounts/{exchangeAccountId} | Find a specific exchange account
296298
*ExchangeAccountsApi* | [**get_exchange_account_asset**](docs/ExchangeAccountsApi.md#get_exchange_account_asset) | **GET** /exchange_accounts/{exchangeAccountId}/{assetId} | Find an asset for an exchange account
299+
*ExchangeAccountsApi* | [**get_exchange_accounts_credentials_public_key**](docs/ExchangeAccountsApi.md#get_exchange_accounts_credentials_public_key) | **GET** /exchange_accounts/credentials_public_key | Get public key to encrypt exchange credentials
297300
*ExchangeAccountsApi* | [**get_paged_exchange_accounts**](docs/ExchangeAccountsApi.md#get_paged_exchange_accounts) | **GET** /exchange_accounts/paged | Pagination list exchange accounts
298301
*ExchangeAccountsApi* | [**internal_transfer**](docs/ExchangeAccountsApi.md#internal_transfer) | **POST** /exchange_accounts/{exchangeAccountId}/internal_transfer | Internal transfer for exchange accounts
299302
*ExternalWalletsApi* | [**add_asset_to_external_wallet**](docs/ExternalWalletsApi.md#add_asset_to_external_wallet) | **POST** /external_wallets/{walletId}/{assetId} | Add an asset to an external wallet.
@@ -509,8 +512,11 @@ Class | Method | HTTP request | Description
509512
- [AddContractAssetRequest](docs/AddContractAssetRequest.md)
510513
- [AddCosignerRequest](docs/AddCosignerRequest.md)
511514
- [AddCosignerResponse](docs/AddCosignerResponse.md)
515+
- [AddExchangeAccountRequest](docs/AddExchangeAccountRequest.md)
516+
- [AddExchangeAccountResponse](docs/AddExchangeAccountResponse.md)
512517
- [AdditionalInfo](docs/AdditionalInfo.md)
513518
- [AmlRegistrationResult](docs/AmlRegistrationResult.md)
519+
- [AmlRegistrationResultFullPayload](docs/AmlRegistrationResultFullPayload.md)
514520
- [AmlScreeningResult](docs/AmlScreeningResult.md)
515521
- [AmountAggregationTimePeriodMethod](docs/AmountAggregationTimePeriodMethod.md)
516522
- [AmountAndChainDescriptor](docs/AmountAndChainDescriptor.md)
@@ -568,7 +574,9 @@ Class | Method | HTTP request | Description
568574
- [CollectionTokenMetadataDto](docs/CollectionTokenMetadataDto.md)
569575
- [CollectionType](docs/CollectionType.md)
570576
- [ComplianceResult](docs/ComplianceResult.md)
577+
- [ComplianceResultFullPayload](docs/ComplianceResultFullPayload.md)
571578
- [ComplianceScreeningResult](docs/ComplianceScreeningResult.md)
579+
- [ComplianceScreeningResultFullPayload](docs/ComplianceScreeningResultFullPayload.md)
572580
- [ConfigChangeRequestStatus](docs/ConfigChangeRequestStatus.md)
573581
- [ConfigConversionOperationSnapshot](docs/ConfigConversionOperationSnapshot.md)
574582
- [ConfigDisbursementOperationSnapshot](docs/ConfigDisbursementOperationSnapshot.md)

docs/AddExchangeAccountRequest.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# AddExchangeAccountRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**exchange_type** | [**ExchangeType**](ExchangeType.md) | |
9+
**name** | **str** | Display name of the exchange account |
10+
**creds** | **str** | Encrypted credentials | [optional]
11+
**key** | **str** | Api key of the exchange | [optional]
12+
**main_account_id** | **str** | Optional - main account id of the exchange | [optional]
13+
14+
## Example
15+
16+
```python
17+
from fireblocks.models.add_exchange_account_request import AddExchangeAccountRequest
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of AddExchangeAccountRequest from a JSON string
22+
add_exchange_account_request_instance = AddExchangeAccountRequest.from_json(json)
23+
# print the JSON string representation of the object
24+
print(AddExchangeAccountRequest.to_json())
25+
26+
# convert the object into a dict
27+
add_exchange_account_request_dict = add_exchange_account_request_instance.to_dict()
28+
# create an instance of AddExchangeAccountRequest from a dict
29+
add_exchange_account_request_from_dict = AddExchangeAccountRequest.from_dict(add_exchange_account_request_dict)
30+
```
31+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32+
33+

docs/AddExchangeAccountResponse.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# AddExchangeAccountResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **str** | Exchange account's identifier | [optional]
9+
**name** | **str** | Display name of the exchange account | [optional]
10+
**exchange_type** | [**ExchangeType**](ExchangeType.md) | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from fireblocks.models.add_exchange_account_response import AddExchangeAccountResponse
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of AddExchangeAccountResponse from a JSON string
20+
add_exchange_account_response_instance = AddExchangeAccountResponse.from_json(json)
21+
# print the JSON string representation of the object
22+
print(AddExchangeAccountResponse.to_json())
23+
24+
# convert the object into a dict
25+
add_exchange_account_response_dict = add_exchange_account_response_instance.to_dict()
26+
# create an instance of AddExchangeAccountResponse from a dict
27+
add_exchange_account_response_from_dict = AddExchangeAccountResponse.from_dict(add_exchange_account_response_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# AmlRegistrationResultFullPayload
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**provider** | **str** | | [optional]
9+
**success** | **bool** | | [optional]
10+
**timestamp** | **float** | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from fireblocks.models.aml_registration_result_full_payload import AmlRegistrationResultFullPayload
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of AmlRegistrationResultFullPayload from a JSON string
20+
aml_registration_result_full_payload_instance = AmlRegistrationResultFullPayload.from_json(json)
21+
# print the JSON string representation of the object
22+
print(AmlRegistrationResultFullPayload.to_json())
23+
24+
# convert the object into a dict
25+
aml_registration_result_full_payload_dict = aml_registration_result_full_payload_instance.to_dict()
26+
# create an instance of AmlRegistrationResultFullPayload from a dict
27+
aml_registration_result_full_payload_from_dict = AmlRegistrationResultFullPayload.from_dict(aml_registration_result_full_payload_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

docs/ComplianceApi.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Method | HTTP request | Description
77
[**get_aml_post_screening_policy**](ComplianceApi.md#get_aml_post_screening_policy) | **GET** /screening/aml/post_screening_policy | AML - View Post-Screening Policy
88
[**get_aml_screening_policy**](ComplianceApi.md#get_aml_screening_policy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy
99
[**get_post_screening_policy**](ComplianceApi.md#get_post_screening_policy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy
10+
[**get_screening_full_details**](ComplianceApi.md#get_screening_full_details) | **GET** /screening/transaction/{txId} | Provides all the compliance details for the given screened transaction.
1011
[**get_screening_policy**](ComplianceApi.md#get_screening_policy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy
1112
[**retry_rejected_transaction_bypass_screening_checks**](ComplianceApi.md#retry_rejected_transaction_bypass_screening_checks) | **POST** /screening/transaction/{txId}/bypass_screening_policy | Calling the \"Bypass Screening Policy\" API endpoint triggers a new transaction, with the API user as the initiator, bypassing the screening policy check
1213
[**update_aml_screening_configuration**](ComplianceApi.md#update_aml_screening_configuration) | **PUT** /screening/aml/policy_configuration | Update AML Configuration
@@ -221,6 +222,80 @@ No authorization required
221222

222223
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
223224

225+
# **get_screening_full_details**
226+
> ComplianceResultFullPayload get_screening_full_details(tx_id)
227+
228+
Provides all the compliance details for the given screened transaction.
229+
230+
Provides all the compliance details for the given screened transaction.
231+
232+
### Example
233+
234+
235+
```python
236+
from fireblocks.models.compliance_result_full_payload import ComplianceResultFullPayload
237+
from fireblocks.client import Fireblocks
238+
from fireblocks.client_configuration import ClientConfiguration
239+
from fireblocks.exceptions import ApiException
240+
from fireblocks.base_path import BasePath
241+
from pprint import pprint
242+
243+
# load the secret key content from a file
244+
with open('your_secret_key_file_path', 'r') as file:
245+
secret_key_value = file.read()
246+
247+
# build the configuration
248+
configuration = ClientConfiguration(
249+
api_key="your_api_key",
250+
secret_key=secret_key_value,
251+
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
252+
)
253+
254+
255+
# Enter a context with an instance of the API client
256+
with Fireblocks(configuration) as fireblocks:
257+
tx_id = '550e8400-e29b-41d4-a716-446655440000' # str | Fireblocks transaction ID of the screened transaction
258+
259+
try:
260+
# Provides all the compliance details for the given screened transaction.
261+
api_response = fireblocks.compliance.get_screening_full_details(tx_id).result()
262+
print("The response of ComplianceApi->get_screening_full_details:\n")
263+
pprint(api_response)
264+
except Exception as e:
265+
print("Exception when calling ComplianceApi->get_screening_full_details: %s\n" % e)
266+
```
267+
268+
269+
270+
### Parameters
271+
272+
273+
Name | Type | Description | Notes
274+
------------- | ------------- | ------------- | -------------
275+
**tx_id** | **str**| Fireblocks transaction ID of the screened transaction |
276+
277+
### Return type
278+
279+
[**ComplianceResultFullPayload**](ComplianceResultFullPayload.md)
280+
281+
### Authorization
282+
283+
No authorization required
284+
285+
### HTTP request headers
286+
287+
- **Content-Type**: Not defined
288+
- **Accept**: application/json
289+
290+
### HTTP response details
291+
292+
| Status code | Description | Response headers |
293+
|-------------|-------------|------------------|
294+
**200** | A compliance object | * X-Request-ID - <br> |
295+
**0** | Error Response | * X-Request-ID - <br> |
296+
297+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
298+
224299
# **get_screening_policy**
225300
> ScreeningProviderRulesConfigurationResponse get_screening_policy()
226301

docs/ComplianceResultFullPayload.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# ComplianceResultFullPayload
2+
3+
The result of the Compliance AML/Travel Rule screening.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**aml** | [**List[ComplianceScreeningResultFullPayload]**](ComplianceScreeningResultFullPayload.md) | The end result of the AML screening. | [optional]
10+
**tr** | [**List[ComplianceScreeningResultFullPayload]**](ComplianceScreeningResultFullPayload.md) | The result of the Travel Rule screening. | [optional]
11+
**aml_list** | [**List[ComplianceScreeningResultFullPayload]**](ComplianceScreeningResultFullPayload.md) | The list of all results of the AML screening. | [optional]
12+
**status** | **str** | Status of compliance result screening. | [optional]
13+
**aml_registration** | [**List[AmlRegistrationResultFullPayload]**](AmlRegistrationResultFullPayload.md) | The results of the AML address registration. | [optional]
14+
15+
## Example
16+
17+
```python
18+
from fireblocks.models.compliance_result_full_payload import ComplianceResultFullPayload
19+
20+
# TODO update the JSON string below
21+
json = "{}"
22+
# create an instance of ComplianceResultFullPayload from a JSON string
23+
compliance_result_full_payload_instance = ComplianceResultFullPayload.from_json(json)
24+
# print the JSON string representation of the object
25+
print(ComplianceResultFullPayload.to_json())
26+
27+
# convert the object into a dict
28+
compliance_result_full_payload_dict = compliance_result_full_payload_instance.to_dict()
29+
# create an instance of ComplianceResultFullPayload from a dict
30+
compliance_result_full_payload_from_dict = ComplianceResultFullPayload.from_dict(compliance_result_full_payload_dict)
31+
```
32+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
33+
34+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# ComplianceScreeningResultFullPayload
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**provider** | **str** | | [optional]
9+
**payload** | **object** | The payload of the screening result. The payload is a JSON object that contains the screening result. The payload is different for each screening provider. | [optional]
10+
**bypass_reason** | **str** | | [optional]
11+
**screening_status** | **str** | | [optional]
12+
**timestamp** | **float** | | [optional]
13+
14+
## Example
15+
16+
```python
17+
from fireblocks.models.compliance_screening_result_full_payload import ComplianceScreeningResultFullPayload
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of ComplianceScreeningResultFullPayload from a JSON string
22+
compliance_screening_result_full_payload_instance = ComplianceScreeningResultFullPayload.from_json(json)
23+
# print the JSON string representation of the object
24+
print(ComplianceScreeningResultFullPayload.to_json())
25+
26+
# convert the object into a dict
27+
compliance_screening_result_full_payload_dict = compliance_screening_result_full_payload_instance.to_dict()
28+
# create an instance of ComplianceScreeningResultFullPayload from a dict
29+
compliance_screening_result_full_payload_from_dict = ComplianceScreeningResultFullPayload.from_dict(compliance_screening_result_full_payload_dict)
30+
```
31+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32+
33+

0 commit comments

Comments
 (0)