diff --git a/docs/AssetResponseOnchain.md b/docs/AssetResponseOnchain.md index 3dd989a..18f5753 100644 --- a/docs/AssetResponseOnchain.md +++ b/docs/AssetResponseOnchain.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **str** | The asset name | **address** | **str** | The asset address | [optional] **decimals** | **float** | Number of decimals | -**standard** | **str** | The asset standard | +**standard** | **str** | The asset standard | [optional] ## Example diff --git a/docs/BlockchainsAssetsApi.md b/docs/BlockchainsAssetsApi.md index d46ee03..d750b0f 100644 --- a/docs/BlockchainsAssetsApi.md +++ b/docs/BlockchainsAssetsApi.md @@ -83,7 +83,7 @@ No authorization required Register an asset -Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR +Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR - Solana ### Example @@ -151,8 +151,8 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A new asset has been created successfully | - | -**400** | - Listing an asset on the requested blockchain is not supported. Error code: 1000 - The asset address is invalid. Error code: 1003 - Self serve listing an asset on the requested blockchain is currently not supported, please contact support. Error code: 1004 | - | -**403** | - The asset creation quota reached. Error code: 1005 | - | +**400** | - Listing an asset on the requested blockchain is not supported. Error code: 1000 - The asset address is invalid. Error code: 1003 - Self serve listing an asset on the requested blockchain is currently not supported, please contact support. Error code: 1004 - Blockchain is deprecated. Error code: 1006 - The asset's standard is not supported. Error code: 1007 | - | +**403** | - The asset creation quota reached. Error code: 1005 - Tenant is not allowed to create testnet assets. Error code: 1008 - Tenant is not allowed to create mainnet assets. Error code: 1009 | - | **404** | - Invalid address, could not get asset information. Error code 1003 | - | **409** | - The asset is already supported globally. Error code: 1001 - The asset has already been added to this workspace. Error code: 1002 | - | **500** | Failed to create asset | - | diff --git a/docs/CreateInternalTransferRequest.md b/docs/CreateInternalTransferRequest.md index 05f01ac..c1cdbbd 100644 --- a/docs/CreateInternalTransferRequest.md +++ b/docs/CreateInternalTransferRequest.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**asset** | **str** | | [optional] -**amount** | **str** | | [optional] -**source_type** | [**TradingAccountType**](TradingAccountType.md) | | [optional] -**dest_type** | [**TradingAccountType**](TradingAccountType.md) | | [optional] +**asset** | **str** | | +**amount** | **str** | | +**source_type** | [**TradingAccountType**](TradingAccountType.md) | | +**dest_type** | [**TradingAccountType**](TradingAccountType.md) | | ## Example diff --git a/docs/DestinationTransferPeerPathResponse.md b/docs/DestinationTransferPeerPathResponse.md index 2092e60..780a86b 100644 --- a/docs/DestinationTransferPeerPathResponse.md +++ b/docs/DestinationTransferPeerPathResponse.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **id** | **str** | The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. | [optional] **name** | **str** | The name of the peer. | [optional] **wallet_id** | **str** | | [optional] +**trading_account** | **str** | If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account. | [optional] ## Example diff --git a/docs/InternalTransferResponse.md b/docs/InternalTransferResponse.md index 056594c..7124304 100644 --- a/docs/InternalTransferResponse.md +++ b/docs/InternalTransferResponse.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **bool** | Indicates whether the transfer was successful | +**id** | **str** | The transaction ID of the internal transfer | [optional] ## Example diff --git a/docs/RegisterNewAssetRequest.md b/docs/RegisterNewAssetRequest.md index 5485b42..84e6582 100644 --- a/docs/RegisterNewAssetRequest.md +++ b/docs/RegisterNewAssetRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **blockchain_id** | **str** | Native asset ID of the blockchain | -**address** | **str** | Asset address. - For EVM based chains this should be the token contract address. - For Stellar (XLM) this should be the issuer address. - For Algorand (ALGO) this should be the asset ID. - For TRON (TRX) this should be the token contract address. - For NEAR this will be the token address. | +**address** | **str** | Asset address. - EVM-based chains: token contract address - Stellar (XLM): issuer address - Algorand (ALGO): asset ID - TRON (TRX): token contract address - NEAR: token address - Solana: token's mint account address | **symbol** | **str** | Required for Stellar only, asset code is expected. | [optional] ## Example diff --git a/docs/SourceTransferPeerPathResponse.md b/docs/SourceTransferPeerPathResponse.md index 74ebc80..1a0c595 100644 --- a/docs/SourceTransferPeerPathResponse.md +++ b/docs/SourceTransferPeerPathResponse.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **id** | **str** | The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. | [optional] **name** | **str** | The name of the peer. | [optional] **wallet_id** | **str** | | [optional] +**trading_account** | **str** | If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account. | [optional] ## Example diff --git a/fireblocks/api/blockchains_assets_api.py b/fireblocks/api/blockchains_assets_api.py index c25ac75..216478d 100644 --- a/fireblocks/api/blockchains_assets_api.py +++ b/fireblocks/api/blockchains_assets_api.py @@ -182,7 +182,7 @@ def register_new_asset( ) -> Future[ApiResponse[AssetResponse]]: """Register an asset - Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR + Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR - Solana :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. :type idempotency_key: str diff --git a/fireblocks/models/asset_response_onchain.py b/fireblocks/models/asset_response_onchain.py index db4c652..cd04403 100644 --- a/fireblocks/models/asset_response_onchain.py +++ b/fireblocks/models/asset_response_onchain.py @@ -31,7 +31,7 @@ class AssetResponseOnchain(BaseModel): name: StrictStr = Field(description="The asset name") address: Optional[StrictStr] = Field(default=None, description="The asset address") decimals: Union[StrictFloat, StrictInt] = Field(description="Number of decimals") - standard: StrictStr = Field(description="The asset standard") + standard: Optional[StrictStr] = Field(default=None, description="The asset standard") __properties: ClassVar[List[str]] = ["symbol", "name", "address", "decimals", "standard"] model_config = ConfigDict( diff --git a/fireblocks/models/collection_ownership_response.py b/fireblocks/models/collection_ownership_response.py index 7cbcd78..324e992 100644 --- a/fireblocks/models/collection_ownership_response.py +++ b/fireblocks/models/collection_ownership_response.py @@ -38,8 +38,8 @@ class CollectionOwnershipResponse(BaseModel): @field_validator('blockchain_descriptor') def blockchain_descriptor_validate_enum(cls, value): """Validates the enum""" - if value not in set(['ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH']): - raise ValueError("must be one of enum values ('ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH')") + if value not in set(['ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH', 'BASECHAIN_ETH_TEST3']): + raise ValueError("must be one of enum values ('ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH', 'BASECHAIN_ETH_TEST3')") return value model_config = ConfigDict( diff --git a/fireblocks/models/create_internal_transfer_request.py b/fireblocks/models/create_internal_transfer_request.py index effd10d..48185c7 100644 --- a/fireblocks/models/create_internal_transfer_request.py +++ b/fireblocks/models/create_internal_transfer_request.py @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from fireblocks.models.trading_account_type import TradingAccountType from typing import Optional, Set from typing_extensions import Self @@ -28,10 +28,10 @@ class CreateInternalTransferRequest(BaseModel): """ CreateInternalTransferRequest """ # noqa: E501 - asset: Optional[StrictStr] = None - amount: Optional[StrictStr] = None - source_type: Optional[TradingAccountType] = Field(default=None, alias="sourceType") - dest_type: Optional[TradingAccountType] = Field(default=None, alias="destType") + asset: StrictStr + amount: StrictStr + source_type: TradingAccountType = Field(alias="sourceType") + dest_type: TradingAccountType = Field(alias="destType") __properties: ClassVar[List[str]] = ["asset", "amount", "sourceType", "destType"] model_config = ConfigDict( diff --git a/fireblocks/models/destination_transfer_peer_path_response.py b/fireblocks/models/destination_transfer_peer_path_response.py index 53c17b1..f67263c 100644 --- a/fireblocks/models/destination_transfer_peer_path_response.py +++ b/fireblocks/models/destination_transfer_peer_path_response.py @@ -33,7 +33,8 @@ class DestinationTransferPeerPathResponse(BaseModel): id: Optional[StrictStr] = Field(default=None, description="The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed.") name: Optional[StrictStr] = Field(default=None, description="The name of the peer.") wallet_id: Optional[StrictStr] = Field(default=None, alias="walletId") - __properties: ClassVar[List[str]] = ["type", "subType", "id", "name", "walletId"] + trading_account: Optional[StrictStr] = Field(default=None, description="If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account.", alias="tradingAccount") + __properties: ClassVar[List[str]] = ["type", "subType", "id", "name", "walletId", "tradingAccount"] model_config = ConfigDict( populate_by_name=True, @@ -79,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]: if self.id is None and "id" in self.model_fields_set: _dict['id'] = None + # set to None if trading_account (nullable) is None + # and model_fields_set contains the field + if self.trading_account is None and "trading_account" in self.model_fields_set: + _dict['tradingAccount'] = None + return _dict @classmethod @@ -95,7 +101,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "subType": obj.get("subType"), "id": obj.get("id"), "name": obj.get("name"), - "walletId": obj.get("walletId") + "walletId": obj.get("walletId"), + "tradingAccount": obj.get("tradingAccount") }) return _obj diff --git a/fireblocks/models/internal_transfer_response.py b/fireblocks/models/internal_transfer_response.py index c54f906..7d16e60 100644 --- a/fireblocks/models/internal_transfer_response.py +++ b/fireblocks/models/internal_transfer_response.py @@ -18,8 +18,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,8 @@ class InternalTransferResponse(BaseModel): InternalTransferResponse """ # noqa: E501 success: StrictBool = Field(description="Indicates whether the transfer was successful") - __properties: ClassVar[List[str]] = ["success"] + id: Optional[StrictStr] = Field(default=None, description="The transaction ID of the internal transfer") + __properties: ClassVar[List[str]] = ["success", "id"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +70,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + return _dict @classmethod @@ -81,7 +87,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "success": obj.get("success") + "success": obj.get("success"), + "id": obj.get("id") }) return _obj diff --git a/fireblocks/models/register_new_asset_request.py b/fireblocks/models/register_new_asset_request.py index b1a5e16..45f6ae0 100644 --- a/fireblocks/models/register_new_asset_request.py +++ b/fireblocks/models/register_new_asset_request.py @@ -28,7 +28,7 @@ class RegisterNewAssetRequest(BaseModel): RegisterNewAssetRequest """ # noqa: E501 blockchain_id: StrictStr = Field(description="Native asset ID of the blockchain", alias="blockchainId") - address: StrictStr = Field(description="Asset address. - For EVM based chains this should be the token contract address. - For Stellar (XLM) this should be the issuer address. - For Algorand (ALGO) this should be the asset ID. - For TRON (TRX) this should be the token contract address. - For NEAR this will be the token address. ") + address: StrictStr = Field(description="Asset address. - EVM-based chains: token contract address - Stellar (XLM): issuer address - Algorand (ALGO): asset ID - TRON (TRX): token contract address - NEAR: token address - Solana: token's mint account address ") symbol: Optional[StrictStr] = Field(default=None, description="Required for Stellar only, asset code is expected.") __properties: ClassVar[List[str]] = ["blockchainId", "address", "symbol"] diff --git a/fireblocks/models/source_transfer_peer_path_response.py b/fireblocks/models/source_transfer_peer_path_response.py index 1015f04..54d4d04 100644 --- a/fireblocks/models/source_transfer_peer_path_response.py +++ b/fireblocks/models/source_transfer_peer_path_response.py @@ -33,7 +33,8 @@ class SourceTransferPeerPathResponse(BaseModel): id: Optional[StrictStr] = Field(default=None, description="The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed.") name: Optional[StrictStr] = Field(default=None, description="The name of the peer.") wallet_id: Optional[StrictStr] = Field(default=None, alias="walletId") - __properties: ClassVar[List[str]] = ["type", "subType", "id", "name", "walletId"] + trading_account: Optional[StrictStr] = Field(default=None, description="If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account.", alias="tradingAccount") + __properties: ClassVar[List[str]] = ["type", "subType", "id", "name", "walletId", "tradingAccount"] model_config = ConfigDict( populate_by_name=True, @@ -79,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]: if self.id is None and "id" in self.model_fields_set: _dict['id'] = None + # set to None if trading_account (nullable) is None + # and model_fields_set contains the field + if self.trading_account is None and "trading_account" in self.model_fields_set: + _dict['tradingAccount'] = None + return _dict @classmethod @@ -95,7 +101,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "subType": obj.get("subType"), "id": obj.get("id"), "name": obj.get("name"), - "walletId": obj.get("walletId") + "walletId": obj.get("walletId"), + "tradingAccount": obj.get("tradingAccount") }) return _obj diff --git a/fireblocks/models/token_ownership_response.py b/fireblocks/models/token_ownership_response.py index e4aa118..7190eff 100644 --- a/fireblocks/models/token_ownership_response.py +++ b/fireblocks/models/token_ownership_response.py @@ -53,8 +53,8 @@ class TokenOwnershipResponse(BaseModel): @field_validator('blockchain_descriptor') def blockchain_descriptor_validate_enum(cls, value): """Validates the enum""" - if value not in set(['ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH']): - raise ValueError("must be one of enum values ('ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH')") + if value not in set(['ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH', 'BASECHAIN_ETH_TEST3']): + raise ValueError("must be one of enum values ('ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH', 'BASECHAIN_ETH_TEST3')") return value @field_validator('status') diff --git a/fireblocks/models/token_response.py b/fireblocks/models/token_response.py index b8c6323..c66b405 100644 --- a/fireblocks/models/token_response.py +++ b/fireblocks/models/token_response.py @@ -46,8 +46,8 @@ class TokenResponse(BaseModel): @field_validator('blockchain_descriptor') def blockchain_descriptor_validate_enum(cls, value): """Validates the enum""" - if value not in set(['ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH']): - raise ValueError("must be one of enum values ('ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH')") + if value not in set(['ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH', 'BASECHAIN_ETH_TEST3']): + raise ValueError("must be one of enum values ('ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH', 'BASECHAIN_ETH_TEST3')") return value model_config = ConfigDict( diff --git a/test/test_asset_response_onchain.py b/test/test_asset_response_onchain.py index 79423a0..066ef95 100644 --- a/test/test_asset_response_onchain.py +++ b/test/test_asset_response_onchain.py @@ -48,7 +48,6 @@ def make_instance(self, include_optional) -> AssetResponseOnchain: symbol = 'TST3', name = 'Test 3', decimals = 18, - standard = 'ERC20', ) """ diff --git a/test/test_create_internal_transfer_request.py b/test/test_create_internal_transfer_request.py index 5f6e5f5..2692475 100644 --- a/test/test_create_internal_transfer_request.py +++ b/test/test_create_internal_transfer_request.py @@ -46,6 +46,10 @@ def make_instance(self, include_optional) -> CreateInternalTransferRequest: ) else: return CreateInternalTransferRequest( + asset = '', + amount = '', + source_type = 'COIN_FUTURES', + dest_type = 'COIN_FUTURES', ) """ diff --git a/test/test_destination_transfer_peer_path_response.py b/test/test_destination_transfer_peer_path_response.py index 00ee72d..b57dc52 100644 --- a/test/test_destination_transfer_peer_path_response.py +++ b/test/test_destination_transfer_peer_path_response.py @@ -43,7 +43,8 @@ def make_instance(self, include_optional) -> DestinationTransferPeerPathResponse sub_type = '', id = '', name = '', - wallet_id = '' + wallet_id = '', + trading_account = '' ) else: return DestinationTransferPeerPathResponse( diff --git a/test/test_internal_transfer_response.py b/test/test_internal_transfer_response.py index d47d00b..80273db 100644 --- a/test/test_internal_transfer_response.py +++ b/test/test_internal_transfer_response.py @@ -37,7 +37,8 @@ def make_instance(self, include_optional) -> InternalTransferResponse: model = InternalTransferResponse() if include_optional: return InternalTransferResponse( - success = True + success = True, + id = '' ) else: return InternalTransferResponse( diff --git a/test/test_network_record.py b/test/test_network_record.py index 1c52203..eeff2a8 100644 --- a/test/test_network_record.py +++ b/test/test_network_record.py @@ -42,13 +42,15 @@ def make_instance(self, include_optional) -> NetworkRecord: sub_type = '', id = '', name = '', - wallet_id = '', ), + wallet_id = '', + trading_account = '', ), destination = fireblocks.models.destination_transfer_peer_path_response.DestinationTransferPeerPathResponse( type = 'VAULT_ACCOUNT', sub_type = '', id = '', name = '', - wallet_id = '', ), + wallet_id = '', + trading_account = '', ), tx_hash = '', network_fee = '', asset_id = '', diff --git a/test/test_source_transfer_peer_path_response.py b/test/test_source_transfer_peer_path_response.py index eac8e26..df07a7b 100644 --- a/test/test_source_transfer_peer_path_response.py +++ b/test/test_source_transfer_peer_path_response.py @@ -43,7 +43,8 @@ def make_instance(self, include_optional) -> SourceTransferPeerPathResponse: sub_type = '', id = '', name = '', - wallet_id = '' + wallet_id = '', + trading_account = '' ) else: return SourceTransferPeerPathResponse( diff --git a/test/test_transaction_response.py b/test/test_transaction_response.py index 73b8fd4..86846b7 100644 --- a/test/test_transaction_response.py +++ b/test/test_transaction_response.py @@ -50,7 +50,8 @@ def make_instance(self, include_optional) -> TransactionResponse: sub_type = '', id = '', name = '', - wallet_id = '', ), + wallet_id = '', + trading_account = '', ), source_address = '', tag = '', destination = fireblocks.models.destination_transfer_peer_path_response.DestinationTransferPeerPathResponse( @@ -58,7 +59,8 @@ def make_instance(self, include_optional) -> TransactionResponse: sub_type = '', id = '', name = '', - wallet_id = '', ), + wallet_id = '', + trading_account = '', ), destinations = [ fireblocks.models.transaction_response_destination.TransactionResponseDestination( destination_address = null, @@ -73,7 +75,8 @@ def make_instance(self, include_optional) -> TransactionResponse: sub_type = '', id = '', name = '', - wallet_id = '', ), + wallet_id = '', + trading_account = '', ), authorization_info = fireblocks.models.authorization_info.AuthorizationInfo( allow_operator_as_authorizer = True, logic = 'AND', @@ -111,13 +114,15 @@ def make_instance(self, include_optional) -> TransactionResponse: sub_type = '', id = '', name = '', - wallet_id = '', ), + wallet_id = '', + trading_account = '', ), destination = fireblocks.models.destination_transfer_peer_path_response.DestinationTransferPeerPathResponse( type = 'VAULT_ACCOUNT', sub_type = '', id = '', name = '', - wallet_id = '', ), + wallet_id = '', + trading_account = '', ), tx_hash = '', network_fee = '', asset_id = '', diff --git a/test/test_transaction_response_destination.py b/test/test_transaction_response_destination.py index 65a311b..066fdf3 100644 --- a/test/test_transaction_response_destination.py +++ b/test/test_transaction_response_destination.py @@ -51,7 +51,8 @@ def make_instance(self, include_optional) -> TransactionResponseDestination: sub_type = '', id = '', name = '', - wallet_id = '', ), + wallet_id = '', + trading_account = '', ), authorization_info = fireblocks.models.authorization_info.AuthorizationInfo( allow_operator_as_authorizer = True, logic = 'AND',